var clientWidth=0;
var clientHeight=0;

var leftPos = 0;
var topPos = 0;

var BottomBandTop;

var menuBarBackColor; 
var menuBarBackColor1;
var menuBarFontColor; 
var menuBarHeight;

var menuLeft;
var menuLeft6;

var menuWidth=90;
var menuTop;

var menuBackColor;

var disclaimerTop;

var stopScroll;

var imgLargeImgSRC;

var onMouseColor;

var NewLeft;
var NewTop;

var NewLeft1;
var NewTop1;

stopScroll = "0"

//menuBarBackColor = "#FF7F00";
//menuBarBackColor = "#F35A25";
//menuBarBackColor = "#EE7E57";
menuBarBackColor = "#FFDFE0";

//menuBarBackColor1 = "#FFBA00";
//menuBarBackColor1 = "#EE7E57";
//menuBarBackColor1 = "#FFDFEF";
menuBarBackColor1 = "#FFDFD0";

menuBarFontColor = "#000000"; 
menuBarHeight = 20;

menuLeft = 0;
menuTop = 20;

menuBackColor = "#000000";
//menuBackColor = "#FFFFCC";
//menuBackColor = "#F6B59E";
menuBackColor = "#FFDFE0";

function windowOnload() {


  //document.body.style.backgroundColor = "#38091E";
  document.body.style.backgroundColor = "#497F43";
  document.body.style.backgroundColor = "#FB7B76";
  
  clientWidth = window.document.body.clientWidth;
  clientHeight = window.document.body.clientHeight;
  
    

  with (cbeGetElementById('idContainer').cbe) {

    color('#000000');
    background('#FFFFFF');
	    
    if (document.cbe.width() > 788) {		

		if (pageName == "contact_us" || pageName == "chairman" || pageName == "management") {
			showScrollFlag = "0";		
		}
		
		//clientWidth = 780;
		clientWidth = 1004;

		clientHeight = 596


		if (pageName == "investors") {
			clientHeight = 596
		}

		if (pageName == "infrastructure") {
			clientHeight = 750
		}
		
    	if (pageName == "weaving" ) {
    		clientHeight = 596
    	}
    
    	if (pageName == "processing") {
    		//clientHeight = 700
    		clientHeight = 596
    	}

    	if (pageName == "garments") {
    		//clientHeight = 900
    		clientHeight = 596
    	}
		
		
		//resizeTo(clientWidth,450);        
		
		resizeTo(clientWidth,clientHeight);        
		leftPos = (document.cbe.width() - clientWidth) / 2;
		
		topPos = (document.cbe.height() - clientHeight) / 2;
		
		if (topPos < 0 ) {
			topPos = 0;
		}
    }
    else {
    
        if (pageName == "about_us" ) {
    		clientHeight = 450
    	}

        if (pageName == "home" ) {
    		clientHeight = 450
    	}

    	if (pageName == "epolicy") {
			clientHeight = 550
		}

		if (pageName == "investors") {
			clientHeight = 530
		}
    
		if (pageName == "infrastructure") {
			clientHeight = 700
		}

    	if (pageName == "weaving" ) {
    		clientHeight = 450
    	}
    
    	if (pageName == "processing") {
    		//clientHeight = 700
    		clientHeight = 450
    	}

    	if (pageName == "garments") {
    		//clientHeight = 850
    		clientHeight = 450
    	}
    	
		resizeTo(clientWidth,clientHeight);        
		leftPos = 0;
		
		topPos = (document.cbe.height() - clientHeight) / 2;
		
		if (topPos < 0) {
			topPos = 0;
		}
    }
    moveTo(leftPos,topPos);    
    show();
  }


  var idUpLeft;
  var idUpTop;
    
	//if (clientWidth > 780) {		
	if (document.cbe.width() > 788) {		
		
		idUpLeft = 660;
		idUpTop = 330;

		if (pageName == "chairman") {
			idUpLeft = 710;
			idUpTop = 330;
		}

		if (pageName == "about_us") {
			idUpLeft = 660;
			idUpTop = 400;
		}

		if (pageName == "home") {
			idUpLeft = 660;
			idUpTop = 400;
		}

		if (pageName == "epolicy") {
			idUpLeft = 730;
			idUpTop = 330;
		}

		if (pageName == "garments") {
			idUpLeft = 660;
			idUpTop = 400;
		}

		if (pageName == "board") {
			idUpLeft = 660;
			idUpTop = 400;
		}
		
	}
	else {
		idUpLeft = 500;
		idUpTop = 275;
		
	}
  
  with (cbeGetElementById('idUp').cbe) {
    color('#000000');
    background('#FFFFFF');
    resizeTo(15,10);        
    //moveTo(500,275);    
    moveTo(idUpLeft,idUpTop);    
	if (showScrollFlag == "1") {
		show();

		addEventListener('mouseout','stopScrollUp()')
		addEventListener('mouseover','startScrollUp()')

	}


  }

  var idDownLeft;
  var idDownTop;
    
	//if (clientWidth > 780) {
	if (document.cbe.width() > 788) {		
		idDownLeft = 660;
		idDownTop = 343;

		if (pageName == "chairman") {
			idDownLeft = 710;
			idDownTop = 343;
		}

		if (pageName == "about_us") {
			idDownLeft = 660;
			idDownTop = 415;
		}

		if (pageName == "home") {
			idDownLeft = 660;
			idDownTop = 415;
		}

		if (pageName == "epolicy") {
			idDownLeft = 730;
			idDownTop = 343;
		}

		if (pageName == "garments") {
			idDownLeft = 660;
			idDownTop = 415;
		}

		if (pageName == "board") {
			idDownLeft = 660;
			idDownTop = 415;
		}

	}
	else {
		idDownLeft = 500;
		idDownTop = 290;
	}

  with (cbeGetElementById('idDown').cbe) {
    color('#000000');
    background('#FFFFFF');
    resizeTo(15,10);        
    //moveTo(500,290);    
    moveTo(idDownLeft,idDownTop);    
	if (showScrollFlag == "1") {
		show();

	addEventListener('mouseout','stopScrollDown()')
	addEventListener('mouseover','startScrollDown()')

	}

  }
  

  document.images.img1.width = clientWidth - 3;
  
  BottomBandTop = parseInt(document.getElementById("idContainer").style.height) - parseInt(document.images.img1.height);
  //alert((document.images.img1.height));
  //alert(BottomBandTop);
  //alert(parseInt(document.getElementById("idBottomBand").style.height));
  
  with (cbeGetElementById('idBottomBand').cbe) {
    color('#FFFFFF');
    background('#ABCDEF');
    resizeTo(clientWidth-3,100);        
    //moveTo(0,348);    
    moveTo(0,BottomBandTop);    

    show();
  }
 

   //disclaimerTop  = 408
    disclaimerTop  = parseInt(document.getElementById("idContainer").style.top) + parseInt(document.getElementById("idContainer").style.height);
   
  with (cbeGetElementById('idDisclaimer').cbe) {
    background('#FFFFFF');
    color('#000000');
    resizeTo(clientWidth,15);        
    zIndex(40);    
    moveTo(leftPos,disclaimerTop);    
    show();
  }

 
  var iconsLeft;
  var iconsTop;
    
	//if (clientWidth > 780) {
	if (document.cbe.width() > 788) {		
		iconsLeft = 650;
		iconsTop = 450;

		if (pageName == "management") {
			iconsLeft = 650;
			iconsTop = 450;
		}

		if (pageName == "vision") {
			iconsLeft = 650;
			iconsTop = 450;
		}

		if (pageName == "chairman") {
			iconsLeft = 650;
			iconsTop = 450;
		}
		
		if (pageName == "about_us") {
			iconsLeft = 650;
			iconsTop = 450;
		}
		
		if (pageName == "home") {
			iconsLeft = 650;
			iconsTop = 450;
		}
		
		if (pageName == "epolicy") {
			iconsLeft = 650;
			iconsTop = 450;
		}
		
		if (pageName == "investors") {
			iconsLeft = 650;
			iconsTop = 450;
		}
		if (pageName == "infrastructure") {		
			iconsLeft = 650;
			iconsTop = 590;
		}
		
		if (pageName == "weaving") {
			iconsLeft = 650;
			iconsTop = 470;
		}

		if (pageName == "processing") {
			iconsLeft = 650;
			//iconsTop = 570;
			iconsTop = 470;
		}
		
		if (pageName == "garments") {
			iconsLeft = 650;
			//iconsTop = 775;
			iconsTop = 470;
		}
	}
	else {
		iconsLeft = 420;
		iconsTop = 305;

		if (pageName == "about_us") {
			iconsLeft = 440;
			iconsTop = 330;
		}

		if (pageName == "home") {
			iconsLeft = 440;
			iconsTop = 330;
		}
		
		if (pageName == "epolicy") {		
			iconsTop = 410;
		}
		

		if (pageName == "infrastructure") {		
			iconsLeft = 440;
			iconsTop = 580;
		}
		
		if (pageName == "weaving") {
			iconsLeft = 440;
			iconsTop = 330;
		}

		if (pageName == "processing") {
			iconsLeft = 440;
			//iconsTop = 575;
			iconsTop = 330;
		}
		
		if (pageName == "garments") {
			iconsLeft = 440;
			//iconsTop = 730;
			iconsTop = 330;
		}

		if (pageName == "investors") {
			iconsTop = 410;
		}
		
	}


  with (cbeGetElementById('idIcons').cbe) {
    color('#FFFFFF');
    background('#FFFFFF');
    resizeTo(72,16);        
    moveTo(iconsLeft,iconsTop);    
    show();
  }

  var logoLeft;
  var logoTop;
  
  var newWidth1;
  var newHeight1;
  
  
  //if (clientWidth > 780) {	
  if (document.cbe.width() > 788) {	
	logoLeft = clientWidth - 245;
	//logoTop = BottomBandTop - 43 - 325;
	//logoTop = 110;	
	logoTop = 70;
	logoLeft = clientWidth - 255;
	
	//NewTop = 50;
	//NewLeft = 200;

	NewTop = 30;
	NewLeft = 20;

	//NewTop1 = 150;
	//NewLeft1 = 200;

	NewTop1 = 30;
	NewLeft1 = 200;

	newWidth1 = 450;
	newHeight1 = 35;
	
	
  } else {
	//logoLeft = 535;
	//logoTop = 55;
	logoLeft = 525;
	logoTop = 25;

	NewTop = 25;
	NewLeft = 200

	//NewTop1 = 95;
	//NewLeft1 = 175

	NewTop1 = 25;
	NewLeft1 = 175
	
	newWidth1 = 320;
	newHeight1 = 35;

  }

  with (cbeGetElementById('idLogo').cbe) {
    color('#000000');
    background('#FFFFFF');
    //resizeTo(200,43);        
    resizeTo(200,82);        
    //moveTo(535,55);    
    moveTo(logoLeft,logoTop);    
    show();
  }

	/*
	if (pageName == "home" ) {
		with (cbeGetElementById('idNew').cbe) {
			color('#000000');
			background('#FFFFFF');
			resizeTo(300,35);        
			//resizeTo(450,35);        
			//moveTo(535,55);    
			moveTo(NewLeft,NewTop);    
			show();
		}
	}

	if (pageName == "home" ) {
		with (cbeGetElementById('idNew1').cbe) {
			color('#000000');
			background(menuBarBackColor);
			resizeTo(newWidth1,newHeight1);        
			//resizeTo(450,35);        
			//moveTo(535,55);   
			moveTo(NewLeft1,NewTop1);    
			show();
		}
	}
	*/
	
	
  var largePhotoLeft;
  var largePhotoTop;
  
    
	//if (clientWidth > 780) {		
	if (document.cbe.width() > 788) {
		largePhotoLeft = clientWidth - 258;
		//largePhotoTop = BottomBandTop - 215 - 100;
		largePhotoTop = 163;
	}
	else {
		largePhotoLeft = 522;
		largePhotoTop = 110;
	}
	
  with (cbeGetElementById('idLargePhoto').cbe) {
    color('#FFFFFF');
    background('#FFFFFF');
    resizeTo(215,450);        
    //moveTo(522,110);    
    moveTo(largePhotoLeft,largePhotoTop);    
    //if (pageName != "weaving" && pageName != "processing" && pageName != "garments") {
		show();
	//}
  }


  var idVLineLeft;
  var idVLineTop;
    
	//if (clientWidth > 780) {
	if (document.cbe.width() > 788) {		
		idVLineLeft = 150;
		idVLineTop = 115;

		//if (pageName == "weaving" || pageName == "processing" || pageName == "garments") {
		//	idVLineTop = 180;
		//	idVLineLeft = 565;
		//}

	}
	else {
		idVLineLeft = 150;
		idVLineTop = 60;
		//if (pageName == "weaving" || pageName == "processing" || pageName == "garments") {
		//	idVLineTop = 122;
		//	idVLineLeft = 545;
		//}
	}

  if (showVLine  == "1") {  
	with (cbeGetElementById('idVLine').cbe) {
		color('#FFFFFF');
		background('#EEEEEE');
		resizeTo(1,259);        
		if (pageName == "about_us") {
			resizeTo(1,225);        
		}

		if (pageName == "home") {
			resizeTo(1,225);        
		}
		
		if (pageName == "weaving" || pageName == "processing" || pageName == "garments") {
			//resizeTo(1,205);        
			resizeTo(1,225);        
		}

		//moveTo(150,60);    
		moveTo(idVLineLeft,idVLineTop);    
		show();
	}
  }

  var pageTitleLeft;
  var pageTitleTop;
    
	//if (clientWidth > 780) {
	if (document.cbe.width() > 788) {		
		//pageTitleLeft = 175;
		pageTitleLeft = 200;
		pageTitleTop = 118;

		if (pageName == "about_us") {
			pageTitleLeft = 200;
		}

		if (pageName == "home") {
			pageTitleLeft = 200;
		}
		
		if (pageName == "epolicy") {
			pageTitleLeft = 200;
		}
		
		if (pageName == "investors") {
			pageTitleLeft = 200;
		}


		if (pageName == "weaving" || pageName == "processing" || pageName == "garments") {			
			//pageTitleLeft = 125;
			pageTitleLeft = 200;
		}
	}
	else {
		pageTitleLeft = 175;
		pageTitleTop = 65;
		
		if (pageName == "weaving" || pageName == "processing" || pageName == "garments") {
			//pageTitleLeft = 25;
			pageTitleLeft = 175;
		}
	}

  with (cbeGetElementById('idpageTitle').cbe) {
    //color('#FF7F00');
    color('#FF0000');
    
    background('#FFFFFF');
    resizeTo(250,15);    

	if (pageName == "home") {
		if (document.cbe.width() <= 788) {
			pageTitleTop = 135;
			moveTo(copyLeft,copyTop+70);
		}
	}
    
    moveTo(pageTitleLeft,pageTitleTop);

	
    show();
  }

  var copyLeft;
  var copyTop;
  var copyWidth;
  var copyHeight;
  
    
	//if (clientWidth > 780) {		
	if (document.cbe.width() > 788) {
		//copyLeft = 175;
		copyLeft = 200;
		copyTop = 133;
		copyWidth = 450;
		copyHeight = 215;

		if (pageName == "about_us") {
			copyLeft = 200;
			copyTop = 133;
			copyWidth = 450;
			copyHeight = 350;
		}

		if (pageName == "home") {
			copyLeft = 200;
			copyTop = 133;
			copyWidth = 450;
			copyHeight = 350;
		}
		
		if (pageName == "epolicy") {
			copyLeft = 200;
			copyTop = 133;
			copyWidth = 450;
			copyHeight = 350;
		}
		
		if (pageName == "investors") {
			copyLeft = 200;
			copyHeight = 350;
		}

		if (pageName == "weaving" || pageName == "processing" || pageName == "garments" || pageName == "contact_us") {
			copyHeight = 350;
		}

		if (pageName == "chairman" || pageName == "management" || pageName == "board") {
			copyHeight = 350;
		}
		
		//if (pageName == "weaving" || pageName == "processing" || pageName == "garments") {
		//	copyLeft = 125;
		//	copyTop = 170;
		//}

	}
	else {
		copyLeft = 175;
		copyTop = 80;
		copyWidth = 320;
		copyHeight = 215;

		if (pageName == "about_us") {
			copyHeight = 350;
		}

		if (pageName == "home") {
			copyHeight = 350;
		}

		if (pageName == "epolicy") {
			copyHeight = 350;
		}
		
		if (pageName == "investors") {
			copyHeight = 350;
		}

		if (pageName == "weaving" || pageName == "processing" || pageName == "garments") {
			copyHeight = 350;
		}

		//if (pageName == "weaving" || pageName == "processing" || pageName == "garments") {
		//	copyLeft = 25;
		//	copyTop = 120;
		//}

	}

  
  with (cbeGetElementById('idCopyContainer').cbe) {
    color('#FFFFFF');
    background('#FFFFFF');
	
	resizeTo(copyWidth,copyHeight);    
	moveTo(copyLeft,copyTop);

	if (pageName == "infrastructure") {
		resizeTo(320,215);    
		moveTo(copyLeft,copyTop+30);
	}

	if (pageName == "home") {
		if (document.cbe.width() <= 788) {
			moveTo(copyLeft,copyTop+70);
		}
	}

	//if (pageName == "weaving" || pageName == "processing") {
	//	resizeTo(400,415);    
	//	moveTo(copyLeft,copyTop);
	//}
	//if (pageName == "garments") {
	//	resizeTo(400,650);    
	//	moveTo(copyLeft,copyTop);
	//}
    show();
  }

  with (cbeGetElementById('idContent').cbe) {
    color('#555555');
    background('#FFFFFF');
	resizeTo(copyWidth,copyHeight);    
	moveTo(0,0);
	if (pageName == "chairman") {		
		resizeTo(320,715);    
	}

	if (pageName == "infrastructure") {		
		resizeTo(320,215);    
	}
	
	//if (pageName == "weaving" || pageName == "processing") {
	//	resizeTo(500,415);    
	//}
	//if (pageName == "garments") {
	//resizeTo(500,650);    
	//}

	if (pageName == "sitemap") {		
		resizeTo(320,915);    
	}

    show();
  }

  var idThumbsLeft;
  var idThumbsTop;
    
	//if (clientWidth > 780) {	
	if (document.cbe.width() > 788) {	
		idThumbsLeft = 40;
		idThumbsTop = 113;

	}
	else {
		idThumbsLeft = 40;
		idThumbsTop = 58;

		if (pageName == "management") {
			idThumbsTop = 50;		
		}
		
	}
  
  
  if (showThumbs == "1") {
	with (cbeGetElementById('idThumbs').cbe) {
		color('#000000');
		background('#FFFFFF');
		resizeTo(105,258);    
		zIndex(5);
		moveTo(idThumbsLeft,idThumbsTop);
		show();
	}
  }

  with (cbeGetElementById('idMenuContainer').cbe) {
    color('#FFFFFF');
    background('#FFFFFF');
    resizeTo(clientWidth-2,menuBarHeight);    
    zIndex(29);
    moveTo(0,0);
    show();
  }
  
  with (cbeGetElementById('idMenuBar1').cbe) {
    color(menuBarFontColor);
    background(menuBarBackColor);
    resizeTo(menuWidth+10,menuBarHeight);    
    zIndex(50);
    moveTo(0,0);    
    show();
  }

  menuLeft = parseInt(document.getElementById("idMenuBar1").style.left) + parseInt(document.getElementById("idMenuBar1").style.width) + 2
  
  
  with (cbeGetElementById('idMenuBar2').cbe) {
    color(menuBarFontColor);
    background(menuBarBackColor);
    resizeTo(menuWidth,menuBarHeight);    
    zIndex(30);
    moveTo(menuLeft,0);    
    show();
  }

  menuLeft = parseInt(document.getElementById("idMenuBar2").style.left) + parseInt(document.getElementById("idMenuBar2").style.width) + 2

  with (cbeGetElementById('idMenuBar3').cbe) {
    color(menuBarFontColor);
    background(menuBarBackColor);
    resizeTo(menuWidth,menuBarHeight);    
    zIndex(30);
    moveTo(menuLeft,0);    
    show();
  }

  menuLeft = parseInt(document.getElementById("idMenuBar3").style.left) + parseInt(document.getElementById("idMenuBar3").style.width) + 2
  
  with (cbeGetElementById('idMenuBar4').cbe) {
    color(menuBarFontColor);
    background(menuBarBackColor);
    resizeTo(menuWidth,menuBarHeight);    
    zIndex(30);
    moveTo(menuLeft,0);    
    show();
  }

  /*
  menuLeft = parseInt(document.getElementById("idMenuBar4").style.left) + parseInt(document.getElementById("idMenuBar4").style.width) + 2

  with (cbeGetElementById('idMenuBar5').cbe) {
    color(menuBarFontColor);
    background(menuBarBackColor);
    resizeTo(menuWidth,menuBarHeight);    
    zIndex(30);
    moveTo(menuLeft,0);    
    show();
  }
  */
  
  //menuLeft = parseInt(document.getElementById("idMenuBar5").style.left) + parseInt(document.getElementById("idMenuBar5").style.width) + 2
  menuLeft = parseInt(document.getElementById("idMenuBar4").style.left) + parseInt(document.getElementById("idMenuBar4").style.width) + 2
  menuLeft6 = menuLeft;
  
  with (cbeGetElementById('idMenuBar6').cbe) {
    color(menuBarFontColor);
    background(menuBarBackColor);
    resizeTo(menuWidth,menuBarHeight);    
    zIndex(30);
    moveTo(menuLeft,0);    
    show();
  }
  
  menuLeft = parseInt(document.getElementById("idMenuBar6").style.left) + parseInt(document.getElementById("idMenuBar6").style.width) + 2
  
  with (cbeGetElementById('idMenuBar7').cbe) {
    color(menuBarFontColor);
    background(menuBarBackColor);
    resizeTo(menuWidth,menuBarHeight);    
    zIndex(30);
    moveTo(menuLeft,0);    
    show();
  }

  menuLeft = parseInt(document.getElementById("idMenuBar7").style.left) + parseInt(document.getElementById("idMenuBar7").style.width) + 2

  var menubarWidth8;
  
  menubarWidth8 = clientWidth - menuLeft ;
  //alert(menubarWidth8);
  
  with (cbeGetElementById('idMenuBar8').cbe) {
    color(menuBarFontColor);
    background(menuBarBackColor);
    //resizeTo(menubarWidth8,menuBarHeight);    
    resizeTo(menuWidth,menuBarHeight);    
    zIndex(30);
    moveTo(menuLeft,0);    
    show();
  }
  
  menuLeft = parseInt(document.getElementById("idMenuBar8").style.left) + parseInt(document.getElementById("idMenuBar8").style.width) + 2

  var menubarWidth9;
  
  menubarWidth9 = clientWidth - menuLeft ;
  
  with (cbeGetElementById('idMenuBar9').cbe) {
    color(menuBarFontColor);
    background(menuBarBackColor);
    //resizeTo(104,menuBarHeight);    
    resizeTo(menubarWidth9,menuBarHeight);    
    zIndex(30);
    moveTo(menuLeft,0);    
    show();
  }


  with (cbeGetElementById('idMenu1').cbe) {
    color('#FFFFFF');
    background(menuBackColor);
    //resizeTo(menuWidth+25,65);    
    //resizeTo(menuWidth+25,80);    
    resizeTo(menuWidth+25,95);    
    zIndex(29);
    moveTo(0,-160);
    show();
  }

  with (cbeGetElementById('idMenu2').cbe) {
    color('#FFFFFF');
    background(menuBackColor);
    //resizeTo(menuWidth+25,35);    
    resizeTo(menuWidth+50,50);    
    zIndex(15);
    moveTo(102,-110);
    show();
  }

  with (cbeGetElementById('idMenu3').cbe) {
    color('#000000');
    background(menuBackColor);
    resizeTo(menuWidth,35);    
    zIndex(15);
    moveTo(194,-110);
    show();
  }

  with (cbeGetElementById('idMenu4').cbe) {
    color('#FFFFFF');
    background('#000000');
    background(menuBackColor);
    resizeTo(menuWidth+25,35);    
    zIndex(15);
    moveTo(286,-110);
    show();
  }

  with (cbeGetElementById('idMenu6').cbe) {
    color('#FFFFFF');
    background('#000000');
    background(menuBackColor);
    //resizeTo(menuWidth+27,50);    
    resizeTo(menuWidth+27,35);    
    zIndex(15);
    //moveTo(473,-110);
    moveTo(menuLeft6,-110);
    show();
  }
  
  with (cbeGetElementById('idsubMenu1_1').cbe) {
    color('#000000');
    background(menuBackColor);
    resizeTo(menuWidth+25,20);    
    //zIndex(15);
    moveTo(0,0);
    show();
  }

  with (cbeGetElementById('idsubMenu1_2').cbe) {
    color('#000000');
    background(menuBackColor);
    resizeTo(menuWidth+25,20);    
    //zIndex(15);
    moveTo(0,15);
    show();
  }

  with (cbeGetElementById('idsubMenu1_3').cbe) {
    color('#000000');
    background(menuBackColor);
    resizeTo(menuWidth+25,20);    
    //zIndex(15);
    moveTo(0,30);
    show();
  }

  with (cbeGetElementById('idsubMenu1_4').cbe) {
    color('#000000');
    background(menuBackColor);
    resizeTo(menuWidth+25,20);    
    //zIndex(15);
    moveTo(0,45);
    show();
  }

  with (cbeGetElementById('idsubMenu1_5').cbe) {
    color('#000000');
    background(menuBackColor);
    resizeTo(menuWidth+25,20);    
    //zIndex(15);
    moveTo(0,60);
    show();
  }

  with (cbeGetElementById('idsubMenu1_6').cbe) {
    color('#000000');
    background(menuBackColor);
    resizeTo(menuWidth+25,20);    
    //zIndex(15);
    moveTo(0,75);
    show();
  }

  
  with (cbeGetElementById('idsubMenu2_1').cbe) {
    color('#000000');
    background(menuBackColor);
    resizeTo(menuWidth+55,20);    
    //zIndex(15);
    moveTo(0,0);
    show();
  }

  with (cbeGetElementById('idsubMenu2_2').cbe) {
    color('#000000');
    background(menuBackColor);
    resizeTo(menuWidth+55,20);    
    //zIndex(15);
    moveTo(0,15);
    show();
  }

  
  with (cbeGetElementById('idsubMenu2_3').cbe) {
    color('#000000');
    background(menuBackColor);
    resizeTo(menuWidth+55,20);    
    //zIndex(15);
    moveTo(0,30);
    show();
  }
  
  
  with (cbeGetElementById('idsubMenu3_1').cbe) {
    color('#000000');
    background(menuBackColor);
    resizeTo(menuWidth+25,20);    
    //zIndex(15);
    moveTo(0,0);
    show();
  }

  with (cbeGetElementById('idsubMenu3_2').cbe) {
    color('#000000');
    background(menuBackColor);
    resizeTo(menuWidth+25,20);    
    //zIndex(15);
    moveTo(0,15);
    show();
  }

  with (cbeGetElementById('idsubMenu4_1').cbe) {
    color('#000000');
    background(menuBackColor);
    resizeTo(menuWidth+25,20);    
    //zIndex(15);
    moveTo(0,0);
    show();
  }

  with (cbeGetElementById('idsubMenu4_2').cbe) {
    color('#000000');
    background(menuBackColor);
    resizeTo(menuWidth+25,20);    
    //zIndex(15);
    moveTo(0,15);
    show();
  }

  with (cbeGetElementById('idsubMenu6_1').cbe) {
    color('#000000');
    background(menuBackColor);
    resizeTo(menuWidth+27,20);    
    moveTo(0,0);
    //show();
  }

  with (cbeGetElementById('idsubMenu6_2').cbe) {
    color('#000000');
    background(menuBackColor);
    resizeTo(menuWidth+27,20);    
    //moveTo(0,15);
    moveTo(0,0);
    show();
  }

  with (cbeGetElementById('idsubMenu6_3').cbe) {
    color('#000000');
    background(menuBackColor);
    resizeTo(menuWidth+27,20);    
    //moveTo(0,30);
    moveTo(0,15);
    show();
  }


  with (cbeGetElementById('idSubSubMenu3_1').cbe) {
    color('#FFFFFF');
    background('#000000');
    background(menuBackColor);
    resizeTo(menuWidth+25,50);    
    zIndex(15);
    moveTo(286,-110);
    show();
  }

  with (cbeGetElementById('idSubSubMenu3_2').cbe) {
    color('#FFFFFF');
    background('#000000');
    background(menuBackColor);
    resizeTo(menuWidth+25,50);    
    zIndex(15);
    moveTo(286,-110);
    show();
  }

  with (cbeGetElementById('idsubMenu3_1_1').cbe) {
    color('#000000');
    background(menuBackColor);
    resizeTo(menuWidth+25,20);    
    //zIndex(15);
    moveTo(0,0);
    show();
  }

  with (cbeGetElementById('idsubMenu3_1_2').cbe) {
    color('#000000');
    background(menuBackColor);
    resizeTo(menuWidth+25,20);    
    //zIndex(15);
    moveTo(0,15);
    show();
  }

  with (cbeGetElementById('idsubMenu3_1_3').cbe) {
    color('#000000');
    background(menuBackColor);
    resizeTo(menuWidth+25,20);    
    //zIndex(15);
    moveTo(0,30);
    show();
  }


  with (cbeGetElementById('idsubMenu3_2_1').cbe) {
    color('#000000');
    background(menuBackColor);
    resizeTo(menuWidth+25,20);    
    //zIndex(15);
    moveTo(0,0);
    show();
  }

  with (cbeGetElementById('idsubMenu3_2_2').cbe) {
    color('#000000');
    background(menuBackColor);
    resizeTo(menuWidth+25,20);    
    //zIndex(15);
    moveTo(0,15);
    show();
  }

  with (cbeGetElementById('idsubMenu3_2_3').cbe) {
    color('#000000');
    background(menuBackColor);
    resizeTo(menuWidth+25,20);    
    //zIndex(15);
    moveTo(0,30);
    show();
  }

	if (pageName != "infrastructure") {		
		imgLargeImgSRC = document.getElementById("imgLargePhoto").src;
	}

}


