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 = 1428749; photoIds = 0; userId = 66653; photoData = {"photo_id":1428749,"user_id":66653,"user_login":"gulyaevvitaliy","user_name":"\u0413\u0443\u043b\u044f\u0435\u0432 \u0412\u0438\u0442\u0430\u043b\u0438\u0439","photo_name":"","src":"http:\/\/ser-apr.35photo.ru\/photos\/20160917\/1428749.jpg","link":"http:\/\/35photo.ru\/photo_1428749\/","bg":333333,"comm_count":68,"photo_see":5146,"photo_fav":24,"photo_rating":820,"var_vote":null,"timeAdd":"17 \u0441\u0435\u043d, 2016","user":{"status":"good"},"buyAllow":1,"photo_type":0,"moder":{"yes":"1","no":"1"},"user_data":{"photo_count":"242"},"photo_desc":"No description<\/i>","exif":true,"tags":null,"other_photos":[{"id":"1704469","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/340\/1704469_320r.jpg"},{"id":"1704095","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/340\/1704095_320r.jpg"},{"id":"1691398","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/338\/1691398_320r.jpg"},{"id":"1648676","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/329\/1648676_320r.jpg"},{"id":"1638052","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/327\/1638052_320r.jpg"},{"id":"1635710","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/327\/1635710_320r.jpg"},{"id":"1623735","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/324\/1623735_320r.jpg"},{"id":"1617037","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/323\/1617037_320r.jpg"},{"id":"1609243","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/321\/1609243_320r.jpg"},{"id":"1604174","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/320\/1604174_320r.jpg"},{"id":"1595982","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/319\/1595982_320r.jpg"},{"id":"1595823","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/319\/1595823_320r.jpg"}],"otherData":"
Style: Collage<\/a>
<\/div>"}; lastRePost = null; thisPageUrl = "http://gulyaevvitaliy.35photo.ru/photo_1428749/"; setBgComm = "#444444"; whovotelike = ""; commentTo = "photo_1428749"; 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 = $( '