// JavaScript Document

jQuery(document).ready(function(){
	jQuery('.line').hide();
		
		jQuery.fn.pause = function(duration) {
    jQuery(this).animate({ dummy: 1 }, duration);
    return this;
};

		// For About Us Section				   

    jQuery('#leftSec, #backCS, #rightSec').fadeIn(1500); 	 
		
		
				jQuery(".clentLogo, .showCase").hover(   
				 function(){jQuery(this).find('.casestudy').addClass("hoverLogo").stop().animate({opacity:'1'}, 500) },
 				function(){jQuery(this).find('.casestudy').removeClass("hoverLogo").stop().animate({opacity: '0'}, 200)  
 					}); 
 
				jQuery(".clentLogo, .showCasePartner").hover(   
				 function(){jQuery(this).find('.casestudyPartner').addClass("hoverLogoPartner").stop().animate({opacity:'1'}, 500) },
 				function(){jQuery(this).find('.casestudyPartner').removeClass("hoverLogoPartner").stop().animate({opacity: '0'}, 200)  
 					}); 
 
				jQuery(".clentLogo").hover(   
			 function(){jQuery(this).find('.visitWeb').stop().animate({opacity:'1'}, 500) },
			 function(){jQuery(this).find('.visitWeb').stop().animate({opacity: '0'}, 200)  
 					});
 
 jQuery('.casestudy').stop().animate({opacity: '0'}, 10);
  jQuery('.visitWeb').stop().animate({opacity: '0'}, 10);
  
  // For Tech Section By MS on 17th FEb 
  jQuery(".techMain").hover(   
				 function(){jQuery(this).find('.techNamev2').addClass("arrowShow").stop().animate({opacity:'1'}, 500) },
 				function(){jQuery(this).find('.techNamev2').removeClass("arrowShow").stop().animate({opacity: '0'}, 200)  
 					}); 
// For Tech Section

// For Tech Section

/*jQuery(".techMainv2").hover(function(){
	jQuery('.casestudyt').delay(500).fadeIn();
}, function(){
	jQuery('.casestudyt').delay(200).fadeOut();  
});
jQuery(".techMainv21").hover(function(){
	jQuery('.casestudy1t').delay(500).fadeIn();
}, function(){
	jQuery('.casestudy1t').delay(200).fadeOut();  
});
jQuery(".techMainv22").hover(function(){
	jQuery('.casestudy2t').delay(500).fadeIn();
}, function(){
	jQuery('.casestudy2t').delay(200).fadeOut();  
});
jQuery(".techMainv23").hover(function(){
	jQuery('.casestudy3t').delay(500).fadeIn();
}, function(){
	jQuery('.casestudy3t').delay(200).fadeOut();  
});
jQuery(".techMainv24").hover(function(){
	jQuery('.casestudy4t').delay(500).fadeIn();
}, function(){
	jQuery('.casestudy4t').delay(200).fadeOut();  
});
jQuery(".techMainv25").hover(function(){
	jQuery('.casestudy5t').delay(500).fadeIn();
}, function(){
	jQuery('.casestudy5t').delay(200).fadeOut();  
});*/
 			   
						   
// For Top Menu 					   
						   

   jQuery('a.menu, a.menuopen').click(function () {
var chHeight = "";												
if(jQuery(".center").height() > 620)
{
	chHeight = 783;
	jQuery('#slidepopup').css({"height":"683px"});
}
else
	chHeight = 713;

       jQuery('.header').stop().animate({height:chHeight+"px", width:"100%" },1000);
      jQuery('.header').css({"border-bottom":"2px solid #F9D51C"},300);
             	jQuery('#slidepopup').show(1000);
		 	jQuery('a.menu').hide();
		 	jQuery('a.menuClBg').show();
			//jQuery(".fl_logo").css("background","");
			 $('html, body').pause(500).animate({scrollTop:0}, '1000');
			 jQuery('.line').show().css({"background":"#F9D51C"},1000);
       		 return false;
         
	   
});
   
   jQuery('a.menuclose').click(function () {
		
       jQuery('.header').stop().animate({height:"98px", width:"100%" },1000);
	   
	   //jQuery(".fl_logo").css("background","url(assets/images/style/auto-logo-fl.gif) no-repeat");
	   	jQuery('#slidepopup').hide(1000);
		jQuery('a.menu').show();
		jQuery('a.menuClBg').hide();
		jQuery('.line').hide();
		 
		 jQuery("#msgSuccess").html("");
		jQuery("#ContactForm").pause(3000).show();
		jQuery('.header').css({"border-bottom":"2px solid #F9D51C"},1000);
		
		
		
		
		
});

// For News section

   jQuery('.newsLeft, .newsRight').fadeIn(1000);


/*jQuery(".col_2 ul li a").click(function(){
		var loc = "";
		var base = "";
		var pos;
		loc = jQuery(this).attr("href");
		if(loc != "javascript:void(0);"){
			if(jQuery(this).attr("target") != "_blank")
			{
				var pos=jQuery(this).attr("href").indexOf('http://');
				if(pos == -1)
				{
					base = jQuery("base").attr("href");
					base = base.slice(0, -1);
					loc = base+jQuery(this).attr("href");
				}
				jQuery(this).attr("href", "");
				jQuery('.header').stop().animate({height:"98px", width:"100%" },1000, function() { 
				jQuery(this).pause(1000);
				})
				window.location.href = loc;
				jQuery('#slidepopup').hide(1000);
				jQuery('a.menu').show();
				jQuery('a.menuClBg').hide();return false;
			}
		}
	})*/
});

jQuery(window).load(function(){
		
		jQuery('.leftImg img').stop().animate({height:"506px", width:"406px", top:"0px" },1000);
		 jQuery('.rightcontent').fadeIn(1500);
		 jQuery('a.backAbout, a.back, a.backTech').fadeIn(1500);
		 jQuery('.leftImgIvx img').stop().animate({height:"506px", width:"405px", top:"100px", left:"0px" },1000);
		 
		 // For Work Section
		 
		jQuery('#slideCar').removeClass('absRight');
	 	jQuery('#slideCar').stop().animate({height:"391px", width:"600px", top:"345px",  right:"380px" },2000,'swing',function() {
    jQuery('.textInfo, #clientList').fadeIn(1000); 	    
  });					
						
})



