function etkinlik(tip, link, adres, divID, Wi, He)
{
	var text = "";
	switch(tip)
	{
		case 1:
			text = "<a href='" + link + "' Class='mainPagesagkutularText'>";
			text +="<img src='" + adres + "' style='width:210px; height:100px; border:0px;' Align='middle' alt='Referans Etkinlik'/>";
			text +="</a>";
		break;
		case 2:
			text = '<OBJECT hideonmenu="1" codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" height="90" width="210"  classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" VIEWASTEXT>';
			text += '<PARAM NAME="_cx" VALUE="5027">';
			text += '<PARAM NAME="_cy" VALUE="2381">';
			text += '<PARAM NAME="Movie" VALUE="' + adres + '">';
			text += '<PARAM NAME="Src" VALUE="' + adres + '">';
			text += '<PARAM NAME="WMode" VALUE="Window">';
			text += '<PARAM NAME="Play" VALUE="-1">';
			text += '<PARAM NAME="Loop" VALUE="-1">';
			text += '<PARAM NAME="Quality" VALUE="High">';
			text += '<PARAM NAME="Menu" VALUE="-1">';
			text += '<PARAM NAME="AllowScriptAccess" VALUE="always">';
			text += '<PARAM NAME="Scale" VALUE="ShowAll">';
			text += '<PARAM NAME="DeviceFont" VALUE="0">';
			text += '<PARAM NAME="EmbedMovie" VALUE="0">';
			text += '<PARAM NAME="SeamlessTabbing" VALUE="1">';
			text += '<embed  src="' + adres + '" height="90" width="210" quality="high" bgcolor="#fff" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"> </embed>';
			text += '</OBJECT>';
		break;
		case 0:
			text = "<a href='" + link + "' Class='mainPagesagkutularText'>";
			text +=document.getElementById(divID).innerHTML;
			text +="</a>";
		break;
	}
	document.write( text );
}
function etkinlik2(adres)
{
	var text = '<OBJECT codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="166" height="92" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" VIEWASTEXT>';
			text += '<PARAM NAME="_cx" VALUE="5027">';
			text += '<PARAM NAME="_cy" VALUE="2381">';
			text += '<PARAM NAME="Movie" VALUE="' + adres + '">';
			text += '<PARAM NAME="Src" VALUE="' + adres + '">';
			text += '<PARAM NAME="WMode" VALUE="transparent">';
			text += '<PARAM NAME="Play" VALUE="-1">';
			text += '<PARAM NAME="Loop" VALUE="-1">';
			text += '<PARAM NAME="Quality" VALUE="High">';
			text += '<PARAM NAME="Menu" VALUE="-1">';
			text += '<PARAM NAME="AllowScriptAccess" VALUE="always">';
			text += '<PARAM NAME="Scale" VALUE="ShowAll">';
			text += '<PARAM NAME="DeviceFont" VALUE="0">';
			text += '<PARAM NAME="EmbedMovie" VALUE="0">';
			text += '<PARAM NAME="SeamlessTabbing" VALUE="1">';
			text += '<embed  src="' + adres + '" width="166" height="92" bgcolor="#fff" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"> </embed>';
			text += '</OBJECT>';
	document.write(text);
}