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 = 234150; photoIds = 0; userId = 477; photoData = {"photo_id":234150,"user_id":477,"user_login":"kezzyn","user_name":"\u041a\u0435\u0437\u0437\u0438\u043d \u0416\u0434\u0451\u0442","photo_name":"\u041f\u043e\u0445\u043e\u0440\u043e\u043d\u043d\u043e\u0435 \u0431\u044e\u0440\u043e","src":"http:\/\/ser-apr.35photo.ru\/photos\/20110413\/234150.jpg","link":"http:\/\/35photo.ru\/photo_234150\/","bg":"000000","comm_count":24,"photo_see":3815,"photo_fav":8,"photo_rating":92,"var_vote":null,"timeAdd":"13 \u0430\u043f\u0440, 2011","user":{"status":"good"},"buyAllow":0,"photo_type":1,"moder":{"yes":"2","no":"0"},"user_data":{"photo_count":"522"},"photo_desc":"\u0413\u0440\u0438\u043c\u0435\u0440 \u0430\u0441\u0441\u0438\u0441\u0442\u0435\u043d\u0442 \u041a\u0430\u0442\u044f \u0421\u0442\u0443\u043b)
\r\n\u0432 \u0440\u043e\u043b\u044f\u0445:
\r\n\u0414\u0436\u043e\u043d\u043d\u0438 \u041a\u0430\u0442\u043e\u043a
\r\n\u0422\u0443\u043f\u043e\u0433\u043e\u043b\u043e\u0432\u0439 \u041b\u0443
\r\n\u0413\u0430\u0440\u0440\u0438 \u041f\u0440\u043e\u043c\u043e\u043a\u0430\u0448\u043a\u0430
\r\n\u0414\u043e\u0431\u0440\u044f\u043a \u0424\u0440\u0435\u043d\u043a
\r\n\u0438 \u0414\u0436\u0438\u043c\u043c\u0438 \u0421\u0438\u043d\u0438\u0447\u043a\u0430","exif":true,"tags":["\u043a\u0435\u0437\u0437\u0438\u043d","\u0444\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0440\u0443\u0435\u0442"],"other_photos":[{"id":"1696524","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/339\/1696524_320r.jpg"},{"id":"1572087","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/314\/1572087_320r.jpg"},{"id":"1569883","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/313\/1569883_320r.jpg"},{"id":"1451366","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/290\/1451366_320r.jpg"},{"id":"1387897","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/277\/1387897_320r.jpg"},{"id":"1345052","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/269\/1345052_320r.jpg"},{"id":"1343581","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/268\/1343581_320r.jpg"},{"id":"1321776","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/264\/1321776_320r.jpg"},{"id":"1320287","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/264\/1320287_320r.jpg"},{"id":"1305994","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/261\/1305994_320r.jpg"},{"id":"1281991","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/256\/1281991_320r.jpg"},{"id":"1245645","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/249\/1245645_320r.jpg"}],"otherData":"
Style: Genre portrait<\/a>
<\/div>","series":[{"id":"50162","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/50\/50162.jpg","like":"8","title":null},{"id":"50163","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/50\/50163.jpg","like":"5","title":null},{"id":"50164","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/50\/50164.jpg","like":"3","title":null},{"id":"50165","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/50\/50165.jpg","like":"5","title":null},{"id":"50166","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/50\/50166.jpg","like":"7","title":null},{"id":"50167","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/50\/50167.jpg","like":"5","title":null},{"id":"50168","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/50\/50168.jpg","like":"5","title":null},{"id":"50169","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/50\/50169.jpg","like":"7","title":null},{"id":"50170","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/50\/50170.jpg","like":"11","title":null},{"id":"50171","src":"http:\/\/ser-apr.35photo.ru\/photos_series\/50\/50171.jpg","like":"8","title":null}]}; lastRePost = null; thisPageUrl = "http://kezzyn.35photo.ru/photo_234150/"; setBgComm = "#444444"; whovotelike = ""; commentTo = "photo_234150"; allowAddComm = false; jQuery(function( $ ){ SetBG('#000000', '##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 = $( '