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 = 682949; photoIds = 0; userId = 36174; photoData = {"photo_id":682949,"user_id":36174,"user_login":"shalenkin","user_name":"\u0428\u0430\u043b\u0435\u043d\u043a\u0438\u043d \u0420\u043e\u043c\u0430\u043d","photo_name":"\u0432\u0435\u0442\u0435\u0440\u0430\u043d","src":"http:\/\/ser-apr.35photo.ru\/photos\/20140312\/682949.jpg","link":"http:\/\/35photo.ru\/photo_682949\/","bg":"333333","comm_count":41,"photo_see":7489,"photo_fav":35,"photo_rating":369,"var_vote":null,"timeAdd":"12 \u043c\u0430\u0440, 2014","user":{"status":"good"},"buyAllow":0,"photo_type":0,"moder":{"yes":"3","no":"0"},"user_data":{"photo_count":"73"},"photo_desc":"\u0412 \u0411\u0430\u0440\u043d\u0430\u0443\u043b\u0435 \u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0440\u0443\u044e \u0432\u0435\u0442\u0435\u0440\u0430\u043d\u043e\u0432 \u0437\u0430\u0432\u043e\u0434\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442 \u043f\u0440\u043e\u0434\u0443\u043a\u0446\u0438\u044e \u0434\u043b\u044f \u0438\u0441\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u0435\u0439, \u043f\u043e\u0434\u043b\u043e\u0434\u043e\u043a \u0438 \u043f\u0440\u043e\u0447\u0435\u0439 \u0432\u043e\u0435\u043d\u043a\u0438. \u0414\u0443\u0448\u0435\u0432\u043d\u043e. \u0420\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u043c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442\u044c \u043f\u043e\u0434 \u0432\u043e\u0434\u043e\u0439. \u041a\u0430\u043a \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u043b\u0438 \u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d\u0438\u0435: \u0441\u0442\u0430\u043a\u0430\u043d \u0432\u043e\u0434\u043a\u0438 \u043d\u0430\u0434\u043e \u0431\u044b\u043b\u043e \u0437\u0430\u043f\u0438\u0442\u044c \u043c\u043e\u0440\u0441\u043a\u043e\u0439 \u0432\u043e\u0434\u043e\u0439 \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u0438\u0441\u0442\u043e\u0440\u0438\u0438. :D","tags":null,"other_photos":[{"id":"1354733","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/270\/1354733_320r.jpg"},{"id":"1322943","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/264\/1322943_320r.jpg"},{"id":"887102","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/177\/887102_320r.jpg"},{"id":"886498","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/177\/886498_320r.jpg"},{"id":"824670","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/164\/824670_320r.jpg"},{"id":"813101","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/162\/813101_320r.jpg"},{"id":"745715","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/149\/745715_320r.jpg"},{"id":"676113","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/135\/676113_320r.jpg"},{"id":"653039","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/130\/653039_320r.jpg"},{"id":"636721","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/127\/636721_320r.jpg"},{"id":"618683","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/123\/618683_320r.jpg"},{"id":"608847","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/121\/608847_320r.jpg"}],"otherData":"
Communitys:
Genre<\/a>
Genre portrait<\/a>
<\/div>
Style: Genre portrait<\/a>
<\/div>"}; lastRePost = null; thisPageUrl = "http://shalenkin.35photo.ru/photo_682949/"; setBgComm = "#444444"; whovotelike = ""; commentTo = "photo_682949"; 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 = $( '