// JavaScript Document

<!-- //
//check if browser is capable, NS3+, IE4+

if (document.images) {

//preload images
//base image

imgEngN= new Array();
imgEngN[0]= 'images/sidemnu_about.jpg';
imgEngN[1]= 'images/sidemnu_product.jpg';
imgEngN[2]= 'images/sidemnu_partners.jpg';
imgEngN[3]= 'images/sidemnu_faq.jpg';
imgEngN[4]= 'images/sidemnu_contact.jpg';
imgEngN[5]= 'images/sidemnu_about_gildan.jpg';

//hover or rollover image

imgEngH= new Array();
imgEngH[0]= 'images/sidemnu_about_hover.jpg';
imgEngH[1]= 'images/sidemnu_product_hover.jpg';
imgEngH[2]= 'images/sidemnu_partners_hover.jpg';
imgEngH[3]= 'images/sidemnu_faq_hover.jpg';
imgEngH[4]= 'images/sidemnu_contact_hover.jpg';
imgEngH[5]= 'images/sidemnu_about_gildan_hover.jpg';

function myOn(myI,myPath,myImgName) {
//we need to name the image in the BODY
//so we can use its name here
	document[myImgName].src = myPath + imgEngH[myI];
//	document.getElementById(myImgName).src=eval(myImgName+ 'H' ).src;
}

function myOut(myI,myPath,myImgName) {
	document[myImgName].src = myPath + imgEngN[myI];
//	document.getElementById(myImgName).src=myPath + imgEngN[myI];
//	document.getElementById(myImgName).src=eval(myImgName+ 'N' ).src;
}

} //end of if document.images
//-->


function changeDivImage_o(URLPath) 
{ 
    document.getElementById("LayerTshirt").style.backgroundImage = "url(" + URLPath + ")"; 
} 

function changeDivImage(URLPath, txtImage) 
{ 
document.ImageTshirt.src=URLPath;
document.ImageTshirt.alt=txtImage;
document.getElementById("ImageText").innerHTML = "Color : " + txtImage;
} 

<!-- Idea by:  Nic Wolfe -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=700,height=350,left = 540,top = 325');");
}
// End -->

<!--
//Top Manu
function TopManuEng()
{
stm_bm(["menu62c3",730,"","/resource/img/blank.gif",0,"","",0,0,250,0,1000,1,0,0,"","",0,0,1,2,"default","hand",""],this);
stm_bp("p0",[0,4,0,0,0,0,0,0,100,"",-2,"",-2,50,0,0,"#999999","#FFFFFF","",3,0,0,"#000000"]);
stm_ai("p0i0",[2,"","/en/images/btn_home.jpg","/en/images/btn_home_hover.jpg",122,29,0,"/","_self","","","","",0,0,0,"","",0,0,0,0,1,"#FFFFFF",0,"#FFFFFF",0,"","",3,3,0,0,"#FFFFF7","#000000","#000000","#000000","8pt Verdana","8pt Verdana",0,0]);
stm_aix("p0i1","p0i0",[2,"","/en/images/btn_product.jpg","/en/images/btn_product_hover.jpg",110,29,0,"/en/product.asp","_self","","","","",0,0,0,"","",0,0,0,0,1,"#FFFFF7",0,"#B5BED6"]);
stm_aix("p0i2","p0i1",[2,"","/en/images/btn_partners.jpg","/en/images/btn_partners_hover.jpg",110,29,0,"/en/partners.asp"]);
stm_aix("p0i3","p0i1",[2,"","/en/images/btn_faq.jpg","/en/images/btn_faq_hover.jpg",110,29,0,"/en/FAQ.asp"]);
stm_aix("p0i4","p0i1",[2,"","/en/images/btn_contact.jpg","/en/images/btn_contact_hover.jpg",110,29,0,"/en/contact_us.asp"]);
stm_ep();
stm_em();
}

function TopManuZH()
{
stm_bm(["menu62c3",730,"","/resource/img/blank.gif",0,"","",0,0,250,0,1000,1,0,0,"","",0,0,1,2,"default","hand",""],this);
stm_bp("p0",[0,4,0,0,0,0,0,0,100,"",-2,"",-2,50,0,0,"#999999","#FFFFFF","",3,0,0,"#000000"]);
stm_ai("p0i0",[2,"","/zh/images/btn_home.jpg","/zh/images/btn_home_hover.jpg",122,29,0,"/index_zh.asp","_self","","","","",0,0,0,"","",0,0,0,0,1,"#FFFFFF",0,"#FFFFFF",0,"","",3,3,0,0,"#FFFFF7","#000000","#000000","#000000","8pt Verdana","8pt Verdana",0,0]);
stm_aix("p0i1","p0i0",[2,"","/zh/images/btn_product.jpg","/zh/images/btn_product_hover.jpg",110,29,0,"/zh/product.asp","_self","","","","",0,0,0,"","",0,0,0,0,1,"#FFFFF7",0,"#B5BED6"]);
stm_aix("p0i2","p0i1",[2,"","/zh/images/btn_partners.jpg","/zh/images/btn_partners_hover.jpg",110,29,0,"/zh/partners.asp"]);
stm_aix("p0i3","p0i1",[2,"","/zh/images/btn_faq.jpg","/zh/images/btn_faq_hover.jpg",110,29,0,"/zh/FAQ.asp"]);
stm_aix("p0i4","p0i1",[2,"","/zh/images/btn_contact.jpg","/zh/images/btn_contact_hover.jpg",110,29,0,"/zh/contact_us.asp"]);
stm_ep();
stm_em();
}
// starting from 20090404
// Google Analytics 
//

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

try {
var pageTracker = _gat._getTracker("UA-8268317-1");
pageTracker._trackPageview();
} catch(err) {}


//Yahoo! Hong Kong Limited
window.ysm_customData = new Object();
window.ysm_customData.conversion = "transId=,currency=,amount=";
var ysm_accountid  = "1R2E83IVP865BNMDFSUNR37EQ1O";
document.write("<SCR" + "IPT language='JavaScript' type='text/javascript' " 
+ "SRC=//" + "srv3.wa.marketingsolutions.yahoo.com" + "/script/ScriptServlet" + "?aid=" + ysm_accountid 
+ "></SCR" + "IPT>");

//-->


