// Jquery Document
//left navigation
$(document).ready(function(){

	$(".left_navigation h4").click(function(){
						
					if($(this).has().next("ul")){	
						
				$(this).next("ul").slideToggle("normal")
				.siblings("ul:visible").slideUp("normal");
						
				$(this).toggleClass("left_navigation_close");
				$(this).siblings("h4").removeClass("left_navigation_close");
	}else{

	}
	});
	
});   
						   
//drop down menu on inner pages						   
$(document).ready(function(){
						   
						   
	$(".dropdown").hover(function(){
								  
								  
				$(this).next("ul").show().siblings("ul:visible").fadeOut("slow");
  
						   });
	
	
	
				$(".dropdown_menu1,.dropdown_menu2").mouseleave(function(){
													 
													 
								$(this).fadeOut("slow");					 
													 
													 });
					$(".hide").mouseover(function(){
												  
												  
								$(".dropdown_menu1").fadeOut();				  
												  
								$(".dropdown_menu2").fadeOut();				  
	  
												  });
						
						   });
					
					
	//rollover effect for Service Images on Homepage						
	$(document).ready(function(){
							   
							   
				$(".serviceBox").hover(function(){
					
					$(this).find(".caption").animate ({"bottom" : "0px", "opacity" : "1"}, "slow");
						}, function (){
					$(this).find(".caption").animate ({"bottom" : "-90px", "opacity" : "0"}, "slow");								   
				});
							   					
							   
		});
						 
//Gallery Simple Lightbox

$(document).ready(function(){
						   
						   
			$(".galleryimage").click(function(e){
							
						
											  
						var newimage = $(this).attr("title");
						var lightboxPosY = e.pageY - 250;
						
						$('<div id="overlay"></div>')
						  .css('opacity', '0')
						  .animate({'opacity': '0.5'}, 'fast')
						  .appendTo('body');
						  
						  
						  
						$(".newimage").attr("src" , newimage);
						
						$(".lightbox").css({'top':lightboxPosY}).fadeIn('slow');
						
											  
											  
											  
											  });
						   
			$('.lightbox_close').click(function(e){
      	
      
      					$('.lightbox').fadeOut('slow', function(){
      	
						$('#overlay').remove();
						$('body').css('overflow-y', 'auto');
						quickHeight = 0;
      	
      							});
      
      
      						});
						   
						});



//slider code on Videos page


