function OpenProducts()
{
	if (typeof(ctl00__flyout_productcenterdot)!="undefined")
	{
		ctl00__flyout_productcenterdot.Open(); 
	}   
}
function CloseProducts()
{
	if (typeof(ctl00__flyout_productcenterdot)!="undefined")
	{
		ctl00__flyout_productcenterdot.Close(); 
	}   
}
                            
function OpenQuickLinks()
{
	if (typeof(ctl00_fbQuickLinkQuickLinks)!="undefined")
	{
		ctl00_fbQuickLinkQuickLinks.Open(); 
	}   
}
function CloseQuickLinks()
{
	if (typeof(ctl00_fbQuickLinkQuickLinks)!="undefined")
	{
		ctl00_fbQuickLinkQuickLinks.Close(); 
	}   
}


function OpenQuickLinksIndex()
{
	if (typeof(fbQuickLinkQuickLinks)!="undefined")
	{
		fbQuickLinkQuickLinks.Open(); 
	}   
}
function CloseQuickLinksIndex()
{
	if (typeof(fbQuickLinkQuickLinks)!="undefined")
	{
		fbQuickLinkQuickLinks.Close(); 
	}   
}




function AlignCenterDot()
{
	var _centerdot = document.getElementById("centerdot");
	var _docWidth=(document.body.scrollWidth>document.documentElement.scrollWidth)?document.body.scrollWidth:document.documentElement.scrollWidth;
	_centerdot.style.left = (_docWidth/2) + "px";
	_centerdot.style.top = "375px";                            
}
function CheckSearchInput(object) 
{
	if(object.value == 'Search') 
	{
		object.value = '';
		object.className='search';
	}
} 

String.prototype.trim = function() {
	return this.replace(/^\s+|\s+$/g,"");
}

function Search()
{
	var txtSearchText = escape(document.getElementById('txtSearchText').value);
	
	if (txtSearchText.trim() != '')
		window.location.href = "/search?q=" + txtSearchText + "&output=xml_no_dtd&client=default_frontend";
}
function checkKey(e) {
	var charCode;
	if(e && e.which)
			charCode = e.which;
	else
			charCode = event.keyCode;
	
	if(charCode == 13)
	{
		Search();
		knackerevent(e);
	}
}

function knackerevent(eventObject) 
{ 
    if (eventObject && eventObject.stopPropagation) 
    { 
        eventObject.stopPropagation(); 
    } 
    if (window.event && window.event.cancelBubble ) 
    { 
        window.event.cancelBubble = true; 
    } 
    if (eventObject && eventObject.preventDefault) 
    { 
        eventObject.preventDefault(); 
    } 
    if (window.event) 
    { 
        window.event.returnValue = false; 
    } 
}