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 = 1597986; photoIds = 0; userId = 290494; photoData = {"photo_id":1597986,"user_id":290494,"user_login":"bessarion","user_name":"Bessarion Chakhvadze","photo_name":"","src":"http:\/\/ser-apr.35photo.ru\/photos\/20170108\/1597986.jpg","link":"http:\/\/35photo.ru\/photo_1597986\/","bg":333333,"comm_count":14,"photo_see":299,"photo_fav":1,"photo_rating":121,"var_vote":null,"timeAdd":"08 \u044f\u043d\u0432, 2017","user":{"status":"good"},"buyAllow":0,"photo_type":4,"moder":{"yes":"14","no":"1"},"user_data":{"photo_count":"14"},"photo_desc":"No description<\/i>","exif":true,"tags":null,"other_photos":[{"id":"1707935","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/341\/1707935_320r.jpg"},{"id":"1703328","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/340\/1703328_320r.jpg"},{"id":"1698175","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/339\/1698175_320r.jpg"},{"id":"1692839","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/338\/1692839_320r.jpg"},{"id":"1690478","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/338\/1690478_320r.jpg"},{"id":"1683842","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/336\/1683842_320r.jpg"},{"id":"1679471","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/335\/1679471_320r.jpg"},{"id":"1646435","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/329\/1646435_320r.jpg"},{"id":"1639364","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/327\/1639364_320r.jpg"},{"id":"1632984","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/326\/1632984_320r.jpg"},{"id":"1605805","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/321\/1605805_320r.jpg"},{"id":"1600208","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/320\/1600208_320r.jpg"}],"otherData":"
Taken with: EOS 5D Mark III<\/a><\/div>","series":[{"id":"1038944","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/1038\/1038944.jpg","like":"7","title":null},{"id":"1038945","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/1038\/1038945.jpg","like":"16","title":null},{"id":"1038946","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/1038\/1038946.jpg","like":"14","title":null},{"id":"1038947","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/1038\/1038947.jpg","like":"10","title":null},{"id":"1038948","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/1038\/1038948.jpg","like":"23","title":null},{"id":"1038949","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/1038\/1038949.jpg","like":"22","title":null},{"id":"1038950","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/1038\/1038950.jpg","like":"18","title":null},{"id":"1038951","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/1038\/1038951.jpg","like":"20","title":null},{"id":"1038952","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/1038\/1038952.jpg","like":"11","title":null},{"id":"1038953","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/1038\/1038953.jpg","like":"10","title":null}]}; lastRePost = null; thisPageUrl = "http://bessarion.35photo.ru/photo_1597986/"; setBgComm = "#444444"; whovotelike = ""; commentTo = "photo_1597986"; allowAddComm = false; jQuery(function( $ ){ SetBG('#333333', '##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 = $( '