function check_keyword() {
	var search_keyword = document.quick_find_header.elements['keyword'];
	if(search_keyword.value == '') {
		//alert('At least one of the fields in the search form must be entered.');
		window.location.reload();   
		return false;
	}
}
function gs_popup_win(url,w,h) {
  var ContextWindow = window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+w+',height='+h+',screenX='+(screen.width-w)/2+',screenY='+(screen.height-h)/2+',left='+(screen.width-w)/2+',top='+(screen.height-h)/2)
  ContextWindow.focus();
  return false;
}
var category_timer;
var xmas_banner;
function showit() {
	clearTimeout(xmas_banner);
	clearTimeout(category_timer);
	document.getElementById("xmas_banner").style.display = "block";
	 document.getElementById("level1").style.display = "block";
}
function hideit() {
	 xmas_banner = setTimeout('document.getElementById("xmas_banner").style.display = "none";',800);
	 category_timer = setTimeout('document.getElementById("level1").style.display = "none";',800);
	 
}
function clear_timer(){
	if(window.xmas_banner) clearTimeout(xmas_banner);
	if(window.category_timer) clearTimeout(category_timer);
}
function fetchImage( id, image) 
{
   fetchedImages[id] = {};
   fetchedImages[id].image = image;
   imgThumbArr[arrayindex] = id;
   arrayindex++;
   if(preloadCount < numberToPreload) 
   {
     var imagePreloader = new Image();
     imagePreloader.src = image;
     preloadCount++;
   }
}


