/*
functions.js
==========================================================================================================================================================================
#  Main function:	Container for common used functions
#  Language:		JavaScript
#  Dependencies:	none
#  Last Updated:	september 16, 2007
#  page Version:	1.03
==========================================================================================================================================================================
*/

function browser_size (e1) {
	var winW = 0, winH = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		winW = window.innerWidth;
		winH = window.innerHeight;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'
		winW = document.documentElement.clientWidth;
		winH = document.documentElement.clientHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		winW = document.body.clientWidth;
		winH = document.body.clientHeight;
	}
	if (e1 == "height") {return (winH);}
	else if (e1 == "width") {return (winW);}
}