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 = 116392; photoIds = 0; userId = 2344; photoData = {"photo_id":116392,"user_id":2344,"user_login":"silfida","user_name":"Silfida","photo_name":"\u041d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u0430\u044f \u0432\u0441\u0442\u0440\u0435\u0447\u0430.","src":"http:\/\/ser-apr.35photo.ru\/photos\/20091212\/116392.jpg","link":"http:\/\/35photo.ru\/photo_116392\/","bg":"000000","comm_count":27,"photo_see":3633,"photo_fav":2,"photo_rating":31,"var_vote":null,"timeAdd":"12 \u0434\u0435\u043a, 2009","user":{"status":"good"},"buyAllow":0,"photo_type":0,"moder":{"yes":"0","no":"0"},"user_data":{"photo_count":"163"},"photo_desc":"No description<\/i>","exif":true,"tags":["\u043f\u043e\u0440\u0442\u0440\u0435\u0442","\u0432\u0441\u0442\u0440\u0435\u0447\u0430"],"other_photos":[{"id":"990529","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/198\/990529_320r.jpg"},{"id":"981712","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/196\/981712_320r.jpg"},{"id":"943981","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/188\/943981_320r.jpg"},{"id":"941102","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/188\/941102_320r.jpg"},{"id":"847753","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/169\/847753_320r.jpg"},{"id":"834076","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/166\/834076_320r.jpg"},{"id":"826120","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/165\/826120_320r.jpg"},{"id":"588129","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/117\/588129_320r.jpg"},{"id":"567371","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/113\/567371_320r.jpg"},{"id":"559896","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/111\/559896_320r.jpg"},{"id":"541189","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/108\/541189_320r.jpg"},{"id":"535141","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/107\/535141_320r.jpg"}],"otherData":"
Style: Portrait<\/a>
<\/div>"}; lastRePost = null; thisPageUrl = "http://silfida.35photo.ru/photo_116392/"; setBgComm = "#444444"; whovotelike = ""; commentTo = "photo_116392"; 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 = $( '