﻿function Sifr( destination, id, params )
{
	var height = "16px";
	
	if( destination.tagName == "H2" )
	{
		height = "32px";
	}
	
	var text = "";
	text += ("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='100%' height='"+height+"' name='"+id+"_object' id='"+id+"_object'  align='TL' VIEWASTEXT>");
	text += ("<param name='allowScriptAccess' value='sameDomain' />");
	text += ("<param name = 'movie' value = '/Sifer_"+destination.tagName+".swf' />");
	text += ("<param name = 'FlashVars' value = '" + params + "' />");
	text += ("<param name='quality' value='high' />");
	text += ("<param name='salign' value='tl' />");
	text += ("<param name='bgcolor' value='#FFFFFF' />");
	text += ("<embed src = '/Sifer_"+destination.tagName+".swf' FlashVars='" + params + "' ");
	text += ("quality='high' salign='tl' bgcolor='#FFFFFF' width='100%' height='"+height+"' align='middle' allowScriptAccess='sameDomain' name='"+id+"_embed' id='"+id+"_embed' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	text += ("</object>");
	destination.innerHTML = text;

	//destination.outerHTML = destination.innerHTML;
};