proto="http";
if(location.protocol=="https:"){proto="https";}
if(document.images){
	var imgAry=new Array('nav_home','nav_report','nav_title','nav_faq','nav_general','nav_register','nav_order','nav_disneydvd');// array of image names
	var imgLoc=proto+'://disney.go.com/disneyvideos/dvdsupport/pics/';// path where images are located
	for(var i=0;i<imgAry.length;i++){ // loads all the images before the page is displayed so there is no delay when changing images
		eval(imgAry[i]+'_lit=new Image()');
		eval(imgAry[i]+'_lit.src="'+imgLoc+imgAry[i]+'_on.gif"');
		eval(imgAry[i]+'_drk=new Image()');
		eval(imgAry[i]+'_drk.src="'+imgLoc+imgAry[i]+'.gif"');
	}
}
function dark2lite(sImgName){document.getElementById(sImgName).src=imgLoc+sImgName+'_on.gif';}
function lite2dark(sImgName){document.getElementById(sImgName).src=imgLoc+sImgName+'.gif';}
function nav(type){
	if(type=="top"){
		//start header code
		document.write('<style type="text/css">#nav{background:url('+proto+'://disney.go.com/disneyvideos/dvdsupport/pics/nav_bg.gif) repeat-x;width:'+chromeWidth+'px;}</style>\
		<div align="center" id="nav"><a href="http://disney.go.com/disneyvideos/dvdsupport/" onMouseOver="dark2lite(\'nav_home\')" onMouseOut="lite2dark(\'nav_home\')"><img src="'+proto+'://disney.go.com/disneyvideos/dvdsupport/pics/nav_home.gif" alt="" name="nav_home" id="nav_home" width="33" height="19" border="0" title="Home"></a><img src="'+proto+'://disney.go.com/disneyvideos/assets/invis.gif" width="14" height="1" alt="" border="0">');

if(location.href.match(/bvhe2/)){
	document.write('<a href="https://register.go.com/bvhe2/survey/survey"><img src="'+proto+'://disney.go.com/disneyvideos/dvdsupport/pics/nav_register_on.gif" alt="" width="97" height="19" border="0" title="Register Your Disc">');
}else{
	document.write('<a href="https://register.go.com/bvhe2/survey/survey" onMouseOver="dark2lite(\'nav_register\')" onMouseOut="lite2dark(\'nav_register\')"><img src="'+proto+'://disney.go.com/disneyvideos/dvdsupport/pics/nav_register.gif" alt="" name="nav_register" id="nav_register" width="97" height="19" border="0" title="Register Your Disc">');
}

document.write('</a><img src="'+proto+'://disney.go.com/disneyvideos/assets/invis.gif" width="14" height="1" alt="" border="0"><a href="http://disneyvideos.disney.go.com/moviefinder/titlesaz/" onMouseOver="dark2lite(\'nav_order\')" onMouseOut="lite2dark(\'nav_order\')"><img src="'+proto+'://disney.go.com/disneyvideos/dvdsupport/pics/nav_order.gif" alt="" name="nav_order" id="nav_order" width="103" height="19" border="0" title="DVD Finder"></a><img src="'+proto+'://disney.go.com/disneyvideos/assets/invis.gif" width="14" height="1" alt="" border="0">');

if(location.href.match(/faq.html/)){
	document.write('<a href="http://disney.go.com/disneyvideos/dvdsupport/faq.html"><img src="http://disney.go.com/disneyvideos/dvdsupport/pics/nav_faq_on.gif" alt="" width="30" height="19" border="0" title="Frequently Asked Questions">');
}else{
	document.write('<a href="http://disney.go.com/disneyvideos/dvdsupport/faq.html" onMouseOver="dark2lite(\'nav_faq\')" onMouseOut="lite2dark(\'nav_faq\')"><img src="'+proto+'://disney.go.com/disneyvideos/dvdsupport/pics/nav_faq.gif" alt="" name="nav_faq" id="nav_faq" width="30" height="19" border="0" title="Frequently Asked Questions">');
}

document.write('</a><img src="'+proto+'://disney.go.com/disneyvideos/assets/invis.gif" width="14" height="1" alt="" border="0">');



if(location.href.match(/feedback/)){
	document.write('<a href="http://studio.go.com/cgi-bin/gmail/generic_mail.cgi?template=video/dvd_feedback/feedback.tpl"><img src="'+proto+'://disney.go.com/disneyvideos/dvdsupport/pics/nav_general_on.gif" alt="" width="95" height="19" border="0" title="General Feedback">');
}else{
	document.write('<a href="http://studio.go.com/cgi-bin/gmail/generic_mail.cgi?template=video/dvd_feedback/feedback.tpl" onMouseOver="dark2lite(\'nav_general\')" onMouseOut="lite2dark(\'nav_general\')"><img src="'+proto+'://disney.go.com/disneyvideos/dvdsupport/pics/nav_general.gif" alt="" name="nav_general" id="nav_general" width="95" height="19" border="0" title="General Feedback">');
}

document.write('</a><img src="'+proto+'://disney.go.com/disneyvideos/assets/invis.gif" width="14" height="1" alt="" border="0">');

if(location.href.match(/report/)){
	document.write('<a href="http://studio.go.com/cgi-bin/gmail/generic_mail.cgi?template=video/dvd_report_a_problem/report.tpl"><img src="'+proto+'://disney.go.com/disneyvideos/dvdsupport/pics/nav_report_on.gif" alt="" width="93" height="19" border="0" title="Report a Problem">');
}else{
	document.write('<a href="http://studio.go.com/cgi-bin/gmail/generic_mail.cgi?template=video/dvd_report_a_problem/report.tpl" onMouseOver="dark2lite(\'nav_report\')" onMouseOut="lite2dark(\'nav_report\')"><img src="'+proto+'://disney.go.com/disneyvideos/dvdsupport/pics/nav_report.gif" alt="" name="nav_report" id="nav_report" width="93" height="19" border="0" title="Report a Problem">');
}

document.write('</a><img src="'+proto+'://disney.go.com/disneyvideos/assets/invis.gif" width="14" height="1" alt="" border="0"><a href="http://www.disneydvd.com" onMouseOver="dark2lite(\'nav_disneydvd\')" onMouseOut="lite2dark(\'nav_disneydvd\')"><img src="'+proto+'://disney.go.com/disneyvideos/dvdsupport/pics/nav_disneydvd.gif" alt="" name="nav_disneydvd" id="nav_disneydvd" width="123" height="19" border="0" title="Go to DISNEYDVD.COM"></a></div>');
		//end header code
	}else if(type=="footer"){
		//start footer code
		document.write('<a href="https://register.go.com/bvhe2/survey/survey">Register Your Disc</a>&nbsp;&nbsp;<a href="http://disneyvideos.disney.go.com/moviefinder/titlesaz/">Disney Movie Finder</a>&nbsp;&nbsp;<a href="http://disney.go.com/disneyvideos/dvdsupport/faq.html">FAQs</a><br />\
		<a href="http://studio.go.com/cgi-bin/gmail/generic_mail.cgi?template=video/dvd_feedback/feedback.tpl">General Feedback</a>&nbsp;&nbsp;<a href="http://studio.go.com/cgi-bin/gmail/generic_mail.cgi?template=video/dvd_report_a_problem/report.tpl">Report a Problem</a>&nbsp;&nbsp;');
	}
}