function disclaimer(){
awaymsg = window.open('http://disneyvideos.disney.go.com/disclaimer.html','disclaimer','width=225,height=225,screenX=100,screenY=100,left=100,top=100');
setTimeout('awaymsg.close()',60000)
}
// here are support functions for the rollovers and popup

// two simple rollover scripts
function globalnavRightOn() {
	if (document.images)
		document.images["globalnavright"].src = ("http://disney.go.com/disneyvideos/globalnav/pieces/rightonPixar_"+siteflavor+".gif");
	}
function globalnavRightOff() {
	if (document.images)
		document.images["globalnavright"].src = ("http://disney.go.com/disneyvideos/globalnav/pieces/rightoffPixar_"+siteflavor+".gif");
	}

// this function prints the Disney Videos navbar that appears below the chrome.
function globalnav(sitename) {
	if (sitename) {
		// select the appropriate variables for the site specified
		sitearray = eval('adlist_'+sitename);
		siteflavor = eval('flavor_'+sitename);
	} else {
		// if no sitename is specified, use the "generic" set.
		// these settings will be defined in the last section.
		sitearray = eval('adlist_generic');
		siteflavor = eval('flavor_generic');
	}
	
	if (sitearray.length > 0) {
		// select a random ad, if the array is defined
		var currentdate = 0;
		var core = 0;
		var currentdate = new Date();
		var core = currentdate.getSeconds() % sitearray.length;
		//alert(core);
		var ranlink  = advert_link[sitearray[core]];
		//alert(ranlink);
		var ranimage = advert_image[sitearray[core]];
		//alert(ranimage);
		var rantext  = advert_alt[sitearray[core]];
		//alert(rantext);
	} else {
		// the ad to use, if the array is empty.
		var ranlink  = "#";
		var ranimage = "ad_blank.gif";
		var rantext  = "Walt Disney Home Video";
	}
	
	// write the code that comes before the ad
	document.write('<table width="770" border="0" cellspacing="0" cellpadding="0" align="center">');
	document.write('<TR><TD><A HREF="http://disney.go.com/disneyvideos/" TARGET="_top"><IMG SRC="http://disney.go.com/disneyvideos/globalnav/pieces/left770_'+siteflavor+'.gif" BORDER="0" ALT="Back to Disney DVD + Video"></A></TD>');
	document.write('<TD><IMG SRC="http://disney.go.com/disneyvideos/globalnav/pieces/top_'+siteflavor+'.gif" BORDER="0" ALT=""><BR>');
	
// write the code for the ad	
popDisclaimer = ranlink.indexOf("disclaimer");
if(popDisclaimer == -1){
document.write('<a href=\"' +ranlink+ '\" target="_top"><img src=\"http://disneyvideos.disney.go.com/assets/ad_banners/'+ranimage+'\" border="0" height=60 width=468 alt=\"'+rantext+'\"></a><BR>');
}else{
var needDisclaimer = ranlink.split("?");
document.write('<a href=\"' +needDisclaimer[0]+ '\" target="_top" onclick="disclaimer();"><img src=\"http://disneyvideos.disney.go.com/assets/ad_banners/'+ranimage+'\" border="0" height=60 width=468 alt=\"'+rantext+'\"></a><BR>');
}
	
	// write the code that follows the ad
	document.write('<IMG SRC="http://disney.go.com/disneyvideos/globalnav/pieces/bottom_'+siteflavor+'.gif" BORDER="0" ALT=""></TD><TD>');
	document.write('<A HREF="http://disney.go.com/disneyvideos/moviefinder" onMouseOver="globalnavRightOn()" onMouseOut="globalnavRightOff()" TARGET="_top"><IMG SRC="http://disney.go.com/disneyvideos/globalnav/pieces/rightoffPixar_'+siteflavor+'.gif" BORDER="0" ALT="Movie Finder" NAME="globalnavright"></A></TD></TR></TABLE>');

}


// a useful function for initializing arrays
function initArray() {
this.length = initArray.arguments.length;
 for (var i = 0; i < this.length; i++) {
 this[i] = initArray.arguments[i];
 }
}

//	THIS FILE IS ACCESSED BY
//	disneyvideosnav.js
//	disneyvideosnav800.js
//	disneyvideosnavWide.js

	
// set up the arrays that define the ads
// all ads appearing throughout the site must be added to these three arrays.
// each site may specify which ones to use, in the next section.
//
// when adding new ads, please add them to the end of the list, so you don't
// change the index values. also, don't ever delete ads from the list, or
// you could end up with broken images or change the index values.

// the URL to link to:
	advert_link = new initArray(
	"http://transfer.go.com/cgi/transfer.dll?srvc=dis&goto=http://www.pixar.com&name=monstersPixarBanner", //0 FOR MONSTERS INC SITE ONLY.
	"http://transfer.go.com/cgi/transfer.dll?goto=http://www.pixar.com" //1 FOR PIXAR SITES ONLY
	);
	
// the names of the images in the disneyvideos/media/adtags/ directory
	advert_image = new initArray(
	"pixar-banner.gif",//0 FOR MONSTERS INC SITE ONLY. SEE TRACKING ABOVE
	"pixar-banner.gif" //1 FOR PIXAR SITES ONLY
	);  
	
// the alt tags for the ads
	advert_alt = new initArray(
	"Pixar", //0 FOR MONSTERS INC SITE ONLY. SEE TRACKING ABOVE
	"Pixar" //1 FOR PIXAR SITES ONLY
	);

// now we define the properties of each site.
//
// for each site, create an array called adlist_sitename.
// the elements of the array should be the indexes of the desired ads.
// if the array has no contents, there will be no ads.
// list an index twice to make it occur twice as often.
// remember, indexes start at zero, not one.
//
// then, create a variable called flavor_sitename.
// there are predefined flavors to match the chrome colors.
//
// WARNING: if there's no array, there will be an error! so to remove the
// ads from a site, just empty the array instead of deleting it,
// or you run the risk of rogue files causing errors.

	
	// PIXAR BANNERS ONLY
	adlist_monsters = new initArray(0);
	flavor_monsters = "blue";
	adlist_nemo = new initArray(0);
	flavor_nemo = "blue";