if(typeof(COLOR) == "undefined"){
  var COLOR = "pink";
}

if(!window.saveInnerWidth) {
  window.onresize = resize;
  window.saveInnerWidth = window.innerWidth;
  window.saveInnerHeight = window.innerHeight;
}

function resize() {
    if (saveInnerWidth < window.innerWidth || 
        saveInnerWidth > window.innerWidth || 
        saveInnerHeight > window.innerHeight || 
        saveInnerHeight < window.innerHeight ) 
    {
	    window.history.go(0);
    }
}
var RImage = (Math.round(Math.random()*2)+1)

var sBrowser;
if (navigator.appName == "Netscape") {
	sBrowser="NS";
	if (navigator.userAgent.indexOf("/4") == -1) {sBrowser="NS3";}
		} else {
	if (navigator.userAgent.indexOf("5.") == -1) {sBrowser="IE4"; }
	if (navigator.userAgent.indexOf("5.") != -1) {sBrowser="IE5"; }
}


//On off function
function rollIn(imgName) {
		if (document.images) {
        imgFile = eval(imgName + "on.src")
        document [imgName].src = imgFile
		}
}


function rollOut(imgName) {
		if (document.images) {
        imgFile = eval(imgName + "off.src")
        document [imgName].src = imgFile
		}
}

//On off pink
function rollInPink(imgName){
  var imge = document.getElementById(imgName);
  imge.src = "../images/nav/" + imgName + "_" + COLOR +"_RO.gif";
}


function rollOutPink(imgName) {
  var imge = document.getElementById(imgName);
  imge.src = "../images/nav/" + imgName + "_" + COLOR +"_NOR.gif";
}

function popWin(location) { 
var popWin = window.open(location, 'popWin', 'toolbar=1,location=1,directories=1,status=1,scrollbars=1,resizable=1,copyhistory=0,width=600,height=300');
if (navigator.appVersion.indexOf("MSIE 3.")==-1 ) {
	popWin.focus();
	}
}
