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 = 1676398; photoIds = 0; userId = 180832; photoData = {"photo_id":1676398,"user_id":180832,"user_login":"manashirov","user_name":"Victoria Manashirov","photo_name":"","src":"http:\/\/ser-apr.35photo.ru\/photos\/20170226\/1676398.jpg","link":"http:\/\/35photo.ru\/photo_1676398\/","bg":"000000","comm_count":15,"photo_see":3325,"photo_fav":9,"photo_rating":260,"var_vote":null,"timeAdd":"26 \u0444\u0435\u0432, 2017","user":{"status":"good"},"buyAllow":0,"photo_type":1,"moder":{"yes":"0","no":"0"},"user_data":{"photo_count":"44"},"photo_desc":"No description<\/i>","exif":true,"tags":null,"other_photos":[{"id":"1707821","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/341\/1707821_320r.jpg"},{"id":"1706872","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/341\/1706872_320r.jpg"},{"id":"1705906","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/341\/1705906_320r.jpg"},{"id":"1705037","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/341\/1705037_320r.jpg"},{"id":"1702718","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/340\/1702718_320r.jpg"},{"id":"1701228","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/340\/1701228_320r.jpg"},{"id":"1699533","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/339\/1699533_320r.jpg"},{"id":"1697949","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/339\/1697949_320r.jpg"},{"id":"1693090","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/338\/1693090_320r.jpg"},{"id":"1690192","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/338\/1690192_320r.jpg"},{"id":"1685764","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/337\/1685764_320r.jpg"},{"id":"1684810","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/336\/1684810_320r.jpg"}],"otherData":"
Style: Portrait<\/a>
<\/div>","series":[{"id":"1068927","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/1068\/1068927.jpg","like":"40","title":null},{"id":"1068928","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/1068\/1068928.jpg","like":"28","title":null},{"id":"1068929","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/1068\/1068929.jpg","like":"37","title":null},{"id":"1068930","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/1068\/1068930.jpg","like":"33","title":null},{"id":"1068931","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/1068\/1068931.jpg","like":"32","title":null}]}; lastRePost = null; thisPageUrl = "http://manashirov.35photo.ru/photo_1676398/"; setBgComm = "#444444"; whovotelike = ""; commentTo = "photo_1676398"; 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 = $( '