jQuery(window).load(function() {
    

    //jQuery('.galleryview li img').each(function(index) {
    //    
    //    var altTag = jQuery(this).attr('alt');
    //    var linkTest = altTag.substr(0, 7)
    //    if (linkTest == "http://"){
    //       console.log(index + ': ' + linkTest);
    //       jQuery(this).click(function() {
    //            console.log('here' );
    //      });
    //    }
    //    
    //});
    
            jQuery('.panel img').each(function(index) {
               var altTag = jQuery(this).next("span").children("p").html();
               if (altTag){
                var linkTest = altTag.substr(0, 7)
                if (linkTest == "http://"){
                   jQuery(this).css('cursor', 'pointer');
                   jQuery(this).click(function() {
                        
                        window.open(altTag,'_newtab');
                   
                  });
                }
               }
          });
            
        
          //  jQuery('.panel img').click(function() {
          //     var altTag = jQuery(this).next("span").children("p").html();
          //      var linkTest = altTag.substr(0, 7)
          //      if (linkTest == "http://"){
          //         jQuery(this).click(function() {
          //              //location.href=altTag;
          //              console.log('here' );
          //              window.open(altTag,'_newtab');
          //        });
          //      }
          //});

    
    
    
}); // Doc Ready End
