
jQuery(document).ready(function() { 

  $('#gssw-main-navigation li.open').hover(
      function () {
        $(this).stop().find('ul').show();
        $(this).addClass('active');
      }, 
      function () {
        $(this).stop().find('ul').fadeOut('fast');
        $(this).removeClass('active');         
      }
  );

//end of custom javascript
}); 

/*************************** Toggle Content ***************************/

jQuery(document).ready(function(){
    jQuery(".toggle-box").hide(); 
    
    jQuery(".toggle").toggle(function(){
        jQuery(this).addClass("toggle-active");
        }, function () {
        jQuery(this).removeClass("toggle-active");
    });
    
    jQuery(".toggle").click(function(){
        jQuery(this).next(".toggle-box").slideToggle();
    });
});



jQuery(document).ready(function(){

	
	$(".one_third img").each(function() {
		//alert($(this).attr("src"));
		$(this).after('<span class="zoom-icon"><img src="/data/uploads/play.png"  alt="Zoom"></span>');
		});
	$(".zoom-icon img").each(function() {
	$(this).hover(
      function () {
        $(this).fadeTo('fast',0.5);
      }, 
      function () {
         $(this).fadeTo('fast',1);        
      });
	})
	
	$(".video").each(function() {
		//alert($(this).attr("src"));
		$(this).after('<span class="zoom-icon-video"><img src="/data/uploads/playbig.png"  alt="Zoom"></span>');
		$(this).hover(
      function () {
        $(this).fadeTo('fast',0.5);
      }, 
      function () {
         $(this).fadeTo('fast',1);        
      });
	});
	$(".zoom-icon-video img").each(function() {
	$(this).hover(
      function () {
        $(this).fadeTo('fast',0.5);
      }, 
      function () {
         $(this).fadeTo('fast',1);        
      });
	})

	$(".socialicon").each(function() {
	$(this).hover(
      function () {
        $(this).fadeTo('fast',0.7);
      }, 
      function () {
         $(this).fadeTo('fast',1);        
      });
	})
	$(".piccy").each(function() {
	$(this).hover(
      function () {
        $(this).fadeTo('fast',0.7);
      }, 
      function () {
         $(this).fadeTo('fast',1);        
      });
	})
});




