<!-- Original:  Rich Galichon (rich@galichon.net) -->
<!-- Web Site:  http://www.galichon.net -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
//function banner(imgSource,url,alt,chance) {
function banner(imgSource,url,alt,type,chance) {
this.imgSource = imgSource;
this.url = url;
this.alt = alt;
this.type = type;
this.chance = chance;
}
banners_1 = new Array();
banners_1[0] = new banner("http://www.windfanshk.com/image/ad/ad_0605special.gif",
                        "http://shop.windfanshk.com target='_blank'",
                        "May Special",
                        "gif",
                        0);
banners_1[1] = new banner("http://www.windfanshk.com/image/ad/ad_goya2007preview.gif",
                        "http://shop.windfanshk.com target='_blank'",
                        "Goya 2007 Preview",
                        "gif",
                        50);
banners_1[2] = new banner("http://www.windfanshk.com/image/ad/ad_quatro_2006.swf",
                        "http://shop.windfanshk.com/cgi-bin/hk/cart.cgi?action=search&category=Sailboard target='_blank'",
                        "Quatro 2006",
                        "flash",
                        0);
banners_1[3] = new banner("http://www.windfanshk.com/image/ad/ad_lcs.swf",
                        "http:www.longcoast.hk target='_blank'",
                        "®ö°ªªø©¤ LCS",
                        "flash",
                        50);
///////////////////////////////////////////////////
// banners_1[x] = new banner(<banner source image>,                                           //                         <url to link to when the banner is clicked>,                     //                         <alt>                                                            //                         <the chance this banner has in which to be randomly selected>);  
// To increase the chance of a banner being randomly selected, increase it's corresponding  // 'chance' property relative to the other banners.                                         
///////////////////////////////////////////////////
sum_of_all_chances = 0;
for (i = 0; i < banners_1.length; i++) {
sum_of_all_chances += banners_1[i].chance;
}
function randomBanner_1() {
chance_limit = 0; randomly_selected_chance = Math.round((sum_of_all_chances - 1) * Math.random()) + 1;
for (i = 0; i < banners_1.length; i++) {
chance_limit += banners_1[i].chance;
if (randomly_selected_chance <= chance_limit) {

if (banners_1[i].type == "flash") {
document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"');
document.write(' ID=banner WIDTH=120 HEIGHT=180>');
document.write(' <PARAM NAME=movie VALUE=' + banners_1[i].imgSource + '?clickTAG='+ banners_1[i].url + '> ');
document.write(' <PARAM NAME=quality VALUE=autohigh> ');
document.write(' <PARAM NAME=wmode VALUE=transparent> ');
document.write('');
document.write('<EMBED SRC=' + banners_1[i].imgSource + '?clickTAG='+ banners_1[i].url +' ');
document.write(' WIDTH=120 HEIGHT=180');
document.write(' QUALITY=autohigh');
document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
document.write('</EMBED>');
document.write('</OBJECT>');
} else {
document.write("<A HREF=" + banners_1[i].url + "><IMG SRC='" + banners_1[i].imgSource + "' WIDTH=120 HEIGHT=180 BORDER=0 ALT='" + banners_1[i].alt + "'></A>");
}


return banners_1[i];
break;
      }
   }
}
//  End -->
<!-- Begin
//function banner(imgSource,url,alt,chance) {
function banner(imgSource,url,alt,type,chance) {
this.imgSource = imgSource;
this.url = url;
this.alt = alt;
this.type = type;
this.chance = chance;
}
banners_2 = new Array();
banners_2[0] = new banner("http://www.windfanshk.com/image/ad/ad_ezzy.gif",
                        "http://surfm8.blogspot.com target='_blank'",
                        "Surf M 8",
                        "gif",
                        33);
banners_2[1] = new banner("http://www.windfanshk.com/image/ad/ad_lcs.swf",
                        "http:www.longcoast.hk target='_blank'",
                        "®ö°ªªø©¤ LCS",
                        "flash",
                        0);
banners_2[2] = new banner("http://www.windfanshk.com/image/ad/ad_feelfree.gif",
                        "http://shop.windfanshk.com/cgi-bin/hk/cart.cgi?action=search&category=Kayak target='_blank''",
                        "Feelfree Kayak",
                        "gif",
                        30);
banners_2[3] = new banner("http://www.windfanshk.com/image/ad/ad_superx.gif",
                        "http://www.superxsports.com target='_blank'",
                        "Super-X Sports",
                        "gif",
                        33);
///////////////////////////////////////////////////
// banners_2[x] = new banner(<banner source image>,                                           //                         <url to link to when the banner is clicked>,                     //                         <alt>                                                            //                         <the chance this banner has in which to be randomly selected>);  
// To increase the chance of a banner being randomly selected, increase it's corresponding  // 'chance' property relative to the other banners.                                         
///////////////////////////////////////////////////
sum_of_all_chances = 0;
for (i = 0; i < banners_2.length; i++) {
sum_of_all_chances += banners_2[i].chance;
}
function randomBanner_2() {
chance_limit = 0;
randomly_selected_chance = Math.round((sum_of_all_chances - 1) * Math.random()) + 1;
for (i = 0; i < banners_2.length; i++) {
chance_limit += banners_2[i].chance;
if (randomly_selected_chance <= chance_limit) {

if (banners_2[i].type == "flash") {
document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"');
document.write(' ID=banner WIDTH=120 HEIGHT=180>');
document.write(' <PARAM NAME=movie VALUE=' + banners_2[i].imgSource + '?clickTAG='+ banners_2[i].url + '> ');
document.write(' <PARAM NAME=quality VALUE=autohigh> ');
document.write(' <PARAM NAME=wmode VALUE=transparent> ');
document.write('');
document.write('<EMBED SRC=' + banners_2[i].imgSource + '?clickTAG='+ banners_2[i].url +' ');
document.write(' WIDTH=120 HEIGHT=180');
document.write(' QUALITY=autohigh');
document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
document.write('</EMBED>');
document.write('</OBJECT>');
} else {
document.write("<A HREF=" + banners_2[i].url + "><IMG SRC='" + banners_2[i].imgSource + "' WIDTH=120 HEIGHT=180 BORDER=0 ALT='" + banners_2[i].alt + "'></A>");
}


return banners_2[i];
break;
      }
   }
}
//  End -->
document.write ( 
'<link href="/style/otherstyle.css" rel="stylesheet" type="text/css">'
);
function popWin(URL,WIDTH,HEIGHT,TOP,LEFT) {
 search = window.open(URL, '', 'width='+WIDTH+',height='+HEIGHT+',top='+TOP+',left='+LEFT);
 if (search != null) {
  if (search.opener == null)
   search.opener = self;
 }
}
