/**
* jCarouselLite - jQuery plugin to navigate images/any content in a carousel style widget.
* @requires jQuery v1.2 or above
* http://gmarwaha.com/jquery/jcarousellite/
*
* Copyright (c) 2007 Ganeshji Marwaha (gmarwaha.com)
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* Version: 1.0.1
* Note: Requires jquery 1.2 or above from version 1.0.1
*/

(function($) {$.fn.jCarouselLite = function(o) {o = $.extend({btnPrev: null,btnNext: null,btnGo: null,mouseWheel: false,auto: null,speed: 200,easing: null,vertical: false,circular: true,visible: 3,start: 0,scroll: 1,beforeStart: null,afterEnd: null}, o || {});return this.each(function() {var running = false, animCss=o.vertical?"top":"left", sizeCss=o.vertical?"height":"width";var div = $(this), ul = $("ul", div), tLi = $("li", ul), tl = tLi.size(), v = o.visible;if(o.circular) {ul.prepend(tLi.slice(tl-v-1+1).clone()).append(tLi.slice(0,v).clone());o.start += v;}var li = $("li", ul), itemLength = li.size(), curr = o.start;div.css("visibility", "visible");ul.css({position: "relative", "z-index": "1"});div.css({overflow: "hidden", position: "relative", "z-index": "2", left: "0px"});var liSize = o.vertical ? height(ul) : width(li);var ulSize = liSize * itemLength;var divSize = liSize * v;ul.css(sizeCss, ulSize+"px").css(animCss, -(curr*liSize));div.css(sizeCss, divSize+"px");if(o.btnPrev) $(o.btnPrev).click(function() {return go(curr-o.scroll);});if(o.btnNext) $(o.btnNext).click(function() {return go(curr+o.scroll);});if(o.btnGo) $.each(o.btnGo, function(i, val) {$(val).click(function() {return go(o.circular ? o.visible+i : i);});});if(o.mouseWheel && div.mousewheel)div.mousewheel(function(e, d) {return d>0 ? go(curr-o.scroll) : go(curr+o.scroll);});if(o.auto) setInterval(function() {go(curr+o.scroll);}, o.auto+o.speed);function vis() {return li.slice(curr).slice(0,v);};function go(to) {if(!running) {if(o.beforeStart)o.beforeStart.call(this, vis());if(o.circular) {if(to<=o.start-v-1) {   ul.css(animCss, -((itemLength-(v*2))*liSize)+"px");curr = to==o.start-v-1 ? itemLength-(v*2)-1 : itemLength-(v*2)-o.scroll;} else if(to>=itemLength-v+1) {ul.css(animCss, -( (v) * liSize ) + "px" );curr = to==itemLength-v+1 ? v+1 : v+o.scroll;} else curr = to;} else {if(to<0 || to>itemLength-v) return;else curr = to;}running = true;ul.animate(animCss == "left" ? { left: -(curr*liSize) } : { top: -(curr*liSize) } , o.speed, o.easing,function() {if(o.afterEnd)o.afterEnd.call(this, vis());running = false;});if(!o.circular) {$(o.btnPrev + "," + o.btnNext).removeClass("disabled");$( (curr-o.scroll<0 && o.btnPrev)||(curr+o.scroll > itemLength-v && o.btnNext)||[]).addClass("disabled");}}return false;};});};function css(el, prop) {return parseInt($.css(el[0], prop)) || 0;};function width(el) {return  el[0].offsetWidth + css(el, 'marginLeft') + css(el, 'marginRight');};function height(el) {return el[0].offsetHeight + css(el, 'marginTop') + css(el, 'marginBottom');};})(jQuery);

/**
 * jQuery gMap
 *
 * @url		http://gmap.nurtext.de/
 * @author	Cedric Kastner <cedric@nur-text.de>
 * @version	1.0.4
 */