var contentYCord=0;
var ImgNo=1;

var ImageNo=1;

var ImageNumber=1;


function scrollDown() {
  
  var e1;
  
	if (stopScroll == "0") {		
		//if (contentYCord > -40) {
		if (contentYCord > scrollOffset) {
			contentYCord  = contentYCord - 10; 
			e1 = document.getElementById('idContent').cbe;
			e1.slideTo(0,contentYCord,2000);	
			scrollDown();
		}
	}
 	
  
}

function scrollUp() {

  var e1;

	if (stopScroll == "0") {		
		if (contentYCord < 0) {
			contentYCord  = contentYCord + 10; 
			e1 = document.getElementById('idContent').cbe;
			e1.slideTo(0,contentYCord,2000);	
			scrollUp();
		}
	}
}

function startScroll() {
  stopScroll = "0";
}

function stopScroll1() {
  stopScroll = "1";
}

function showMenu(menuId) {

  var e1;
  var e2;
  var e3;
  var e4;
  var e6;	

  var e3_1;
  var e3_2;
  
  var menuBarName;	  


  e1 = document.getElementById('idMenu1').cbe;
  e2 = document.getElementById('idMenu2').cbe;  
  e3 = document.getElementById('idMenu3').cbe;
  e4 = document.getElementById('idMenu4').cbe;
  e6 = document.getElementById('idMenu6').cbe;
	
	  
  e3_1 = document.getElementById('idSubSubMenu3_1').cbe;
  e3_2 = document.getElementById('idSubSubMenu3_2').cbe;

	//document.getElementById('idMenuBar1').style.backgroundColor = "#FF7F00";    
	document.getElementById('idMenuBar1').style.backgroundColor = menuBarBackColor;    
	document.getElementById('idMenuBar2').style.backgroundColor = menuBarBackColor;    
	document.getElementById('idMenuBar3').style.backgroundColor = menuBarBackColor;    
	document.getElementById('idMenuBar4').style.backgroundColor = menuBarBackColor;    
	document.getElementById('idMenuBar5').style.backgroundColor = menuBarBackColor;    
	document.getElementById('idMenuBar6').style.backgroundColor = menuBarBackColor;    
	document.getElementById('idMenuBar7').style.backgroundColor = menuBarBackColor;    
	document.getElementById('idMenuBar8').style.backgroundColor = menuBarBackColor;    
	document.getElementById('idMenuBar9').style.backgroundColor = menuBarBackColor;    
	
	
  		e1.slideTo(0,-110,1000);	
		e2.slideTo(102,-110,1000);	
		e3.slideTo(194,-110,1000);	
		e4.slideTo(286,-110,1000);	
		e6.slideTo(menuLeft6,-110,1000);	
	
	
	if (menuId != '3') {
		e3_1.slideTo(286,-110,1000);	
		e3_2.slideTo(286,-110,1000);	
	}

	
  menuBarName = 'idMenuBar' + menuId;
  
  //document.getElementById(menuBarName).style.backgroundColor = "#FFCC00";    
  document.getElementById(menuBarName).style.backgroundColor = menuBarBackColor1;    


  if (menuId == '1') {
	e1.slideTo(0,menuTop,1000);	
  }
  
  if (menuId == '2') {
	e2.slideTo(102,menuTop,1000);	
	//document.getElementById('idMenuBar2').style.backgroundColor = menuBarBackColor1;    

  }

  if (menuId == '3') {
	e3.slideTo(194,menuTop,1000);	
  }

  if (menuId == '4') {
	e4.slideTo(286,menuTop,1000);	
	//document.getElementById('idMenuBar4').style.backgroundColor = menuBarBackColor1;    
  }

  if (menuId == '6') {
	e6.slideTo(menuLeft6,menuTop,1000);	
  }
  

  if (menuId == '5') {
	//document.getElementById('idMenuBar5').style.backgroundColor = "#F55F2A";    
	document.getElementById('idMenuBar5').style.backgroundColor = menuBarBackColor1;    
	
  }

  if (menuId == '7') {
	//document.getElementById('idMenuBar7').style.backgroundColor = "#F55F2A";    
	document.getElementById('idMenuBar7').style.backgroundColor = menuBarBackColor1;    
  }

  if (menuId == '8') {
	//document.getElementById('idMenuBar8').style.backgroundColor = "#F55F2A";    
	document.getElementById('idMenuBar8').style.backgroundColor = menuBarBackColor1;    
  }

  
  if (menuId == '9') {
	document.getElementById('idMenuBar9').style.backgroundColor = menuBarBackColor1;    
  }
  //alert("Hello111");	
 
}


