/* --------- /javascripts/shadowbox/shadowbox-misc.js --------- */ 

var sbapply=function(o,e){for(var p in e)o[p]=e[p];return o;};shadowboxOther={beforeClose:function(ob){if(ob.dirty){if(ob.dirty==='true'){if(confirm("You have unsaved changes!\nAre you sure you want to close the edit form?")){return false;}else{return true;}}}}}
shadowboxOptions=sbapply(shadowboxOptions,shadowboxOther);/* --------- /javascripts/shadowbox/skin/classic/skin.js --------- */ 

if(typeof Shadowbox=='undefined'){throw'Unable to load Shadowbox skin, base library not found.';}
Shadowbox.SKIN={markup:'<div id="shadowbox_container">'+'<div id="shadowbox_overlay"></div>'+'<div id="shadowbox">'+'<div id="shadowbox_title">'+'<div id="shadowbox_title_inner"></div>'+'</div>'+'<div id="shadowbox_body">'+'<div id="shadowbox_body_inner"></div>'+'<div id="shadowbox_loading">'+'<div id="shadowbox_loading_indicator"></div>'+'<span><a onclick="Shadowbox.close();">{cancel}</a></span>'+'</div>'+'</div>'+'<div id="shadowbox_info">'+'<div id="shadowbox_info_inner">'+'<div id="shadowbox_counter"></div>'+'<div id="shadowbox_nav">'+'<a id="shadowbox_nav_close" title="{close}" onclick="Shadowbox.close()"></a>'+'<a id="shadowbox_nav_next" title="{next}" onclick="Shadowbox.next()"></a>'+'<a id="shadowbox_nav_play" title="{play}" onclick="Shadowbox.play()"></a>'+'<a id="shadowbox_nav_pause" title="{pause}" onclick="Shadowbox.pause()"></a>'+'<a id="shadowbox_nav_previous" title="{previous}" onclick="Shadowbox.previous()"></a>'+'</div>'+'<div class="shadowbox_clear"></div>'+'</div>'+'</div>'+'</div>'+'</div>',png_fix:['shadowbox_nav_close','shadowbox_nav_next','shadowbox_nav_play','shadowbox_nav_pause','shadowbox_nav_previous']};/* --------- /javascripts/shadowbox/lang/shadowbox-en.js --------- */ 

if(typeof Shadowbox=='undefined'){throw'Unable to load Shadowbox language file, base library not found.';}
Shadowbox.LANG={code:'en',of:'of',loading:'loading',cancel:'Cancel',next:'Next',previous:'Previous',play:'Play',pause:'Pause',close:'Close',errors:{single:'You must install the <a href="{0}">{1}</a> browser plugin to view this content.',shared:'You must install both the <a href="{0}">{1}</a> and <a href="{2}">{3}</a> browser plugins to view this content.',either:'You must install either the <a href="{0}">{1}</a> or the <a href="{2}">{3}</a> browser plugin to view this content.'}};/* --------- /javascripts/shadowbox/player/shadowbox-flv.js --------- */ 

(function(){var SB=Shadowbox;var SL=SB.lib;Shadowbox.flv=function(id,obj){this.id=id;this.obj=obj;this.resizable=true;this.height=this.obj.height?parseInt(this.obj.height,10):300;if(SB.getOptions().showMovieControls==true){this.height+=20;}
this.width=this.obj.width?parseInt(this.obj.width,10):300;};Shadowbox.flv.prototype={markup:function(dims){var obj=this.obj;var h=dims.resize_h;var w=dims.resize_w;var options=SB.getOptions();var autoplay=String(options.autoplayMovies);var controls=options.showMovieControls;var showicons=String(controls);var displayheight=h-(controls?20:0);var flashvars=['file='+this.obj.content,'height='+h,'width='+w,'autostart='+autoplay,'displayheight='+displayheight,'showicons='+showicons,'backcolor=0x000000','frontcolor=0xCCCCCC','lightcolor=0x557722'];return{tag:'object',id:this.id,name:this.id,type:'application/x-shockwave-flash',data:options.flvPlayer,children:[{tag:'param',name:'movie',value:options.flvPlayer},{tag:'param',name:'flashvars',value:flashvars.join('&amp;')},{tag:'param',name:'allowfullscreen',value:'true'}],height:h,width:w};},remove:function(){var el=SL.get(this.id);if(el)SL.remove(el);}};})();/* --------- /javascripts/shadowbox/player/shadowbox-html.js --------- */ 

(function(){var SB=Shadowbox;var SL=SB.lib;Shadowbox.html=function(id,obj){this.id=id;this.obj=obj;this.height=this.obj.height?parseInt(this.obj.height,10):300;this.width=this.obj.width?parseInt(this.obj.width,10):500;};Shadowbox.html.prototype={markup:function(dims){return{tag:'div',id:this.id,cls:'html',html:this.obj.content};},remove:function(){var el=SL.get(this.id);if(el)SL.remove(el);}};})();/* --------- /javascripts/shadowbox/player/shadowbox-iframe.js --------- */ 

