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 = 1589961; photoIds = 0; userId = 110846; photoData = {"photo_id":1589961,"user_id":110846,"user_login":"takashi","user_name":"Takashi","photo_name":"Flapping toward Peace 2","src":"http:\/\/ser-apr.35photo.ru\/photos\/20170101\/1589961.jpg","link":"http:\/\/35photo.ru\/photo_1589961\/","bg":"333333","comm_count":24,"photo_see":322,"photo_fav":3,"photo_rating":72,"var_vote":null,"timeAdd":"01 \u044f\u043d\u0432, 2017","user":{"status":"good"},"buyAllow":0,"photo_type":0,"moder":{"yes":"0","no":"0"},"user_data":{"photo_count":"84"},"photo_desc":"The shores of Lake Yamanaka. When I was holding my camera towards Mt Fuji, a swan came in front of me. Stop in front of me, it was beautifully fluttered toward the sun of dusk. The word \"Peace\" came to my mind.","exif":true,"tags":["fuji","mountain","Japan","lake","water","swan",""],"other_photos":[{"id":"1703243","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/340\/1703243_320r.jpg"},{"id":"1695607","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/339\/1695607_320r.jpg"},{"id":"1687235","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/337\/1687235_320r.jpg"},{"id":"1680826","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/336\/1680826_320r.jpg"},{"id":"1671028","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/334\/1671028_320r.jpg"},{"id":"1656490","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/331\/1656490_320r.jpg"},{"id":"1644705","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/328\/1644705_320r.jpg"},{"id":"1635249","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/327\/1635249_320r.jpg"},{"id":"1626421","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/325\/1626421_320r.jpg"},{"id":"1623978","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/324\/1623978_320r.jpg"},{"id":"1599843","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/319\/1599843_320r.jpg"},{"id":"1576304","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/315\/1576304_320r.jpg"}],"otherData":"
Style: Animals<\/a>
<\/div>"}; lastRePost = null; thisPageUrl = "http://takashi.35photo.ru/photo_1589961/"; setBgComm = "#444444"; whovotelike = ""; commentTo = "photo_1589961"; 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 = $( '