
$(document).ready(function(){

 
      $('#Wait').fadeIn(1500, function() {
           setTimeout(init,1000);
		  // init();
		//   $(this).init();
      });   

 var imageFiles = new Array("Image/Wait.gif", "Image/ZL.png", "Image/ZR.png","Image/ZCL.png","Image/ZCR.png","Image/ZL1.png","Image/ZL2.png","Image/ZR1.png","Image/ZR2.png","Image/ZLV.png","Image/ZRV.png","Image/CL1.png","Image/CR1.png","Image/CL2.png","Image/CLL1.png","Image/CR2.png","Image/CLR1.png","Image/ZCBL.png","Image/ZCBR.png","Image/CLLB.png","Image/CLRB.png","Image/CLLB.png","Image/CLRB.png");



      var imagesLoaded = new Number(0);

 

      function init()
      {
        var images = new Array();

       // alert("It will proceed to preload the images.");
		
        for(i=0; i<imageFiles.length; i++)
		  images[i] =  loadImage(imageFiles[i]);
      }

      function loadImage(url)
      {
        var image = new Image();
		$(image).load(function () { imageLoaded() });
        image.src = url;
        return image;
      }

      function imageLoaded()
      {
        imagesLoaded++;

        if (imagesLoaded == imageFiles.length)
         $('#Wait').fadeOut(1000, function() {
		
         $('#All').fadeIn(1000);
		 setTimeout("IntroSlide3();",1);
      }); 
      }
 
  ///////////////////////////
  
  });
  
  

 















var A_A = ("Image/Intro/IntroAra1.gif","Image/Intro/IntroAra1.gif","Image/Intro/IntroAra2.gif","Image/Intro/IntroAra2.gif","Image/Intro/IntroAra3.gif","Image/Intro/IntroAra3.gif","Image/Intro/IntroAra4.gif","Image/Intro/IntroAra4.gif","Image/Intro/IntroAra5.gif","Image/Intro/IntroAra5.gif","Image/Intro/IntroAra6.gif","Image/Intro/IntroAra6.gif","Image/Intro/IntroAra7.gif","Image/Intro/IntroAra7.gif","Image/Intro/IntroAra8.gif","Image/Intro/IntroAra8.gif");


var A = ("Image/Intro/IntroAra1.gif","Image/Intro/IntroAra2.gif","Image/Intro/IntroAra3.gif","Image/Intro/IntroAra4.gif","Image/Intro/IntroAra5.gif","Image/Intro/IntroAra6.gif","Image/Intro/IntroAra7.gif","Image/Intro/IntroAra8.gif");





var E_E= ("Image/Intro/IntroEng1.gif","Image/Intro/IntroEng1.gif","Image/Intro/IntroEng2.gif","Image/Intro/IntroEng2.gif","Image/Intro/IntroEng3.gif","Image/Intro/IntroEng3.gif","Image/Intro/IntroEng4.gif","Image/Intro/IntroEng4.gif","Image/Intro/IntroEng5.gif","Image/Intro/IntroEng5.gif","Image/Intro/IntroEng6.gif","Image/Intro/IntroEng6.gif","Image/Intro/IntroEng7.gif","Image/Intro/IntroEng7.gif","Image/Intro/IntroEng8.gif","Image/Intro/IntroEng8.gif");


var E= ("Image/Intro/IntroEng1.gif","Image/Intro/IntroEng2.gif","Image/Intro/IntroEng3.gif","Image/Intro/IntroEng4.gif","Image/Intro/IntroEng5.gif","Image/Intro/IntroEng6.gif","Image/Intro/IntroEng7.gif","Image/Intro/IntroEng8.gif");




var L_A_1 = ("Image/Intro/Imge/h01A.jpg","Image/Intro/Imge/h03A.jpg","Image/Intro/Imge/h05A.jpg","Image/Intro/Imge/h07A.jpg","Image/Intro/Imge/h09A.jpg","Image/Intro/Imge/h11A.jpg","Image/Intro/Imge/h13A.jpg","Image/Intro/Imge/h15A.jpg","Image/Intro/Imge/h17A.jpg","Image/Intro/Imge/h19A.jpg","Image/Intro/Imge/h21A.jpg","Image/Intro/Imge/h23A.jpg","Image/Intro/Imge/h25A.jpg","Image/Intro/Imge/h27A.jpg","Image/Intro/Imge/h29A.jpg","Image/Intro/Imge/h31A.jpg");




var L_B_1 = ("Image/Intro/Imge/h01B.jpg","Image/Intro/Imge/h03B.jpg","Image/Intro/Imge/h05B.jpg","Image/Intro/Imge/h07B.jpg","Image/Intro/Imge/h09B.jpg","Image/Intro/Imge/h11B.jpg","Image/Intro/Imge/h13B.jpg","Image/Intro/Imge/h15B.jpg","Image/Intro/Imge/h17B.jpg","Image/Intro/Imge/h19B.jpg","Image/Intro/Imge/h21B.jpg","Image/Intro/Imge/h23B.jpg","Image/Intro/Imge/h25B.jpg","Image/Intro/Imge/h27B.jpg","Image/Intro/Imge/h29B.jpg","Image/Intro/Imge/h31B.jpg");



