/*-------------------------------------------------------------------------
Image Slider at top v2
-------------------------------------------------------------------------*/

jQuery(document).ready(function() {
	
    jQuery('.slideshow').cycle({
		fx: 'scrollLeft',
		timeout: 8000,
		pause: true
	});

    jQuery('.gallery').cycle({ 
    	fx: 'scrollLeft',
		delay:  3000,
		pause: true
		});
	
	jQuery('.offerSpec').cycle({ 
    	fx: 'scrollLeft',
		delay:  6000,
		pause: true
		});
	

/*-------------------------------------------------------------------------
Image Slider text
-------------------------------------------------------------------------*/	
	
	jQuery('.slideContent, .slideContent2, .slideContent3, .slideContent4, .slideContent5, .slideContent6, .slideContent7, .slideContent8').hide()
	jQuery('.infoBtn').hover(function(){  
		jQuery('.slideContent').fadeIn(500);
		},
		function() {
		jQuery('.slideContent').fadeOut(500);
    	});
	

	jQuery('.infoBtn2').hover(function(){  
		jQuery('.slideContent2').fadeIn(500);
		},
		function() {
		jQuery('.slideContent2').fadeOut(500);
    	});
	

	jQuery('.infoBtn3').hover(function(){  
		jQuery('.slideContent3').fadeIn(500);
		},
		function() {
		jQuery('.slideContent3').fadeOut(500);
    	});
	
	jQuery('.infoBtn4').hover(function(){  
		jQuery('.slideContent4').fadeIn(500);
		},
		function() {
		jQuery('.slideContent4').fadeOut(500);
    	});
	
	jQuery('.infoBtn5').hover(function(){  
		jQuery('.slideContent5').fadeIn(500);
		},
		function() {
		jQuery('.slideContent5').fadeOut(500);
    	});
		
	jQuery('.infoBtn6').hover(function(){  
		jQuery('.slideContent6').fadeIn(500);
		},
		function() {
		jQuery('.slideContent6').fadeOut(500);
    	});
	
	jQuery('.infoBtn7').hover(function(){  
		jQuery('.slideContent7').fadeIn(500);
		},
		function() {
		jQuery('.slideContent7').fadeOut(500);
    	});
	
	jQuery('.infoBtn8').hover(function(){  
		jQuery('.slideContent8').fadeIn(500);
		},
		function() {
		jQuery('.slideContent8').fadeOut(500);
    	});

/*-------------------------------------------------------------------------
drop down ClientSup
-------------------------------------------------------------------------*/

	jQuery('.dropDownClientSup').hide()
	jQuery('.navBtnTwo').hover(function(){
							   
		jQuery('.dropDownClientSup').fadeIn(500);
		},
		function() {
		jQuery('.dropDownClientSup').fadeOut(200);
    	});

/*-------------------------------------------------------------------------
drop down Fac
-------------------------------------------------------------------------*/

	jQuery('.dropDownFac').hide()
	jQuery('.navBtnOne').hover(function(){
							   
		jQuery('.dropDownFac').fadeIn(500);		
		},
		function() {
		jQuery('.dropDownFac').fadeOut(200);
    	});
	
/*-------------------------------------------------------------------------
drop down Comp
-------------------------------------------------------------------------*/

	jQuery('.dropDownComp').hide()
	jQuery('.navBtnThree').hover(function(){
							   
		jQuery('.dropDownComp').fadeIn(500);
		},
		function() {
		jQuery('.dropDownComp').fadeOut(200);
    	});

/*-------------------------------------------------------------------------
FacDev Fade In
-------------------------------------------------------------------------*/
	
	jQuery('.FacDev').hide()
	jQuery('.FacDev').delay(1000).fadeIn(500);
	jQuery('.FacDevText').hide().delay(1000)
	jQuery('.FacDevText').fadeIn(500);
	jQuery('.FacDevImg').hide().delay(1500).fadeIn(500);
	jQuery('.FacDevImg2').hide().delay(2000).fadeIn(500);
	jQuery('.FacDevImg3').hide().delay(2500).fadeIn(500);
	
/*-------------------------------------------------------------------------
Partners accordian
-------------------------------------------------------------------------*/

	jQuery('.partners ul > li ul')
	.click(function(e){
					e.stopPropagation();
					})
	.filter(':not(:first)')
	.hide();
	
	jQuery('.partners ul > li').click(function(){
	var selfClick = jQuery(this).find('ul:first').is(':visible');
	if (!selfClick){
		jQuery(this)
		.parent()
		.find('> li ul:visible')
		.slideToggle();
	}
	jQuery(this)
	.find('ul:first')
	.slideToggle();
	});
	

/*-------------------------------------------------------------------------
Fancybox
-------------------------------------------------------------------------*/
	
jQuery('a.grouped_elements').fancybox({
		'transitionIn'	:	'fade',
		'transitionOut'	:	'fade',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayShow'	:	true,
		'overlayColor'	: 	'#333333',
		'overlayOpacity':	0.9,
		'titleShow'		:	'true',
		'titlePosition'	:	'over',
		'onComplete'	:	function() {
			jQuery("#fancybox-wrap").hover(function() {
				jQuery("#fancybox-title").show();
				}, function() {
				jQuery("#fancybox-title").hide();
				});
				}
		});


/*-------------------------------------------------------------------------
Fancybox LogIn
-------------------------------------------------------------------------*/

/*jQuery(".logIn").fancybox({
	'scrolling'		: 'no',
	'titleShow'		: false,
	'onClosed'		: function() {
	    jQuery("#login_error").hide();
	}
});
jQuery("#login_form").bind("submit", function() {

	if (jQuery("#login_name").val().length < 1 || jQuery("#login_pass").val().length < 1) {
	    jQuery("#login_error").show();
	    jQuery.fancybox.resize();
	    return false;
	}

	jQuery.fancybox.showActivity();

	jQuery.ajax({
		type		: "POST",
		cache	: false,
		url		: "../admin/login.php",
		data		: jQuery(this).serializeArray(),
		success: function(data) {
			jQuery.fancybox(data);
		}
	});

	return false;
});*/

/*-------------------------------------------------------------------------
Fancybox UTube
-------------------------------------------------------------------------*/


/*jQuery(".youTube").click(function() {
	jQuery.fancybox({
			'padding'		: 0,
			'autoScale'		: false,
			'transitionIn'	: 'none',
			'transitionOut'	: 'none',
			'title'			: this.title,
			'width'		: 680,
			'height'		: 495,
			'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
			'type'			: 'swf',
			'swf'			: {
			   	 'wmode'		: 'transparent',
				'allowfullscreen'	: 'true'
			}
		});

	return false;
});*/



});/**/
