  function launchGallery(){
           //var apiKey = 'b1d8e30985e30fffbc66c8d9b325a181';//makin
           var apiKey= 'e28afc18be338559ba92b770f7f02710';//tapeo
           //72157603781291908 
           //72157622710077622
           
           //72157624640635176 //id web tapeo
            var thePhotosetId ='72157624640635176';       
            jQuery.getJSON('http://api.flickr.com/services/rest/?&method=flickr.photosets.getPhotos&api_key=' + apiKey + '&photoset_id='+thePhotosetId+'&format=json&jsoncallback=?',               
            function(data){           
                totalPhotos =data.photoset.total;
                //loop through the results with the following function
                jQuery.each(data.photoset.photo, function(i,item){                               
                    //build the url of the photo in order to link to it
                    var photoURL = 'http://farm' + item.farm + '.static.flickr.com/' + item.server + '/' + item.id + '_' + item.secret + '_b.jpg';
                    var photoURLThumb = 'http://farm' + item.farm + '.static.flickr.com/' + item.server + '/' + item.id + '_' + item.secret + '_s.jpg';
                    //turn the photo id into a variable
                    var photoID = item.id;                                   
                        //use another ajax request to get the tags of the image
                        jQuery.getJSON('http://api.flickr.com/services/rest/?&method=flickr.photos.getInfo&api_key=' + apiKey + '&photo_id=' + photoID + '&format=json&jsoncallback=?',
                        function(data){                       
                        //create an imgCont string variable which will hold all the link location, title, author link, and author name into a text string
                        var imgCont = '<div class="imageElement">'+
                                            '<h3>'+ data.photo.title._content +'</h3>'+
                                            '<p>'+ data.photo.description._content +'</p>'+
                                            '<a href="#" title="'+data.photo.title._content+'" class="open"></a>'+
                                            '<img src="'+ photoURL +'" class="full" />'+
                                            '<img src="'+ photoURLThumb +'" class="thumbnail" />' +
                                        '</div>';
                                        jQuery(imgCont).appendTo('#myGallery');                   
                        //delete the pLocation global variable so that it does not repeat
                        delete pLocation;
                        if ((totalPhotos-1) ==i) window.addEvent('domready',startGallery);
                        //document.getElementById('myGallery').style.display='';
                        
                    });
              });             
            });           
    	}
