var Mtop = 0;
var Mleft = 0;

function mymouse(){
Mtop = event.clientY;
Mleft = event.clientX;
if(xHASH != null && typeof(xHASH) != "undefined" && xHASH != window.location.hash){
	xHASH = window.location.hash;
	srbajax.windowlocation(window.location.protocol + "//" + window.location.host + window.location.hash.substr(1));
	window.status = window.location.protocol + "//" + window.location.host + window.location.hash.substr(1);//[, window.location.pathname, window.location.host, window.location.hash]
}
//window.status = window.location.pathname;
//if(1==2 && window.location.pathname != ThisPath + '/index.php' && window.location.pathname != ThisPath + '/')window.status = Mtop + ' x ' + Mleft;//window.location.pathname + ': ' + 
}


function mykey(){
//alert(event.keyCode);
if(event.altKey && event.keyCode == 81)
	alert(document.cookie);

if(event.altKey && event.keyCode == 83 && window.location.pathname.indexOf('.')==-1){
	var splitpathname = window.location.pathname.split("/");
	window.location = window.location.protocol + "//" + window.location.host + "/" + LANG + "/" + PAGE + "/admin:" + (REGESTRATION > 0 ? 0 : 1);
}
}

function positionmenu(){
if(elem('MenuArticle'))
	elem('MenuArticle').style.left = -500;
}

function cleardrag(){
	sl.cleardrag();
}
document.onmousemove = mymouse;
document.onmouseup = cleardrag;
document.onkeydown = mykey;
document.onclick = positionmenu;