function hideMenu(menuId) {

  var e1;

  var e3;
  var e4;
  
  var menuBarName;	  
  var menuName;

  if (menuId != '3_1' && menuId != '3_2') {
	menuBarName = 'idMenuBar' + menuId;
	//document.getElementById(menuBarName).style.backgroundColor = "#FF7F00";    
	document.getElementById(menuBarName).style.backgroundColor = menuBarBackColor;
  }
  
  menuName = 'idMenu' + menuId;
  
  if (menuId == '3_1') {
	e1 = document.getElementById('idSubSubMenu3_1').cbe;  
	e1.slideTo(286,-110,1000);	
  }
  if (menuId == '3_2') {
	e1 = document.getElementById('idSubSubMenu3_2').cbe;  
	e1.slideTo(286,-110,1000);	
  }

  if (menuId != '3_1' && menuId != '3_2') {
	e1 = document.getElementById(menuName).cbe;
  }
  
  if (menuId == '1') {
	e1.slideTo(0,-110,1000);	
  }
  if (menuId == '2') {
	e1.slideTo(102,-110,1000);	
  }

  if (menuId == '3') {
	e1.slideTo(194,-110,1000);	
	
	e3 = document.getElementById('idSubSubMenu3_1').cbe;  
	e3.slideTo(286,-110,1000);	

	e4 = document.getElementById('idSubSubMenu3_2').cbe;  
	e4.slideTo(286,-110,1000);	

  }

  if (menuId == '4') {
	e1.slideTo(286,-110,1000);	
  }

  if (menuId == '6') {
	e1.slideTo(menuLeft6,-110,1000);	
  }

  if (menuId == '3_1') {
	e1.slideTo(286,-110,1000);	
  }

  if (menuId == '3_2') {
	e1.slideTo(286,-110,1000);	
  }

}


