var msg_box="Due to copyright infringements of the image 1stŪ trade marks, we do not currently allow right clicking on our website. IP addresses are recorded for possible misuse of the image 1stŪ website. image 1stŪ and glamour 1stŪ are trade marks of img 1st limited and Doren Gabriel.";

function dis_rightclickIE(){
	if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) alert(msg_box)
}

function dis_rightclickNS(e){
	if ((document.layers||document.getElementById&&!document.all) && (e.which==2||e.which==3)){
		alert(msg_box)
		return false;
	}
}

if (document.layers){
	document.captureEvents(Event.MOUSEDOWN);
	document.onmousedown=dis_rightclickNS;
}else if (document.all&&!document.getElementById){
	document.onmousedown=dis_rightclickIE;
}
document.oncontextmenu=new Function("alert(msg_box);return false")


container.onmousedown=getMouse;

function getMouse(e) {

	if (!e) var e=window.event;
	var posX=0;
	var posY=0;
	var sWidth=875;
	var bWidth=0;

	if (e.pageX || e.pageY){
		posX=e.pageX;
		posY=e.pageY;
	}else if (e.clientX || e.clientY){
		posX=e.clientX+document.documentElement.scrollLeft+document.body.scrollLeft;
		posY=e.clientY+document.documentElement.scrollTop+document.body.scrollTop;
	}

	if(typeof(window.innerWidth)=='number'){
		bWidth=window.innerWidth;
	}else if(document.documentElement && document.documentElement.clientWidth){
		bWidth=document.documentElement.clientWidth;
	}else if(document.body && document.body.clientWidth){
		bWidth=document.body.clientWidth;
	}

	if (bWidth>sWidth){
		posX=posX-parseInt((bWidth-sWidth)/2);
	}

	var url='/clickmap.php?x='+posX+'&y='+posY+'&url=' + location.href + '&ref=' + ref + '&browser=' + browser;
	ajax(url);

	return true;
}

function ajax(url){
	if (window==top){
		var xmlDoc = null ;
		if (typeof window.ActiveXObject != 'undefined' ) {
			xmlDoc = new ActiveXObject('Microsoft.XMLHTTP');
		}else {
			xmlDoc = new XMLHttpRequest();
		}
		xmlDoc.open( 'GET', url, true );
		xmlDoc.send( null );
	}
}