function autoSubmit(){
	document.highstreetSearch.submit();
}

$(
	function() {
		$("#ClickIT").newStreet( {
			speed:"slow", slideBy:6
	  });
	}
)

$(document).ready(
	function(){
		$("#navmenu-h li,#navmenu-v li").hover( 
			function() {
				$(this).addClass("iehover");
			}, 
			function() {
				$(this).removeClass("iehover");
			}
		);
	}
)

function AjaxFunction(cat_id) {
	var httpxml;

	// Firefox, Opera 8.0+, Safari
	try { httpxml=new XMLHttpRequest();}
	
	// Internet Explorer
	catch (e) { 
	  try {httpxml=new ActiveXObject("Msxml2.XMLHTTP");}
		catch (e)	{
    	try	{httpxml=new ActiveXObject("Microsoft.XMLHTTP");}
   		catch (e)	{
				alert("Your browser does not support AJAX!");
	    	return false;
			}
   	}
  }
	
	function stateck() {
		if(httpxml.readyState==4) {
			var myarray=eval(httpxml.responseText);
			// Before adding new we must remove previously loaded elements
			for(j=document.highstreetSearch.sel_SubCat.options.length-1;j>=0;j--) {
				document.highstreetSearch.sel_SubCat.remove(j);
			}
			// Add default blank option
			var optn = document.createElement("OPTION");
			optn.text = 'Select One';
			optn.value = '99';
			document.highstreetSearch.sel_SubCat.options.add(optn);
			var optn = document.createElement("OPTION");
			optn.text = 'ALL';
			optn.value = '98';
			document.highstreetSearch.sel_SubCat.options.add(optn);
			//Add all sub category elements
			for (i=0;i<myarray.length;i++) {
				var optn = document.createElement("OPTION");
				optn.text = myarray[i];
				optn.value = myarray[i];
				document.highstreetSearch.sel_SubCat.options.add(optn);
			}
		}
	}

	var url="dd.php";
	url=url+"?cat_id="+cat_id;
	url=url+"&sid="+Math.random();
	httpxml.onreadystatechange=stateck;
	httpxml.open("GET",url,true);
	httpxml.send(null);
}