//window.getBrowser().addTab(linkNode.href);
function foc(x){x.style.backgroundColor='#ffffff';}
function blu(x){x.style.backgroundColor='#ffffff';}
function over(x){x.style.color='#940031'; x.style.cursor='hand'}
function out (x){x.style.color='#000000';}
function trans(){
	width = 650;
	height = 400;
	scrx=window.screen.availWidth;    
	scry=window.screen.availHeight;  
	vleft=(scrx-width)/2;      
	vtop=(scry-height)/2;   
	str="status=yes, directories=no, menubar=no, scrollbars=no, resizable=yes, toolbar=no, width="+width+",height="+height+", left="+vleft+", top="+vtop+", border=0";
	pd = Math.round((Math.random() * (10000000 - 1)));
	address = "/f/translate.php";
	window.open(address,pd,str);
}
function bm(){
	scrx=window.screen.availWidth;    
	scry=window.screen.availHeight;  
	vleft=(scrx-360)/2;      
	vtop=(scry-520)/2;   
	str="status=yes, directories=no, menubar=no, scrollbars=yes, resizable=yes, toolbar=no, width=360,height=520, left="+vleft+", top="+vtop+", border=0";
	pd = Math.round((Math.random() * (10000000 - 1)));
	address = "/f/music.php";
	window.open(address,pd,str);
}

function nav(x){
	document.location.href=x+(x.indexOf("?")=="-1"?"?":"&")+"restore="+parent.upper.restore+"&PHPSESSID="+phpses;
}
function nav_forum(x){
	document.location.href="http://forum.luckylovers.net/z"+x+"&PHPSESSID="+phpses;
}
function nav_logout(x){
	top.document.location.href="http://luckylovers.net/f/logout.php?ind="+x;
}
function search_idu(x,y){
	pd = Math.round((Math.random() * (10000000 - 1)));
	width = Math.min(920,window.screen.availWidth);
	height = window.screen.availHeight;
	address = "/f/search_idu.php?idu="+x+"&itself="+y+"&restore="+parent.upper.restore+"&PHPSESSID="+phpses;
	str="status=yes, directories=no, menubar=no, scrollbars=yes, resizable=yes, toolbar=no, width="+width+",height="+(height-70)+", left=0, top=0, border=0";
	window.open(address,pd,str);
}
function search_idu_free(x,y){
	pd = Math.round((Math.random() * (10000000 - 1)));
	width = Math.min(920,window.screen.availWidth);
	height = window.screen.availHeight;
	address = "/f/search.php?free=1&idu="+x+"&itself="+y+"&pw=1";
	str="status=yes, directories=yes, menubar=yes, scrollbars=yes, resizable=yes, toolbar=yes, width="+width+",height="+(height-170)+", left=0, top=0, border=0";
	window.open(address,pd,str);
}
document.oncontextmenu=dow;
function dow(e){
	try{event.srcElement.parentElement.parentElement.parentElement.parentElement.id}
	catch(e){}
	if(e) return true
	else{
		obj=event.srcElement.parentElement.parentElement.parentElement.parentElement.id;
		if(obj=="itable") return false
		else return true
	}
}
function play_video(x){
	scrx=window.screen.availWidth;    
	scry=window.screen.availHeight;  
	vleft=(scrx-360)/2;      
	vtop=(scry-520)/2;   
	str="status=yes, directories=no, menubar=no, scrollbars=no, resizable=yes, toolbar=no, width=350,height=480, left="+vleft+", top="+vtop+", border=0";
	pd = Math.round((Math.random() * (10000000 - 1)));
	address = "/f/search_video.php?uid="+x;
	window.open(address,pd,str);
}