


// ::::::::::::::::: back drop & PURCHASE LINKS ::::::::::::::::::


var lastSelectedLink = "";

function doPopUpWithBdrop(selectedLink){

	//alert(selectedLink);
	
	
	lastSelectedLink = selectedLink;

	$("#translucentBd").slideDown("slow");
   
	$("#myDialogBox").fadeIn("slow");
	
	

}


function closePopUpWithBdrop(){

	$("#translucentBd").slideUp("slow");
   
	$("#myDialogBox").fadeOut("slow");

}


function goToLink(theLink){
	
	if (theLink == undefined) {
		theLink = lastSelectedLink;
	}
	
	//alert(theLink);
   
	$("#myDialogBox").fadeOut("slow");
	$("#spinner").css("visibility","visible");
	
		
	setTimeout(function() { document.location.href = theLink; }, 750);
	//closePopUpWithBdrop();

}






// ::::::::::::::::: KEY DETECT ::::::::::::::::::


function getArrows(ev) {

	arrows=((ev.which)||(ev.keyCode));
	
	switch(arrows) {
		
		case 37:
		//LEFT ARROW
		doLeftArrow();
		break;
		
		case 39:
		//RIGHT ARROW
		doRightArrow();
		break;
		
	}
}


function doLeftArrow() {

	window.location = goBackUrl;

}



function doRightArrow() {
	
	window.location = goForwardUrl;

}




// ::::::::::::::::: MENU ROLLOVERS (ignore extra functionality) ::::::::::::::::::

var menuImgRoot = "art/nav/images/"
//var menuList = new Array('nav_01','nav_02','nav_03','nav_04','nav_05')


function clickOnMenu(id){
	//document.pageVars.menuSelection.value = id;

	//for ( var i=0, len=menuList.length; i<len; ++i ){
	//	mouseOffMenu(menuList[i])
	//}

	newImgPath = menuImgRoot + id + '_S' + '.gif';
	document.getElementById(id).src = newImgPath;
	
}

function mouseOnMenu(id){
	//if (id != document.pageVars.menuSelection.value){
	newImgPath = menuImgRoot + id + '_H' + '.gif';
	document.getElementById(id).src = newImgPath;
	//}
}



function mouseOffMenu(id){
	///if (id != document.pageVars.menuSelection.value){
	newImgPath = menuImgRoot + id + '' + '.gif';
	document.getElementById(id).src = newImgPath;
	//}
}






// ::::::::::::::::: CAPTION ROLLOVERS ::::::::::::::::::

var captionImgRoot = "art/product/captions/"
function mouseOnCaption(id){
	try{
	newImgPath = captionImgRoot + 'H/' + id + '.gif';
	document.getElementById(id).src = newImgPath;
	}
	catch(err){}
}



function mouseOffCaption(id){
	try{
	newImgPath = captionImgRoot + '' + id + '.gif';
	document.getElementById(id).src = newImgPath;
	}
	catch(err){}
}
