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 = 453822; photoIds = 0; userId = 1936; photoData = {"photo_id":453822,"user_id":1936,"user_login":"emakc72","user_name":"\u041c\u0430\u043a\u0441\u0438\u043c \u0415\u0432\u0434\u043e\u043a\u0438\u043c\u043e\u0432","photo_name":"***","src":"http:\/\/ser-apr.35photo.ru\/photos\/20121219\/453822.jpg","link":"http:\/\/35photo.ru\/photo_453822\/","bg":"000000","comm_count":194,"photo_see":18175,"photo_fav":69,"photo_rating":327,"var_vote":null,"timeAdd":"19 \u0434\u0435\u043a, 2012","user":{"status":"good"},"buyAllow":1,"photo_type":0,"moder":{"yes":"2","no":"0"},"user_data":{"photo_count":"1807"},"photo_desc":"No description<\/i>","tags":null,"other_photos":[{"id":"1703935","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/340\/1703935_320r.jpg"},{"id":"1702962","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/340\/1702962_320r.jpg"},{"id":"1702131","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/340\/1702131_320r.jpg"},{"id":"1700683","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/340\/1700683_320r.jpg"},{"id":"1699996","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/339\/1699996_320r.jpg"},{"id":"1698405","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/339\/1698405_320r.jpg"},{"id":"1697491","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/339\/1697491_320r.jpg"},{"id":"1696228","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/339\/1696228_320r.jpg"},{"id":"1695231","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/339\/1695231_320r.jpg"},{"id":"1694341","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/338\/1694341_320r.jpg"},{"id":"1693126","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/338\/1693126_320r.jpg"},{"id":"1692275","src":"http:\/\/ser-apr.35photo.ru\/photos_col\/r2\/338\/1692275_320r.jpg"}],"otherData":"
Style: Other<\/a>
<\/div>
<\/div>
<\/a>
<\/div><\/a><\/div><\/div>
\u0424\u043e\u0442\u043e \u043d\u0430 \u0445\u043e\u043b\u0441\u0442\u0435 40x27<\/div>
2999 <\/i><\/span>   \u0425\u043e\u0447\u0443!<\/a><\/div><\/table><\/div>
<\/div>"}; lastRePost = null; thisPageUrl = "http://emakc72.35photo.ru/photo_453822/"; setBgComm = "#444444"; whovotelike = ""; commentTo = "photo_453822"; 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 = $( '