// JavaScript Document

function xmakerflash(divid, objectid, width, height, url, autostart,dcwmode)
{
	//alert(autostart);
	var conteudo=document.getElementById(divid)
	conteudo.innerHTML  = '<object id="' + objectid + '" type="application/x-shockwave-flash" data="' + autostart + '?clicktag='+ url +'" width="'+ width +'" height="'+ height +'" tabindex="0" title=""><param name="movie" value="' + autostart + '?clicktag='+ url +'" /><param name="quality" value="high" /><param name="menu" value="false" /><param name="wmode" value="'+ dcwmode +'" /></object>';
}


function reloadimg(){
	document.getElementById('img_seguranca').src="xmakerseguranca/xmaker_seg_img.aspx?seg=" + Math.random();
}	
reloadimg();	
setInterval(reloadimg, 400000);


function ouviraudio(){
	var head = document.getElementsByTagName('head').item(0);
	var escript = document.createElement('script');
	escript.setAttribute('src', 'xmakerseguranca/xmaker_seg_audio.asp?seg=' + Math.random());
	head.appendChild(escript);
}	
