/*
 * Superfish v1.21 - jQuery menu widget
 *
 * Copyright (c) 2007 Joel Birch
 *
 * Dual licensed under the MIT and GPL licenses:
 * 	http://www.opensource.org/licenses/mit-license.php
 * 	http://www.gnu.org/licenses/gpl.html
 *
 * last altered: 2nd July 07. added hide() before animate to make work for jQuery 1.1.3
 */
/*
 * jQuery Cycle Plugin for light-weight slideshows
 * Examples and documentation at: http://malsup.com/jquery/cycle/
 *
 * @author: M. Alsup
 * @version: 1.0 (7/05/2007)
 * @requires jQuery v1.1.2 or later
 *
 * Based on the work of:
 *  1) Matt Oakes (http://portfolio.gizone.co.uk/applications/slideshow/)
 *  2) Torsten Baldes (http://medienfreunde.com/lab/innerfade/)
 */
(function($){$.fn.cycle=function(options){return this.each(function(){if(options&&options=='stop'){if(this.cycleTimeout)clearTimeout(this.cycleTimeout);this.cycleTimeout=0;return}var $this=$(this),els=$this.children();if(els.length<2)return;var opts=$.extend({},$.fn.cycle.defaults,options||{},$.meta?$this.data():{});var cls=this.className;var w=parseInt((cls.match(/w:(\d+)/)||[])[1])||opts.width;var h=parseInt((cls.match(/h:(\d+)/)||[])[1])||opts.height;opts.timeout=parseInt((cls.match(/t:(\d+)/)||[])[1])||opts.timeout;if(opts.speed.constructor==String)opts.speed={slow:600,fast:200}[opts.speed]||400;while((opts.timeout-opts.speed)<250)opts.timeout+=opts.speed;if($this.css('position')=='static')$this.css('position','relative');if(w)$this.width(w);if(h&&h!='auto')$this.height(h);var $els=$(els).each(function(i){$(this).css('z-index',els.length-i)}).css('position','absolute').hide();if(opts.fit&&w)$els.width(w);if(opts.fit&&h&&h!='auto')$els.height(h);$(els[0]).show();if(opts.pause)$this.hover(function(){opts.paused=1},function(){opts.paused=0});opts.current=opts.random?(Math.floor(Math.random()*(els.length-1)))+1:1;opts.last=0;this.cycleTimeout=setTimeout(function(){$.fn.cycle.go(els,opts)},opts.timeout)})};$.fn.cycle.go=function(els,opts){if(els[0].parentNode.cycleTimeout===0)return;if(!opts.paused){if(opts.fade){$.fn.cycle.fadeToggle(els[opts.last],opts.speed);$.fn.cycle.fadeToggle(els[opts.current],opts.speed)}else{$(els[opts.last]).slideUp(opts.speed);$(els[opts.current]).slideDown(opts.speed)}if(opts.random){opts.last=opts.current;while(opts.current==opts.last)opts.current=Math.floor(Math.random()*els.length)}else{var roll=(opts.current+1)==els.length;opts.current=roll?0:opts.current+1;opts.last=roll?els.length-1:opts.current-1}if(opts.callback){var func=opts.callback+"();";eval(func)}}setTimeout(function(){$.fn.cycle.go(els,opts)},opts.timeout)};$.fn.cycle.fadeToggle=function(el,speed){var $el=$(el);var to=$el.is(':visible')&&$el.css('opacity')>0?0:1;if(to==1)$el.css('opacity',0).show();$el.fadeTo(speed,to)};$.fn.cycle.defaults={height:'auto',fade:1,speed:400,timeout:4000,random:0,fit:0,pause:0,callback:false}})(jQuery);

/* Copyright (c) 2006 Brandon Aaron (http://brandonaaron.net)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 *
 * $LastChangedDate: 2007-06-19 20:25:28 -0500 (Tue, 19 Jun 2007) $
 * $Rev: 2111 $
 *
 * Version 2.1
 */
(function($){$.fn.bgIframe=$.fn.bgiframe=function(s){if($.browser.msie&&parseInt($.browser.version)<=6){s=$.extend({top:'auto',left:'auto',width:'auto',height:'auto',opacity:true,src:'javascript:false;'},s||{});var prop=function(n){return n&&n.constructor==Number?n+'px':n},html='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+s.src+'"'+'style="display:block;position:absolute;z-index:-1;'+(s.opacity!==false?'filter:Alpha(Opacity=\'0\');':'')+'top:'+(s.top=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+\'px\')':prop(s.top))+';'+'left:'+(s.left=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+\'px\')':prop(s.left))+';'+'width:'+(s.width=='auto'?'expression(this.parentNode.offsetWidth+\'px\')':prop(s.width))+';'+'height:'+(s.height=='auto'?'expression(this.parentNode.offsetHeight+\'px\')':prop(s.height))+';'+'"/>';return this.each(function(){if($('> iframe.bgiframe',this).length==0)this.insertBefore(document.createElement(html),this.firstChild)})}return this}})(jQuery);