function showSubMenu(menuId) {

  var e1;
  var e2;
  var e3;
  var e4;
  var e6;
  	
  var e3_1;
  var e3_2;
  	
  var menuBarName;	  

  e1 = document.getElementById('idMenu1').cbe;
  e2 = document.getElementById('idMenu2').cbe;  
  e3 = document.getElementById('idMenu3').cbe;
  e4 = document.getElementById('idMenu4').cbe;
  e6 = document.getElementById('idMenu6').cbe;
  
  e3_1 = document.getElementById('idSubSubMenu3_1').cbe;
  e3_2 = document.getElementById('idSubSubMenu3_2').cbe;  

	//document.getElementById('idMenuBar1').style.backgroundColor = "#FF7F00";    
	document.getElementById('idMenuBar1').style.backgroundColor = menuBarBackColor;    	
	document.getElementById('idMenuBar2').style.backgroundColor = menuBarBackColor;    
	document.getElementById('idMenuBar3').style.backgroundColor = menuBarBackColor;    
	document.getElementById('idMenuBar4').style.backgroundColor = menuBarBackColor;    
	document.getElementById('idMenuBar5').style.backgroundColor = menuBarBackColor;    
	document.getElementById('idMenuBar6').style.backgroundColor = menuBarBackColor;    
	document.getElementById('idMenuBar7').style.backgroundColor = menuBarBackColor;    
	document.getElementById('idMenuBar8').style.backgroundColor = menuBarBackColor;    

  	e1.slideTo(0,-110,1000);	
	e2.slideTo(102,-110,1000);	
	e3.slideTo(194,-110,1000);	
	e4.slideTo(286,-110,1000);	
	e6.slideTo(menuLeft6,-110,1000);	

  //menuBarName = 'idMenuBar' + menuId;
  //document.getElementById(menuBarName).style.backgroundColor = "#000000";    


  
  if (menuId == '3_1') {
	e3.slideTo(194,20,1000);	
	e3_1.slideTo(286,20,1000);	
	e3_2.slideTo(286,-110,1000);	

	document.getElementById('idMenuBar3').style.backgroundColor = menuBarBackColor1;
	document.getElementById('idsubMenu3_1').style.backgroundColor = menuBarBackColor;
	document.getElementById('idsubMenu3_2').style.backgroundColor = menuBackColor;

  }
  
  if (menuId == '3_2') {
	e3.slideTo(194,20,1000);	
	e3_2.slideTo(286,35,1000);	
	e3_1.slideTo(286,-110,1000);	

	document.getElementById('idsubMenu3_2').style.backgroundColor = menuBarBackColor;
	document.getElementById('idsubMenu3_1').style.backgroundColor = menuBackColor;
	document.getElementById('idMenuBar3').style.backgroundColor = menuBarBackColor1;

  }
  
  
}


