var bigdog_url  = "http://www.bigdogarcade.com/";


if (document.all || document.getElementById){ //if IE4 or NS6+ 
 document.write('<style type="text/css">\n'); 
 document.write('.dyncontent{display: none; width: 100px; height: 100px;}\n');  
 document.write('</style>');
 document.write('<div class="dyncontent" style="display: block"><a href="'+bigdog_url+'games/364/dolphin-olympics.html" target="_blank" title="Play Dolphin Olympics at Big Dog Arcade"><img src="http://www.bigdogmultimedia.com/oldarcade/games/images/dolphin_olympics.gif" height="100" width="100" border="0" alt="Play Dolphin Olympics at Big Dog Arcade"></a></div>\n'); 
 document.write('<div class="dyncontent"><a href="'+bigdog_url+'games/3230/ice-racer.html" target="_blank" title="Play Ice Racer at Big Dog Arcade"><img src="http://www.bigdogmultimedia.com/oldarcade/games/images/iceracer.gif" height="100" width="100" border="0" alt="Play Ice Racer at Big Dog Arcade"></a></div>\n'); 
 document.write('<div class="dyncontent"><a href="'+bigdog_url+'games/2/colocao-bmx.html" target="_blank" title="Play Colocao BMX at Big Dog Arcade"><img src="http://www.bigdogmultimedia.com/oldarcade/games/images/colacao.gif" height="100" width="100" border="0" alt="Play Colocao BMX at Big Dog Arcade"></a></div>\n'); 
 document.write('<div class="dyncontent"><a href="'+bigdog_url+'games/1222/deal-or-no-deal.html" target="_blank" title="Play Deal or No Deal at Big Dog Arcade"><img src="http://www.bigdogmultimedia.com/oldarcade/games/images/dealicon.gif" height="100" width="100" border="0" alt="Play Deal or No Deal at Big Dog Arcade"></a></div>'); 
} 

var curcontentindex=0; 
var messages=new Array(); 

function getElementByClass(classname){ 
 var inc=0; 
 var alltags=document.all? document.all : document.getElementsByTagName("*"); 
 for (i=0; i<alltags.length; i++){ 
   if (alltags[i].className==classname) 
     messages[inc++]=alltags[i]; 
 } 
} 

function rotatecontent(){ 
 //get current message index (to show it): 
 curcontentindex=(curcontentindex<messages.length-1)? curcontentindex+1 : 0; 
 //get previous message index (to hide it): 
 prevcontentindex=(curcontentindex==0)? messages.length-1 : curcontentindex-1; 
 messages[prevcontentindex].style.display="none"; //hide previous message 
 messages[curcontentindex].style.display="block"; //show current message 
} 

function doit(){ 
 if (document.all || document.getElementById){ 
   getElementByClass("dyncontent"); 
   setInterval("rotatecontent()", 5000); 
 } 
} 

