/* 

AI2B 2008 | © DELTA WEB http://www.delta-web.com



*/


function ow (url)
{
	window.open(url);
}

function writeFL (id,src,W,H,WM)
{
	document.write("<table width='100%' height='100%' border='0' cellspacing='0' cellpadding='0'><tr><td width='100%' height='100%'>");
	document.write("<object id='"+id+"' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,19,0' width='"+W+"' height='"+H+"' align='middle'>");
	document.write("<param name='allowScriptAccess' value='always'>");
	document.write("<param name='wmode' value='"+WM+"'>");
	document.write("<param name='movie' value="+src+">");
	document.write("<param name='quality' value='high'>");
	document.write("<embed name='"+id+"' src="+src+" allowScriptAccess='always' width='"+W+"' height='"+H+"' wmode='"+WM+"' align='middle' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'></embed>");
	document.write("</object>");
	document.write("</td><td><img width='0' height='650' /></td></tr><tr><td><img width='980' height='0' /></td><td></td></tr></table>");
}

function hide(id)
{
	document.getElementById(id).style.display = "none";
}

function show(id)
{
	document.getElementById(id).style.display = "block";
}

function alphalizer(id,val)
{
	alpha = 0;
	idAlpha = id;
	alphaDest = val;
	alphalizerAction();
}

function alphalizerAction()
{
        alpha+=20;
		
		document.getElementById(idAlpha).style.opacity = alpha / 100;
		// IE
        if (document.body.filters != undefined)
        {
                document.getElementById(idAlpha).style.filter = 'alpha(opacity:' + alpha + ')';
        }
		
		if(alpha<alphaDest)
		{
			setTimeout(alphalizerAction,1);
		}
}


