$(document).ready(function(){
//function writerss(){
$.getJSON("http://api.flickr.com/services/feeds/photoset.gne?set=72157622716294676&nsid=87662451@N00&lang=en-us&format=json&jsoncallback=?", function(data){
	  var tmpstr = "";
		  $.each(data.items, function(i,item){
				bigpt = item.media.m; 	
				//var timg = new Image();
				//$(timg).attr('src', bigpt);
				bigp = bigpt.replace("_m", ""); //set href for big pic
				//var tclass, smallp, orrw, orrh;
					//orrw = $(timg).attr('width'); //orrw = parseInt(orrw);
					//orrh = $(timg).attr('height'); //orrh = parseInt(orrh);
					//if(orrh == 0)
					//if(orrw > orrh) tclass = "landscape"; smallp = bigpt.replace("_m", "_t");
					//if(orrw < orrh) tclass = "portrait"; smallp =  bigpt;
					//alert(orrw+" "+orrh);
					smallp = bigpt.replace("_m", "_s");
				
					//tmpstr += "<a href='" + bigp + "' title='"+item.title+"'><img class='"+tclass+"' src='"+smallp+"'/></a>";
					tmpstr += "<a href='" + bigp + "' title='"+item.title+"'><img src='"+smallp+"'/></a>";
					
		  }); 
		$("#Fotoslider").html(tmpstr);
		$('.rss a').lightBox();
		$(".scrollable2").scrollable({size: 10, items: '.rss'});     
		

	});
//}
//writerss();

});


    


/*$(document).ready(function(){
	$.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?id=87662451@N00&lang=en-us&format=json&jsoncallback=?", function(data){
		  $.each(data.items, function(i,item){
			bigpt = item.media.m; 	
			bigp = bigpt.replace("_m", ""); //set href for big pic
			
			var timg =  new Image();
			//var timg;
			$(timg).attr('src', item.media.m);
			orrw = $(timg).attr('width');
			orrh = $(timg).attr('height');
				if(orrw > orrh) {
				smallp =  bigpt.replace("_m", "_t");
				tclass = 'landscape';
				}
				if(orrw < orrh) {
				smallp =  bigpt;
				tclass = 'portrait';
				}
			$("<img/>").addClass(tclass).attr("src", smallp).appendTo("#Fotoslider").wrap("<a href='" + bigp + "' title='"+item.title+"'></a>");
		  });
		$('.thumbs a').lightBox();
	});
});
*/
