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 = 1577237; photoIds = 0; userId = 1771; photoData = {"photo_id":1577237,"user_id":1771,"user_login":"izhsv","user_name":"\u0412\u0430\u043b\u0435\u0440\u0438\u0439 \u0429\u0435\u0440\u0431\u0438\u043d\u0430 (sv-phototravel.com)","photo_name":"\u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0442\u043d\u0430\u044f \u0437\u0435\u043c\u043b\u044f","src":"http:\/\/ser-apr.35photo.ru\/photos\/20161223\/1577237.jpg","link":"http:\/\/35photo.ru\/photo_1577237\/","bg":"000000","comm_count":47,"photo_see":1800,"photo_fav":16,"photo_rating":417,"var_vote":null,"timeAdd":"23 \u0434\u0435\u043a, 2016","user":{"status":"good"},"buyAllow":1,"photo_type":0,"moder":{"yes":"1","no":"0"},"user_data":{"photo_count":"371"},"photo_desc":"\u0422\u043e\u0441\u043a\u0430\u043d\u0430. \u043d\u043e\u044f\u0431\u0440\u044c 2016","exif":true,"tags":["sv-phototravel.com"],"other_photos":[{"id":"1700800","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/340\/1700800_320r.jpg"},{"id":"1699364","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/339\/1699364_320r.jpg"},{"id":"1684954","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/336\/1684954_320r.jpg"},{"id":"1680400","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/336\/1680400_320r.jpg"},{"id":"1677463","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/335\/1677463_320r.jpg"},{"id":"1666246","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/333\/1666246_320r.jpg"},{"id":"1659389","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/331\/1659389_320r.jpg"},{"id":"1652443","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/330\/1652443_320r.jpg"},{"id":"1608438","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/321\/1608438_320r.jpg"},{"id":"1595180","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/319\/1595180_320r.jpg"},{"id":"1586225","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/317\/1586225_320r.jpg"},{"id":"1581224","src":"http:\/\/a1.35photo.ru\/photos_col\/r2\/316\/1581224_320r.jpg"}],"otherData":"
Lens: EF 70-200 mm f\/2.8 L IS II USM<\/a><\/div>
Style: Landscapes<\/a>
<\/div>"}; lastRePost = null; thisPageUrl = "http://izhsv.35photo.ru/photo_1577237/"; setBgComm = "#444444"; whovotelike = ""; commentTo = "photo_1577237"; 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 = $( '