﻿var MM_contentVersion = 7;

function EmbedFlash()
{
    document.write('<div style="position:relative;top:0px;left:0px;height:180px;">');
	document.write('<object style="position:absolute;left:0px;top:0px;" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="545" height="180">');
	document.write('<param name="movie" value="Images/AdImages/reklam20060831.swf" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="FlashVars" value="' + args + '" />');
    document.write('<param name="wmode" VALUE="transparent">');
	document.write('<embed src="Images/AdImages/reklam20060831.swf" wmode=transparent FlashVars="' + args + '"  quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="545" height="180" />');
	document.write('</object></div><br />');
}


function AdPopup(linkId)
{
	window.open('/Modules/Advertisement/Redirect.aspx?ad=' + linkId);
}

function AdShow(linkId, target)
{
    if(target == '_blank')
	    window.open('/Modules/Advertisement/Redirect.aspx?ad=' + linkId);
    else
        document.location.href ='/Modules/Advertisement/Redirect.aspx?ad=' + linkId;
}