//
// Browser Detection
//

isMac = (navigator.appVersion.indexOf("Mac")!=-1) ? true : false;
NS4 = (document.layers) ? true : false;
IEmac = ((document.all)&&(isMac)) ? true : false;
IE4plus = (document.all) ? true : false;
IE4 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 4.")!=-1)) ? true : false;
IE5 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 5.")!=-1)) ? true : false;
IE6 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 6.")!=-1)) ? true : false;
IE7 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 7.")!=-1)) ? true : false;
ver4 = (NS4 || IE4plus) ? true : false;
NS6 = (!document.layers) && (navigator.userAgent.indexOf('Netscape')!=-1)?true:false;

IE5plus = IE5 || IE6 || IE7;
IEMajor = 0;

if (IE5plus )
{
       //alert("IE5 plus");
	var start = navigator.appVersion.indexOf("MSIE");
	var end = navigator.appVersion.indexOf(".",start);
	IEMajor = parseInt(navigator.appVersion.substring(start+5,end));
	IE5plus = (IEMajor>=5) ? true : false;
}


//check width and height
//1280x1024
//800x600
//1024x768
function checkResolution(){
	var width=screen.width;
	var height=screen.height;
	var screenResolution;
	var screenNotStandard = false;
		
	if (width == 1280 && height == 1024){
		//alert('Your resolution is '+screen.width+'x'+screen.height);
		screenResolution = "High";
	}		
	else if (width ==1024 && height == 768){
		//alert('Your resolution is '+screen.width+'x'+screen.height);
		screenResolution = "Med";
	}
	else if (width == 800 && height == 600){
		//alert('Your resolution is '+screen.width+'x'+screen.height);
		screenResolution = "Low";
	}
	else {
		screenNotStandard = true;
	}
	
	if (screenNotStandard){
		//alert("non standard screen width");
		if (width > 1100){
		//alert('Your resolution is '+screen.width+'x'+screen.height);
		screenResolution = "High";
		}
		else if (width < 1100 && width > 1000){
			//alert('Your resolution is '+screen.width+'x'+screen.height);
			screenResolution = "Med";
		}
		else if (width < 1000 ){
			//alert('Your resolution is '+screen.width+'x'+screen.height);
			screenResolution = "Low";
		}
	}	

	return screenResolution;

}

function checkScreenRes(){
	var screenRes = checkResolution();
	

	if (screenRes == "High"){		
		document.all.lineUpText.style.position="absolute";
		document.all.lineUpText.style.left="490px";
		document.all.lineUpText.style.top="450px";
		//alert('in js file ' + screenRes);
	}
	else if (screenRes == "Med"){	
		//test this 8/12/04	
		document.all.lineUpText.style.position="absolute";
		document.all.lineUpText.style.left="360px";
		document.all.lineUpText.style.top="450px";
		//alert('change text ' + screenRes);
	}
	else if (screenRes == "Low"){		
		//test this 8/12/04
		document.all.lineUpText.style.position="absolute";
		document.all.lineUpText.style.left="250px";
		document.all.lineUpText.style.top="450px";
		//alert('change text ' + screenRes);
	}
}



