/*Browsercheck object*/
function cm_bwcheck(){
this.ver=navigator.appVersion
this.agent=navigator.userAgent.toLowerCase()
this.dom=document.getElementById?1:0
this.op5=(this.agent.indexOf("opera 5")>-1 || this.agent.indexOf("opera/5")>-1) && window.opera
this.op6=(this.agent.indexOf("opera 6")>-1 || this.agent.indexOf("opera/6")>-1) && window.opera
this.ie5 = (this.agent.indexOf("msie 5")>-1 && !this.op5 && !this.op6)
this.ie55 = (this.ie5 && this.agent.indexOf("msie 5.5")>-1)
this.ie6 = (this.agent.indexOf("msie 6")>-1 && !this.op5 && !this.op6)
this.ie4=(this.agent.indexOf("msie")>-1 && document.all &&!this.op5 &&!this.op6 &&!this.ie5&&!this.ie6)
this.ie = (this.ie4 || this.ie5 || this.ie6)
this.mac=(this.agent.indexOf("mac")>-1)
this.ns6=(this.agent.indexOf("gecko")>-1 || window.sidebar)
this.ns4=(!this.dom && document.layers)?1:0;
this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.op5 || this.op6)
this.usedom= this.ns6//Use dom creation
this.reuse = this.ie||this.usedom //Reuse layers
this.px=this.dom&&!this.op5?"px":""
return this
}
/**Capturing resize**/
var cm_inresize=0
function cm_resized(){
if(cm_inresize) return
page2=new cm_page(); var off=(bw.op6||bw.op5)?20:5
if(page2.x2<cmpage.x2-off || page2.y2<cmpage.orgy-off || page2.x2>cmpage.x2+off || page2.y2>cmpage.orgy+off){
if(bw.ie||bw.ns6||bw.op7||bw.ns4){
cmpage=page2; this.isresized=1;
if(this.onresize) eval(this.onresize); this.construct(1);
if(this.onafterresize) eval(this.onafterresize);
}else{cm_inresize=1; location.reload()}
}
// adding the normal content resize
setContentSize();}
/* displays the menu */
function DisplayMenu(fromTop)
{
if(fromTop == 'undefined' || fromTop == 'default' || fromTop == null) { fromTop = 1000; }
var bw=new cm_bwcheck()
//Menu object creation
oCMenu=new makeCM("oCMenu") 
//Making the menu object. Argument: menuname
if(bw.ns4) if(!oCMenu["makeMenu"] || !bw["ns4"]) self.location.reload()
//Frame properties
oCMenu.frames = 0
oCMenu.frameStartLevel = 2
//Menu properties
oCMenu.pxBetween=0
oCMenu.fromLeft=0
oCMenu.fromTop=167
oCMenu.rows=1
oCMenu.menuPlacement="left"
oCMenu.offlineRoot="file:///C|/"
oCMenu.onlineRoot="/"
oCMenu.resizeCheck=1
oCMenu.wait=10
oCMenu.fillImg="cm_fill.gif"
oCMenu.zIndex=2
//Background bar properties
//oCMenu.useBar=0
//oCMenu.barWidth="100%"
//oCMenu.barHeight="menu"
//oCMenu.barClass="clBar"
//oCMenu.barX=510
//oCMenu.barY=10
//oCMenu.barBorderX=0
//oCMenu.barBorderY=0
//oCMenu.barBorderClass=""
//Level properties - ALL properties have to be spesified in level 0
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
oCMenu.level[0].width=110
oCMenu.level[0].height=26
oCMenu.level[0].regClass="clLevel0"
oCMenu.level[0].overClass="clLevel0over"
oCMenu.level[0].borderX=0
oCMenu.level[0].borderY=0
oCMenu.level[0].borderClass="clLevel0border"
oCMenu.level[0].offsetX=0
oCMenu.level[0].offsetY=0
oCMenu.level[0].rows=0
oCMenu.level[0].arrow=0
oCMenu.level[0].arrowWidth=0
oCMenu.level[0].arrowHeight=0
oCMenu.level[0].align="bottom"
//dynamic effect (controllable for each level)
oCMenu.level[0].clippx=2
oCMenu.level[0].cliptim=2
//EXAMPLE SUB LEVEL[1] PROPERTIES - You have to specify the properties you want different from LEVEL[0] - If you want all items to look the same just remove this
oCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu.level[1].width=oCMenu.level[0].width-2
oCMenu.level[1].height=15
oCMenu.level[1].regClass="clLevel1"
oCMenu.level[1].overClass="clLevel1over"
oCMenu.level[1].borderX=0
oCMenu.level[1].rows=0
oCMenu.level[1].borderY=0
oCMenu.level[1].align="left"
oCMenu.level[1].offsetX=0
oCMenu.level[1].offsetY=0
oCMenu.level[1].borderClass="clLevel1border"
//dynamic effect
oCMenu.level[1].clippx=2
oCMenu.level[1].cliptim=2
oCMenu.makeMenu('top0','0','Home','http://joychinatravel.com/','_top',60);




oCMenu.makeMenu('top1','0','About us','','_top',70);
oCMenu.makeMenu('1570','top1','Who are we?','http://joychinatravel.com/Who-are-we/','_top',138);
oCMenu.makeMenu('1788','top1','Customer Feedback','http://joychinatravel.com/Customer-Feedback/','_top',138);
oCMenu.makeMenu('1798','top1','Responsible-Tourism','http://joychinatravel.com/Responsible-Tourism/','_top',148);



oCMenu.makeMenu('top2','0','Choose your trip','','_top',115);
oCMenu.makeMenu('1045','top2','Adventurous Independent Travel','http://joychinatravel.com/Tour/Adventurous-Independent-Travel/','_top',196);
oCMenu.makeMenu('1072','top2','Travel With Just Right Support','http://joychinatravel.com/Tour/Adventurous-Independent-Travel-With-Just-Right-Support/','_top',156);
oCMenu.makeMenu('1064','top2','All Enjoyable and Hassle Free Tours','http://joychinatravel.com/Tour/All-Enjoyable-and-Hassle-Free-Tours/','_top',156);
oCMenu.makeMenu('1073','top2','Family Tours','http://joychinatravel.com/Tour/Family-Tours/','_top',156);
oCMenu.makeMenu('1062','top2','MICE tours','http://joychinatravel.com/Tour/MICE-tours/','_top',156);


oCMenu.makeMenu('top3','0','Book your trip','','_top',100);
oCMenu.makeMenu('1086','top3','Quote request form','http://joychinatravel.com/Quote-request-form/','_top',130);
oCMenu.makeMenu('1088','top3','Booking form','http://joychinatravel.com/Booking-form/','_top',130);
oCMenu.makeMenu('1580','top3','Payment, Agreement','http://joychinatravel.com/Payment-Agreement/','_top',150);

oCMenu.makeMenu('top4','0','Flight','http://joychinatravel.com/Flight-tickets/','_top',50);

oCMenu.makeMenu('top5','0','Hotels','http://joychinatravel.com/Hotels/','_top',55);

oCMenu.makeMenu('top6','0','General information','','_top',135);
oCMenu.makeMenu('1101','top6','A Brief Introduction to China','http://joychinatravel.com/A-Brief-Introduction-to-China/','_top',200);
oCMenu.makeMenu('1309','top6','China Visa FAQs','http://joychinatravel.com/China-Visa-FAQs/','_top',200);
oCMenu.makeMenu('1103','top6','China Travel Tips','http://joychinatravel.com/China-Travel-Tips/','_top',200);


oCMenu.makeMenu('top7','0','Photo Impressions','http://joychinatravel.com/Photo-Impressions/','_top',130);
oCMenu.makeMenu('top8','0','To Discover','http://joychinatravel.com/Fantastic-New-Places-to-Discover/','_top',95);
oCMenu.makeMenu('top9','0','Contact us','http://joychinatravel.com/Contact-us/','_top',90);
//Leave this line - it constructs the menu
oCMenu.construct();
//top.frmMain.location.reload()
}
