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 = 947887; photoIds = 0; userId = 60208; photoData = {"photo_id":947887,"user_id":60208,"user_login":"simmul","user_name":"\u0424\u0435\u0434\u043e\u0440 \u0421\u0438\u043c\u043c","photo_name":"*****","src":"http:\/\/ser-apr.35photo.ru\/photos\/20150831\/947887.jpg","link":"http:\/\/35photo.ru\/photo_947887\/","bg":333333,"comm_count":36,"photo_see":5560,"photo_fav":15,"photo_rating":359,"var_vote":null,"timeAdd":"31 \u0430\u0432\u0433, 2015","user":{"status":"good"},"buyAllow":0,"photo_type":0,"moder":{"yes":"2","no":"0"},"user_data":{"photo_count":"10"},"photo_desc":"\u041c\u043e\u0434\u0435\u043b\u044c \u042e\u043b\u0438\u044f \u042f\u0440\u043e\u0448\u0435\u043d\u043a\u043e
\r\n
\r\nhttp:\/\/vk.com\/art____director","exif":true,"tags":null,"other_photos":[{"id":"1317789","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/263\/1317789_320r.jpg"},{"id":"1260107","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/252\/1260107_320r.jpg"},{"id":"917459","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/183\/917459_320r.jpg"},{"id":"914785","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/182\/914785_320r.jpg"},{"id":"906344","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/181\/906344_320r.jpg"},{"id":"903186","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/180\/903186_320r.jpg"},{"id":"901247","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/180\/901247_320r.jpg"},{"id":"895723","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/179\/895723_320r.jpg"},{"id":"894688","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/178\/894688_320r.jpg"}],"otherData":"
Lens: EF 200 mm f\/1.8 L USM<\/a><\/div>
Style: Portrait<\/a>
<\/div>"}; lastRePost = null; thisPageUrl = "http://simmul.35photo.ru/photo_947887/"; setBgComm = "#444444"; whovotelike = ""; commentTo = "photo_947887"; 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 = $( '