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 = 814471; photoIds = 0; userId = 85608; photoData = {"photo_id":814471,"user_id":85608,"user_login":"tdv","user_name":"\u0414\u043c\u0438\u0442\u0440\u0438\u0439 \u0422\u0438\u0442\u043e\u0432","photo_name":"\u0420\u0430\u0441\u0441\u0432\u0435\u0442 \u043d\u0430\u0434 Reine II - \u0412 \u0434\u0440\u0443\u0433\u043e\u043c \u0441\u0432\u0435\u0442\u0435...","src":"http:\/\/ser-apr.35photo.ru\/photos\/20141223\/814471.jpg","link":"http:\/\/35photo.ru\/photo_814471\/","bg":"333333","comm_count":65,"photo_see":4183,"photo_fav":38,"photo_rating":320,"var_vote":null,"timeAdd":"23 \u0434\u0435\u043a, 2014","user":{"status":"good"},"buyAllow":0,"photo_type":0,"moder":{"yes":"2","no":"1"},"user_data":{"photo_count":"53"},"photo_desc":"No description<\/i>","exif":true,"tags":["\u041d\u043e\u0440\u0432\u0435\u0433\u0438\u044f"],"other_photos":[{"id":"1596814","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/319\/1596814_320r.jpg"},{"id":"1595757","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/319\/1595757_320r.jpg"},{"id":"1593088","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/318\/1593088_320r.jpg"},{"id":"1331610","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/266\/1331610_320r.jpg"},{"id":"1301808","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/260\/1301808_320r.jpg"},{"id":"1299633","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/259\/1299633_320r.jpg"},{"id":"1293179","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/258\/1293179_320r.jpg"},{"id":"1286862","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/257\/1286862_320r.jpg"},{"id":"1203004","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/240\/1203004_320r.jpg"},{"id":"1201501","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/240\/1201501_320r.jpg"},{"id":"1200169","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/240\/1200169_320r.jpg"},{"id":"1196912","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/239\/1196912_320r.jpg"}],"otherData":"
Style: Landscapes<\/a>
<\/div>"}; lastRePost = null; thisPageUrl = "http://tdv.35photo.ru/photo_814471/"; setBgComm = "#444444"; whovotelike = ""; commentTo = "photo_814471"; 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 = $( '