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 = 1568724; photoIds = 0; userId = 110846; photoData = {"photo_id":1568724,"user_id":110846,"user_login":"takashi","user_name":"Takashi","photo_name":"Reflection under the moon","src":"http:\/\/ser-apr.35photo.ru\/photos\/20161216\/1568724.jpg","link":"http:\/\/35photo.ru\/photo_1568724\/","bg":"1A1A1A","comm_count":33,"photo_see":210,"photo_fav":2,"photo_rating":66,"var_vote":null,"timeAdd":"16 \u0434\u0435\u043a, 2016","user":{"status":"good"},"buyAllow":0,"photo_type":0,"moder":{"yes":"0","no":"0"},"user_data":{"photo_count":"84"},"photo_desc":"It was very calm night. And it was not so dark because of the moonlight. The Mt Fuji was perfectly reflected on the Lake Kawaguchi. The left orange light is the light of bridge. The right orange light is the lighting for making snow of ski. It was fantastic night.","exif":true,"tags":["Fuji","mountain","Japan","night","lake","water","moon","reflection","beautiful","snow"],"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":"1589961","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/317\/1589961_320r.jpg"}],"otherData":"
Style: Landscapes<\/a>
<\/div>"}; lastRePost = null; thisPageUrl = "http://takashi.35photo.ru/photo_1568724/"; setBgComm = "#444444"; whovotelike = ""; commentTo = "photo_1568724"; allowAddComm = false; jQuery(function( $ ){ SetBG('#1A1A1A', '##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 = $( '