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 = 1561251; photoIds = 0; userId = 110846; photoData = {"photo_id":1561251,"user_id":110846,"user_login":"takashi","user_name":"Takashi","photo_name":"Snow forest view","src":"http:\/\/ser-apr.35photo.ru\/photos\/20161211\/1561251.jpg","link":"http:\/\/35photo.ru\/photo_1561251\/","bg":333333,"comm_count":31,"photo_see":203,"photo_fav":1,"photo_rating":58,"var_vote":null,"timeAdd":"11 \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 the dawn after heavy snowfall. I was on the pass where I was able to see beautiful Mt Fuji through the forest covered with new snow. I saw Mt Fuji waiting for Morgen Roth through the blue colored snow scene at the end of the Blue Hour.","exif":true,"tags":["Fuji","mountain","Japan","snow","forest","tree","dawn","blue","morning","beautiful","landscape",""],"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_1561251/"; setBgComm = "#444444"; whovotelike = ""; commentTo = "photo_1561251"; 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 = $( '