 var x = Math.random()*10;
var y = Math.round(x);
 var txt ="";
 while(y>=5){
 y = y-5;
 }
 switch(y){	 

  case 0:
<!-- CPS Storm -->
 txt += '<a href="http://qahr.91.com/guide/pirate/" target="_blank"><img height="90" border="0" width="700" src="http://img8.91huo.com/qahr/images/100406ver/120114toppic_700x90.jpg"/></a>';
 document.write(txt);
 break; 

  case 1:
<!-- CPS Storm -->
 txt += '<a href="http://bbs.arab.91.com/showthread.php?t=84850" target="_blank"><img height="90" border="0" width="700" src="http://img6.91huo.com/qahr/images/100406ver/120216toppic1_700x90_1.jpg"/></a>';
 document.write(txt);
 break;
 
  case 2:
<!-- CPS Storm -->
 txt += '<a href="http://qahr.91.com/guide/quests/2012/chest_heart.shtml" target="_blank"><img height="90" border="0" width="700" src="http://img6.91huo.com/qahr/images/100406ver/120216toppic3_700x90.jpg"/></a>';
 document.write(txt);
 break; 
 
  case 3:
<!-- CPS Storm -->
 txt += '<a href="http://qahr.91.com/guide/quests/fruitninja.shtml" target="_blank"><img height="90" border="0" width="700" src="http://img9.91huo.com/qahr/images/100406ver/120223toppic_700x90.jpg"/></a>';
 document.write(txt);
 break; 
 
  case 4:
<!-- CPS Storm -->
 txt += '<a href="http://qahr.91.com/guide/quests/2012/longevity_spring.shtml" target="_blank"><img height="90" border="0" width="700" src="http://img6.91huo.com/qahr/images/100406ver/120216toppic_700x90.jpg"/></a>';
 document.write(txt);
 break; 

 default:
document.write("error");} 
