document.write(' <link rel="shortcut icon" href="http://www.akaz.com/images/favicon.ico" type="image/x-icon" /> ');

/***********************************************
* Auto Maximize Window Script- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for this script and 100's more.

top.window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById) {
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
***********************************************/


function hidestatus(){
window.status='AKAZ - Aaron Kwok Adventurous Zone'
return true
}

if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)
document.onmouseover=hidestatus
document.onmouseout=hidestatus


if (self != top) 
top.location.href = window.location.href;


function openPopWin(URL) {
	var winHeight=520;
	var winWidth=630;
	var leftPos=(screen.width-winWidth)/2;
	var topPos=(screen.height-winHeight-100)/2;
	var hWnd = window.open(URL,"popUp","height="+winHeight+",width="+winWidth+",left="+leftPos+",top="+topPos+",scrollbars");
        if (hWnd.focus != null) hWnd.focus();
}

function winPopup(url)
        {
        var hWnd = window.open(url,"PopUp","width=500,height=500");
        if (hWnd.focus != null) hWnd.focus();
        }

function openPopup(winwin) {
	abc = ''
	kk = '<title>Zoom In</title><body bgcolor=white><center><a href=# onClick="javascript:top.window.close();opener.focus();"><img src='+ winwin +' border=0></a></center></body></html>'
	msgWin = window.open(abc, 'formwin', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,width=500,height=500')
	msgWin.focus()
	msgWin.document.write(kk)
	msgWin.document.close()
}

function openMedia(media_id) {
    lnk="http://www.warnermusic.com.hk/mediaDl.php?m_id="+media_id;	
    open(lnk,"wmmedia",'resizable=no,width=320,height=320');
}


function emsTweak()
{
	if ((document.createElement) && (document.createTextNode))
	{
		document.writeln('<div id="emsTest" style="position:absolute; visibility:hidden; font-family:arial,helvetica,sans-serif">&nbsp;<br />&nbsp;<br />&nbsp;<br />&nbsp;<br />&nbsp;<br /></div>');
		var scaling=100;
		if ((navigator.platform=="Win32") && (navigator.appName=="Microsoft Internet Explorer")) scaling=105;
		var h=999;
		if (document.getElementById('emsTest').clientHeight) h=parseInt(document.getElementById('emsTest').clientHeight);
		else if (document.getElementById('emsTest').offsetHeight) h=parseInt(document.getElementById('emsTest').offsetHeight);
		if (h<85) document.body.style.fontSize=Math.round(scaling*90/h)+"%";
	}
}

//self.name="index";
//window.open('http://www.akaz.com/popup.htm','intergal_console','height=460,width=380,top=466,left=766');

var aid="Xwn6Jv";
var aid2="1X378W7M";

if (document.images) {var img1=new Image(); img1.src="/images/_akboards/b1off.gif";}
if (document.images) {var img2=new Image(); img2.src="/images/_akboards/b2off.gif";}
if (document.images) {var img3=new Image(); img3.src="/images/_akboards/b3off.gif";}
if (document.images) {var img4=new Image(); img4.src="/images/_akboards/b4off.gif";}
if (document.images) {var img5=new Image(); img5.src="/images/_akboards/b5off.gif";}
if (document.images) {var img6=new Image(); img6.src="/images/_akboards/b6off.gif";}
if (document.images) {var img7=new Image(); img7.src="/images/_akboards/b7off.gif";}
if (document.images) {var img8=new Image(); img8.src="/images/_akboards/b8off.gif";}


midis = new Array(1);
            midis[0] = " http://akaz.com/media/ny05_ak.ra ";
            //midis[1] = " http://akaz.com/media/merryXmas2.ra ";
            index = Math.floor(Math.random() * midis.length);




var imagenumber = 16;
var randomnumber = Math.random() ;
var rand1 = Math.round( (imagenumber-1) * randomnumber) + 1 ;
images = new Array
/*
images[1] = "/images/yes01.gif"
images[2] = "/images/yes02.gif"
images[3] = "/images/yes03.gif"
images[4] = "/images/yes04.gif"
images[5] = "/images/yes05.gif"
images[6] = "/images/yes06.gif"
images[7] = "/images/yes07.gif"
images[8] = "/images/yes08.gif"
images[9] = "/images/yes09.gif"
images[10] = "/images/yes10.gif"
images[11] = "/images/yes11.gif"
images[12] = "/images/yes12.gif"
images[13] = "/images/yes13.gif"
images[14] = "/images/yes14.gif"
images[15] = "/images/yes15.gif"
images[16] = "/images/yes16.gif"
images[17] = "/images/yes17.gif"
images[18] = "/images/yes18.gif"
images[19] = "/images/yes19.gif"
images[20] = "/images/yes20.gif"
images[21] = "/images/yes21.gif"
images[22] = "/images/yes22.gif"
images[23] = "/images/yes23.gif"
images[24] = "/images/yes24.gif"
images[25] = "/images/yes25.gif"
images[26] = "/images/yes26.gif"
images[27] = "/images/yes27.gif"
images[28] = "/images/yes28.gif"
images[29] = "/images/yes29.gif"
images[30] = "/images/yes30.gif"
images[31] = "/images/yes31.gif"
images[32] = "/images/yes32.gif"
images[33] = "/images/yes33.gif"
images[34] = "/images/yes34.gif"
images[35] = "/images/yes35.gif"
images[36] = "/images/yes36.gif"
images[37] = "/images/yes37.gif"
images[38] = "/images/yes38.gif"
images[39] = "/images/yes39.gif"
images[40] = "/images/yes40.gif"
images[41] = "/images/yes41.gif"
images[42] = "/images/yes42.gif"
images[43] = "/images/yes43.gif"
images[44] = "/images/yes44.gif"
images[1] = "/images/mb2002_01.jpg"
images[2] = "/images/mb2002_02.jpg"
images[3] = "/images/mb2002_03.jpg"
images[4] = "/images/mb2002_04.jpg"
images[5] = "/images/mb2002_05.jpg"
images[6] = "/images/mb2002_06.jpg"
images[7] = "/images/mb2002_07.jpg"
images[8] = "/images/mb2002_08.jpg"
images[9] = "/images/mb2002_09.jpg"
images[10] = "/images/mb2002_10.jpg"
images[11] = "/images/mb2002_11.jpg"
images[12] = "/images/mb2002_12.jpg"
images[13] = "/images/mb2002_13.jpg"
images[14] = "/images/mb2002_14.jpg"
images[15] = "/images/mb2002_15.jpg"
images[16] = "/images/mb2002_16.jpg"
images[17] = "/images/mb2002_17.jpg"
images[18] = "/images/mb2002_18.jpg"
images[19] = "/images/mb2002_19.jpg"
images[20] = "/images/mb2002_20.jpg"
images[21] = "/images/mb2002_21.jpg"
images[1] = "http://akaz.com/mtsbw/2002/fall/01.jpg"
images[2] = "http://akaz.com/mtsbw/2002/fall/02.jpg"
images[3] = "http://akaz.com/mtsbw/2002/fall/03.jpg"
images[4] = "http://akaz.com/mtsbw/2002/fall/04.jpg"
images[5] = "http://akaz.com/mtsbw/2002/fall/05.jpg"
images[6] = "http://akaz.com/mtsbw/2002/fall/06.jpg"
images[7] = "http://akaz.com/mtsbw/2002/fall/07.jpg"
images[8] = "http://akaz.com/mtsbw/2002/fall/08.jpg"
images[9] = "http://akaz.com/mtsbw/2002/fall/09.jpg"
images[10] = "http://akaz.com/mtsbw/2002/fall/10.jpg"
images[11] = "http://akaz.com/mtsbw/2002/fall/11.jpg"
images[12] = "http://akaz.com/mtsbw/2002/fall/12.jpg"
images[1] = "http://akaz.com/xdlong/01.jpg"
images[2] = "http://akaz.com/mtsbw/2003/spri/01.jpg"
images[3] = "http://akaz.com/xdlong/02.jpg"
images[4] = "http://akaz.com/mtsbw/2003/spri/02.jpg"
images[5] = "http://akaz.com/xdlong/666s.jpg"
images[6] = "http://akaz.com/mtsbw/2003/summ/1.jpg"
images[7] = "http://akaz.com/xdlong/04.jpg"
images[8] = "http://akaz.com/mtsbw/2003/summ/2.jpg"
images[9] = "http://akaz.com/xdlong/05.jpg"
images[10] = "http://akaz.com/mtsbw/2003/summ/3.jpg"
images[11] = "http://akaz.com/xdlong/06.jpg"
images[12] = "http://akaz.com/mtsbw/2003/summ/04.jpg"
images[13] = "http://akaz.com/xdlong/sdlong6s.jpg"
images[14] = "http://akaz.com/xdlong/999s.jpg"
images[15] = "http://akaz.com/xdlong/555s.jpg"
images[16] = "http://akaz.com/xdlong/222s.jpg"
*/


images[1] = "http://new.tungstar.com/thumb.do?photoId=2222465"
images[2] = "http://new.tungstar.com/thumb.do?photoId=2222450"

images[3] = "http://new.tungstar.com/thumb.do?photoId=2177149"
images[4] = "http://new.tungstar.com/thumb.do?photoId=2177125"
images[5] = "http://new.tungstar.com/thumb.do?photoId=2188640"
images[6] = "http://new.tungstar.com/thumb.do?photoId=2188617"
images[7] = "http://new.tungstar.com/thumb.do?photoId=2201521"
images[8] = "http://new.tungstar.com/thumb.do?photoId=2201509"
images[9] = "http://new.tungstar.com/thumb.do?photoId=2206261"
images[10] = "http://hk-image-online.com/image_decode.php?view_file=HKG-02-00057042-00019&view_mode=31"
images[11] = "http://www.singtao.com/media/20091025/20091025fp05.jpg"
images[12] = "http://www.singtao.com/media/20091030/20091030fp02.jpg"
images[13] = "http://hk-image-online.com/image_decode.php?view_file=HKG-02-00057266-00032&view_mode=31"
images[14] = "http://www.tungstar.com/thumb.do?photoId=2212234"
images[15] = "http://hk-image-online.com/image_decode.php?view_file=HKG-02-00057266-00032&view_mode=31"
images[16] = "http://hk-image-online.com/image_decode.php?view_file=HKG-02-00057270-00002&view_mode=31"

var mb2002 = images[rand1]
var abt = images[rand1]




function GetMonth(intMonth){
	var MonthArray = new Array("January", "February", "March",
                                "April", "May", "June",
                                "July", "August", "September",
                                "October", "November", "December") 
     	return MonthArray[intMonth]                  
	}

function getDateStr(){
     	var today = new Date()
     	var year = today.getYear()
     	if(year<1000) year+=1900
     	var todayStr = GetMonth(today.getMonth()) + " " + today.getDate()
     	todayStr += ", " + year
     	return todayStr
	}






function makeArray0() {
	for (i = 0; i<makeArray0.arguments.length; i++)
	this[i] = makeArray0.arguments[i];
	}

	var days = new makeArray0("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
	var months = new makeArray0('January','February','March','April','May','June','July','August','September','October','November','December');

function nths(day) {
	if (day == 1 || day == 21 || day == 31) return 'st';
	if (day == 2 || day == 22) return 'nd';
	if (day == 3 || day == 23) return 'rd';
	return 'th';
	}
			
function getCorrectedYear(year) {
	year = year - 0;
	if (year < 70) return (2000 + year);
	if (year < 1900) return (1900 + year);
	return year;
	}
				
function y2k(number) { return (number < 1000) ? number + 1900 : number; }
				
	var last = document.lastModified;
	var date = new Date(last);
	var dateY2K = new Date(getCorrectedYear(date.getYear()),date.getMonth(),date.getDate());






// ------------- Browser Detector ---------------
// Possible values for browser are:
//  "netscape"
//  "opera"     
//  "msie"      
//  "robot"
//  "unknown"
// Possible values for version are:
//  any numerical value (3, 2.02, 4.04, etc.)
//  0 if unable to determine

var browser = "unknown";
var version = 0;

if (navigator.userAgent.indexOf("Opera") >= 0)
 browser = "opera";
else if (navigator.userAgent.indexOf("obot") >= 0)
 browser = "robot";
else if (navigator.appName.indexOf("etscape") >= 0)
 browser = "netscape";
else if (navigator.appName.indexOf("icrosoft") >= 0)
 browser = "msie";

version = parseFloat(navigator.appVersion);
if (isNaN(version)) version = 0;
if ((browser == "msie")&&(version == 2)) version = 3;

// ------------------ Gradient Output --------------------
// Syntax for use:

//     gradient(TEXT_STRING_HERE,HEXCODES_STRING_HERE);

//  use in similar way you would use document.write();
//  note, it cannot be used to return a string value.
//  gradient() takes two arguements. the first will
//  be the original pure text string. (no htmlcodes)
//  the second argument is a string of color hexcodes
//  seperated with spaces thru which the text should
//  progress. for example say you wanted to print out
//  the string "color gradient", and you wanted it to
//  progress from blue to red. a color code for blue
//  is 4444FF, and a color code for red is FF4444.
//  taking those two codes, and the original string,
//  somewhere in the body of the document you would
//  write within a <Script> tag the following:
//  gradient("color gradient","4444FF FF4444");
//  if however, you wanted it to progress thru three
//  or more colors, its as simple as adding them to the
//  string of color codes. it is important to remember
//  however that the string must be color HEXCODES, and
//  not merely just color names, (e.x- "red", "yellow")
//  if this seems like too much trouble, then perhaps
//  you should try something simple like ripping off
//  some annoying status bar text scroller. =Þ
//  one last thing. if you overuse this script, i can
//  pretty much gaurantee people will hate your webpage.
//  the fact is, this javascript is memory intensive. if
//  you overdo it, you're crashing some visitors' browsers.
//  ------------------------------------------------------

// lookup table
var tohex = new Array(256);
var hex = "0123456789ABCDEF";
var count = 0;
for (x=0; x<16; x++) {
 for (y=0; y<16; y++) {
 tohex[count] = hex.charAt(x) + hex.charAt(y);
 count++;
 }
}

//ColorCode constructor
function ColorCode(hexcode) {
  if (hexcode.length == 7) {
    this.r = parseInt(hexcode.substring(1,3),16);
    this.g = parseInt(hexcode.substring(3,5),16);
    this.b = parseInt(hexcode.substring(5,7),16);
  }
  else if (hexcode.length == 6) {
    this.r = parseInt(hexcode.substring(0,2),16);
    this.g = parseInt(hexcode.substring(2,4),16);
    this.b = parseInt(hexcode.substring(4,6),16);
  }
  else {
    this.r = this.g = this.b = 0;
    alert("Error: ColorCode constructor failed");
  }
  if (isNaN(this.r)||isNaN(this.g)||isNaN(this.b))
    alert("Error: ColorCode constructor failed");
}

// ColorList constructor
function ColorList(hexcodes) {
  var i = 0;
  var c = 0;
  this.codes = new Array(Math.round(hexcodes.length/7));
  while (i < hexcodes.length) {
    if (isNaN(parseInt(hexcodes.substring(i,i+6),16))) ++i;
    else {
      this.codes[c] = new ColorCode(hexcodes.substring(i,i+6));
      i += 7;
      ++c;
    }
  }
  this.len = c;
}

function interpolate (x1, y1, x3, y3, x2) {
  if (x3 == x1) return y1
  else return (x2-x1)*(y3-y1)/(x3-x1) + y1
}

// x=index of letter, y=number of letters, z=number of colors
function lowcolorindex (x, y, z) {
  if (y == 1) return 0
  else return Math.floor( (x*(z-1))/(y-1) )
}

function hicolorindex (x, y, z, low) { 
  if ( low*(y-1) == x*(z-1) ) return low
  else if (y == 1) return 0
  else return Math.floor( (x*(z-1))/(y-1) + 1 )
}

function gradient (thetext,thecolors) {
  if (((browser == "netscape")||(browser == "msie")||(browser == "opera"))&&(version>=3.0)) {
    var colors = new ColorList(thecolors);
    var numcolors = colors.len;
    var numchars = thetext.length;
    var rr = 0;
    var gg = 0;
    var bb = 0;
    var lci = 0; //lower color index
    var hci = 0; //high color index
    for (i=0; i<numchars; ++i) {
      lci = lowcolorindex(i, numchars, numcolors);
      hci = hicolorindex(i, numchars, numcolors, lci);
      rr = Math.round(interpolate( lci/(numcolors-1), colors.codes[lci].r, hci/(numcolors-1), colors.codes[hci].r, i/(numchars-1)));
      gg = Math.round(interpolate( lci/(numcolors-1), colors.codes[lci].g, hci/(numcolors-1), colors.codes[hci].g, i/(numchars-1)));
      bb = Math.round(interpolate( lci/(numcolors-1), colors.codes[lci].b, hci/(numcolors-1), colors.codes[hci].b, i/(numchars-1)));
      if (browser == "opera") {
        rr = 255 - rr;
        gg = 255 - gg;
        bb = 255 - bb;
      }
        document.write(thetext.charAt(i).fontcolor(tohex[rr]+tohex[gg]+tohex[bb]));
    }
  }
  else document.write(thetext); // unrecognized browser, better not to attempt anything fancy
}



function GoToURL(j) {
  window.status=('Connecting....')
  
var URLis;
 URLis = document.URLframe.Dest.value
  
   if (URLis == "" || URLis.length <= 8)
           { 
     j.value = "Try Again"
      alert('\nOops!\n\nYou must enter a valid URL');
         window.status=('Missing data or Invalid. Try again?.')
           } 
    else
        {
 j.value = "Connecting to: http:\\" + URLis   
 var location=("http://" + URLis);
         this.location.href = location;
window.status=('Connecting to ' + URLis + '  Please wait........');
        }
        }


document.write("<style TYPE='text/css'>");
document.write("<!--");

document.write(' body { ');
   document.write(' scrollbar-base-color: #CCCC99; ');
   document.write(' scrollbar-shadow-color: #D9D9BF; ');
   document.write(' scrollbar-highlight-color: #D9D9BF;  ');
   document.write(' scrollbar-3dlight-color: #CCCC99;  ');
   document.write(' scrollbar-darkshadow-color: #D9D9BF; ');
   document.write(' scrollbar-track-color: #D9D9BF;  ');
   document.write(' scrollbar-arrow-color: #D9D9BF; ');
document.write(' } ');

 document.write("-->");
 document.write("</style>");


//http://www.thescripts.com/forum/thread169703.html
var holiday = [
[ "1211", "1226", "http://www.hellasmultimedia.com/webimages/christ-htm/images/misc/stocking2.gif" ],
[ "1227", "1231", "http://www.hellasmultimedia.com/webimages/newyear/images/ny-005.gif" ],
[ "0101", "0102", "http://www.hellasmultimedia.com/webimages/newyear/images/ny-005.gif" ],
[ "0122", "0130", "http://qgntdc.com/images/ejan_lunar.gif" ]
];

function disable(){return false}

function setImgByDate(imgRef,dateList) {
imgRef.onload = disable;
var today = new Date();
var month = 1+today.getMonth();
if (month<10) month = "0"+month;
var date = today.getDate();
if (date<10) date = "0"+date;
var MMDD = ""+month+date;
for (var i=0; i<dateList.length; i++) {
if (MMDD>=dateList[i][0] && MMDD<=dateList[i][1]) {
imgRef.src = dateList[i][2];
return;
}
}
}


vCal = new Date();
vMth = vCal.getMonth();
vDay = vCal.getDate();

function datePlayer() {
// January
if ((vMth == 0) && (vDay == 1) || (vDay == 2)) 
	return("http://akaz.com/media/player_ny.htm");
//if ((vMth == 0) && (vDay == 22) || (vDay == 23) || (vDay == 24) || (vDay == 25) || (vDay == 26) || (vDay == 27) || (vDay == 28) || (vDay == 29) || (vDay == 30) || (vDay == 31)) 
//	return("http://akaz.com/media/player_lunar.htm");
// February
//if ((vMth == 1) && (vDay == 1) || (vDay == 2)) 
//	return("http://akaz.com/media/player_lunar.htm");
// December
if ((vMth == 11) && (vDay == 15) || (vDay == 16) || (vDay == 17) || (vDay == 18) || (vDay == 19) || (vDay == 20) || (vDay == 21) || (vDay == 22) || (vDay == 23) || (vDay == 24) || (vDay == 25) || (vDay == 26)) 
	return("http://akaz.com/media/player_xmas.htm");
if ((vMth == 11) && (vDay == 27) || (vDay == 28) || (vDay == 29) || (vDay == 30) || (vDay == 31)) 
	return("http://akaz.com/media/player_eve.htm");

return("http://akaz.com/media/player.htm");
}



/*
//bg_fx
//Autumn leaves- by Kurt Grigg (kurt.grigg@virgin.net)
//Modified by Dynamic Drive for NS6 functionality
//visit http://www.dynamicdrive.com for this script

//Pre-load your image below!
grphcs=new Array(6)
Image0=new Image();
Image0.src=grphcs[0]="http://akaz.com/images/snowflake.gif";
Image1=new Image();
Image1.src=grphcs[1]="http://akaz.com/images/snowflake2.gif"
Image2=new Image();
Image2.src=grphcs[2]="http://akaz.com/images/snowflake.gif"
Image3=new Image();
Image3.src=grphcs[3]="http://akaz.com/images/snowflake2.gif"
Image4=new Image();
Image4.src=grphcs[4]="http://akaz.com/images/snowflake.gif"
Image5=new Image();
Image5.src=grphcs[5]="http://akaz.com/images/snowflake2.gif"


Amount=8; //Smoothness depends on image file size, the smaller the size the more you can use!
Ypos=new Array();
Xpos=new Array();
Speed=new Array();
Step=new Array();
Cstep=new Array();
ns=(document.layers)?1:0;
ns6=(document.getElementById&&!document.all)?1:0;

if (ns){
for (i = 0; i < Amount; i++){
var P=Math.floor(Math.random()*grphcs.length);
rndPic=grphcs[P];
document.write("<LAYER NAME='sn"+i+"' LEFT=0 TOP=0><img src="+rndPic+"></LAYER>");
}
}
else{
document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i = 0; i < Amount; i++){
var P=Math.floor(Math.random()*grphcs.length);
rndPic=grphcs[P];
document.write('<img id="si'+i+'" src="'+rndPic+'" style="position:absolute;top:0px;left:0px">');
}
document.write('</div></div>');
}
WinHeight=(ns||ns6)?window.innerHeight:window.document.body.clientHeight;
WinWidth=(ns||ns6)?window.innerWidth-70:window.document.body.clientWidth;
for (i=0; i < Amount; i++){                                                                
 Ypos[i] = Math.round(Math.random()*WinHeight);
 Xpos[i] = Math.round(Math.random()*WinWidth);
 Speed[i]= Math.random()*5+3;
 Cstep[i]=0;
 Step[i]=Math.random()*0.1+0.05;
}
function fall(){
var WinHeight=(ns||ns6)?window.innerHeight:window.document.body.clientHeight;
var WinWidth=(ns||ns6)?window.innerWidth-70:window.document.body.clientWidth;
var hscrll=(ns||ns6)?window.pageYOffset:document.body.scrollTop;
var wscrll=(ns||ns6)?window.pageXOffset:document.body.scrollLeft;
for (i=0; i < Amount; i++){
sy = Speed[i]*Math.sin(90*Math.PI/180);
sx = Speed[i]*Math.cos(Cstep[i]);
Ypos[i]+=sy;
Xpos[i]+=sx; 
if (Ypos[i] > WinHeight){
Ypos[i]=-60;
Xpos[i]=Math.round(Math.random()*WinWidth);
Speed[i]=Math.random()*5+3;
}
if (ns){
document.layers['sn'+i].left=Xpos[i];
document.layers['sn'+i].top=Ypos[i]+hscrll;
}
else if (ns6){
document.getElementById("si"+i).style.left=Math.min(WinWidth,Xpos[i]);
document.getElementById("si"+i).style.top=Ypos[i]+hscrll;
}
else{
eval("document.all.si"+i).style.left=Xpos[i];
eval("document.all.si"+i).style.top=Ypos[i]+hscrll;
} 
Cstep[i]+=Step[i];
}
setTimeout('fall()',20);
}

window.onload=fall
//-->
*/


// Fireworks Effect Javascript
// copyright 3rd April 2005, by Stephen Chapman http://javascript.about.com
// permission to use this Javascript on your web page is granted
// provided that all of the code in this script (including these
// comments) is used without any alteration

/*
var stdDOM = document.getElementById; var nsDOM = ((navigator.appName.indexOf('Netscape') != -1) && (parseInt(navigator.appVersion) ==4)); function pageWidth() {return window.innerWidth != null? window.innerWidth: document.body != null? document.body.clientWidth:null;} function pageHeight() {return window.innerHeight != null? window.innerHeight: document.body != null? document.body.clientHeight:null;}function posLeft() {return typeof window.pageXOffset != 'undefined' ? window.pageXOffset:document.documentElement.scrollLeft? document.documentElement.scrollLeft:document.body.scrollLeft? document.body.scrollLeft:0;} function posTop() {return typeof window.pageYOffset != 'undefined' ? window.pageYOffset:document.documentElement.scrollTop? document.documentElement.scrollTop: document.body.scrollTop?document.body.scrollTop:0;} var hD="0123456789ABCDEF"; function d2h(d) {return hD.substr(d>>4,1)+hD.substr(d&15,1);} layernum=0; piece = function(parent) {this.elem = null; if(nsDOM) {if(parent == null) this.elem=new Layer(1); else {this.elem=new Layer(1,parent.elem); this.style.visibility = "inherit";} this.parent = parent; this.style = this.elem;} else if (stdDOM) {if(parent == null) this.parent=document.body; else this.parent=parent.elem; this.elem = document.createElement('div'); var xName = "xLayer" + layernum++; this.elem.setAttribute('id', xName); elemc = document.createTextNode('.'); this.elem.appendChild(elemc); this.parent.appendChild(this.elem); this.style = this.elem.style;document.getElementById(xName).style.position = 'absolute';} window[this.elem.id]=this; this.ay = .1; this.type = 0;}; piece.prototype.moveTo = function(x,y) {if(nsDOM) this.elem.moveTo(x,y); else {this.style.left = x+"px"; this.style.top = y+"px";}}; piece.prototype.setC = function(colour) {if(nsDOM) this.elem.bgColor = colour; else this.style.backgroundColor = colour==null?'transparent':colour; };  piece.prototype.fire = function(sx, sy, fw) {var a = Math.random() * Math.PI * 2; switch (fw) {case 1: var s = Math.random() * 2; break; case 2: var s = 2; break; case 3: var s = (Math.PI * 2) - a - Math.random(); break; case 4: var s =  a - Math.random(); break; default: var s = Math.random() * 2; if(Math.random() >.6) s = 1.5;} this.dx = s*Math.sin(a); this.dy = s*Math.cos(a) - 2; this.x = sx; this.y = sy; this.moveTo(sx, sy);}; piece.prototype.sCol = function(hex,hex2,cl) {switch (cl) {case 1: this.setC("#" + hex + hex2 + "00"); break; case 2: this.setC("#00" + hex + "00"); break; case 3: this.setC("#00" + hex + hex2); break; case 4: this.setC("#" + hex + "0000"); break; case 5: this.setC("#" + hex + hex + "00"); break; case 6: this.setC("#" + hex + hex + hex); break; case 7: this.setC("#" + hex2 + hex + "00"); break; default: this.setC("#" + hex + hex2 + hex);}}; piece.prototype.animate = function(step,cl) {var colour = (step > 25) ?  Math.random()*(380-(step*5)) : 255-(step*4); var hex = d2h(colour-128); if (colour < 32) hex = d2h(colour+32); this.sCol(d2h(colour),hex,cl); this.dy += this.ay; this.x += this.dx; this.y += this.dy; this.moveTo(this.x, this.y);}; fo = function(numst) {this.id = "fo"+fo.count++;this.sp = new Array(); for(i=0 ; i<numst; i++) {this.sp[i]=new piece(); if(nsDOM){this.sp[i].style.clip.top =0; this.sp[i].style.clip.left = 0; this.sp[i].style.clip.bottom = 3; this.sp[i].style.clip.right = 3;} else this.sp[i].style.clip="rect("+0+" "+3+" "+3+" "+0+")"; this.sp[i].style.visibility = "visible";} this.step = 0; window[this.id]=this; setInterval("window."+this.id+".animate()", 15);}; fo.count = 0; fo.prototype.animate = function() {if(this.step > 55) this.step = 0; if(this.step == 0) {var x = posLeft() + 50 + (Math.random()*(pageWidth() - 200)); var y = posTop() + 50 + (Math.random()*(pageHeight() - 250)); var fw = Math.floor(Math.random() * 5); this.cl = Math.floor(Math.random() * 8); for(i=0 ; i<this.sp.length ; i++)this.sp[i].fire(x, y, fw);} this.step++; for(i=0 ; i<this.sp.length ; i++) this.sp[i].animate(this.step,this.cl);}; function fireworks() {new fo(50);setTimeout('new fo(50)',750);} window.onload=fireworks;
*/


document.write(' <style>			     ');
document.write(' <!--				     ');
document.write(' .drag{position:relative;cursor:hand ');
document.write(' }				     ');
document.write(' #scontentmain{			     ');
document.write(' position:absolute;		     ');
document.write(' width:150px;			     ');
document.write(' }				     ');
document.write(' #scontentbar{			     ');
document.write(' cursor:hand;			     ');
document.write(' position:absolute;		     ');
document.write(' background-color:white;	     ');
document.write(' height:15;			     ');
document.write(' width:100%;			     ');
document.write(' top:0;				     ');
document.write(' }				     ');
document.write(' #scontentsub{			     ');
document.write(' position:absolute;		     ');
document.write(' width:100%;			     ');
document.write(' top:15;			     ');
document.write(' background-color:snow;	     ');
document.write(' border:1px dotted green;	     ');
document.write(' padding:1px;			     ');
document.write(' }				     ');
document.write(' -->				     ');
document.write(' </style>			     ');



<!--
//Drag and drop engine for static content
//© Dynamic Drive (www.dynamicdrive.com)

var dragapproved=false
var zcor,xcor,ycor

function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function movescontentmain(){
if (event.button==1&&dragapproved){
zcor.style.pixelLeft=tempvar1+event.clientX-xcor
zcor.style.pixelTop=tempvar2+event.clientY-ycor
leftpos=document.all.scontentmain.style.pixelLeft-ietruebody().scrollLeft
toppos=document.all.scontentmain.style.pixelTop-ietruebody().scrollTop
return false
}
}
function dragscontentmain(){
if (!document.all)
return
if (event.srcElement.id=="scontentbar"){
dragapproved=true
zcor=scontentmain
tempvar1=zcor.style.pixelLeft
tempvar2=zcor.style.pixelTop
xcor=event.clientX
ycor=event.clientY
document.onmousemove=movescontentmain
}
}
document.onmousedown=dragscontentmain
document.onmouseup=new Function("dragapproved=false")
//-->
