var photoCoor = {"lat":"54.1390094656165","lng":"10.3988170623779"}; 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 = 1260848; photoIds = 0; userId = 139514; photoData = {"photo_id":1260848,"user_id":139514,"user_login":"juergensen","user_name":"Dirk Juergensen","photo_name":"Lost in Thought","src":"http:\/\/ser-apr.35photo.ru\/photos\/20160416\/1260848.jpg","link":"http:\/\/35photo.ru\/photo_1260848\/","bg":"333333","comm_count":119,"photo_see":2594,"photo_fav":15,"photo_rating":267,"var_vote":null,"timeAdd":"16 \u0430\u043f\u0440, 2016","user":{"status":"good"},"buyAllow":0,"photo_type":0,"moder":{"yes":"0","no":"0"},"user_data":{"photo_count":"17"},"photo_desc":"Sunset at Lake Ploen. Schleswig-Holstein, Germany","coor":{"lat":"54.1390094656165","lng":"10.3988170623779"},"tags":["Pl\u00f6n","Pl\u00f6ner See","canoe","sunset"],"other_photos":[{"id":"1246883","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/249\/1246883_320r.jpg"},{"id":"1236247","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/247\/1236247_320r.jpg"},{"id":"1230437","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/246\/1230437_320r.jpg"},{"id":"1224529","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/244\/1224529_320r.jpg"},{"id":"1212403","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/242\/1212403_320r.jpg"},{"id":"1196545","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/239\/1196545_320r.jpg"},{"id":"1184145","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/236\/1184145_320r.jpg"},{"id":"1169809","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/233\/1169809_320r.jpg"},{"id":"1156225","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/231\/1156225_320r.jpg"},{"id":"1144653","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/228\/1144653_320r.jpg"},{"id":"1136418","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/227\/1136418_320r.jpg"},{"id":"1124399","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/224\/1124399_320r.jpg"}],"otherData":"
\u793e\u533a\uff1a
Landscape<\/a>
<\/div>
\u7c7b\u578b\uff1a Landscapes<\/a>
<\/div>"}; lastRePost = null; thisPageUrl = "http://juergensen.35photo.ru/photo_1260848/"; setBgComm = "#444444"; whovotelike = ""; commentTo = "photo_1260848"; 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 = $( '