// JavaScript Document
$(document).ready(function() {

$('#ticker-scroll').marquee();

if ($('#where2buy').length > 0 )
{
	$('#postcodeInput').keyup(function () { 
		this.value = this.value.replace(/[^0-9\.]/g,'');
		if (this.value.length < 4)
		{
			$('#postcodeSubmit').attr('disabled','disabled');
			$('#postcodeSubmit').removeClass("enabled");
			$('#postcodeSubmit').css("cursor","default")
		}
		else {
			$('#postcodeSubmit').css("cursor","pointer")
			//$('#postcodeSubmit').css("background-image","/fileadmin/templates/houweling/h2w/img/postcode-submit.jpg");
			$('#postcodeSubmit').addClass("enabled");
			$('#postcodeSubmit').removeAttr('disabled');
		}
	});
}

sfHover = function() {
	var sfEls = document.getElementById("prov-select").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
//if (window.attachEvent) window.attachEvent("onload", sfHover);


sfHover();

});





