// JavaScript Document

// find out if this is IE
var msie = 0;
if (document.all) { msie=1; }

//document.body.onresize = func_onResize();

function func_onResize(){
	// this is called when the document is resized
	screen_size=get_page_width();
	//alert(screen_size);
	//alert($('container').style.width);
	
	if(screen_size<1400)
	{
		$('container').style.width="1000px";
	}
	else 
	{
		if(screen_size<1900)
		{
		   $('container').style.width="1400px";
		}
		else
		{
			$('container').style.width="1900px";
		}
	}
}

function func_onLoad()
{
	func_onResize();
}

function get_page_width()
{
	if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    viewportwidth = window.innerWidth;
  	} 
	else 
	{
	  viewportwidth = screen.width-20;
  	}
	return (viewportwidth);
}

function func_screen_load()
{
}

