/***************************************************
 skycom_ps_storelocator.js
 * v0.2 2008-07-10 - Now using YUI Compression to obsfucate all local variables and logic
 * Copyright 2008 Interkey Networks Ltd. All Rights Reserved.
 * Use is prohibited without licence from Interkey Networks.
 * http://www.artofcoding.co.uk
***************************************************/
sky_fAttachEvent("load",function(){var C=/\%/g;
var E=document.getElementById("ps-storelocator-required");
var D=document.getElementById("ps-storelocator-default");
var B=D.value;
var A=document.getElementById("ps-storelocator-input");
sky_fAttachEvent("focus",function(){if(A.value==B){A.value="";
A.style.color="#000000"
}},A);
sky_fAttachEvent("blur",function(){if(A.value==""){A.value=B;
A.style.color="#c0c0c0"
}},A);
if((A.value=="")||(A.value==B)){A.value=B;
A.style.color="#c0c0c0"
}window.sky_fStoreLocatorOnSubmit=function(){var F=document.getElementById("ps-storelocator-input");
var G=(F.value).replace(C,"");
if(G==B){E.style.display="block";
return false
}F.value=G;
return true
}
});