/** * Name: piroBox v.1.2.2 * Date: May 2010 * Autor: Diego Valobra (http://www.pirolab.it),(http://www.diegovalobra.com) * Version: 1.2.2 * Licence: CC-BY-SA http://creativecommons.org/licenses/by-sa/2.5/it/ **/ (function($){$.fn.piroBox=function(opt){opt=jQuery.extend({my_speed:null,close_speed:300,bg_alpha:0.5,close_all:".piro_close,.piro_overlay",slideShow:null,slideSpeed:null},opt);function start_pirobox(){var corners=""+''+""+""+''+''+''+""+""+''+'
'+''+""+""+''+''+''+""+""+''+"";var window_height=$(document).height();var bg_overlay=$(jQuery('
').hide().css({"opacity":+opt.bg_alpha,"height":window_height+"px"}));var main_cont=$(jQuery('
'));var caption=$(jQuery('
'));var piro_nav=$(jQuery('
'));var piro_close=$(jQuery(''));var piro_play=$(jQuery(''));var piro_stop=$(jQuery(''));var piro_prev=$(jQuery(''));var piro_next=$(jQuery(''));$("body").append(bg_overlay).append(main_cont);main_cont.append(corners);$(".pirobox_up").append(piro_close);$(".pirobox_down").append(piro_nav);$(".pirobox_down").append(piro_play);piro_play.hide();$(".pirobox_down").append(piro_prev).append(piro_next);piro_nav.append(caption);var my_nav_w=piro_prev.width();main_cont.hide();var my_gall_classes=$("a[class^='pirobox']");var map=new Object();for(var i=0;i