function hide_all_submenus() {
    // hide all submenus which will not in "active" class    
}
var arrTemp=self.location.href.split("?");
var picUrl = (arrTemp.length>0)?arrTemp[1]:"";
var NS = (navigator.appName=="Netscape")?true:false;
var NS = ((!document.all)||window.opera)?true:false;

function AutoSize() {
	var iWidth = (NS)?window.innerWidth:document.documentElement.clientWidth;
	var iHeight = (NS)?window.innerHeight:document.documentElement.clientHeight;
	iWidth = document.images[0].width - iWidth + 30;
	//iHeight = document.images[0].height - iHeight;
	iHeight = 700-iHeight;
	window.resizeBy(iWidth, iHeight);
	self.focus();
	window.focus();
};
/*
function popup ( url ) {
    window.open(url,'Product','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=760,height=500,top=30,left=20');
}
*/
function closewindow() {
    window.close();
}

function javascript_on() {
    $('nojavascript').hide();
}

function showhide( id ) {
    if ($(id).hidden) {
        $(id).show();
        $(id).hidden = false;
    } else {
        $(id).hide();
        $(id).hidden = true;
    }
}

function add_notifies_and_errors( notifies, errors) {
	
}
function clear_main_search() {
	if ($F('menu_search_query') == 'search') $('menu_search_query').value = '';
}