﻿var adblock=new Array()
adblock[0]='<a target="_blank" href="http://www.skhasms.edu.hk/docs/Activities/20090620_2008-09_graduation_ceremony/index.htm"><img src="slider30.jpg" class="imgBorder"></a><br><font style="font-size:9pt"><b>2009年6月20日</b><BR>08-09年度 中五及中七畢業典禮</font>'
adblock[1]='<a target="_blank" href="http://www.skhasms.edu.hk/docs/Activities/20090716_inter_scrabble_competition/index.htm"><img src="slider31.jpg" class="imgBorder"></a><br><font style="font-size:9pt"><b>2009年7月16日</b><BR>同學參加聯校Scrabble比賽</font>'
adblock[2]='<a target="_blank" href="http://www.skhasms.edu.hk/docs/Activities/20091022_huangpu/index.htm"><img src="slider32.jpg" class="imgBorder"></a><br><font style="font-size:9pt"><b>2009年10月22-23日</b><BR>2009中一黃埔軍校訓練營</font>'
adblock[3]='<a target="_blank" href="http://www.skhasms.edu.hk/docs/Activities/2008_EES/index.htm"><img src="slider29.jpg" class="imgBorder"></a><br><font style="font-size:9pt"><b>2008年10月起</b><BR>EES 英語提升課程</font>'

function randomorder(targetarray, spacing) {
  var randomorder=new Array()
  var the_one
  var z=3	//no of images to be hidden
  for (i=0;i<targetarray.length;i++)
  randomorder[i]=i

  while (z<targetarray.length) {
    the_one=Math.floor(Math.random()*targetarray.length)
    if (targetarray[the_one]!="_selected!"){
      document.write(targetarray[the_one]+spacing)
      targetarray[the_one]="_selected!"
      z++
    }
  }
}

