//THIS FILE CONTAINS SHOPS OWN PLUGINS AND FUNCTIONS. INITPLUGINS FUNCTION IS CALLED ON SOURCE LOADED

function initPlugins() { }

var headerTimeout;

function hideMenus(){	
	$('loginballoon').style.display = 'none';
	$('searchballoon').style.display = 'none';
	$('balloonpages1').style.display = 'none';
	$('balloonpages2').style.display = 'none';
	$('balloonpages3').style.display = 'none';
	var helpPage = document.getElementById('helpPage');
	if( helpPage )
		helpPage.style.display = 'none';
}

function showMenu(menuId){
	stopMenuDelayClosing();
	hideMenus();
	$(menuId).style.display = 'block';
}

/*$(document).addEvent('click', function(e){
													
													var e = new Event(e);
													
													if(e.target.className != 'textmenu' && e.target.tagName != 'a'){ hideMenus(); }
												 
												 } );*/
												 

function stopMenuDelayClosing(){

	clearTimeout(headerTimeout);

}

function startMenuDelayClosing(timing){

	if(!timing) timing = 600;
	
	clearTimeout(headerTimeout);
	headerTimeout = setTimeout('hideMenus();',timing);

}