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 = 1603354; photoIds = 0; userId = 61478; photoData = {"photo_id":1603354,"user_id":61478,"user_login":"bobretsov","user_name":"\u0410\u043b\u0435\u043a\u0441\u0430\u043d\u0434\u0440 \u0411\u043e\u0431\u0440\u0435\u0446\u043e\u0432","photo_name":"\u041f\u043e\u043c\u0438\u043d\u0430\u043b\u044c\u043d\u0430\u044f \u043c\u043e\u043b\u0438\u0442\u0432\u0430","src":"http:\/\/ser-apr.35photo.ru\/photos\/20170112\/1603354.jpg","link":"http:\/\/35photo.ru\/photo_1603354\/","bg":333333,"comm_count":23,"photo_see":297,"photo_fav":8,"photo_rating":82,"var_vote":null,"timeAdd":"12 \u044f\u043d\u0432, 2017","user":{"status":"good"},"buyAllow":0,"photo_type":0,"moder":{"yes":"0","no":"0"},"user_data":{"photo_count":"44"},"photo_desc":"\u041f\u0435\u0441 \u0432\u043e\u0435\u0442 \u043d\u0430 \u0441\u0442\u0430\u0440\u043e\u043c \u043c\u043e\u043d\u0430\u0448\u0435\u0441\u043a\u043e\u043c \u043a\u043b\u0430\u0434\u0431\u0438\u0449\u0435 \u043d\u0430 \u0421\u043e\u043b\u043e\u0432\u0435\u0446\u043a\u0438\u0445 \u043e\u0441\u0442\u0440\u043e\u0432\u0430\u0445.
\r\n\u041f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0439\u0442\u0435\u0441\u044c \u043a \u0444\u043e\u0442\u043e\u0442\u0443\u0440\u0430\u043c \u043d\u0430 \u0421\u043e\u043b\u043e\u0432\u0435\u0446\u043a\u0438\u0435 \u043e\u0441\u0442\u0440\u043e\u0432\u0430 http:\/\/www.solovki-travel.com\/tour-schedule","exif":true,"tags":["\u0441\u043e\u043b\u043e\u0432\u043a\u0438","\u0441\u0435\u0432\u0435\u0440","\u043c\u043e\u043d\u0430\u0441\u0442\u044b\u0440\u044c","\u0444\u043e\u0442\u043e\u0442\u0443\u0440"],"other_photos":[{"id":"1682897","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/336\/1682897_320r.jpg"},{"id":"1659728","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/331\/1659728_320r.jpg"},{"id":"1612280","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/322\/1612280_320r.jpg"},{"id":"1608796","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/321\/1608796_320r.jpg"},{"id":"1608651","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/321\/1608651_320r.jpg"},{"id":"1595345","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/319\/1595345_320r.jpg"},{"id":"1585621","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/317\/1585621_320r.jpg"},{"id":"1573943","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/314\/1573943_320r.jpg"},{"id":"1566368","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/313\/1566368_320r.jpg"},{"id":"1553249","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/310\/1553249_320r.jpg"},{"id":"1513322","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/302\/1513322_320r.jpg"},{"id":"1490613","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/298\/1490613_320r.jpg"}],"otherData":"
Lens: M.ZUIKO DIGITAL ED 12-40mm 1:2.8<\/a><\/div>
Style: Genre<\/a>
<\/div>"}; lastRePost = null; thisPageUrl = "http://bobretsov.35photo.ru/photo_1603354/"; setBgComm = "#444444"; whovotelike = ""; commentTo = "photo_1603354"; 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 = $( '