// Preloads and mouseover functions =================================
function pixPath(depth)
	{
	/*
	preload('hh',depth+'pix/hh.gif');
	preload('hh_roll',depth+'pix/hh_roll.gif');
	preload('nycpNav','gbut_nycp');
	preload('bkingNav','gbut_bking');*/
	
	//GLOBAL NAV BUTTONS ======
	
	preload('seriesNav',depth+'graphics/buttons/bseries.gif');
	preload('seriesNavon',depth+'graphics/buttons/bseries_ov.gif');
	preload('specialsNav',depth+'graphics/buttons/bspecials.gif');
	preload('specialsNavon',depth+'graphics/buttons/bspecials_ov.gif');
	preload('indexNav',depth+'graphics/buttons/bindex.gif');
	preload('indexNavon',depth+'graphics/buttons/bindex_ov.gif');
	preload('cultureNav',depth+'graphics/buttons/bculture.gif');
	preload('cultureNavon',depth+'graphics/buttons/bculture_ov.gif');
	preload('curreventsNav',depth+'graphics/buttons/bcurrevents.gif');
	preload('curreventsNavon',depth+'graphics/buttons/bcurrevents_ov.gif');
	preload('historyNav',depth+'graphics/buttons/bhistory.gif');
	preload('historyNavon',depth+'graphics/buttons/bhistory_ov.gif');
	preload('travelNav',depth+'graphics/buttons/btravel.gif');
	preload('travelNavon',depth+'graphics/buttons/btravel_ov.gif');
	preload('howtoNav',depth+'graphics/buttons/bhowto.gif');
	preload('howtoNavon',depth+'graphics/buttons/bhowto_ov.gif');
	preload('natureNav',depth+'graphics/buttons/bnature.gif');
	preload('natureNavon',depth+'graphics/buttons/bnature_ov.gif');
	preload('scienceNav',depth+'graphics/buttons/bscience.gif');
	preload('scienceNavon',depth+'graphics/buttons/bscience_ov.gif');
	preload('contactNav',depth+'graphics/buttons/bcontact.gif');
	preload('contactNavon',depth+'graphics/buttons/bcontact_ov.gif');
	preload('distributionNav',depth+'graphics/buttons/bdistribution.gif');
	preload('distributionNavon',depth+'graphics/buttons/bdistribution_ov.gif');
	preload('homeNav',depth+'graphics/buttons/bhome.gif');
	preload('homeNavon',depth+'graphics/buttons/bhome_ov.gif');
	preload('videoNav',depth+'graphics/buttons/bvideo.gif');
	preload('videoNavon',depth+'graphics/buttons/bvideo_ov.gif');
	}
	
function preload(imgObj,imgSrc)
	{
	eval(imgObj+' = new Image()');
	eval(imgObj+'.src = "'+imgSrc+'"');
	
	}
	
function roll1(imageID,imageName) {
		document.images[imageID].src = eval(imageName + ".src");
	}
	
	
function roll2(imageID,imageName,imageID2,imageName2) {
		document.images[imageID].src = eval(imageName + ".src");
		document.images[imageID2].src = eval(imageName2 + ".src");
	}



// /Preloads and mouseover functions =================================

// Popups =======================================================
function popFlex(URL, winName,W,H,scroll)
	{
	if (scroll == "no")
		{scroll = "scrollbars=no"}
	else if (scroll == "yes")
		{scroll = "scrollbars"}
	if (mac && ie && scroll == "yes")
		{
		W = W - 17;
		}
	else if (mac && DOM && scroll == "yes")
		{
		W = W - 2;
		}
	window.open(URL, winName,"top=10,left=30,width="+W+",height="+H+",resizable=yes,"+scroll+"")
	}	

function popMain(URL, winName)
	{
	newWindow = window.open(URL, winName,"top=150,left=150,width=550,height=450,resizable=no,scrollbars=no");
	}
	
// /Popups =======================================================