var iHeight, iWidth;
var agt=navigator.userAgent.toLowerCase();

var is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
var is_tv = (agt.indexOf("tv") != -1);

var is_ff = (agt.indexOf("firefox") != -1);
var is_opera = (agt.indexOf("opera") == -1)


var wnd;

function getDimensions()
{
	if(typeof(window.innerWidth)=='number') /*non-IE */
	{
		iHeight = window.innerHeight; 
		iWidth =window.innerWidth;
	}
	else if(document.documentElement && document.documentElement.clientWidth) /* IE 6 Strict*/
	{
		iHeight = document.documentElement.clientHeight;
		iWidth = document.documentElement.clientWidth;
	}	
	else if( document.body && document.body.clientWidth) /* IE all */
	{
		iHeight = document.body.clientHeight;
		iWidth = document.body.clientWidth;
	}
}


function extras()	
{

	getDimensions();
	popExtras();
}

function clean()
{
	try{
		if(typeof(wnd)=='object'){
		if(!wnd.closed){wnd.close();}}
	}
	catch(e){wnd=null;}
}

