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 = 1595668; photoIds = 0; userId = 133297; photoData = {"photo_id":1595668,"user_id":133297,"user_login":"sokolovskyigor","user_name":"Igor Sokolovsky","photo_name":"","src":"http:\/\/ser-apr.35photo.ru\/photos\/20170106\/1595668.jpg","link":"http:\/\/35photo.ru\/photo_1595668\/","bg":"FFFFFF","comm_count":4,"photo_see":229,"photo_fav":0,"photo_rating":120,"var_vote":null,"timeAdd":"06 \u044f\u043d\u0432, 2017","user":{"status":"good"},"buyAllow":0,"photo_type":4,"moder":{"yes":"14","no":"1"},"user_data":{"photo_count":"22"},"photo_desc":"No description<\/i>","exif":true,"tags":null,"other_photos":[{"id":"1669265","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/333\/1669265_320r.jpg"},{"id":"1665687","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/333\/1665687_320r.jpg"},{"id":"1656456","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/331\/1656456_320r.jpg"},{"id":"1649534","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/329\/1649534_320r.jpg"},{"id":"1643586","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/328\/1643586_320r.jpg"},{"id":"1641918","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/328\/1641918_320r.jpg"},{"id":"1638944","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/327\/1638944_320r.jpg"},{"id":"1637794","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/327\/1637794_320r.jpg"},{"id":"1634505","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/326\/1634505_320r.jpg"},{"id":"1633713","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/326\/1633713_320r.jpg"},{"id":"1630513","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/326\/1630513_320r.jpg"},{"id":"1627337","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/325\/1627337_320r.jpg"}],"otherData":"
Taken with: EOS 5D Mark II<\/a><\/div>","series":[{"id":"1037917","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/1037\/1037917.jpg","like":"15","title":null},{"id":"1037918","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/1037\/1037918.jpg","like":"9","title":null},{"id":"1037919","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/1037\/1037919.jpg","like":"11","title":null},{"id":"1037920","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/1037\/1037920.jpg","like":"3","title":null},{"id":"1037921","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/1037\/1037921.jpg","like":"9","title":null},{"id":"1037922","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/1037\/1037922.jpg","like":"13","title":null},{"id":"1037923","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/1037\/1037923.jpg","like":"14","title":null},{"id":"1037924","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/1037\/1037924.jpg","like":"5","title":null},{"id":"1037925","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/1037\/1037925.jpg","like":"6","title":null},{"id":"1037926","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/1037\/1037926.jpg","like":"9","title":null}]}; lastRePost = null; thisPageUrl = "http://sokolovskyigor.35photo.ru/photo_1595668/"; setBgComm = "#444444"; whovotelike = ""; commentTo = "photo_1595668"; allowAddComm = false; jQuery(function( $ ){ SetBG('#FFFFFF', '##333333'); 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 = $( '