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 = 1601908; photoIds = 0; userId = 291387; photoData = {"photo_id":1601908,"user_id":291387,"user_login":"tanushaguz","user_name":"\u0422\u0430\u0442\u044c\u044f\u043d\u0430","photo_name":"\u0414\u0435\u0442\u0441\u043a\u0430\u044f \u0438 \u0441\u0435\u043c\u0435\u0439\u043d\u0430\u044f \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044f","src":"http:\/\/ser-apr.35photo.ru\/photos\/20170111\/1601908.jpg","link":"http:\/\/35photo.ru\/photo_1601908\/","bg":"E5E5E5","comm_count":6,"photo_see":287,"photo_fav":0,"photo_rating":30,"var_vote":null,"timeAdd":"11 \u044f\u043d\u0432, 2017","user":{"status":"good"},"buyAllow":0,"photo_type":4,"moder":{"yes":"9","no":"6"},"user_data":{"photo_count":"30"},"photo_desc":"http:\/\/www.tatianaguz.by","exif":true,"tags":null,"other_photos":[{"id":"1702074","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/340\/1702074_320r.jpg"},{"id":"1700830","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/340\/1700830_320r.jpg"},{"id":"1699660","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/339\/1699660_320r.jpg"},{"id":"1690435","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/338\/1690435_320r.jpg"},{"id":"1683201","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/336\/1683201_320r.jpg"},{"id":"1681451","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/336\/1681451_320r.jpg"},{"id":"1679874","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/335\/1679874_320r.jpg"},{"id":"1678595","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/335\/1678595_320r.jpg"},{"id":"1672229","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/334\/1672229_320r.jpg"},{"id":"1672056","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/334\/1672056_320r.jpg"},{"id":"1670187","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/334\/1670187_320r.jpg"},{"id":"1668683","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/333\/1668683_320r.jpg"}],"otherData":"
Taken with: D800<\/a><\/div>","series":[{"id":"1040798","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/1040\/1040798.jpg","like":"10","title":null},{"id":"1040799","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/1040\/1040799.jpg","like":"7","title":null},{"id":"1040800","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/1040\/1040800.jpg","like":"9","title":null},{"id":"1040801","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/1040\/1040801.jpg","like":"6","title":null},{"id":"1040802","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/1040\/1040802.jpg","like":"5","title":null},{"id":"1040803","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/1040\/1040803.jpg","like":"9","title":null},{"id":"1040804","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/1040\/1040804.jpg","like":"4","title":null},{"id":"1040805","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/1040\/1040805.jpg","like":"11","title":null},{"id":"1040806","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/1040\/1040806.jpg","like":"5","title":null},{"id":"1040807","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/1040\/1040807.jpg","like":"5","title":null}]}; lastRePost = null; thisPageUrl = "http://tanushaguz.35photo.ru/photo_1601908/"; setBgComm = "#444444"; whovotelike = ""; commentTo = "photo_1601908"; allowAddComm = false; jQuery(function( $ ){ SetBG('#E5E5E5', '##333333'); 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 = $( '