function changeColor(objectNo,divColor,linkColor,MenuBarID,menuBarColor) {
	
	var divName;
	var linkName;		
	var menuBarName;

	divName = 'idsubMenu' + objectNo;
	linkName = 'idsubMenuLink' + objectNo;
	menuBarName = 'idMenuBar' + MenuBarID;

	
	document.getElementById(menuBarName).style.backgroundColor = menuBarColor;
	document.getElementById(divName).style.backgroundColor = divColor;
	document.getElementById(linkName).style.color = linkColor;
	
}

function changeMenuBarLinkColor(menuBarId,newColor) {
	
	var menuBarLinkId;		
	
	menuBarLinkId = 'idMenuBarLink' + menuBarId;
	
	document.getElementById(menuBarLinkId).style.color = newColor;
	document.getElementById(menuBarLinkId).style.cursor = 'hand';
}


function changeMenuBarBackColor(menuBarId,newColor) {

	var menuBarName;		

	menuBarName = 'idMenuBar' + menuBarId;
	document.getElementById(menuBarName).style.backgroundColor = newColor;
}

function changeSubMenuColor(objectNo,divColor,linkColor,MenuBarID,menuBarColor) {
	
	var divName;
	var linkName;		
	var menuBarName;

   
	
	if (objectNo == '3_1_1' || objectNo == '3_1_2' || objectNo == '3_1_3') {
		document.getElementById('idsubMenu3_1').style.backgroundColor = menuBarBackColor;
		document.getElementById('idsubMenu3_2').style.backgroundColor = menuBackColor;
	}
	
	if (objectNo == '3_2_1' || objectNo == '3_2_2' || objectNo == '3_2_3') {
		document.getElementById('idsubMenu3_2').style.backgroundColor = menuBarBackColor;
		document.getElementById('idsubMenu3_1').style.backgroundColor = menuBackColor;
	}
	
	divName = 'idsubMenu' + objectNo;
	linkName = 'idsubMenuLink' + objectNo;
	menuBarName = 'idMenuBar' + MenuBarID;
	
	
	document.getElementById(menuBarName).style.backgroundColor = menuBarColor;
	document.getElementById(divName).style.backgroundColor = divColor;
	document.getElementById(linkName).style.color = linkColor;
	
}

