/* *****************************************
//  WebTank javascript File
//  Title: resize.js
//  File updated: 2011-10-12 18:38:04
// 
//  Do NOT manually edit this generated file
// **************************************** */


var $j = jQuery.noConflict();

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;
			
		}
		
	}
		
	/* RESET HEIGHTS */
	
	if( document.getElementById("content") != null ) {
		
		var height = 0;
		var top = 0;
		
		top = parseInt( $j("#content").css("top").replace( "px", "" ) );
		height = parseInt( $j("#content").height() );
		
		if( height < 500 ) height = 500;
		
		top = (top + height + 100) + "px";
		
//		alert(height);
		
		$j("#footer").css("top", top);

	}
	
}

/* */

window.onResize = function() {
	
	resize();
	
}
