//var intro = readCookie('intro');
//if (intro != 1)
//	{
//	window.onload = function() { toggleBox('container', 1); toggleBox('contenta', 1); }
//	}
//	writeCookie('intro', 1, 100);

var initStartMap = function()
	{
	var startMap = document.getElementsByTagName('map')['startMap'];
	if (startMap)
		{
		var startImg = document.images['startImg'];
		if (startImg)
			{
			startImg.className = 'start script';
			var start = startMap.firstChild;
			while (start)
				{
				start.onmouseover = function () { startImg.className = 'start script ' + this.id; };
				start.onmouseout = function () { startImg.className = 'start script'; };
				start.onfocus = start.onmouseover;
				start.onblur = start.onmouseout;
				start = start.nextSibling;
				}
			}
		}
	};
if (window.addEventListener) window.addEventListener('load', initStartMap,true);
else if (window.attachEvent) window.attachEvent('onload', initStartMap);

function toggleBox(szDivID, iState) // 1 visible, 0 hidden
	{
	var movie = 0;
	if (szDivID == 'flasha') movie = 'ssgsf';
	else if (szDivID == 'flashb') movie = 'awod';
	else if (szDivID == 'flashc') movie = 'tpiw';
	else if (szDivID == 'flashd') movie = 'nfje';
	else if (szDivID == 'flashe') movie = 'qlkd';
	if (movie)
		{
		if (iState == 1) jwplayer(movie).play();
		else jwplayer(movie).stop();
		}
	var obj = document.layers ? document.layers[szDivID] : document.getElementById ? document.getElementById(szDivID).style : document.all[szDivID].style;
	obj.visibility = document.layers ? (iState ? 'show' : 'hide') : (iState ? 'visible' : 'hidden');
	}

