// JavaScript Document

function writeBanner() {
	var rand_no = Math.floor(7*Math.random());
	document.writeln('<div style="background:url(media/bn_00.png); height:149px; width:562px; position:relative;">');
   document.writeln('	<div style="position:absolute; top:12px; right:13px">');
   document.writeln('		<object id="FlashID2" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="438" height="125">');
   document.writeln('		<param name="movie" value="media/flash/bn_'+ rand_no +'.swf">');
   document.writeln('		<param name="quality" value="high">');
   document.writeln('		<param name="wmode" value="transparent">');
	document.writeln('		<param name="menu" value="false">');
   document.writeln('		<param name="swfversion" value="6.0.65.0">');
   document.writeln('<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you dont want users to see the prompt. -->');
   document.writeln('		<param name="expressinstall" value="Scripts/expressInstall.swf">');
   document.writeln('<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. --> ');
   document.writeln(' <!--[if !IE]>-->');
   document.writeln('		<object type="application/x-shockwave-flash" data="media/flash/bn_'+ rand_no +'.swf" width="438" height="125">');
   document.writeln('<!--<![endif]-->');
   document.writeln('		<param name="quality" value="high">');
   document.writeln('		<param name="wmode" value="transparent">');
	document.writeln('		<param name="menu" value="false">');
   document.writeln('		<param name="swfversion" value="6.0.65.0">');
   document.writeln('		<param name="expressinstall" value="Scripts/expressInstall.swf">');
   document.writeln('<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->');
   document.writeln('		<div>');
   document.writeln('			<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>');
   document.writeln('			<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>');
   document.writeln('		</div>');
   document.writeln('<!--[if !IE]>-->');
   document.writeln('		</object>');
   document.writeln('<!--<![endif]-->');
   document.writeln('		</object>');
   document.writeln('	</div>');
   document.writeln('	<a href="contato.shtml" style="position:absolute; display:block; width:95px; height:60px; top:10px; left:10px;"></a>');
   document.writeln('</div>');
}

function writePhrase() {
	var hoje = new Date();
	var rand = (hoje.getDate() * (hoje.getMonth() + 1)) % frases.length;
	document.writeln(frases[rand]);
}

function writeFooter() {
    document.writeln('<table width="760" border="0" cellspacing="0" cellpadding="0">');
    document.writeln('<tr>');
	document.writeln('<td align="left" style="padding-left: 30px"><a href="http://pt-br.facebook.com/pages/Soama-Brasil-Oficial/223379631047098" target="_blank"><img src="media/ic_facebook.png" border="0"></a> <a href="http://twitter.com/#!/SoamaCaxias" target="_blank"><img src="media/ic_twitter.png" border="0"></a> <a href="http://www.orkut.com/Community?cmm=201185&hl=pt-BR" target="_blank"><img src="media/ic_orkut.png" border="0"></a></td>');
    document.writeln('<td align="right" style="padding-right: 30px"><a href="http://www.invexis.com.br" target="_blank"><img src="media/lg_01.gif" border="0"></a></td>');
    document.writeln('</tr>');
    document.writeln('</table>');
}

