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 = 1291761; photoIds = 0; userId = 732; photoData = {"photo_id":1291761,"user_id":732,"user_login":"fedotko","user_name":"\u0412\u043b\u0430\u0434\u0438\u043c\u0438\u0440 \u0424\u0435\u0434\u043e\u0442\u043a\u043e","photo_name":"\"\u041f\u0430\u0440\u0430\u0434\u043d\u0430\u044f\"","src":"http:\/\/ser-apr.35photo.ru\/photos\/20160517\/1291761.jpg","link":"http:\/\/35photo.ru\/photo_1291761\/","bg":333333,"comm_count":3,"photo_see":2108,"photo_fav":5,"photo_rating":192,"var_vote":null,"timeAdd":"17 \u043c\u0430\u0439, 2016","user":{"status":"good"},"buyAllow":0,"photo_type":0,"moder":{"yes":"","no":""},"user_data":{"photo_count":"262"},"photo_desc":"\u043c\u043e\u0434\u0435\u043b\u044c - \u0418\u0440\u0438\u043d\u0430","exif":true,"tags":null,"other_photos":[{"id":"1700110","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/340\/1700110_320r.jpg"},{"id":"1692411","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/338\/1692411_320r.jpg"},{"id":"1684701","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/336\/1684701_320r.jpg"},{"id":"1681826","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/336\/1681826_320r.jpg"},{"id":"1647079","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/329\/1647079_320r.jpg"},{"id":"1645300","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/329\/1645300_320r.jpg"},{"id":"1637501","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/327\/1637501_320r.jpg"},{"id":"1623382","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/324\/1623382_320r.jpg"},{"id":"1615052","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/323\/1615052_320r.jpg"},{"id":"1585815","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/317\/1585815_320r.jpg"},{"id":"1569959","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/313\/1569959_320r.jpg"},{"id":"1540083","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/308\/1540083_320r.jpg"}],"otherData":"
Taken with: EOS 5D Mark II<\/a><\/div>
Style: Collage<\/a>
<\/div>"}; lastRePost = null; thisPageUrl = "http://fedotko.35photo.ru/photo_1291761/"; setBgComm = "#444444"; whovotelike = ""; commentTo = "photo_1291761"; 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 = $( '