function getStyleSize(styleElement)
{
	eval('var i='+styleElement);
	if (i.length>2)
		var r = i.substr(0,i.length-2)
	else
		var r = i;
	return parseInt(r);
}
function setSearchPopupPosition()
{
	eval(old_onresize);
	var SP = document.getElementById('SearchPopup');
	var SB = document.getElementById('SearchBox');
	if (SB != null)
	{
		var MenuLVL1 = document.getElementById('MenuLV1');
		var MenuTab = document.getElementById('MenuTab');

		var x,y;
		if (self.innerHeight) // all except Explorer
		{
			if (document.body.scrollHeight >= self.innerHeight-16) {
				x = self.innerWidth - 16; // 16px is scroll bare width
			}else{
				x = self.innerWidth;
			}

			y = self.innerHeight;
		}
		else if (document.documentElement && document.documentElement.clientHeight)
			// Explorer 6 Strict Mode
		{
			x = document.documentElement.clientWidth;
			y = document.documentElement.clientHeight;
		}
		else if (document.body) // other Explorers
		{
			x = document.body.clientWidth;
			y = document.body.clientHeight;
		}
		SP.style.position = 'absolute';
		SP.style.left = (x - SB.offsetWidth - getStyleSize('document.body.style.marginRight') - getStyleSize("document.getElementById('bodyDiv').style.marginRight") - 1) + 'px';
		SP.style.top = (MenuLVL1.offsetHeight + MenuTab.offsetHeight + getStyleSize('document.body.style.marginTop') + getStyleSize("document.getElementById('bodyDiv').style.marginTop") + 1)+ 'px';
		SP.style.width = SB.offsetWidth - 2 + 'px'; // -2 because of border
	}
}
function switchPopupVisbility()
{
	setSearchPopupPosition('');
	var SP = document.getElementById('SearchPopup');
	if (SP.style.display == 'none')
	{
		//Effect.SlideDown('SearchPopup');
		SP.style.display = 'block';
	}else{
		//Effect.SlideUp('SearchPopup');
		SP.style.display = 'none';
	}
}
/**
 *
 * @access public
 * @return void
 **/
function df(){

}