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 = 162675; photoIds = 0; userId = 720; photoData = {"photo_id":162675,"user_id":720,"user_login":"rust2d","user_name":"Rust2D","photo_name":"Inna Blur Round","src":"http:\/\/ser-apr.35photo.ru\/photos\/20100728\/162675.jpg","link":"http:\/\/35photo.ru\/photo_162675\/","bg":333333,"comm_count":1,"photo_see":2234,"photo_fav":0,"photo_rating":12,"var_vote":null,"timeAdd":"28 \u0438\u044e\u043b, 2010","user":{"status":"good"},"buyAllow":0,"photo_type":0,"moder":{"yes":"0","no":"0"},"user_data":{"photo_count":"133"},"photo_desc":"by Rust2D","tags":["rust2d","inessa","gold"],"other_photos":[{"id":"215583","src":"http:\/\/35photo.ru\/photos_col\/r2\/43\/215583_320r.jpg"},{"id":"214304","src":"http:\/\/35photo.ru\/photos_col\/r2\/42\/214304_320r.jpg"},{"id":"212326","src":"http:\/\/35photo.ru\/photos_col\/r2\/42\/212326_320r.jpg"},{"id":"207422","src":"http:\/\/35photo.ru\/photos_col\/r2\/41\/207422_320r.jpg"},{"id":"204189","src":"http:\/\/35photo.ru\/photos_col\/r2\/40\/204189_320r.jpg"},{"id":"203823","src":"http:\/\/35photo.ru\/photos_col\/r2\/40\/203823_320r.jpg"},{"id":"203287","src":"http:\/\/35photo.ru\/photos_col\/r2\/40\/203287_320r.jpg"},{"id":"182288","src":"http:\/\/35photo.ru\/photos_col\/r2\/36\/182288_320r.jpg"},{"id":"179702","src":"http:\/\/35photo.ru\/photos_col\/r2\/35\/179702_320r.jpg"},{"id":"179595","src":"http:\/\/35photo.ru\/photos_col\/r2\/35\/179595_320r.jpg"},{"id":"177652","src":"http:\/\/35photo.ru\/photos_col\/r2\/35\/177652_320r.jpg"},{"id":"176675","src":"http:\/\/35photo.ru\/photos_col\/r2\/35\/176675_320r.jpg"}],"otherData":"
Style: Nude<\/a>
<\/div>"}; lastRePost = null; thisPageUrl = "http://rust2d.35photo.ru/photo_162675/"; setBgComm = "#444444"; whovotelike = ""; commentTo = "photo_162675"; 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 = $( '