/* Do includes */

if (window.pathToRoot == null)
	pathToRoot = "./";

document.write('<link type="text/css" rel="stylesheet" href="cams.css">');
webfxMenuDefaultImagePath = pathToRoot + "images/";

/* end includes */

/* set up browser checks and add a simple emulation for IE4 */

// check browsers
var op = /opera 5|opera\/5/i.test(navigator.userAgent);
var ie = !op && /msie/i.test(navigator.userAgent);	
var mz = !op && /mozilla\/5/i.test(navigator.userAgent);	

if (ie && document.getElementById == null) {	// ie4
	document.getElementById = function(sId) {
		return document.all[sId];
	};
}

/* end browser checks */

webfxLayout = {
	
	writeDesignedByEdger	:	function () {
		if (ie && document.body.currentStyle.writingMode != null)
			document.write("<div id='webfx-about'>sionvalais.com is designed and maintained by " +
					"<a href=''></a>" +
					".</div>");
	}
};


function hidestatus(){
window.status=''
return true
}

if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)

document.onmouseover=hidestatus
document.onmouseout=hidestatus


window.defaultStatus = "";

PopUpURL    = "copyright.php";
PopUpLeft   =  400;
PopUpTop    =  350;
PopUpWidth  =  400;
PopUpHeight =  160;


isIE=document.all;
isNN=!document.all&&document.getElementById;
isN4=document.layers;
popO='left='+PopUpLeft+',top='+PopUpTop+',width='+PopUpWidth+',height='+PopUpHeight

if (isIE||isNN){
document.oncontextmenu=checkV;
}else{
document.captureEvents(Event.MOUSEDOWN || Event.MOUSEUP);
document.onmousedown=checkV;}

function checkV(e){
if (isN4){
if (e.which==2||e.which==3){
dPUW=window.open(PopUpURL,'nrc',popO);
return false;
}}else{
dPUW=window.open(PopUpURL,'nrc',popO);
return false;}}