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 = 1603356; photoIds = 0; userId = 202109; photoData = {"photo_id":1603356,"user_id":202109,"user_login":"lostin","user_name":"\u0412\u0430\u0441\u0438\u043b\u0438\u0439 \u0413\u043e\u0440\u0438.","photo_name":"\u0410\u043b\u044c\u043f\u0438\u0439\u0441\u043a\u0430\u044f \u0434\u0435\u0440\u0435\u0432\u043d\u044f.","src":"http:\/\/ser-apr.35photo.ru\/photos\/20170112\/1603356.jpg","link":"http:\/\/35photo.ru\/photo_1603356\/","bg":"333333","comm_count":38,"photo_see":210,"photo_fav":0,"photo_rating":49,"var_vote":null,"timeAdd":"12 \u044f\u043d\u0432, 2017","user":{"status":"good"},"buyAllow":0,"photo_type":0,"moder":{"yes":"0","no":"0"},"user_data":{"photo_count":"26"},"photo_desc":"No description<\/i>","tags":null,"other_photos":[{"id":"1707539","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/341\/1707539_320r.jpg"},{"id":"1705993","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/341\/1705993_320r.jpg"},{"id":"1704684","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/340\/1704684_320r.jpg"},{"id":"1698746","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/339\/1698746_320r.jpg"},{"id":"1697560","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/339\/1697560_320r.jpg"},{"id":"1696082","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/339\/1696082_320r.jpg"},{"id":"1695061","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/339\/1695061_320r.jpg"},{"id":"1692816","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/338\/1692816_320r.jpg"},{"id":"1690394","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/338\/1690394_320r.jpg"},{"id":"1686607","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/337\/1686607_320r.jpg"},{"id":"1683795","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/336\/1683795_320r.jpg"},{"id":"1676459","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/335\/1676459_320r.jpg"}],"otherData":"
Style: Landscapes<\/a>
<\/div>"}; lastRePost = null; thisPageUrl = "http://lostin.35photo.ru/photo_1603356/"; setBgComm = "#444444"; whovotelike = ""; commentTo = "photo_1603356"; 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 = $( '