(function() {

    // used for  transparent png fix IE versions less then 7
    Browser = {  
    Version: function() {    
        var version = 999; // we assume a sane browser    
        if (navigator.appVersion.indexOf("MSIE") != -1)      // bah, IE again, lets downgrade version number      
        version = parseFloat(navigator.appVersion.split("MSIE")[1]);    
        return version;  
    }}; 
    
     $(function(){
        // Search submit event
		$('#logo .top-nav .search .search-button').click(function() {
			$('#search-theme-form').submit();
		});
		// apply ie6 png fix
        if(Browser.Version() == 6) {
            $('body').pngFix();
            // swap out the footer bottom curve image with one especially for ie6
			// not ideal, but solves the issue
            $('.back-container').html('<img src="http://corp.greatwolfresorts.com/sites/all/themes/Great/images/bottom-curve-ie6.gif" />');
        }
     });

})();