var L_A_2 = ("Image/Intro/Imge/h02A.jpg","Image/Intro/Imge/h04A.jpg","Image/Intro/Imge/h06A.jpg","Image/Intro/Imge/h08A.jpg","Image/Intro/Imge/h10A.jpg","Image/Intro/Imge/h12A.jpg","Image/Intro/Imge/h14A.jpg","Image/Intro/Imge/h16A.jpg","Image/Intro/Imge/h18A.jpg","Image/Intro/Imge/h20A.jpg","Image/Intro/Imge/h22A.jpg","Image/Intro/Imge/h24A.jpg","Image/Intro/Imge/h26A.jpg","Image/Intro/Imge/h28A.jpg","Image/Intro/Imge/h30A.jpg","Image/Intro/Imge/h32A.jpg");




var L_B_2 = ("Image/Intro/Imge/h02B.jpg","Image/Intro/Imge/h04B.jpg","Image/Intro/Imge/h06B.jpg","Image/Intro/Imge/h08B.jpg","Image/Intro/Imge/h10B.jpg","Image/Intro/Imge/h12B.jpg","Image/Intro/Imge/h14B.jpg","Image/Intro/Imge/h16B.jpg","Image/Intro/Imge/h18B.jpg","Image/Intro/Imge/h20B.jpg","Image/Intro/Imge/h22B.jpg","Image/Intro/Imge/h24B.jpg","Image/Intro/Imge/h26B.jpg","Image/Intro/Imge/h28B.jpg","Image/Intro/Imge/h30B.jpg","Image/Intro/Imge/h32B.jpg");




function IntroSlide3(){



$(document).ready(function() { 
    // start slideshow 
    $('#ArWIntSlider').cycle({ 
        fx:      'blindX,fadeZoom,toss,slideX,blindZ,zoom,curtainX,curtainX', 
	speed:    700, 
    timeout:  10000,
	delay:  4000,
	randomizeEffects: 0,
	before:   onBefore
	}); 
 
    var slidesAdded = false; 
     
    function onBefore(curr, next, opts) { 
        // make sure we don't call addSlide before it is defined 
        if (!opts.addSlide || slidesAdded) 
            return; 
         
        // add slides for images 3 - 8 
        // slides can be a DOM element, a jQuery object, or a string 
        for (var i=3; i < 9; i++) 
            opts.addSlide('<img src="Image/Intro/IntroAra'+i+'.gif" width="220" height="217" />');
        slidesAdded = true; 

		
    }; 
	
	//EngWIntrSlider /// IntroEng
	
	


	// RIGHT 1
	
	    $('#ArImgIntSlider').cycle({ 
        fx:      'wipe,scrollLeft,fadeZoom,toss,slideX,blindZ,zoom,curtainX,curtainX', 
	speed:    700, 
    timeout:  5000,
	delay:  4000,
	randomizeEffects: 0,
	animOut: { top: 200, left: -300 },
	before:   onBefore3
	}); 
 
    var slidesAdded3 = false; 
     
    function onBefore3(curr, next, opts) { 
        // make sure we don't call addSlide before it is defined 
        if (!opts.addSlide || slidesAdded3) 
            return; 
         
        // add slides for images 3 - 8 
        // slides can be a DOM element, a jQuery object, or a string 
        for (var i=3; i < 17; i++) 
            opts.addSlide('<img src="Image/Intro/Imge/h'+i+'AR.jpg" width="220" height="217" />');
        slidesAdded3 = true; 

		
    }; 

	// RIGHT 2
	


		// LEFT 1
	
		    $('#EngImgIntrSlider').cycle({ 
        fx:      'wipe,scrollRight,fadeZoom,toss,slideX,blindZ,zoom,curtainX,curtainX', 
	speed:    700, 
    timeout:  5000,
	delay:  4000,
	randomizeEffects: 0,
	
	before:   onBefore5
	}); 
 
    var slidesAdded5 = false; 
     
    function onBefore5(curr, next, opts) { 
        // make sure we don't call addSlide before it is defined 
        if (!opts.addSlide || slidesAdded5) 
            return; 
         
        // add slides for images 3 - 8 
        // slides can be a DOM element, a jQuery object, or a string 
        for (var i=3; i < 17; i++) 
            opts.addSlide('<img src="Image/Intro/Imge/h'+i+'AL.jpg" width="220" height="217" />');
        slidesAdded5 = true; 

		
    }; 


	
	



}); 	
	



}



