if (document.images) {
	
	
//Main Navigation//	
	homeup       = new Image();
    homeup.src   = "images/home_a.jpg" ;
    homedown     = new Image() ;
    homedown.src = "images/home_b.jpg" ;
	
    aboutusup       = new Image();
    aboutusup.src   = "images/abtus_a.gif" ;
    aboutusdown     = new Image() ;
    aboutusdown.src = "images/abtus_b.gif" ;

    ourservicesup       = new Image();
    ourservicesup.src   = "images/ourservices_a.gif" ;
    ourservicesdown     = new Image() ;
    ourservicesdown.src = "images/ourservices_b.gif" ;
	
	ourclientsup       = new Image();
    ourclientsup.src   = "images/ourclients_a.gif" ;
    ourclientsdown     = new Image() ;
    ourclientsdown.src = "images/ourclients_b.gif" ;
	
	jobopportunitiesup       = new Image();
    jobopportunitiesup.src   = "images/jobopp_a.gif" ;
    jobopportunitiesdown     = new Image() ;
    jobopportunitiesdown.src = "images/jobopp_b.gif" ;	
	
	joinusup       = new Image();
    joinusup.src   = "images/joinus_a.gif" ;
    joinusdown     = new Image() ;
    joinusdown.src = "images/joinus_b.gif" ;	
	
	contactusup       = new Image();
    contactusup.src   = "images/contactus_a.gif" ;
    contactusdown     = new Image() ;
    contactusdown.src = "images/contactus_b.gif" ;	
	
/////////////////////////////////////////////////////

//Regional Offices//	
	sgup       = new Image();
    sgup.src   = "images/regoff_sg_a.gif" ;
    sgdown     = new Image() ;
    sgdown.src = "images/regoff_sg_b.gif" ;
	
	myup       = new Image();
    myup.src   = "images/regoff_my_a.gif" ;
    mydown     = new Image() ;
    mydown.src = "images/regoff_my_b.gif" ;	

	twup       = new Image();
    twup.src   = "images/regoff_tw_a.gif" ;
    twdown     = new Image() ;
    twdown.src = "images/regoff_tw_b.gif" ;	

	hkup       = new Image();
    hkup.src   = "images/regoff_hk_a.gif" ;
    hkdown     = new Image() ;
    hkdown.src = "images/regoff_hk_b.gif" ;	

	ausup       = new Image();
    ausup.src   = "images/regoff_aus_a.gif" ;
    ausdown     = new Image() ;
    ausdown.src = "images/regoff_aus_b.gif" ;	


//taiwan language//	
	engup       = new Image();
    engup.src   = "images/eng_a.gif" ;
    engdown     = new Image() ;
    engdown.src = "images/eng_b.gif" ;
	
	japup       = new Image();
    japup.src   = "images/jap_a.gif" ;
    japdown     = new Image() ;
    japdown.src = "images/jap_b.gif" ;	
	
	chiup       = new Image();
    chiup.src   = "images/chi_a.gif" ;
    chidown     = new Image() ;
    chidown.src = "images/chi_b.gif" ;	
	
	}
	


function buttondown( buttonname )
{
    if (document.images) {
      document[ buttonname ].src = eval( buttonname + "down.src" );
    }
}
function buttonup ( buttonname )
{
    if (document.images) {
      document[ buttonname ].src = eval( buttonname + "up.src" );
    }
}

function news(TheLink) {
        window.open(TheLink,"","width=710,height=550,menubar=0,scrollbars=yes,resizable=no,left=100,top=125");
}

function newbrowser(TheLink) {
        window.open(TheLink,"","width=800,height=600,menubar=1,scrollbars=yes,resizable=yes,left=100,top=125");
}

function openwin(TheLink) {
        window.open(TheLink,"","width=710,height=600,menubar=0,scrollbars=yes,resizable=no,left=100,top=125");
}

function game(TheLink) {
        window.open(TheLink,"","width=520,height=405,menubar=0,scrollbars=no,resizable=no,left=100,top=125");
}

function uploadresume(TheLink) {
        window.open(TheLink,"","width=615,height=580,menubar=0,scrollbars=yes,resizable=no,left=100,top=125");
}






/***********************************************
* Highlight Table Cells Script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
***********************************************/

//Specify highlight behavior. "TD" to highlight table cells, "TR" to highlight the entire row:
var highlightbehavior="TD"

