
// -- CUSTOM FUNCTIONS AND EFFECTS --

// -- NO CONFLICT MODE

var $s = jQuery.noConflict();

$s(document).ready(function(){
						   //fix png
	//hide image
	//$("#homeBg").addClass('preload').find('img').hide();
	
	//search form
var searchBox = $s("#s"); 
var searchBoxDefault = "SEARCH..."; 
searchBox.attr("value", searchBoxDefault);
searchBox.focus(function(){  
    if($s(this).attr("value") == searchBoxDefault) $s(this).attr("value", "");  
});  
searchBox.blur(function(){  
    if($s(this).attr("value") == "") $s(this).attr("value", searchBoxDefault);  
});  
	
	
	//hover image


	$s('a').hover(
	   function() {
			 $s(this).find('img').fadeTo('slow', 0.5);
	  },
	   function() {
		   
						 $s(this).find('img').fadeTo('slow', 1);
	  }
	);

//pngfunction
/* IE PNG fix multiple filters */
(function ($s) {
    if (!$s) return;
    $s.fn.extend({
        fixPNG: function(sizingMethod, forceBG) {
                if (!($s.browser.msie)) return this;
                var emptyimg = "/images/blank.gif"; //Path to empty 1x1px GIF goes here
                sizingMethod = sizingMethod || "scale"; //sizingMethod, defaults to scale (matches image dimensions)
                this.each(function() {
                        var isImg = (forceBG) ? false : jQuery.nodeName(this, "img"),
                                imgname = (isImg) ? this.src : this.currentStyle.backgroundImage,
                                src = (isImg) ? imgname : imgname.substring(5,imgname.length-2);
                        this.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizingMethod='" + sizingMethod + "')";
                        if (isImg) this.src = emptyimg;
                        else this.style.backgroundImage = "url(" + emptyimg + ")";
                });
                return this;
        }
    });
})(jQuery);
	
}) // END DOCUMENT.READY


