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 = 450705; photoIds = 0; userId = 8749; photoData = {"photo_id":450705,"user_id":8749,"user_login":"kesman","user_name":"Constantine Kikvidze","photo_name":"\u041a\u0430\u0440\u043a\u0430\u0440\u0430\u043b\u0438\u043d\u0441\u043a","src":"http:\/\/ser-apr.35photo.ru\/photos\/20121213\/450705.jpg","link":"http:\/\/35photo.ru\/photo_450705\/","bg":333333,"comm_count":35,"photo_see":4199,"photo_fav":6,"photo_rating":73,"var_vote":null,"timeAdd":"13 \u0434\u0435\u043a, 2012","user":{"status":"good"},"buyAllow":1,"photo_type":1,"moder":{"yes":"1","no":"0"},"user_data":{"photo_count":"22"},"photo_desc":"No description<\/i>","tags":null,"other_photos":[{"id":"542904","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/108\/542904_320r.jpg"},{"id":"383764","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/76\/383764_320r.jpg"},{"id":"345750","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/69\/345750_320r.jpg"},{"id":"282600","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/56\/282600_320r.jpg"},{"id":"267364","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/53\/267364_320r.jpg"},{"id":"266602","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/53\/266602_320r.jpg"},{"id":"252766","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/50\/252766_320r.jpg"},{"id":"250115","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/50\/250115_320r.jpg"},{"id":"234106","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/46\/234106_320r.jpg"},{"id":"231540","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/46\/231540_320r.jpg"},{"id":"228318","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/45\/228318_320r.jpg"},{"id":"228298","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/45\/228298_320r.jpg"}],"otherData":"

Style: Landscape<\/a>
","series":[{"id":"331629","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/331\/331629.jpg","like":"25","title":"\u0433\u043e\u0440\u043d\u044b\u0439 \u043c\u0430\u0441\u0441\u0438\u0432 \u041a\u0435\u043d\u0442"},{"id":"331625","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/331\/331625.jpg","like":"20","title":null},{"id":"331626","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/331\/331626.jpg","like":"15","title":null},{"id":"331624","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/331\/331624.jpg","like":"10","title":"\u043d\u0435\u043a\u0440\u043e\u043f\u043e\u043b\u044c \u0411\u0435\u0433\u0430\u0437\u044b. \u042d\u043f\u043e\u0445\u0430 \u0411\u0440\u043e\u043d\u0437\u043e\u0432\u043e\u0433\u043e \u0432\u0435\u043a\u0430"},{"id":"331627","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/331\/331627.jpg","like":"16","title":null},{"id":"331628","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/331\/331628.jpg","like":"15","title":null},{"id":"331630","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/331\/331630.jpg","like":"13","title":null},{"id":"331631","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/331\/331631.jpg","like":"15","title":null},{"id":"331632","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/331\/331632.jpg","like":"13","title":"\u043e\u0437\u0435\u0440\u043e \u0428\u0430\u0439\u0442\u0430\u043d\u043a\u043e\u043b\u044c"}]}; lastRePost = null; thisPageUrl = "http://kesman.35photo.ru/photo_450705/"; setBgComm = "#444444"; whovotelike = ""; commentTo = "photo_450705"; 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 = $( '