//checks NN version and writes appropriate stylesheet link
browser_version = parseInt(navigator.appVersion);
browser_type = navigator.appName;
//domain = document.URL.host;
protocol = window.location.protocol;
host = window.location.hostname;
port = window.location.port;

domain = protocol + "//" + host + ":" + port;


//netscape resize fix
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_openBrWindow(theURL,winName,features, myWidth, myHeight, isCenter) { //v3.0
		//var myHeight=570;
		//var myWidth=720;
	  if(window.screen)if(isCenter)if(isCenter=="true"){
	    var myLeft = (screen.width-myWidth)/2;
	    var myTop = (screen.height-myHeight)/2;
	    features+=(features!='')?',':'';
	    features+=',left='+myLeft+',top='+myTop;
	  }
	  window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
	}
	
function popUp(URL) {

	day = new Date();

	id = day.getTime();

	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=450,height=300,left = 175,top = 142.5');");

	}

/*
var message="Copyrighted! Right Click Disabled";
var domain = document.URL

function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}
*/

var message="";
function clickIE4(){ if (event.button==2){ return false; } } 
function clickNS4(e){ if (document.layers||document.getElementById&&!document.all){ if (e.which==2||e.which==3){ return false; } } } if (document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS4; } else if (document.all&&!document.getElementById){ document.onmousedown=clickIE4; } 
document.oncontextmenu=new Function("return false")

//if (document.URL == "http://www.alexispierre-louis.net/" || document.URL == "http://alexispierre-louis.net/")

if (domain.indexOf("alexispierre-louis", 0) >= 0 || domain.indexOf("skyymckendry", 0) >= 0)
{
	if (document.layers){
	document.captureEvents(Event.MOUSEDOWN);
	document.onmousedown=clickNS4;
	}
	else if (document.all&&!document.getElementById){
	document.onmousedown=clickIE4;
	}
	
	document.oncontextmenu=new Function("alert(message); return false;")	
}
