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 = 798040; photoIds = 0; userId = 93674; photoData = {"photo_id":798040,"user_id":93674,"user_login":"aperov","user_name":"\u0410\u043b\u0435\u043a\u0441\u0430\u043d\u0434\u0440 \u041f\u0435\u0440\u043e\u0432","photo_name":"\u0425\u0438\u0442\u0440\u044e\u043b\u044c\u043d\u0438\u043a","src":"http:\/\/ser-apr.35photo.ru\/photos\/20141120\/798040.jpg","link":"http:\/\/35photo.ru\/photo_798040\/","bg":"000000","comm_count":121,"photo_see":2016,"photo_fav":10,"photo_rating":158,"var_vote":null,"timeAdd":"20 \u043d\u043e\u044f, 2014","user":{"status":"good"},"buyAllow":0,"photo_type":0,"moder":{"yes":"0","no":"0"},"user_data":{"photo_count":"101"},"photo_desc":"Banded Mongoose, \u0412\u043e\u0441\u0442\u043e\u0447\u043d\u0430\u044f \u0410\u0444\u0440\u0438\u043a\u0430","exif":true,"tags":null,"other_photos":[{"id":"1523505","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/304\/1523505_320r.jpg"},{"id":"1359692","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/271\/1359692_320r.jpg"},{"id":"1335459","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/267\/1335459_320r.jpg"},{"id":"1311307","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/262\/1311307_320r.jpg"},{"id":"1295044","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/259\/1295044_320r.jpg"},{"id":"1283572","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/256\/1283572_320r.jpg"},{"id":"1267403","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/253\/1267403_320r.jpg"},{"id":"1260510","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/252\/1260510_320r.jpg"},{"id":"1253846","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/250\/1253846_320r.jpg"},{"id":"1239590","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/247\/1239590_320r.jpg"},{"id":"1234240","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/246\/1234240_320r.jpg"},{"id":"1224118","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/244\/1224118_320r.jpg"}],"otherData":"
\u6444\u50cf\u5934\uff1a EOS-1D X<\/a><\/div>
\u955c\u5934\uff1a EF 500 mm F\/4.0 L IS USM<\/a><\/div>
\u793e\u533a\uff1a
Animals<\/a>
Travel<\/a>
<\/a>
<\/div>
\u7c7b\u578b\uff1a Animals<\/a>
<\/div>"}; lastRePost = null; thisPageUrl = "http://aperov.35photo.ru/photo_798040/"; setBgComm = "#444444"; whovotelike = ""; commentTo = "photo_798040"; allowAddComm = false; jQuery(function( $ ){ SetBG('#000000', '##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 = $( '