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 = 233812; photoIds = 0; userId = 813; photoData = {"photo_id":233812,"user_id":813,"user_login":"sla007","user_name":"\u0412\u044f\u0447\u0435\u0441\u043b\u0430\u0432","photo_name":"winter in red","src":"http:\/\/ser-apr.35photo.ru\/photos\/20110411\/233812.jpg","link":"http:\/\/35photo.ru\/photo_233812\/","bg":"1A1A1A","comm_count":27,"photo_see":12561,"photo_fav":12,"photo_rating":82,"var_vote":null,"timeAdd":"11 \u0430\u043f\u0440, 2011","user":{"status":"good"},"buyAllow":0,"photo_type":0,"moder":{"yes":"0","no":"1"},"user_data":{"photo_count":"302"},"photo_desc":"outdoor....","exif":true,"tags":null,"other_photos":[{"id":"1680892","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/336\/1680892_320r.jpg"},{"id":"1616480","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/323\/1616480_320r.jpg"},{"id":"1609488","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/321\/1609488_320r.jpg"},{"id":"1604139","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/320\/1604139_320r.jpg"},{"id":"1436739","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/287\/1436739_320r.jpg"},{"id":"1423723","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/284\/1423723_320r.jpg"},{"id":"1418745","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/283\/1418745_320r.jpg"},{"id":"1397238","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/279\/1397238_320r.jpg"},{"id":"1320043","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/264\/1320043_320r.jpg"},{"id":"1297079","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/259\/1297079_320r.jpg"},{"id":"1283173","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/256\/1283173_320r.jpg"},{"id":"1256430","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/251\/1256430_320r.jpg"}],"otherData":"
Style: Nude<\/a>
<\/div>"}; lastRePost = null; thisPageUrl = "http://sla007.35photo.ru/photo_233812/"; setBgComm = "#444444"; whovotelike = ""; commentTo = "photo_233812"; allowAddComm = false; jQuery(function( $ ){ SetBG('#1A1A1A', '##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 = $( '