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 = 763353; photoIds = 0; userId = 7412; photoData = {"photo_id":763353,"user_id":7412,"user_login":"baverona","user_name":"\u0412\u0435\u0440\u043e\u043d\u0438\u043a\u0430 \u0411\u0430\u0431\u0435\u043d\u043a\u043e","photo_name":"Pas de deux.... \u0438\u0437 \u043c\u0438\u043d\u0443\u0432\u0448\u0435\u0433\u043e \u043b\u0435\u0442\u0430...","src":"http:\/\/ser-apr.35photo.ru\/photos\/20140909\/763353.jpg","link":"http:\/\/35photo.ru\/photo_763353\/","bg":"B3B3B3","comm_count":121,"photo_see":2425,"photo_fav":14,"photo_rating":94,"var_vote":null,"timeAdd":"09 \u0441\u0435\u043d, 2014","user":{"status":"good"},"buyAllow":1,"photo_type":1,"moder":{"yes":"0","no":"0"},"user_data":{"photo_count":"50"},"photo_desc":"No description<\/i>","exif":true,"tags":["\u0414\u0435\u043a\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u043c\u0430\u043a\u0438","\u041b\u0435\u0442\u043e","\u041f\u0440\u0438\u0440\u043e\u0434\u0430","\u0424\u043b\u043e\u0440\u0430","\u0426\u0432\u0435\u0442\u044b"],"other_photos":[{"id":"1593729","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/318\/1593729_320r.jpg"},{"id":"1449503","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/289\/1449503_320r.jpg"},{"id":"1407007","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/281\/1407007_320r.jpg"},{"id":"1397824","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/279\/1397824_320r.jpg"},{"id":"1382628","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/276\/1382628_320r.jpg"},{"id":"1332545","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/266\/1332545_320r.jpg"},{"id":"1309869","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/261\/1309869_320r.jpg"},{"id":"1295035","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/259\/1295035_320r.jpg"},{"id":"1273816","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/254\/1273816_320r.jpg"},{"id":"1109758","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/221\/1109758_320r.jpg"},{"id":"1007390","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/201\/1007390_320r.jpg"},{"id":"907018","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/181\/907018_320r.jpg"}],"otherData":"
Styl: Nature<\/a>
<\/div>
<\/div>
<\/a>
<\/div><\/a><\/div><\/div>
\u0424\u043e\u0442\u043e \u043d\u0430 \u0445\u043e\u043b\u0441\u0442\u0435 27x40<\/div>
2999 <\/i><\/span>   \u0425\u043e\u0447\u0443!<\/a><\/div><\/table><\/div>
<\/div>","series":[{"id":"592586","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/592\/592586.jpg","like":"36","title":null},{"id":"592587","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/592\/592587.jpg","like":"35","title":null},{"id":"592588","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/592\/592588.jpg","like":"29","title":null},{"id":"592589","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/592\/592589.jpg","like":"32","title":null},{"id":"592590","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/592\/592590.jpg","like":"25","title":null}]}; lastRePost = null; thisPageUrl = "http://baverona.35photo.ru/photo_763353/"; setBgComm = "#444444"; whovotelike = ""; commentTo = "photo_763353"; allowAddComm = false; jQuery(function( $ ){ SetBG('#B3B3B3', '##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 = $( '