// checkW3C DOM, then MSIE 4, then NN 4. 
// 
function getObject(objectId) { 
	if(document.getElementById && document.getElementById(objectId)) { 
		return document.getElementById(objectId); 
	} 
	else if (document.all && document.all(objectId)) { 
		return document.all(objectId); 
	} 
	else if (document.layers && document.layers[objectId]) { 
		return document.layers[objectId]; 
	} else { 
		return false; 
	} 
}

// quick menu floating
	self.onError=null;
	currentX = currentY = 0;  
	whichIt = null;           
	lastScrollX = 0; lastScrollY = 0;
	NS = (document.layers) ? 1 : 0;
	IE = (document.getElementById) ? 1: 0;
	<!-- STALKER CODE -->
	function heartBeat() {
		if(IE) { 
			  diffY = document.documentElement.scrollTop;
 			  diffX = 0; 
		       }
	    if(NS) { diffY = self.pageYOffset; diffX = self.pageXOffset; }
		if(diffY != lastScrollY) {
	                percent = .1 * (diffY - lastScrollY);
	                if(percent > 0) percent = Math.ceil(percent);
	                else percent = Math.floor(percent);
			if(IE) document.getElementById("quickNav").style.pixelTop += percent;
			if(NS) document.quickNav.top += percent; 
	                lastScrollY = lastScrollY + percent;
	    }
		if(diffX != lastScrollX) {
			percent = .1 * (diffX - lastScrollX);
			if(percent > 0) percent = Math.ceil(percent);
			else percent = Math.floor(percent);
			if(IE) document.getElementById("quickNav").style.pixelLeft += percent;
			if(NS) document.quickNav.top += percent;
			lastScrollY = lastScrollY + percent;
		}	
	}	
	if(NS || IE) action = window.setInterval("heartBeat()",1);

// online enrolment
function resizeIFrame() 
{ 
    var iframeWin = document.frames['CLUB_BODY']; 
    var scrollbarWidth = 4; 
    var iframeWinBody = iframeWin.document.body; 
    var diffHeight = iframeWinBody.scrollHeight - document.all.CLUB_BODY.style.pixelHeight; 

    document.all.CLUB_BODY.style.pixelHeight  = document.all.CLUB_BODY.style.pixelHeight + diffHeight + scrollbarWidth; 
} 

// swap images 
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->

function embededFlash(i,s,w,h,b) {
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0 width='+w+' height='+h+' id='+i+' align=middle>');
	document.write('<param name=allowScriptAccess value=always />');
	document.write('<param name=movie value='+s+' />');
	document.write('<param name=quality value=best />');
	document.write('<param name=bgColor value='+b+' />');
	document.write('<param name=wmode value=transparent />');
	document.write('<param name=scale value=noscale />');	
	document.write('<param name=salign value=L />');
	document.write('<embed src='+s+' quality=best bgcolor='+b+' width='+w+' height='+h+' name='+i+' wmode=transparent scale=noscale salign=L align=middle allowScriptAccess=always type=application/x-shockwave-flash pluginspage=http://www.macromedia.com/go/getflashplayer />');
	document.write('</object>');
}





//¸Þ´º ¸µÅ©°ª

function sitemap() {
	location.href= "../main/sitemap.html";
}
function gohome() {
	location.href= "http://www.siec.com.au";
}
function quick1() {
	location.href= "../bbs/board.php?bo_table=photo";
}
function quick2() {
	location.href= "../contactUs/01.html";
}
function quick3() {
	location.href= "../contactUs/03.php";
}


function m1() {
	location.href= "../aboutSiec/01.html";
}
function m2() {
	location.href= "../whySiec/01.html";
}
function m3() {
	location.href= "../courses/01.html";
}
function m4() {
	location.href= "../enrolment/01.html";
}
function m5() {
	location.href= "../community/01.html";
}
function m6() {
	location.href= "../contactUs/01.html";
}


function s11() {
	location.href= "../aboutSiec/01.html";
}
function s12() {
	location.href= "../aboutSiec/02.html";
}
function s13() {
	location.href= "../aboutSiec/03.html";
}
function s14() {
	location.href= "../bbs/board.php?bo_table=Staff";
}

function s21() {
	location.href= "../whySiec/01.html";
}
function s22() {
	location.href= "../whySiec/02.php";
}
function s23() {
	location.href= "../whySiec/03.php";
}
function s24() {
	location.href= "../whySiec/04.php";
}
function s25() {
	location.href= "../whySiec/05.html";
}

function s31() {
	location.href= "../courses/01.html";
}
function s32() {
	location.href= "../courses/02.html";
}
function s33() {
	location.href= "../courses/03.html";
}
function s34() {
	location.href= "../courses/04.html";
}
function s35() {
	location.href= "../courses/05.html";
}
function s36() {
	location.href= "../courses/06.html";
}
function s37() {
	location.href= "../courses/07.html";
}
// Ãß°¡µÈ ¸Þ´º
function s38() {
	location.href= "../courses/08.html";
}

function s41() {
	location.href= "../enrolment/01.html";
}
function s42() {
	location.href= "../enrolment/02.html";
}
function s43() {
	location.href= "../enrolment/03.html";
}
function s44() {
	window.open('../enrolment/04.php');
}
function s45() {
	location.href= "../enrolment/05.html";
}
// Ãß°¡µÈ¸Þ´º
function s46() {
	location.href= "../enrolment/06.html";
}

function s51() {
	location.href= "../bbs/board.php?bo_table=news";
}
function s52() {
	location.href= "../bbs/board.php?bo_table=photo";
}
function s53() {
	location.href= "../community/03.html";
}
function s54() {
	location.href= "../community/04.html";
}

function s61() {
	location.href= "../contactUs/01.html";
}
function s62() {
	location.href= "../contactUs/02.html";
}
function s63() {
	location.href= "../contactUs/03.php";
}






















