

// code to open pop-up window

function Start(page) {
	OpenWin = this.open(page, "CtrlWindow", "toolbar=yes,location=yes,status=no,menubar=no,directories=no,scrollbars=yes,resizable=yes,width=700,height=600");
}

function Start2(page) {
	OpenWin = this.open(page, "CtrlWindow2", "toolbar=no,location=no,status=no,menubar=no,directories=no,scrollbars=yes,resizable=no,width=484,height=523");
}

// code to detect browser and load specific CSS
// apply the following to html code
//<body Onload="which_browser();">
//<link href="larambla.css" rel="stylesheet" type="text/css" media="screen" title="1"/>
//<link href=".css" rel="stylesheet" type="text/css" media="screen" title="2"/>
// 2 refers to IE stylesheet

function which_browser(){

	//If it is Opera adjust the year returned
	if ((navigator.userAgent.indexOf("Opera")!=-1) || (navigator.userAgent.indexOf("Opera")!=-1))
		setActiveStyleSheet(2);
	//if its IE then the year is correct already otherwise adjust
	else if ((navigator.appName.indexOf("Microsoft") != -1)){
		setActiveStyleSheet(2);
	}
	else
		setActiveStyleSheet(1);
		
}

function setActiveStyleSheet(title) {
   var i, a, main;
   for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
     if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
       a.disabled = true;
       if(a.getAttribute("title") == title) a.disabled = false;
     }
   }
}

// pop-up window code

function funcPopShowcase(strURL,strName,intWidth,intHeight,strScroll)
	{
		window.open(strURL,strName, "resizable=no,scrollbars=" + strScroll + ",width="+intWidth+",height="+intHeight);
	}
