// JavaScript Document
function ie6(){
	if (jQuery.browser.msie && jQuery.browser.version.substr(0,3)<=6){return true;}
	else {return false;}
}

$(document).ready(function() {
	jQuery.fn.fadeIn = function(speed, callback) { 
		return this.animate({opacity: 'show'}, speed, function() { 
			if (jQuery.browser.msie)  
				this.style.removeAttribute('filter');  
			if (jQuery.isFunction(callback)) 
				callback();  
		}); 
	}; 
	 
	jQuery.fn.fadeOut = function(speed, callback) { 
		return this.animate({opacity: 'hide'}, speed, function() { 
			if (jQuery.browser.msie)  
				this.style.removeAttribute('filter');  
			if (jQuery.isFunction(callback)) 
				callback();  
		}); 
	}; 
	
	$(function(){
		$.wHeight=$(document).height();
		$.wHeight=$.wHeight - 290;
		if ($.wHeight <= 376){$.wHeight=376;}
		$('#mainContentH').animate( {height: $.wHeight} , 500, 'swing');
		//$('#mainContentH').css('height',$.wHeight);
	});
}); 


/*
$(window).bind('resize', function() { 
	if (jQuery.browser.msie){
		location.reload();
	}
});
*/