var ns6=document.getElementById&&!document.all
var ie=document.all

function changeto(e,highlightcolor){
source=ie? event.srcElement : e.target
if (source.tagName=="TABLE")
return
while(source.tagName!=highlightbehavior && source.tagName!="HTML")
source=ns6? source.parentNode : source.parentElement
if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore")
source.style.backgroundColor=highlightcolor
}

function contains_ns6(master, slave) { //check if slave is contained by master
while (slave.parentNode)
if ((slave = slave.parentNode) == master)
return true;
return false;
}

function changeback(e,originalcolor){
if (ie&&(event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="ignore")||source.tagName=="TABLE")
return
else if (ns6&&(contains_ns6(source, e.relatedTarget)||source.id=="ignore"))
return
if (ie&&event.toElement!=source||ns6&&e.relatedTarget!=source)
source.style.backgroundColor=originalcolor
}

var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=yes,directories=yes,status=yes,menubar=yes,toolbar=yes,resizable=yes';
win=window.open(mypage,myname,settings);}


/////////////////////////////////
///pop it menu//
////////////////////////////////
/***********************************************
* Pop-it menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var defaultMenuWidth="150px" //set default menu width.

var linkset=new Array()
//SPECIFY MENU SETS AND THEIR LINKS. FOLLOW SYNTAX LAID OUT

linkset[0]='<a href="index.aspx">English</a>'
linkset[0]+='<hr>' //Optional Separator
linkset[0]+='<a href="http://www.javascriptkit.com">JavaScript Kit</a>'
linkset[0]+='<a href="http://www.codingforums.com">Coding Forums</a>'
linkset[0]+='<a href="http://www.cssdrive.com">CSS Drive</a>'
linkset[0]+='<a href="http://freewarejava.com">Freewarejava</a>'


////No need to edit beyond here

var ie5=document.all && !window.opera
var ns6=document.getElementById

if (ie5||ns6)
document.write('<div id="popitmenu" onMouseover="clearhidemenu();" onMouseout="dynamichide(event)"></div>')

function iecompattest(){
return (document.compatMode && document.compatMode.indexOf("CSS")!=-1)? document.documentElement : document.body
}

function showmenu(e, which, optWidth){
if (!document.all&&!document.getElementById)
return
clearhidemenu()
menuobj=ie5? document.all.popitmenu : document.getElementById("popitmenu")
menuobj.innerHTML=which
menuobj.style.width=(typeof optWidth!="undefined")? optWidth : defaultMenuWidth
menuobj.contentwidth=menuobj.offsetWidth
menuobj.contentheight=menuobj.offsetHeight
eventX=ie5? event.clientX : e.clientX
eventY=ie5? event.clientY : e.clientY
//Find out how close the mouse is to the corner of the window
var rightedge=ie5? iecompattest().clientWidth-eventX : window.innerWidth-eventX
var bottomedge=ie5? iecompattest().clientHeight-eventY : window.innerHeight-eventY
//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<menuobj.contentwidth)
//move the horizontal position of the menu to the left by it's width
menuobj.style.left=ie5? iecompattest().scrollLeft+eventX-menuobj.contentwidth+"px" : window.pageXOffset+eventX-menuobj.contentwidth+"px"
else
//position the horizontal position of the menu where the mouse was clicked
menuobj.style.left=ie5? iecompattest().scrollLeft+eventX+"px" : window.pageXOffset+eventX+"px"
//same concept with the vertical position
if (bottomedge<menuobj.contentheight)
menuobj.style.top=ie5? iecompattest().scrollTop+eventY-menuobj.contentheight+"px" : window.pageYOffset+eventY-menuobj.contentheight+"px"
else
menuobj.style.top=ie5? iecompattest().scrollTop+event.clientY+"px" : window.pageYOffset+eventY+"px"
menuobj.style.visibility="visible"
return false
}

function contains_ns6(a, b) {
//Determines if 1 element in contained in another- by Brainjar.com
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function hidemenu(){
if (window.menuobj)
menuobj.style.visibility="hidden"
}

function dynamichide(e){
if (ie5&&!menuobj.contains(e.toElement))
hidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
hidemenu()
}

function delayhidemenu(){
delayhide=setTimeout("hidemenu()",500)
}

function clearhidemenu(){
if (window.delayhide)
clearTimeout(delayhide)
}

if (ie5||ns6)
document.onclick=hidemenu

