if (top != self) top.location.href = location.href;
function ephedra(){
var s='<div align="center">';
s+='<table border="0" cellpadding="0" cellspacing="0">';
s+='<tr><td> <img src="/images/ephedra_logo_bot.gif" height="3" alt="" border="0" align="top"></td> </tr>';
s+='<tr><td><a href="http://www.buy-ephedra-diet-pills.com/" title="Ephedra" target="_blank"><img src="/images/ephedra_logo.jpg" width="150" height="130" border="0" alt="Buy Ephedra Diet Pills"></a></td></tr>';
s+='<tr><td><a href="http://www.buy-ephedra-diet-pills.com/" title="Ephedra" target="_blank"><img src="/images/ephedralogo_bottom.jpg" width="150" height="70" border="0" alt="Buy Ephedra Diet Pills"></a></td></tr>';
s+='<tr><td><img src="/images/ephedra_logo_bot.gif" height="3" alt="" border="0" align="top"></td></tr>';
s+='</table>';
s+='</div>';
document.write(s);
}

function addbookmark(){
	var url="http://www.diet-pills-hoodia.com/";
	var title="diet-pills-hoodia.com - Buy Hoodia Diet Pills";
	if (document.all)
		window.external.AddFavorite(url,title);
}

function onFocusSearch(ctrl){
	if (ctrl.value == "Search")
		ctrl.value="";
}

function getInnerDim() {
	//if browser supports window.innerWidth
	if (window.innerWidth) {
		dimX = window.innerWidth;
		dimY = window.innerHeight;
	}
	//else if browser supports document.all (IE 4+)
	else if (document.all) {
		dimX = document.body.clientWidth;
		dimY = document.body.clientHeight;
	}
	return new Array(dimX, dimY);
}

function onLoadEx() {
	onResizeEx();
}

function isIE(){
	return (navigator.appName.indexOf("Microsoft") > -1) ? true : false;
}

function onResizeEx() {
	dim=getInnerDim();
	ctrl = document.getElementById("leftbanner");
	if (!ctrl)
		return;
	var width = isIE() ? 804 : 788;
	var d=(dim[0] - width)/2;
	if (width+d + ctrl.offsetWidth > dim[0]){
		ctrl.style.top=-1000;
		return;
	}
	ctrl.style.top=0;
	if (d < 1){
		ctrl.style.left=width;

	} else {
		ctrl.style.left=width+d;
	}
}

var isResize=true;
function onResize(){
	if(isResize)
		onResizeEx();
}

var isLoad=true;
function onLoad(){
	if(isLoad)
		onLoadEx();
}
