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 = 1603322; photoIds = 0; userId = 139802; photoData = {"photo_id":1603322,"user_id":139802,"user_login":"gotfrid","user_name":"\u0412\u0438\u043a\u0442\u043e\u0440","photo_name":"\u00ab\u041e\u043c\u0438\u043a\u00bb","src":"http:\/\/ser-apr.35photo.ru\/photos\/20170112\/1603322.jpg","link":"http:\/\/35photo.ru\/photo_1603322\/","bg":333333,"comm_count":11,"photo_see":69,"photo_fav":0,"photo_rating":13,"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":"147"},"photo_desc":"\u0422\u0435\u043f\u043b\u043e\u0445\u043e\u0434 \u041e\u041c-372.\u041a\u043e\u0433\u0434\u0430-\u0442\u043e \u0434\u0430\u0432\u043d\u043e, \u043f\u0440\u0438\u0445\u043e\u0434 \u043e\u043c\u0438\u043a\u0430 - \u0431\u044b\u043b\u043e \u0433\u043b\u0430\u0432\u043d\u044b\u043c \u0441\u043e\u0431\u044b\u0442\u0438\u0435\u043c \u043d\u0430 \u043e\u0441\u0442\u0440\u043e\u0432\u0435","exif":true,"tags":["\u043a\u0430\u0440\u0435\u043b\u0438\u044f \u0432\u0430\u043b\u0430\u0430\u043c"],"other_photos":[{"id":"1703762","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/340\/1703762_320r.jpg"},{"id":"1694754","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/338\/1694754_320r.jpg"},{"id":"1689237","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/337\/1689237_320r.jpg"},{"id":"1688970","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/337\/1688970_320r.jpg"},{"id":"1688118","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/337\/1688118_320r.jpg"},{"id":"1686437","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/337\/1686437_320r.jpg"},{"id":"1684783","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/336\/1684783_320r.jpg"},{"id":"1683809","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/336\/1683809_320r.jpg"},{"id":"1682132","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/336\/1682132_320r.jpg"},{"id":"1682093","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/336\/1682093_320r.jpg"},{"id":"1648743","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/329\/1648743_320r.jpg"},{"id":"1648436","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/329\/1648436_320r.jpg"}],"otherData":"
Taken with: K100D Super<\/a><\/div>
Style: Travel<\/a>
<\/div>"}; lastRePost = null; thisPageUrl = "http://gotfrid.35photo.ru/photo_1603322/"; setBgComm = "#444444"; whovotelike = ""; commentTo = "photo_1603322"; 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 = $( '