/* *****************************************
//  WebTank javascript File
//  Title: resize.js
//  File updated: 2009-11-30 17:25: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 height = 0;
	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;
			
		}
		
	}
	
	if( document.getElementById("colors") != null ) {
			
		height = $j("#colors > .content").height();
		
		if( height > 95 ) {
			
			$j("#colors_middle").css("height", ( height - 50 ) );
		
		}

	}
	
}

/* */

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