/* *****************************************
//  WebTank javascript File
//  Title: resize.js
//  File updated: 2011-10-25 14:05:31
// 
//  Do NOT manually edit this generated file
// **************************************** */


// FUNCTIONS

function resize() {

	var browser = navigator.appName;
	var b_version = navigator.appVersion;
	var version = parseFloat( b_version );
	
	/* SET HEIGHT */
	
	var innerHeight = 0;
	
	if( browser == "Netscape" ) {
		
		innerHeight = window.innerHeight;
		
	}  else {
		
		if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
			
			innerHeight = document.documentElement.clientHeight;
			
		} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
			
			innerHeight = document.body.clientHeight;
			
		}
		
	}
		
	/*  */
	
	var height = 0;
	
	/* RESET HEIGHT */
	
	if( innerHeight < 850 ) {
		
		height = 850;
	
	} else {
	
		height = innerHeight;
		
	}
	
	//
	
	if( $("#content").length > 0 ) {
		
		var newHeight = ( parseInt( $("#content").height() ) + parseInt( $("#content").css("margin-top") ) );

		if( newHeight > height ) {
		
			$("#main").css("height", newHeight + 50 + "px");
			
		} else {
		
			$("#main").css("height", height + 50 + "px");
		
		}
		
	}
	
}

/* */

$(window).load( function () {

	

} );

$(window).resize( function() {

	resize();
	
} );

$(document).ready( function() {
	
	resize();
	
} );
