_redirectUrl=null;
isMSIE=false;
isMozilla=false;
if (document.all)
	isMSIE=true;
else
	isMozilla=true;

function getById(id)
	{
		if (document.all)
			return document.all(id);
		else
			return document.getElementById(id);
	}
	
function pResize()
	{
		var o=getById("oField");
		if (document.body.clientWidth > 1190)
			o.style.posWidth=1190;
		else
			o.style.posWidth=document.body.clientWidth;
	}

function imageLoaded()
	{
		if (isMSIE)
			o=getById('oFlash');
		else
			o=getById('oFlashEmbed');
		if (o)
			o.draw();
	}

function imageFlushDone()
	{
		if (_redirectUrl)
			self.location.href=_redirectUrl;
	}

function gotoUrl(url)
	{
		_redirectUrl=url;
		var o;
		if (isMSIE)
			o=getById('oFlash');
		else
			o=getById('oFlashEmbed');
		if (o)
			{
				o.flush();
				if (window.event)
					window.event.cancelBubble=true;
				return false;
			}
		return true;
	}
	
window.attachEvent('onresize', pResize);
