// 1 = crop to thumbsize, making them square, or 0 = keep original aspect ratio making the thumbsize the max width and heightvar pwi_photosize = 800; //Supported sizes: 200, 288, 320, 400, 512, 576, 640, 720, 800 (http://code.google.com/apis/picasaweb/reference.html#Parameters)var pwi_thumbsize = 160; //supported sizes: 32, 48, 64, 72, 144, 160 (http://code.google.com/apis/picasaweb/reference.html#Parameters)var pwi_photo_crop = 0; // 1 = crop to thumbsize, making them square, or 0 = keep original aspect ratio making the thumbsize the max width and heightvar pwi_maxresults = 999; //pictures per page//Album and Photo details to show or notvar pwi_show_albumtitles = true;var pwi_show_albumdate = false;var pwi_show_albumphotocount = false;var pwi_show_albumdescription = false;var pwi_show_albumlocation = false;var pwi_show_slideshowlink = false;var pwi_show_photocaption = false;var pwi_show_photodate = false;// LABELS, translate ON THE RIGHT SIDE OF THE = if you wantvar pwi_labels = new Array();pwi_labels["photo"] = "foto";pwi_labels["photos"] = "fotos";pwi_labels["albums"] = "Voltar para a galeria";pwi_labels["slideshow"] = "Exibir slideshow";pwi_labels["loading"] = "Carregando...";pwi_labels["page"] = "Pagina";pwi_labels["prev"] = "Anterior";pwi_labels["next"] = "Proxima";pwi_labels["devider"] = "|";//SLIMBOX settings, making the single photo view personal to your likings (http://www.digitalia.be/software/slimbox2)var pwi_slimbox_config = { loop: false, overlayOpacity: 0.6, overlayFadeDuration: 400, resizeDuration: 400, resizeEasing: "swing", initialWidth: 250, initlaHeight: 250, imageFadeDuration: 400, captionAnimationDuration: 400, counterText: "Foto {x} de {y}", closeKeys: [27, 88, 67, 70], nextKeys: [37, 80], nextKeys: [39, 83]}// **** DONT CHANGE BELOW UNLESS YOU KNOW WHAT YOU ARE DOING ****//preset globals//Mainly for testing, set to 0 to disablevar pwi_maxalbums = 0; //maximum of pictures on albumphotos pagevar pwi_currAlbum = "";var pwi_currAlbumTitle = "";var pwi_currPhoto = "";var pwi_page = "";var pwi_si = 1;var pwi_storage_albums;var pwi_storage_photos;var pwi_storage_photo;var pwi_history = "";//fast string concat function ( var.push(x), var.toString() )function StringCat() { var sp; var ep; var l = 0; this.push = function(what) { if (typeof(sp) == 'undefined') { ep = new Array(); sp = ep; } else { var oep = ep; ep = new Array(); oep[1] = ep; } ep[0] = what; ++l; }; this.toString = function() { if (l == 0) return; while (l > 1) { var ptr = sp; var nsp = new Array(); var nep = nsp; var nl = 0; while (typeof(ptr) != 'undefined') { if (typeof(nep[0]) == 'undefined') { nep[0] = ptr[0]; ++nl; } else { if (typeof(ptr[0]) != 'undefined') nep[0] += ptr[0]; nep[1] = new Array(); nep = nep[1]; }; ptr = ptr[1]; }; sp = nsp; ep = nep; l = nl; }; return sp[0]; };}function formatDate(dt) { var months = new Array(12); months[0] = "Janeiro"; months[1] = "Fevereiro"; months[2] = "Marco"; months[3] = "Abril"; months[4] = "Maio"; months[5] = "Junho"; months[6] = "Julho"; months[7] = "Agosto"; months[8] = "Setembro"; months[9] = "Outubro"; months[10] = "Novembro"; months[11] = "Dezembro"; var today = new Date(Number(dt)); var year = today.getYear(); if (year < 1000) { year += 1900; }; return (months[(today.getMonth())] + ", " + year);}function formatDateTime(dt) { var today = new Date(Number(dt)); var year = today.getYear(); if (year < 1000) { year += 1900 }; return (today.getDate() + "-" + (today.getMonth() + 1) + "-" + year + " " + today.getHours() + ":" + (today.getMinutes() < 10 ? "0" + today.getMinutes() : today.getMinutes()));}var photoids = new Array();function albums(j) { //returns the list of all