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 = 1574917; photoIds = 0; userId = 77126; photoData = {"photo_id":1574917,"user_id":77126,"user_login":"dariubas73","user_name":"Darius Babelis","photo_name":"\u0417\u0438\u043c\u043d\u0438\u0439 \u043b\u0435\u0441","src":"http:\/\/ser-apr.35photo.ru\/photos\/20161221\/1574917.jpg","link":"http:\/\/35photo.ru\/photo_1574917\/","bg":"000000","comm_count":49,"photo_see":5554,"photo_fav":24,"photo_rating":544,"var_vote":null,"timeAdd":"21 \u0434\u0435\u043a, 2016","user":{"status":"good"},"buyAllow":0,"photo_type":1,"moder":{"yes":"2","no":"0"},"user_data":{"photo_count":"172"},"photo_desc":"No description<\/i>","exif":true,"tags":null,"other_photos":[{"id":"1688673","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/337\/1688673_320r.jpg"},{"id":"1688444","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/337\/1688444_320r.jpg"},{"id":"1679872","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/335\/1679872_320r.jpg"},{"id":"1664668","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/332\/1664668_320r.jpg"},{"id":"1649601","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/329\/1649601_320r.jpg"},{"id":"1629117","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/325\/1629117_320r.jpg"},{"id":"1627893","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/325\/1627893_320r.jpg"},{"id":"1620806","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/324\/1620806_320r.jpg"},{"id":"1606501","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/321\/1606501_320r.jpg"},{"id":"1605456","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/321\/1605456_320r.jpg"},{"id":"1602435","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/320\/1602435_320r.jpg"},{"id":"1599656","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/319\/1599656_320r.jpg"}],"otherData":"
Style: Animals<\/a>
<\/div>","series":[{"id":"1026370","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/1026\/1026370.jpg","like":"146","title":null},{"id":"1026371","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/1026\/1026371.jpg","like":"81","title":null},{"id":"1026374","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/1026\/1026374.jpg","like":"63","title":null},{"id":"1026375","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/1026\/1026375.jpg","like":"101","title":null}]}; lastRePost = null; thisPageUrl = "http://dariubas73.35photo.ru/photo_1574917/"; setBgComm = "#444444"; whovotelike = ""; commentTo = "photo_1574917"; 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 = $( '