// Define an array here, so the flip doesn't give 'no obj' errors
// Preload imgs are in a js by the footer
var preImgs = new Array(3); for (var q=0; q <= 3; q++) { preImgs[q] = new Image(); }

imgPath = "/images/en/sec_nav/";
function flipSecOn(num, wot) { if (!document.images) {return;} i = "s" + num; document.images[i].src = preImgs[num].src; }
function flipSecOff(num, wot) { if (!document.images) {return;}	i = "s" + num; document.images[i].src = imgPath + wot + "_off.gif"; }

function popPicWin(thePic) { imgPop = window.open('/image_popper.asp?p='+thePic,'picWin','scrollbars=no,status=no,toolbar=no,menubar=no,resizable=no,screenX=20,screenY=20,top=20,left=20,width=420,height=400');}
function popPicWinScroll(thePic) { winPop = window.open('/image_scroll_popper.asp?p='+thePic,'picWin','scrollbars=yes,status=no,toolbar=no,menubar=no,resizable=yes,screenX=20,screenY=20,top=20,left=20,width=400,height=400'); }
function popWin(wot,h,w) {winPop=window.open(wot,'winPop','scrollbars=yes,status=yes,toolbar=no,menubar=no,resizable=yes,screenX=20,screenY=20,top=20,left=20,width='+w+',height='+h); }
function doOnOff(doo,wot,cls) {
	if (doo == "on") { i=document.getElementById(wot); i.className=cls; wot.className=cls; return true; }
	if (doo == "off") { i=document.getElementById(wot); i.className=cls; wot.className=cls;	return true; }
}
