
	function swf(src,width,height,div)
	{
		if( div )
			document.write('<div class="box" style="width:'+width+'px;height:'+height+'px">');
			
		document.write('<object width="'+width+'" height="'+height+'" id="swf" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" align="middle">');
		document.write('<param name="allowScriptAccess" value="sameDomain" />');
		document.write('<param name="movie" value="'+src+'" />');
		document.write('<param name="quality" value="high" />');
		document.write('<embed src="'+src+'" width="'+width+'" height="'+height+'" name="swf" quality="high" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
		document.write('</object>');
		
		if( div )
			document.write('</div>');
	}
	
function iframe_old(src,width,height)
{
	document.write('<div class="box" style="width:'+width+'px;height:'+height+'px">');
	document.write('<iframe src="'+src+'" width="'+width+'" height="'+height+'" style="width:'+width+'px;height:'+height+'px">');
	document.write('</iframe>');
	document.write('</div>');
}

function iframe(src,width,height)
{
	var id = new Date()-0;
	
	document.write('<div class="box" style="width:'+width+'px;height:'+height+'px">');
	document.write('<iframe onload="loadIframe('+id+',\''+src+'\')" id="iframe_'+id+'" width="'+width+'" height="'+height+'" style="width:'+width+'px;height:'+height+'px"></iframe>');
	document.write('</div>');
	
	this['loaded_'+id] = false;
}

function loadIframe( id, src )
{
	if( this['loaded_'+id] == false )
	{
		var iframe = document.getElementById('iframe_'+id).contentWindow;
	
		iframe.loaded = true;
		iframe.document.body.innerHTML = '<form action="'+src+'" id="form"></form>';
		iframe.document.getElementById('form').submit();
		
		this['loaded_'+id] = true;
	}
}
	
	function mailto(a,b,c,text)
	{
		if(!text) text = a+'@'+b+'.'+c;
		document.write('<a href="mailto:'+a+'@'+b+'.'+c+'">'+text+'</a>');
	}
