/*

	Copyright Bengosul @xxxynetwork.com
	
*/

function GUI_ready(){
	if (top.location != location) {
		top.location.href = document.location.href ;
	}
	window.moveTo(0,0);
	if (document.all) {
		top.window.resizeTo(screen.availWidth,screen.availHeight);
	}
	else if (document.layers||document.getElementById) {
		if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth) {
			top.window.outerHeight = screen.availHeight;
			top.window.outerWidth = screen.availWidth;
		}
	}
}
function bookmarksite(){
	if (document.all) {
		window.external.AddFavorite("http://www.xxxytube.com/", "XXX Porn Tube - Porn Tube movies");
	} else if (window.sidebar) {
		window.sidebar.addPanel("XXX Porn Tube - Porn Tube movies", "http://www.xxxytube.com/","")
	}
}

function mo(o){o.className=='stateoff'?o.className='stateon': o.className=o.className;}
function mx(o){o.className=='stateon'?o.className='stateoff': o.className=o.className;}
function mc(o){o.className='stateclicked';}
function preurlrew(obj,pre,url){
	if (obj!=null) {
		obj.href=pre+url;
		return true;
	} else {
		return false;
	}
}

function urlrew(obj,url){
	if (obj!=null) {
		obj.href=url;
		return true;
	} else {
		return false;
	}
}

function flipbg (obj,o) {
	//var obj=document.getElementById(id);
	if (obj) {
		if (o) {
			obj.style.backgroundColor="#4387AD";	
		} else {
			obj.style.backgroundColor="";	
		}
	}
}