function showLargeImg(imgName) {
	
    document.getElementById("imgLargePhoto").src = imgName.src;
}

function showDefaultLargeImg() {

    document.getElementById("imgLargePhoto").src = imgLargeImgSRC;

}

function OpenDisclaimer() {

    SelectWin = window.open("disclaimer.htm", "Disclaimer",
         "toolbar=no,location=no,directories=no,status=no," +
         "menubar=no,scrollbars=yes,resizable=no,width=500,height=400")

}



/////
function stopScrollDown() {
	var e1;
	var e2;

	e1 = document.getElementById('idContent').cbe;	

	e1.stopSequence()	

	//e2 = document.getElementById('idScrollPlaceHolder').cbe;
	//e2.stopSequence()	

}


function startScrollDown() {
	var e1;
	var e2;
	
	e1 = document.getElementById('idContent').cbe;	
	
	e1.slideRate = cbeSlideRateLinear
	//e1.slideRate = cbeSlideRateSine
	//e1.slideRate = cbeSlideRateCosine

	//e1.slideTo(0,-450,10000);
	e1.slideTo(0,scrollOffset,2000);
	
	//e2 = document.getElementById('idScrollPlaceHolder').cbe;
	//e2.slideRate = cbeSlideRateLinear	
	//e2.slideTo(0,56,5000);
}

function stopScrollUp() {
	var e1;
	var e2;
	
	e1 = document.getElementById('idContent').cbe;	

	e1.stopSequence()	

	//e2 = document.getElementById('idScrollPlaceHolder').cbe;
	//e2.stopSequence()	

}


function startScrollUp() {
	var e1;
	var e2;
		
	e1 = document.getElementById('idContent').cbe;	

	//e1.slideRate = cbeSlideRateLinear
	e1.slideRate = cbeSlideRateSine
	//e1.slideRate = cbeSlideRateCosine

	e1.slideTo(0,0,2000);

	//e2 = document.getElementById('idScrollPlaceHolder').cbe;
	//e2.slideRate = cbeSlideRateLinear
	//e2.slideTo(0,0,5000);

}

/////

function closeDisclaimer() {
	document.getElementById('idNew1').style.display = 'none';
}