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 = 855848; photoIds = 0; userId = 36956; photoData = {"photo_id":855848,"user_id":36956,"user_login":"valtsu45","user_name":"Valtteri Mulkahainen","photo_name":"\u0412\u0435\u0441\u0435\u043d\u043d\u0438\u0435 \u043a\u0440\u0430\u0441\u043a\u0438 \u041b\u043e\u0444\u043e\u0442\u0435\u043d ...","src":"http:\/\/ser-apr.35photo.ru\/photos\/20150313\/855848.jpg","link":"http:\/\/35photo.ru\/photo_855848\/","bg":333333,"comm_count":57,"photo_see":2024,"photo_fav":6,"photo_rating":120,"var_vote":null,"timeAdd":"13 \u043c\u0430\u0440, 2015","user":{"status":"good"},"buyAllow":0,"photo_type":1,"moder":{"yes":"","no":"1"},"user_data":{"photo_count":"100"},"photo_desc":"No description<\/i>","exif":true,"tags":null,"other_photos":[{"id":"1690244","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/338\/1690244_320r.jpg"},{"id":"1649912","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/329\/1649912_320r.jpg"},{"id":"1636711","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/327\/1636711_320r.jpg"},{"id":"1415966","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/283\/1415966_320r.jpg"},{"id":"1412099","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/282\/1412099_320r.jpg"},{"id":"1407198","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/281\/1407198_320r.jpg"},{"id":"1398029","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/279\/1398029_320r.jpg"},{"id":"1287481","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/257\/1287481_320r.jpg"},{"id":"1283544","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/256\/1283544_320r.jpg"},{"id":"1281937","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/256\/1281937_320r.jpg"},{"id":"1269963","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/253\/1269963_320r.jpg"},{"id":"1257760","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/251\/1257760_320r.jpg"}],"otherData":"
Style: Nature<\/a>
<\/div>","series":[{"id":"669582","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/669\/669582.jpg","like":"41","title":null},{"id":"669583","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/669\/669583.jpg","like":"43","title":null},{"id":"669584","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/669\/669584.jpg","like":"46","title":null}]}; lastRePost = null; thisPageUrl = "http://valtsu45.35photo.ru/photo_855848/"; setBgComm = "#444444"; whovotelike = ""; commentTo = "photo_855848"; 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 = $( '