$(function() { 
  $(".colorbox").colorbox({ width:"520", height:"420" });
  $(".iframe-partner").colorbox({ width:"520", height:"420", iframe:true });    
  $(".iframe-packages").colorbox({ width:"480", height:"460", iframe:true, title:"Firefly Holiday Package Search" });  
  $(".fyh-voucher-pop").colorbox({ width:"360", inline:true, href:"#fyh-voucher-content" }); 
	$(".pop-flight-search").colorbox({width:"400", height:"360", iframe:true, title:"Firefly Flight Search"}); 
  $('.tabs').tabs({ fx: { opacity: 'toggle' } });
	$('#skyscraper').innerfade({ speed: 'slow', timeout: 10000, type: 'sequence', containerheight: '600' }); 
	$('#halfskyscraper').innerfade({ speed: 'slow', timeout: 10000, type: 'sequence', containerheight: '320' }); 
	$(".pop-cto-bki-kch").colorbox({ width:"400", inline:true, href:"#content-cto-bki-kch"});
  $(".umrah-packages-pop").colorbox({ width:"400", inline:true, href:"#umrah-packages-content", title:"Firefly Holiday Umrah Packages"});
//  $(".umrah-package").colorbox({ width:"80%", height:"80%", title:"Firefly Holiday Umrah Packages"});
  $(".mahadewa-pop").colorbox({ width:"480", height:"460", iframe:true, title:"Mahadewa Live in Johor Bahru" });  
  $(".pop-schedule-mh").colorbox({ width:"400", inline:true, href:"#flight-schedule-mh"});
  $(".discount-pop").colorbox({ width:"400", inline:true, href:"#discount-form", title:"Enter Promo Code"});
  }); 

	$(window).load(function() {
	      	$('#main-ad').nivoSlider({
	      	  effect:'random', //Specify sets like: 'fold,fade,sliceDown'
	          slices:15,
	          animSpeed:500,
	          pauseTime:9500,
	          startSlide:0, //Set starting Slide (0 index)
	          directionNav:true, //Next & Prev
	          directionNavHide:true, //Only show on hover
	          controlNav:true, //1,2,3...
	          controlNavThumbs:false, //Use thumbnails for Control Nav
	          controlNavThumbsFromRel:false, //Use image rel for thumbs
	          controlNavThumbsSearch: '.jpg', //Replace this with...
	          controlNavThumbsReplace: '_tn.jpg', //...this in thumb Image src
	          keyboardNav:true, //Use left & right arrows
	          pauseOnHover:true, //Stop animation while hovering
	          manualAdvance:false, //Force manual transitions
	          captionOpacity:0.8, //Universal caption opacity
	          beforeChange: function(){},
	          afterChange: function(){},
	          slideshowEnd: function(){} //Triggers after all slides have been shown

	      	});
	      });
