function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',noresize'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function Zoom(imgName,imgWidth,imgHeight) {
 
zoomWindow = window.open('', 'zoomWin', 'width='+imgWidth+',height='+imgHeight+'top=10,left=5,toolbar=0,menubar=0,location=0,scrollbars=0')
zoomWindow.document.write("<html><head><title>Loading Image, Please Wait...<\/title><\/head><body background='/images/zoombg.gif' leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 text='",imgWidth,imgHeight,"'><center><a href='#' onClick =javascript:window.close()><img src='",imgName,"' alt='Click to Close' border='0'><\/a><\/center><\/body><\/html>")
 zoomWindow.focus()
 zoomWindow.window.resizeTo(imgWidth+8, imgHeight+29);
 zoomWindow.document.title = " Zoom "
 
}

<!-- Begin
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+''
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
//  End -->

//this pre-loads images for mouseover
//Image(width, height)

mouseover1=new Image(107, 34);
mouseover1.src="http://chat.primediaautomotive.com/sponsor_it_on.gif";

mouseout1=new Image(107, 34);
mouseout1.src="http://chat.primediaautomotive.com/sponsor_it.gif";

mouseover2=new Image(132, 34);
mouseover2.src="http://chat.primediaautomotive.com/sponsor_scc_on.gif";

mouseout2=new Image(132, 34);
mouseout2.src="http://chat.primediaautomotive.com/sponsor_scc.gif";

mouseover3=new Image(86, 34);
mouseover3.src="http://chat.primediaautomotive.com/sponsor_ss_on.gif";

mouseout3=new Image(107, 86);
mouseout3.src="http://chat.primediaautomotive.com/sponsor_ss.gif";




//this function switches existing image with specified image
/*
Modification : if current url contains image_name, then function will not
					switch images. 

*/
function switch_images(image_name, temp)
{	if(!(image_name=="seetheteam" && slug.length==0))
	{
		if( !(window.location.href.indexOf(image_name) >= 0) )
			document.images[image_name].src = eval(temp+".src");
	}
}


//images for article top nav

seetheteam1=new Image(90, 29);
seetheteam1.src="/images/top_nav_team_on.gif";
seetheteam2=new Image(90, 29);
seetheteam2.src="/images/top_nav_team_off.gif";

before1=new Image(65, 29);
before1.src="/images/top_nav_before_on.gif";
before2=new Image(65, 29);
before2.src="/images/top_nav_before_off.gif";

article_over3=new Image(51, 29);
article_over3.src="/images/top_nav_buzz_on.gif";
article_out3=new Image(51, 29);
article_out3.src="/images/top_nav_buzz_off.gif";

duringthebuild1=new Image(117, 29);
duringthebuild1.src="/images/top_nav_build_on.gif";
duringthebuild2=new Image(117, 29);
duringthebuild2.src="/images/top_nav_build_off.gif";

after1=new Image(51, 29);
after1.src="/images/top_nav_after_on.gif";
after2=new Image(51, 29);
after2.src="/images/top_nav_after_off.gif";

trackday1=new Image(76, 29);
trackday1.src="/images/top_nav_track_on.gif";
trackday2=new Image(76, 29);
trackday2.src="/images/top_nav_track_off.gif";

photogallery1=new Image(104, 29);
photogallery1.src="/images/top_nav_photo_on.gif";
photogallery2=new Image(104, 29);
photogallery2.src="/images/top_nav_photo_off.gif";

partslist1=new Image(75, 29);
partslist1.src="/images/top_nav_parts_on.gif";
partslist2=new Image(75, 29);
partslist2.src="/images/top_nav_parts_off.gif";

