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 = 1409529; photoIds = 0; userId = 110846; photoData = {"photo_id":1409529,"user_id":110846,"user_login":"takashi","user_name":"Takashi","photo_name":"UFO formation","src":"http:\/\/ser-apr.35photo.ru\/photos\/20160902\/1409529.jpg","link":"http:\/\/35photo.ru\/photo_1409529\/","bg":333333,"comm_count":66,"photo_see":620,"photo_fav":3,"photo_rating":89,"var_vote":null,"timeAdd":"02 \u0441\u0435\u043d, 2016","user":{"status":"good"},"buyAllow":0,"photo_type":0,"moder":{"yes":"0","no":"0"},"user_data":{"photo_count":"84"},"photo_desc":"A baby cloud had born at dawn. The baby cloud had grown bigger and bigger than before. When it came the time of the morning glow, It had grown to many huge lenticular clouds. It looked like UFO formation.","exif":true,"tags":["fuji","mountain","japan","cloud","sunrise","sunshine","red","lenticular","morning","glow","sky",""],"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_1409529/"; setBgComm = "#444444"; whovotelike = ""; commentTo = "photo_1409529"; 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 = $( '