(function($){$.fn.gMap = function(options){if (!window.GBrowserIsCompatible || !GBrowserIsCompatible()) return this;var opts = $.extend({}, $.fn.gMap.defaults, options);return this.each(function(){$gmap = new GMap2(this);if (!opts.latitude && !opts.longitude){if ($.isArray(opts.markers) && opts.markers.length >= 1){opts.latitude  =  opts.markers[0].latitude;opts.longitude =  opts.markers[0].longitude;}else{opts.latitude = 34.885931;opts.longitude = 9.84375;opts.zoom = 2;}}$gmap.setCenter(new GLatLng(opts.latitude, opts.longitude), opts.zoom);$gmap.setMapType(opts.maptype);if (opts.controls.length == 0){$gmap.setUIToDefault();}else{for (var i = 0; i < opts.controls.length; i++){eval('$gmap.addControl(new ' + opts.controls[i] + '());');}}if (opts.scrollwheel == true && opts.controls.length != 0) { $gmap.enableScrollWheelZoom(); }for (var j = 0; j < opts.markers.length; j++){marker = opts.markers[j];gicon = new GIcon();gicon.image = opts.icon.image;gicon.shadow = opts.icon.shadow;gicon.iconSize = ($.isArray(opts.icon.iconsize)) ? new GSize(opts.icon.iconsize[0], opts.icon.iconsize[1]) : opts.icon.iconsize;gicon.shadowSize = ($.isArray(opts.icon.shadowsize)) ? new GSize(opts.icon.shadowsize[0], opts.icon.shadowsize[1]) : opts.icon.shadowsize;gicon.iconAnchor = ($.isArray(opts.icon.iconanchor)) ? new GPoint(opts.icon.iconanchor[0], opts.icon.iconanchor[1]) : opts.icon.iconanchor;gicon.infoWindowAnchor = ($.isArray(opts.icon.infowindowanchor)) ? new GPoint(opts.icon.infowindowanchor[0], opts.icon.infowindowanchor[1]) : opts.icon.infowindowanchor;if (marker.icon){gicon.image = marker.icon.image;gicon.shadow = marker.icon.shadow;gicon.iconSize = ($.isArray(marker.icon.iconsize)) ? new GSize(marker.icon.iconsize[0], marker.icon.iconsize[1]) : marker.icon.iconsize;gicon.shadowSize = ($.isArray(marker.icon.shadowsize)) ? new GSize(marker.icon.shadowsize[0], marker.icon.shadowsize[1]) : marker.icon.shadowsize;gicon.iconAnchor = ($.isArray(marker.icon.iconanchor)) ? new GPoint(marker.icon.iconanchor[0], marker.icon.iconanchor[1]) : marker.icon.iconanchor;gicon.infoWindowAnchor = ($.isArray(marker.icon.infowindowanchor)) ? new GPoint(marker.icon.infowindowanchor[0], marker.icon.infowindowanchor[1]) : marker.icon.infowindowanchor;}gmarker = new GMarker(new GPoint(marker.longitude, marker.latitude), gicon);if (marker.html){gmarker.bindInfoWindowHtml(opts.html_prepend + marker.html + opts.html_append);if (gmarker) { $gmap.addOverlay(gmarker); }if (marker.popup == true) { gmarker.openInfoWindowHtml(opts.html_prepend + marker.html + opts.html_append); }}else{if (gmarker) { $gmap.addOverlay(gmarker); }}}});};$.fn.gMap.defaults ={latitude:0,longitude:0,zoom:6,markers:[],controls:[],scrollwheel:true,maptype:G_NORMAL_MAP,html_prepend:'<div class="gmap_marker">',html_append:'</div>',icon:{image:"http://www.google.com/mapfiles/marker.png",shadow:"http://www.google.com/mapfiles/shadow50.png",iconsize:[20, 34],shadowsize:[37, 34],iconanchor:[9, 34],infowindowanchor:[9, 2]}}})(jQuery);

// jQuery SWFObject v1.1.1 MIT/GPL @jon_neal
// http://jquery.thewikies.com/swfobject
(function(f,h,i){function k(a,c){var b=(a[0]||0)-(c[0]||0);return b>0||!b&&a.length>0&&k(a.slice(1),c.slice(1))}function l(a){if(typeof a!=g)return a;var c=[],b="";for(var d in a){b=typeof a[d]==g?l(a[d]):[d,m?encodeURI(a[d]):a[d]].join("=");c.push(b)}return c.join("&")}function n(a){var c=[];for(var b in a)a[b]&&c.push([b,'="',a[b],'"'].join(""));return c.join(" ")}function o(a){var c=[];for(var b in a)c.push(['<param name="',b,'" value="',l(a[b]),'" />'].join(""));return c.join("")}var g="object",m=true;try{var j=i.description||function(){return(new i("ShockwaveFlash.ShockwaveFlash")).GetVariable("$version")}()}catch(p){j="Unavailable"}var e=j.match(/\d+/g)||[0];f[h]={available:e[0]>0,activeX:i&&!i.name,version:{original:j,array:e,string:e.join("."),major:parseInt(e[0],10)||0,minor:parseInt(e[1],10)||0,release:parseInt(e[2],10)||0},hasVersion:function(a){a=/string|number/.test(typeof a)?a.toString().split("."):/object/.test(typeof a)?[a.major,a.minor]:a||[0,0];return k(e,a)},encodeParams:true,expressInstall:"expressInstall.swf",expressInstallIsActive:false,create:function(a){if(!a.swf||this.expressInstallIsActive||!this.available&&!a.hasVersionFail)return false;if(!this.hasVersion(a.hasVersion||1)){this.expressInstallIsActive=true;if(typeof a.hasVersionFail=="function")if(!a.hasVersionFail.apply(a))return false;a={swf:a.expressInstall||this.expressInstall,height:137,width:214,flashvars:{MMredirectURL:location.href,MMplayerType:this.activeX?"ActiveX":"PlugIn",MMdoctitle:document.title.slice(0,47)+" - Flash Player Installation"}}}attrs={data:a.swf,type:"application/x-shockwave-flash",id:a.id||"flash_"+Math.floor(Math.random()*999999999),width:a.width||320,height:a.height||180,style:a.style||""};m=typeof a.useEncode!=="undefined"?a.useEncode:this.encodeParams;a.movie=a.swf;a.wmode=a.wmode||"opaque";delete a.fallback;delete a.hasVersion;delete a.hasVersionFail;delete a.height;delete a.id;delete a.swf;delete a.useEncode;delete a.width;var c=document.createElement("div");c.innerHTML=["<object ",n(attrs),">",o(a),"</object>"].join("");return c.firstChild}};f.fn[h]=function(a){var c=this.find(g).andSelf().filter(g);/string|object/.test(typeof a)&&this.each(function(){var b=f(this),d;a=typeof a==g?a:{swf:a};a.fallback=this;if(d=f[h].create(a)){b.children().remove();b.html(d)}});typeof a=="function"&&c.each(function(){var b=this;b.jsInteractionTimeoutMs=b.jsInteractionTimeoutMs||0;if(b.jsInteractionTimeoutMs<660)b.clientWidth||b.clientHeight?a.call(b):setTimeout(function(){f(b)[h](a)},b.jsInteractionTimeoutMs+66)});return c}})(jQuery,"flash",navigator.plugins["Shockwave Flash"]||window.ActiveXObject);


