/*

	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.pornoplugs.com/", "Porn Videos and Movies");
	} else if (window.sidebar) {
		window.sidebar.addPanel("Porn Videos and Movies", "http://www.pornoplugs.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 custom_flipbg (id,o,color) {
	var obj=document.getElementById(id);
	if (obj) {
		if (o) {
			obj.style.backgroundColor=color;	
		} else {
			obj.style.backgroundColor="";	
		}
	}
}


function flipbg (id,o) {
	var obj=document.getElementById(id);
	if (obj) {
		if (o) {
			obj.style.backgroundColor="#0f0f0f";	
		} else {
			obj.style.backgroundColor="";	
		}
	}
}


GUI_ready();












