var api_key="8a90469aed525b876acb8d24129e7c6a";method="flickr.photos.search";user_id="51500521@N03";url="http://api.flickr.com/services/rest/?method=flickr.photos.search&api_key=67cd6952e822cf99ecc2ce09746076a0&safe_search=true&group_id=52724840%40N00&per_page=10&page=1&format=json&jsoncallback=";function FlickrListPhotos(A){photo=A.photos.photo.toString();photoString=photo.split(",");l=document.createElement("ul");l.setAttribute("class","jcarousel-skin-inforgen-flickr");for(i=0;i<photoString.length;i++){li=document.createElement("li");li.setAttribute("class","photoContainer");a=document.createElement("a");im=document.createElement("img");a.setAttribute("rel","lightbox");a.setAttribute("title",A.photos.photo[i].description._content);a.setAttribute("href","http://static.flickr.com/"+A.photos.photo[i].server+"/"+A.photos.photo[i].id+"_"+A.photos.photo[i].secret+".jpg");im.setAttribute("src","http://static.flickr.com/"+A.photos.photo[i].server+"/"+A.photos.photo[i].id+"_"+A.photos.photo[i].secret+"_t.jpg");a.setAttribute("alt",A.photos.photo[i].title);a.appendChild(im);li.appendChild(a);l.appendChild(li)}$("#photoContainer").prepend(l);$("#photoContainer ul").jcarousel({visible:7,scroll:1})}function FlickrNav(A){if(A.photos.photo.length>0){photo=A.photos.photo.toString();photoString=photo.split(",");i=Math.floor(Math.random()*photoString.length);im=document.createElement("img");im.setAttribute("src","http://static.flickr.com/"+A.photos.photo[i].server+"/"+A.photos.photo[i].id+"_"+A.photos.photo[i].secret+"_s.jpg");tags=A.photos.photo[i].tags;if(tags.search("invest")>-1){$(".headerMenu .invest a").prepend("<br />");$(".headerMenu .invest a").prepend(im)}if(tags.search("live")>-1){$(".headerMenu .live a").prepend("<br />");$(".headerMenu .live a").prepend(im)}if(tags.search("work")>-1){$(".headerMenu .work a").prepend("<br />");$(".headerMenu .work a").prepend(im)}if((tags.search("study")>-1)||(tags.search("learn")>-1)){$(".headerMenu .learn a").prepend("<br />");$(".headerMenu .learn a").prepend(im)}if(tags.search("visit")>-1){$(".headerMenu .visit a").prepend("<br />");$(".headerMenu .visit a").prepend(im)}if(tags.search("news")>-1){$(".headerMenu .news a").prepend("<br />");$(".headerMenu .news a").prepend(im)}}};
