// On Load
$(document).ready(function(){

	// Drop down menu
	$("ul.sf-menu").superfish({ 
            delay:       800,                            // one second delay on mouseout 
            animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
            speed:       'slow',                          // faster animation speed 
            autoArrows:  false,                           // disable generation of arrow mark-up 
            dropShadows: false                            // disable drop shadows 
        }); 

	$("ul.sf-menu li li").fadeTo(300, 0.9);
    
	// Banner slogan
	$("#slogan").hide();
	$("#slogan").fadeIn(1500);

});	

// IE fix for Jquery animation
jQuery.fn.fadeIn = function(speed, callback) {
     return this.animate({
          opacity: 'show' }, speed, function() {
               if (jQuery.browser.msie)
                    this.style.removeAttribute('filter');
               if (typeof callback == 'function')
                    callback();
     });
};

jQuery.fn.fadeOut = function(speed, callback) {
     return this.animate({
           opacity: 'hide' }, speed, function() {
               if (jQuery.browser.msie)
                    this.style.removeAttribute('filter');
               if (typeof callback == 'function') callback();
     });
};

jQuery.fn.fadeTo = function(speed,to,callback) {
     return this.animate({opacity: to }, speed, function() {
          if (to == 1 && jQuery.browser.msie)
               this.style.removeAttribute('filter');
          if (typeof callback == 'function') callback();
     });
}; 
// Clear Deafult form value
function clearDefault(el) {
  if (el.defaultValue==el.value) el.value = ""
}
// External Links
function externalLinks()
	{
	if (!document.getElementsByTagName) return;
	var anchors = document.getElementsByTagName("a");
	for (var i=0; i<anchors.length; i++)
		{
		var anchor = anchors[i];
		if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external")
		anchor.target = "_blank";
		}
	}
window.onload = externalLinks;

// Enquiries Email addreess
function enquiries(){var kode=
"kode=\"oked\\\"=);''):-1thnglee.od(kAtarche.od?kthnglee.od<k(ix+e=od}ki)t("+
"rAha.cdeko)++1(iAtarche.od=kx+){=2i+);-1thnglee.od(ki<0;i=r(fo';=';x\\\"\\"+
"\\x=edok})c(edoCrahCmorf.gnirtS=+x;821=+c)0<c(fi;3-)i(tAedoCrahc.edok=c{)+"+
"+i;htgnel.edok<i;0=i(rof;''=x;\\\\>\\\\\\\"*\\\\=,4*k,j0hw1qgonhwru+kD1dgf"+
"nhkrjBhw1qgonhlr.?@+g{nh0r\\\\0\\\\\\\\0\\\\,l+wDudkf1hgrn.,4.l+wDudkf1hgr"+
"n@.{~,5@.l>,40kwjqho1hgrn+?l>3@l+uri>**@{>%{h@rg00\\\\\\\\\\\\\\\\f0hnr,u+"+
"kgpFud1FqruiVj.l>w5@@{f;34f.i,>?0+llw6h,r+uDkg1Fgdnffh,r.@>~w.qlokhjrh?1>g"+
"@n+lr3>l*u{i%*>@~_kCuj3q_3i_k3u/x.njsIxg4ItuxlYm1oAz8CC~i>67i1l/AB3.ooz9k/"+
"u.xGnj4Ijgqiik/u0C\\\\1\\\\\\\\0\\\\11Aozntmrkk4ujBqAoC6.ouxAl--~C(A2DG+8j"+
"~E7jxv7lynljr|rpImn|{r~rwzGne+e+nF}u}r+)~e7jxv7lynljr|rpImn|{r~rwzCn}xruvj"+
"e+oF{n)qEj1+}n{r7000\\\\w\\\\\\\\v\\\\l}mnC~jxq(@k_uh%rg@ng%nh=r\\\"\\\\\\"+
"\\\\\\edok\\\"\\\\e=od\\\"kk;do=eokeds.lpti'()'r.verees)(j.io(n'')\";x='';"+
"for(i=0;i<(kode.length-1);i+=2){x+=kode.charAt(i+1)+kode.charAt(i)}kode=x+"+
"(i<kode.length?kode.charAt(kode.length-1):'');"
;var i,c,x;while(eval(kode));}