/**
 * jQuery.ScrollTo - Easy element scrolling using jQuery.
 * Copyright (c) 2007-2009 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com
 * Dual licensed under MIT and GPL.
 * Date: 5/25/2009
 * @author Ariel Flesler
 * @version 1.4.2
 *
 * http://flesler.blogspot.com/2007/10/jqueryscrollto.html
 */
;(function(d){var k=d.scrollTo=function(a,i,e){d(window).scrollTo(a,i,e)};k.defaults={axis:'xy',duration:parseFloat(d.fn.jquery)>=1.3?0:1};k.window=function(a){return d(window)._scrollable()};d.fn._scrollable=function(){return this.map(function(){var a=this,i=!a.nodeName||d.inArray(a.nodeName.toLowerCase(),['iframe','#document','html','body'])!=-1;if(!i)return a;var e=(a.contentWindow||a).document||a.ownerDocument||a;return d.browser.safari||e.compatMode=='BackCompat'?e.body:e.documentElement})};d.fn.scrollTo=function(n,j,b){if(typeof j=='object'){b=j;j=0}if(typeof b=='function')b={onAfter:b};if(n=='max')n=9e9;b=d.extend({},k.defaults,b);j=j||b.speed||b.duration;b.queue=b.queue&&b.axis.length>1;if(b.queue)j/=2;b.offset=p(b.offset);b.over=p(b.over);return this._scrollable().each(function(){var q=this,r=d(q),f=n,s,g={},u=r.is('html,body');switch(typeof f){case'number':case'string':if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(f)){f=p(f);break}f=d(f,this);case'object':if(f.is||f.style)s=(f=d(f)).offset()}d.each(b.axis.split(''),function(a,i){var e=i=='x'?'Left':'Top',h=e.toLowerCase(),c='scroll'+e,l=q[c],m=k.max(q,i);if(s){g[c]=s[h]+(u?0:l-r.offset()[h]);if(b.margin){g[c]-=parseInt(f.css('margin'+e))||0;g[c]-=parseInt(f.css('border'+e+'Width'))||0}g[c]+=b.offset[h]||0;if(b.over[h])g[c]+=f[i=='x'?'width':'height']()*b.over[h]}else{var o=f[h];g[c]=o.slice&&o.slice(-1)=='%'?parseFloat(o)/100*m:o}if(/^\d+$/.test(g[c]))g[c]=g[c]<=0?0:Math.min(g[c],m);if(!a&&b.queue){if(l!=g[c])t(b.onAfterFirst);delete g[c]}});t(b.onAfter);function t(a){r.animate(g,j,b.easing,a&&function(){a.call(this,n,b)})}}).end()};k.max=function(a,i){var e=i=='x'?'Width':'Height',h='scroll'+e;if(!d(a).is('html,body'))return a[h]-d(a)[e.toLowerCase()]();var c='client'+e,l=a.ownerDocument.documentElement,m=a.ownerDocument.body;return Math.max(l[h],m[h])-Math.min(l[c],m[c])};function p(a){return typeof a=='object'?a:{top:a,left:a}}})(jQuery);