(function(){var SB=Shadowbox;var SL=SB.lib;var C=SB.getClient();Shadowbox.iframe=function(id,obj){this.id=id;this.obj=obj;this.height=this.obj.height?parseInt(this.obj.height,10):SL.getViewportHeight();this.width=this.obj.width?parseInt(this.obj.width,10):SL.getViewportWidth();};Shadowbox.iframe.prototype={markup:function(dims){var markup={tag:'iframe',id:this.id,name:this.id,height:'100%',width:'100%',frameborder:'0',marginwidth:'0',marginheight:'0',scrolling:'auto'};if(C.isIE){markup.allowtransparency='true';if(!C.isIE7){markup.src='javascript:false;document.write("");';}}
return markup;},onLoad:function(){var win=(C.isIE)?SL.get(this.id).contentWindow:window.frames[this.id];win.location=this.obj.content;},remove:function(){var el=SL.get(this.id);if(el){SL.remove(el);if(C.isGecko)delete window.frames[this.id];}}};})();/* --------- /javascripts/shadowbox/player/shadowbox-img.js --------- */ 

(function(){var SB=Shadowbox;var SL=SB.lib;var C=SB.getClient();var drag;var draggable;var drag_id='shadowbox_drag_layer';var preloader;var resetDrag=function(){drag={x:0,y:0,start_x:null,start_y:null};};var toggleDrag=function(on,h,w){if(on){resetDrag();var styles=['position:absolute','height:'+h+'px','width:'+w+'px','cursor:'+(C.isGecko?'-moz-grab':'move'),'background-color:'+(C.isIE?'#fff;filter:alpha(opacity=0)':'transparent')];SL.append(SL.get('shadowbox_body_inner'),'<div id="'+drag_id+'" style="'+styles.join(';')+'"></div>');SL.addEvent(SL.get(drag_id),'mousedown',listenDrag);}else{var d=SL.get(drag_id);if(d){SL.removeEvent(d,'mousedown',listenDrag);SL.remove(d);}}};var listenDrag=function(e){SL.preventDefault(e);var coords=SL.getPageXY(e);drag.start_x=coords[0];drag.start_y=coords[1];draggable=SL.get('shadowbox_content');SL.addEvent(document,'mousemove',positionDrag);SL.addEvent(document,'mouseup',unlistenDrag);if(C.isGecko)SL.setStyle(SL.get(drag_id),'cursor','-moz-grabbing');};var unlistenDrag=function(){SL.removeEvent(document,'mousemove',positionDrag);SL.removeEvent(document,'mouseup',unlistenDrag);if(C.isGecko)SL.setStyle(SL.get(drag_id),'cursor','-moz-grab');};var positionDrag=function(e){var content=SB.getContent();var dims=SB.getDimensions();var coords=SL.getPageXY(e);var move_x=coords[0]-drag.start_x;drag.start_x+=move_x;drag.x=Math.max(Math.min(0,drag.x+move_x),dims.inner_w-content.width);SL.setStyle(draggable,'left',drag.x+'px');var move_y=coords[1]-drag.start_y;drag.start_y+=move_y;drag.y=Math.max(Math.min(0,drag.y+move_y),dims.inner_h-content.height);SL.setStyle(draggable,'top',drag.y+'px');};Shadowbox.img=function(id,obj){this.id=id;this.obj=obj;this.resizable=true;this.ready=false;var self=this;preloader=new Image();preloader.onload=function(){self.height=self.obj.height?parseInt(self.obj.height,10):preloader.height;self.width=self.obj.width?parseInt(self.obj.width,10):preloader.width;self.ready=true;preloader.onload='';preloader=null;};preloader.src=obj.content;};Shadowbox.img.prototype={markup:function(dims){return{tag:'img',id:this.id,height:dims.resize_h,width:dims.resize_w,src:this.obj.content,style:'position:absolute'};},onLoad:function(){var dims=SB.getDimensions();if(dims.drag&&SB.getOptions().handleOversize=='drag'){toggleDrag(true,dims.resize_h,dims.resize_w);}},remove:function(){var el=SL.get(this.id);if(el)SL.remove(el);toggleDrag(false);if(preloader){preloader.onload='';preloader=null;}}};})();/* --------- /javascripts/shadowbox/player/shadowbox-swf.js --------- */ 

(function(){var SB=Shadowbox;var SL=SB.lib;Shadowbox.swf=function(id,obj){this.id=id;this.obj=obj;this.resizable=true;this.height=this.obj.height?parseInt(this.obj.height,10):300;this.width=this.obj.width?parseInt(this.obj.width,10):300;};Shadowbox.swf.prototype={markup:function(dims){var bgcolor=SB.getOptions().flashBgColor;return{tag:'object',id:this.id,name:this.id,type:'application/x-shockwave-flash',data:this.obj.content,children:[{tag:'param',name:'movie',value:this.obj.content},{tag:'param',name:'bgcolor',value:bgcolor}],height:dims.resize_h,width:dims.resize_w};},remove:function(){var el=SL.get(this.id);if(el)SL.remove(el);}};})();

