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 = 1383948; photoIds = 0; userId = 51989; photoData = {"photo_id":1383948,"user_id":51989,"user_login":"petrus","user_name":"\u0410\u043d\u0442\u043e\u043d \u041f\u0435\u0442\u0440\u0443\u0441\u044c","photo_name":"\u0412 \u0434\u043e\u043b\u0438\u043d\u0435 \u041e\u0440\u0445\u043e\u043d\u0430","src":"http:\/\/ser-apr.35photo.ru\/photos\/20160813\/1383948.jpg","link":"http:\/\/35photo.ru\/photo_1383948\/","bg":"000000","comm_count":10,"photo_see":325,"photo_fav":0,"photo_rating":37,"var_vote":null,"timeAdd":"13 \u0430\u0432\u0433, 2016","user":{"status":"good"},"buyAllow":1,"photo_type":0,"moder":{"yes":"","no":""},"user_data":{"photo_count":"248"},"photo_desc":"\u0421\u0430\u043c\u044b\u0439 \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0439 \u0432\u043e\u0434\u043e\u043f\u0430\u0434 \u041c\u043e\u043d\u0433\u043e\u043b\u0438\u0438. \u0415\u0441\u043b\u0438 \u0447\u0435\u0441\u0442\u043d\u043e - \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0443\u0432\u0438\u0434\u0435\u043d\u043d\u044b\u0439. \u041d\u043e \u043f\u043e\u0442\u0440\u044f\u0441\u0430\u044e\u0449\u0435 \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0439. \u0412 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u043c \u043a\u0430\u043d\u044c\u043e\u043d\u0435, \u043f\u043e\u0440\u043e\u0441\u0448\u0435\u043c \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u043c \u043b\u0435\u0441\u043e\u043c - \u0434\u043b\u044f \u041c\u043e\u043d\u0433\u043e\u043b\u0438\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0447\u0443\u0434\u043e ) \u0420\u0430\u0441\u0441\u0432\u0435\u0442 \u0431\u044b\u043b \u043f\u0430\u0441\u043c\u0443\u0440\u043d\u044b\u043c, \u043d\u043e \u043e\u0442 \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u0444\u043e\u0442\u043e\u0433\u0435\u043d\u0438\u0447\u043d\u044b\u043c. \u041e\u0431\u043b\u0430\u043a\u0430 \u043d\u0435\u0441\u043b\u0438\u0441\u044c \u043f\u043e \u043d\u0435\u0431\u0443 \u0441 \u0434\u0438\u043a\u043e\u0439 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c\u044e, \u0432\u0441\u0435 \u0441\u043b\u0438\u043b\u043e\u0441\u044c \u0432 \u043e\u0434\u043d\u043e - \u0448\u0443\u043c \u0432\u043e\u0434\u044b \u0438 \u0432\u0435\u0442\u0440\u0430...","exif":true,"tags":["\u0412\u043e\u0434\u043e\u043f\u0430\u0434","\u041c\u043e\u043d\u0433\u043e\u043b\u0438\u044f","\u0420\u0430\u0441\u0441\u0432\u0435\u0442"],"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>
\"Better than mountains may be just the mountains\"<\/a>
<\/div>
Style: Landscapes<\/a>
<\/div>"}; lastRePost = null; thisPageUrl = "http://petrus.35photo.ru/photo_1383948/"; setBgComm = "#444444"; whovotelike = ""; commentTo = "photo_1383948"; 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 = $( '