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 = 1562441; photoIds = 0; userId = 51989; photoData = {"photo_id":1562441,"user_id":51989,"user_login":"petrus","user_name":"\u0410\u043d\u0442\u043e\u043d \u041f\u0435\u0442\u0440\u0443\u0441\u044c","photo_name":"\u041c\u0433\u043d\u043e\u0432\u0435\u043d\u0438\u044f \u0437\u0438\u043c\u044b","src":"http:\/\/ser-apr.35photo.ru\/photos\/20161212\/1562441.jpg","link":"http:\/\/35photo.ru\/photo_1562441\/","bg":333333,"comm_count":11,"photo_see":200,"photo_fav":1,"photo_rating":60,"var_vote":null,"timeAdd":"12 \u0434\u0435\u043a, 2016","user":{"status":"good"},"buyAllow":1,"photo_type":0,"moder":{"yes":"","no":""},"user_data":{"photo_count":"248"},"photo_desc":"\u041a\u0440\u0430\u0442\u043a\u0438\u0435 \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u0438\u044f \u0437\u0438\u043c\u043d\u0435\u0439 \u0441\u043a\u0430\u0437\u043a\u0438 \u0432 \u043d\u0430\u0448\u0435\u0439 \u0448\u0438\u0440\u043e\u0442\u0435 )","exif":true,"tags":["\u0437\u0438\u043c\u0430","\u0440\u0430\u0441\u0441\u0432\u0435\u0442","\u0441\u043d\u0435\u0433","\u043b\u0435\u0441"],"other_photos":[{"id":"1704913","src":"http:\/\/35photo.ru\/photos_col\/r2\/340\/1704913_320r.jpg"},{"id":"1703890","src":"http:\/\/35photo.ru\/photos_col\/r2\/340\/1703890_320r.jpg"},{"id":"1702996","src":"http:\/\/35photo.ru\/photos_col\/r2\/340\/1702996_320r.jpg"},{"id":"1701898","src":"http:\/\/35photo.ru\/photos_col\/r2\/340\/1701898_320r.jpg"},{"id":"1700778","src":"http:\/\/35photo.ru\/photos_col\/r2\/340\/1700778_320r.jpg"},{"id":"1699395","src":"http:\/\/35photo.ru\/photos_col\/r2\/339\/1699395_320r.jpg"},{"id":"1696221","src":"http:\/\/35photo.ru\/photos_col\/r2\/339\/1696221_320r.jpg"},{"id":"1694160","src":"http:\/\/35photo.ru\/photos_col\/r2\/338\/1694160_320r.jpg"},{"id":"1693063","src":"http:\/\/35photo.ru\/photos_col\/r2\/338\/1693063_320r.jpg"},{"id":"1666413","src":"http:\/\/35photo.ru\/photos_col\/r2\/333\/1666413_320r.jpg"},{"id":"1664647","src":"http:\/\/35photo.ru\/photos_col\/r2\/332\/1664647_320r.jpg"},{"id":"1641091","src":"http:\/\/35photo.ru\/photos_col\/r2\/328\/1641091_320r.jpg"}],"otherData":"
Communitys:
Landscape<\/a>
<\/div>
Style: Landscapes<\/a>
<\/div>"}; lastRePost = null; thisPageUrl = "http://petrus.35photo.ru/photo_1562441/"; setBgComm = "#444444"; whovotelike = ""; commentTo = "photo_1562441"; 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 = $( '