var photoCoor = {"lat":"0","lng":"0"}; function initialize() { if(google){ var myLatlng = new google.maps.LatLng(photoCoor.lat,photoCoor.lng); var myOptions = { zoom: 2, center: myLatlng, disableDefaultUI: true, mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById("map"), myOptions); var marker = new google.maps.Marker({ position: myLatlng, map: map }); } } photoId = 142947; photoIds = 0; userId = 477; photoData = {"photo_id":142947,"user_id":477,"user_login":"kezzyn","user_name":"\u041a\u0435\u0437\u0437\u0438\u043d \u0416\u0434\u0451\u0442","photo_name":"\u0410\u043d\u0433\u0435\u043d\u043b\u044b \u0438 \u0434\u0435\u043c\u043e\u043d\u044b","src":"http:\/\/ser-apr.35photo.ru\/photos\/20100420\/142947.jpg","link":"http:\/\/35photo.ru\/photo_142947\/","bg":"000000","comm_count":28,"photo_see":9955,"photo_fav":7,"photo_rating":128,"var_vote":null,"timeAdd":"20 \u0430\u043f\u0440, 2010","user":{"status":"good"},"buyAllow":0,"photo_type":1,"moder":{"yes":"0","no":"0"},"user_data":{"photo_count":"522"},"photo_desc":"\u0420\u0430\u0431\u043e\u0442\u0430 \u043d\u0430\u0448\u0435\u0439 \u043c\u0430\u0441\u0442\u0435\u0440\u0441\u043a\u043e\u0439 \u043d\u0430 \u043c\u043e\u0441\u043a\u043e\u0432\u0441\u043a\u043e\u043c \u0444\u043e\u0442\u043e\u0444\u043e\u0440\u0443\u043c\u0435 2010
\r\n\u042e\u043b\u044f \u0412\u043b\u0430\u0441\u043e\u0432\u0430 - \u0440\u0438\u0441\u0443\u0435\u0442
\r\n\u041a\u0441\u044e\u0448\u0430 \u0415\u043b\u0438\u0441\u0435\u0435\u0432\u0430- \u0433\u0440\u0438\u043c\u0438\u0440\u0443\u0435\u0442
\r\n\u041b\u0435\u043d\u0430 \u0411\u0435\u043b\u043e\u0432\u0430 - \u043f\u043e\u0437\u0438\u0440\u0443\u0435\u0442
\r\n\u0413\u0435\u043d\u043d\u0430\u0434\u0438\u0439 \u041a\u0430\u0437\u0430\u043a - \u043f\u0430\u044f\u0435\u0442 \u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442
\r\n\u041a\u0435\u0437\u0437\u0438\u043d - \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0440\u0443\u0435\u0442
\r\n\u0441\u043d\u044f\u0442\u043e \u043d\u0430 http:\/\/www.marco-pro.ru\/content\/item\/1119\/0\/0\/","exif":true,"tags":["\u043a\u0430\u0431\u0438\u043d\u0435\u0442","19"],"other_photos":[{"id":"1696524","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/339\/1696524_320r.jpg"},{"id":"1572087","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/314\/1572087_320r.jpg"},{"id":"1569883","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/313\/1569883_320r.jpg"},{"id":"1451366","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/290\/1451366_320r.jpg"},{"id":"1387897","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/277\/1387897_320r.jpg"},{"id":"1345052","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/269\/1345052_320r.jpg"},{"id":"1343581","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/268\/1343581_320r.jpg"},{"id":"1321776","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/264\/1321776_320r.jpg"},{"id":"1320287","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/264\/1320287_320r.jpg"},{"id":"1305994","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/261\/1305994_320r.jpg"},{"id":"1281991","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/256\/1281991_320r.jpg"},{"id":"1245645","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/249\/1245645_320r.jpg"}],"otherData":"
Style: Uncategorized<\/a>
<\/div>","series":[{"id":"2927","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/2\/2927.jpg","like":"4","title":null},{"id":"2928","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/2\/2928.jpg","like":"3","title":null}]}; lastRePost = null; thisPageUrl = "http://kezzyn.35photo.ru/photo_142947/"; setBgComm = "#444444"; whovotelike = ""; commentTo = "photo_142947"; allowAddComm = false; jQuery(function( $ ){ SetBG('#000000', '##CCCCCC'); loadComm(); showSimilar(); //resizeAllImages(); ilike.checkAll(); facebookGraph(); showBgBlock(); }); function getPhotoByJson( url ){ showLoadingPhoto( "loading" ); $("#moVotes23").hide(); $.ajax({ type: "GET", dataType: "jsonp", data: {}, url: url, error: function (jqXHR, textStatus, errorThrown) { //console.log("error load Photo"); }, success: function (data) { for (var p in data.data){ if (data.data.propertyIsEnumerable(p)){ //update banner rand = Math.floor(Math.random()*99999999999); clickurl_enc = encodeURI(window.location); $("#a139d7a2").attr( "src", "http://adv.muslib.ru/www/delivery/afr.php?zoneid=4&target=_blank&cb=" + rand + "&ct0=" + clickurl_enc ); //$("#a139d7a2").attr( "src", function ( i, val ) { return val; }); //console.log("banner update: " + $("#a139d7a2").attr( "src" ) ); photoData = data.data[p]; showPhotoByJson(); $("#liveinternetBlock").html( liveinternet() ); //1000x90 $(".ac662eaa").attr( "src", "http://adv.muslib.ru/www/delivery/afr.php?zoneid=5&target=_blank&cb=" + rand + "&ct0=" + clickurl_enc ); return true; }else{ showAlert("Last photo."); return true; } } showAlert("The End. No more photo. Choose other direction"); $( mainPhoto ).hide().fadeIn(100); showLoadingPhoto(); } }); }; function getCommByJson( photoId ){ var url = "http://35photo.ru/show_block.php?type=comments&type2=showAllPhotoComm&photoId=" + photoId; $.ajax({ type: "GET", dataType: "jsonp", data: {}, url: url, error: function (jqXHR, textStatus, errorThrown) { //console.log("error load comm"); }, success: function (data) { //console.log("show comm - ok"); $("#commentsBlock").html( data.data ); loadComm(); } }); }; function showSeriesPohotoPrev(){ //$(".seriesPhotoPrev").remove(); selectPhotoInSeries = 0; $("#zonePhotoInScroll").html(""); $("#zonePhotoInScroll").css("height", "auto" ); //SeriesPhoto if( photoData.series ){ //vertical //$("#zonePhotoInScroll").css("min-height", zonePhotoInScrollH ); //$("#btn_photo_right").hide(); //seriesPoints = $( '