function getScreenSize()
{
	var swidth = 0;
	var sheight = 0;

	if ( self.screen ) {			// for NN4 and IE4
		swidth = screen.width;
		sheight = screen.height
	} else if ( self.java ) {		// for NN3 with enabled Java
		var jkit = java.awt.Toolkit.getDefaultToolkit();
		var scrsize = jkit.getScreenSize();

		swidth = scrsize.width;
		sheight = scrsize.height;
	}
	
	var ret = new Array(swidth, sheight);

	return ret;	
}


function getWindowSize()
{
	var wwidth=(window.innerWidth)?window.innerWidth:
	  ((document.all)?document.body.offsetWidth:null);
	var wheight=(window.innerHeight)?window.innerHeight:
	  ((document.all)?document.body.offsetHeight:null);

	var ret = new Array(wwidth, wheight);

	return ret
}



function chgWidth(elName)
{
	var elObj = document.getElementById(elName);
	var screenSize = getScreenSize();
	var width = screenSize[0];
//	elObj.style.width = width < 1024 ? '100%' : '996px';
	if(width < 1024){
		elObj.style.width = '100%';
		document.getElementById('pic').style.left = '-119px';
	}	else{
		elObj.style.width = '996px';
		document.getElementById('pic').style.left = '-2px';
	}

}

function popup(linkObj, w_w, w_h, l, t, m, s, sc, r)
{
	window.open(linkObj.href, linkObj.target, 'width='+w_w+',height='+w_h+'location='+l+',toolbar='+t+',menubar='+m+',status='+s+',scrollbars='+sc+',resizable='+r);
	return false
}

function fullWindow(linkObj)
{
	return popup(linkObj, 600, 396, 0, 0, 0, 0, 0, 0)
}

function plan1Window(linkObj)
{
	return popup(linkObj, 320, 520, 0, 0, 0, 0, 0, 0)
}

function plan2Window(linkObj)
{
	return popup(linkObj, 518, 440, 0, 0, 0, 0, 0, 0)
}

function plan3Window(linkObj)
{
	return popup(linkObj, 620, 530, 0, 0, 0, 0, 0, 0)
}

function plan4Window(linkObj)
{
	return popup(linkObj, 420, 530, 0, 0, 0, 0, 0, 0)
}

function plan5Window(linkObj)
{
	return popup(linkObj, 420, 530, 0, 0, 0, 0, 0, 0)
}

function plan6Window(linkObj)
{
	return popup(linkObj, 420, 530, 0, 0, 0, 0, 0, 0)
}

function plan7Window(linkObj)
{
	return popup(linkObj, 430, 360, 0, 0, 0, 0, 0, 0)
}