function resizeonload() {
			//
			if (screen.availWidth / screen.availHeight > 1.9){
				aWidth = screen.availWidth / 2;
			} else {
				aWidth = screen.availWidth;
			}
			
			var winWidth=Math.min(1400, aWidth);
			var winHeight=Math.min(900, screen.availHeight);
			
			var xPos;
			if (aWidth != screen.availWidth){
				xPos = (screen.availWidth/4-winWidth/2);
			} else {
				xPos = (screen.availWidth/2-winWidth/2);
			}
			var yPos = (screen.availHeight/2-winHeight/2);
			window.resizeTo(winWidth,winHeight);
			window.moveTo(xPos,yPos);
		}
		
		function sizerefresh() {
			// document.getElementById ('flashcontent').style.left = 0;
		}
		
		

var myWinFirst=null;

function openWin(url)
	{
	eval("openWinSized('" + url + "','514','256')");
	}

function openWinSized(url,Width,Height)
	{
	/*if((navigator.platform.indexOf("Mac")!=-1) &&
	   (navigator.userAgent.indexOf("MSIE")!=-1))
		{
		Width = Width - 20;
		Height = Height + 20;
		}*/
	closeWin();
	callOpenWin1 = "openWin1('" + url + "','" + Width + "','" + Height + "')";
	// callOpenWin1 = "openWinDebug('" + url + "','" + Width + "','" + Height + "')";
	setTimeout(callOpenWin1,50);
	}
	
function openWinSizedScroll(url,Width,Height)
	{
	/*if((navigator.platform.indexOf("Mac")!=-1) &&
	   (navigator.userAgent.indexOf("MSIE")!=-1))
		{
		Width = Width - 20;
		Height = Height + 20;
		}*/
	closeWin();
	callOpenWin1 = "openWinScroll1('" + url + "','" + Width + "','" + Height + "')";
	// callOpenWin1 = "openWinDebug('" + url + "','" + Width + "','" + Height + "')";
	setTimeout(callOpenWin1,50);
	}

function openWin1(url,Width,Height)
	{
	eval("myWinFirst=window.open(url,'myWinFirst','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=" + Width + ",height=" + Height +"');");
	}
	
function openWinScroll1(url,Width,Height)
	{
	eval("myWinFirst=window.open(url,'myWinFirst','toolbar=yes,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=" + Width + ",height=" + Height +"')");
	}
	
function openWinDebug(url,Width,Height)
	{
	eval("myWinFirst=window.open(url,'myWinFirst','toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=no,resizable=yes,width=" + Width + ",height=" + Height +"')");
	}

function openWinSized2(url,Width,Height)
	{
	if((navigator.platform.indexOf("Mac")!=-1) &&
	   (navigator.userAgent.indexOf("MSIE")!=-1))
		{
		Width = Width + 20;
		Height = Height + 20;
		}
	closeWin();
	callOpenWin2 = "openWin2('" + url + "','" + Width + "','" + Height + "')";
	setTimeout(callOpenWin2,50);
	}
	
function openWin2(url,Width,Height)
	{
	eval("myWinFirst=window.open(url,'myWinFirst','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=" + Width + ",height=" + Height +"')");
	}
		

function closeWin()
	{
		if( myWinFirst!=null && !myWinFirst.closed )
		{
			myWinFirst.close();
			myWinFirst=null;
		}
	}