var img1 = new Image;
img1.src = "pix/nav_about_on.gif";
var img2 = new Image;
img2.src = "pix/nav_aboutphil_on.gif";
var img3 = new Image;
img3.src = "pix/nav_buybook_on.gif";
var img4 = new Image;
img4.src = "pix/nav_guide_on.gif";
var img5 = new Image;
img5.src = "pix/nav_heroism_on.gif";
var img6 = new Image;
img6.src = "pix/nav_links_on.gif";
var img7 = new Image;
img7.src = "pix/nav_movie_on.gif";
var img8 = new Image;
img8.src = "pix/nav_tours_on.gif";
var img9 = new Image;
img9.src = "pix/nav_prison_on.gif";

var img19 = new Image;
img19.src = "pix/nav_dehuman_on.gif";
var img20 = new Image;
img20.src = "pix/nav_blog_on.gif";

var img17t = new Image;
img17t.src = "pix/voting_button_on.gif";
var img18t = new Image;
img18t.src = "pix/voting_cheney_link_on.gif";
var img19t = new Image;
img19t.src = "pix/voting_gwb_link_on.gif";
var img20t = new Image;
img20t.src = "pix/voting_rumsfeld_link_on.gif";
var img21t = new Image;
img21t.src = "pix/voting_tenet_link_on.gif";

var img16 = new Image;
img16.src = "pix/btn_readmore_on.gif";
var img17 = new Image;
img17.src = "pix/btn_readarticle_on.gif";
var img17b = new Image;
img17b.src = "pix/btn_viewnow_on.gif";

function rollover(target,imgName) {
	if (document.images) {
		imgchange = 'pix/' + imgName + '.gif';
		document[target].src = imgchange;
		}
}

var newwin;
function popup(y,z,j,k){
	var itop=(screen.height/2)-(k/2) - 20;
	var ileft=(screen.width/2)-(j/2);
	temp = "width=" + j + ",height=" + k + ",screenX=" + ileft + ",screenY=" + itop + ",left=" + ileft + ",top=" + itop;
	temp2 = "toolbar=0,location=0,directories=0,statusbar=0,menubar=0,scrollbars=1,resizable=1,"
	newwin = window.open(y,z,temp2 + temp);
	return false;
}

function popupIllustration(ploc,pwidth,pheight){
	pwidth = pwidth + 1;
	pheight = pheight + 1;
	if (pwidth > (screen.width-100)) {
		pwidth = screen.width-100;
	}
	if (pheight > (screen.height-100)) {
		pheight = screen.height-100;
		pwidth = pwidth + 17;
	}
	var itop=(screen.height/2)-(pheight/2) - 20;
	var ileft=(screen.width/2)-(pwidth/2);
	temp = "width=" + pwidth + ",height=" + pheight + ",screenX=" + ileft + ",screenY=" + itop + ",left=" + ileft + ",top=" + itop;
	temp2 = "toolbar=0,location=0,directories=0,statusbar=0,menubar=0,scrollbars=1,resizable=1,"
	newwin = window.open("","Illustrations",temp2 + temp);
	newwin.document.open();
	newwin.document.writeln("<html><head><title>The Lucifer Effect by Philip Zimbard</title></head><body leftmargin=0 topmargin=0 rightmargin=0 bottommargin=0 marginwidth=0><a href=\"\" onClick=\"self.close();return false;\"><img border=0 src=\"pix/" + ploc + "\"></a></body></html>");
	newwin.document.close();
	return false;
}

function popupFaces(ploc,pwidth,pheight){
	pwidth = pwidth + 20;
	pheight = pheight + 54;
	if (pwidth > (screen.width-100)) {
		pwidth = screen.width-100;
	}
	if (pheight > (screen.height-100)) {
		pheight = screen.height-100;
		pwidth = pwidth + 17;
	}
	var itop=(screen.height/2)-(pheight/2) - 20;
	var ileft=(screen.width/2)-(pwidth/2);
	temp = "width=" + pwidth + ",height=" + pheight + ",screenX=" + ileft + ",screenY=" + itop + ",left=" + ileft + ",top=" + itop;
	temp2 = "toolbar=0,location=0,directories=0,statusbar=0,menubar=0,scrollbars=1,resizable=1,"
	newwin = window.open("faces.htm?slide=" + ploc,"Faces",temp2 + temp);
	return false;
}