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 = 1683690; photoIds = 0; userId = 60904; photoData = {"photo_id":1683690,"user_id":60904,"user_login":"vyacheslav1964","user_name":"\u0412\u044f\u0447\u0435\u0441\u043b\u0430\u0432 \u041c\u0438\u0449\u0435\u043d\u043a\u043e","photo_name":"\u041e\u0445\u043e\u0442\u0430 \u043d\u0430 \u0432\u044c\u044e\u043d\u0430","src":"http:\/\/ser-apr.35photo.ru\/photos\/20170305\/1683690.jpg","link":"http:\/\/35photo.ru\/photo_1683690\/","bg":"000000","comm_count":40,"photo_see":325,"photo_fav":7,"photo_rating":118,"var_vote":null,"timeAdd":"05 \u043c\u0430\u0440, 2017","user":{"status":"good"},"buyAllow":0,"photo_type":1,"moder":{"yes":"0","no":"0"},"user_data":{"photo_count":"758"},"photo_desc":"\u0425\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0438\u0441\u0442\u043e\u0440\u0438\u044e \u044d\u0442\u0438\u0445 \u0441\u043d\u0438\u043c\u043a\u043e\u0432.\u0426\u0430\u043f\u043b\u044f \u043e\u0431\u044b\u0447\u043d\u043e \u043f\u0440\u0438 \u043b\u043e\u0432\u043b\u0435 \u0440\u044b\u0431 \u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441 \u043d\u0438\u043c\u0438 \u043f\u0440\u044f\u043c\u043e \u0432 \u0432\u043e\u0434\u0435,\u0442\u0430\u043a \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0435 \u043e\u0442\u0445\u043e\u0434\u044f \u043e\u0442 \u043a\u0430\u0441\u0441\u044b.\u041d\u043e \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0440\u044b\u0431\u0443 \u0435\u0441\u043b\u0438 \u043e\u043d\u0430 \u0447\u0443\u0432\u0441\u0442\u0432\u0443\u0435\u0442 \u0447\u0442\u043e \u043d\u0435 \u0441\u043f\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u0432\u044b\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0435\u0442 \u043d\u0430 \u0431\u0435\u0440\u0435\u0433 \u0438 \u0442\u0440\u0430\u043f\u0435\u0437\u0430 \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0442\u0430\u043c.\u041d\u043e \u0441\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u043d\u0435\u043f\u0440\u0435\u0434\u0432\u0438\u0434\u0435\u043d\u043d\u043e\u0435-\u0432\u044c\u044e\u043d \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u0448\u0443\u0441\u0442\u0440\u044b\u043c \u043e\u043d \u0437\u0430\u043c\u043e\u0442\u0430\u043b \u0435\u0439 \u043a\u043b\u044e\u0432 \u0438 \u0445\u0432\u043e\u0441\u0442\u043e\u043c \u0437\u0430\u043b\u0435\u043f\u0438\u043b \u0433\u043b\u0430\u0437\u0430.\u0423 \u0446\u0430\u043f\u043b\u0438 \u043d\u0430\u0447\u0430\u043b\u0430\u0441\u044c \u043f\u0430\u043d\u0438\u043a\u0430.\u041e\u043d\u0430 \u043d\u0430\u0447\u0430\u043b\u0430\u0441\u044c \u043c\u0435\u0442\u0430\u0442\u044c\u0441\u044f \u0432 \u0440\u0430\u0437\u043d\u044b\u0435 \u0441\u0442\u043e\u0440\u043e\u043d\u044b.\u0422\u0430\u043a \u0431\u044b\u043b\u043e \u0441\u0435\u043a\u0443\u043d\u0434 \u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044c.\u0412 \u0438\u0442\u043e\u0433\u0435 \u043e\u043d\u0430 \u0441 \u043d\u0435\u0439 \u0438 \u0443\u043b\u0435\u0442\u0435\u043b\u0430,\u043d\u043e \u0437\u0430 \u043c\u0438\u043d\u0443\u0442 \u0434\u0435\u0441\u044f\u0442\u044c \u0432\u0435\u0440\u043d\u0443\u043b\u0430\u0441\u044c \u043d\u043e \u0443\u0436\u0435 \u0431\u0435\u0437 \u0432\u044c\u044e\u043d\u0430....","exif":true,"tags":null,"other_photos":[{"id":"1701625","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/340\/1701625_320r.jpg"},{"id":"1700327","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/340\/1700327_320r.jpg"},{"id":"1699017","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/339\/1699017_320r.jpg"},{"id":"1696953","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/339\/1696953_320r.jpg"},{"id":"1696031","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/339\/1696031_320r.jpg"},{"id":"1693696","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/338\/1693696_320r.jpg"},{"id":"1691509","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/338\/1691509_320r.jpg"},{"id":"1691355","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/338\/1691355_320r.jpg"},{"id":"1690163","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/338\/1690163_320r.jpg"},{"id":"1687817","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/337\/1687817_320r.jpg"},{"id":"1685924","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/337\/1685924_320r.jpg"},{"id":"1685641","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/337\/1685641_320r.jpg"}],"otherData":"
Albums:
\u041f\u0442\u0438\u0446\u044b<\/a>
<\/div>
Style: Animals<\/a>
<\/div>","series":[{"id":"1072941","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/1072\/1072941.jpg","like":"36","title":null},{"id":"1072942","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/1072\/1072942.jpg","like":"38","title":null},{"id":"1072943","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/1072\/1072943.jpg","like":"34","title":null},{"id":"1072944","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/1072\/1072944.jpg","like":"32","title":null},{"id":"1072945","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/1072\/1072945.jpg","like":"39","title":null},{"id":"1072946","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/1072\/1072946.jpg","like":"33","title":null}]}; lastRePost = null; thisPageUrl = "http://vyacheslav1964.35photo.ru/photo_1683690/"; setBgComm = "#444444"; whovotelike = ""; commentTo = "photo_1683690"; 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 = $( '