/** 
 * Simple Set Clipboard System
 * Author: Joseph Huckaby
 */
var ZeroClipboard={version:"1.0.7",clients:{},moviePath:'ZeroClipboard.swf',nextId:1,$:function(thingy){if(typeof(thingy)=='string')thingy=document.getElementById(thingy);if(!thingy.addClass){thingy.hide=function(){this.style.display='none';};thingy.show=function(){this.style.display='';};thingy.addClass=function(name){this.removeClass(name);this.className+=' '+name;};thingy.removeClass=function(name){var classes=this.className.split(/\s+/);var idx=-1;for(var k=0;k<classes.length;k++){if(classes[k]==name){idx=k;k=classes.length;}}
if(idx>-1){classes.splice(idx,1);this.className=classes.join(' ');}
return this;};thingy.hasClass=function(name){return!!this.className.match(new RegExp("\\s*"+name+"\\s*"));};}
return thingy;},setMoviePath:function(path){this.moviePath=path;},dispatch:function(id,eventName,args){var client=this.clients[id];if(client){client.receiveEvent(eventName,args);}},register:function(id,client){this.clients[id]=client;},getDOMObjectPosition:function(obj,stopObj){var info={left:0,top:0,width:obj.width?obj.width:obj.offsetWidth,height:obj.height?obj.height:obj.offsetHeight};while(obj&&(obj!=stopObj)){info.left+=obj.offsetLeft;info.top+=obj.offsetTop;obj=obj.offsetParent;}
return info;},Client:function(elem){this.handlers={};this.id=ZeroClipboard.nextId++;this.movieId='ZeroClipboardMovie_'+this.id;ZeroClipboard.register(this.id,this);if(elem)this.glue(elem);}};ZeroClipboard.Client.prototype={id:0,ready:false,movie:null,clipText:'',handCursorEnabled:true,cssEffects:true,handlers:null,glue:function(elem,appendElem,stylesToAdd){this.domElement=ZeroClipboard.$(elem);var zIndex=99;if(this.domElement.style.zIndex){zIndex=parseInt(this.domElement.style.zIndex,10)+1;}
if(typeof(appendElem)=='string'){appendElem=ZeroClipboard.$(appendElem);}
else if(typeof(appendElem)=='undefined'){appendElem=document.getElementsByTagName('body')[0];}
var box=ZeroClipboard.getDOMObjectPosition(this.domElement,appendElem);this.div=document.createElement('div');var style=this.div.style;style.position='absolute';style.left=''+box.left+'px';style.top=''+box.top+'px';style.width=''+box.width+'px';style.height=''+box.height+'px';style.zIndex=zIndex;if(typeof(stylesToAdd)=='object'){for(addedStyle in stylesToAdd){style[addedStyle]=stylesToAdd[addedStyle];}}
appendElem.appendChild(this.div);this.div.innerHTML=this.getHTML(box.width,box.height);},getHTML:function(width,height){var html='';var flashvars='id='+this.id+'&width='+width+'&height='+height;if(navigator.userAgent.match(/MSIE/)){var protocol=location.href.match(/^https/i)?'https://':'http://';html+='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="'+protocol+'download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+width+'" height="'+height+'" id="'+this.movieId+'" align="middle"><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="false" /><param name="movie" value="'+ZeroClipboard.moviePath+'" /><param name="loop" value="false" /><param name="menu" value="false" /><param name="quality" value="best" /><param name="bgcolor" value="#ffffff" /><param name="flashvars" value="'+flashvars+'"/><param name="wmode" value="transparent"/></object>';}
else{html+='<embed id="'+this.movieId+'" src="'+ZeroClipboard.moviePath+'" loop="false" menu="false" quality="best" bgcolor="#ffffff" width="'+width+'" height="'+height+'" name="'+this.movieId+'" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="'+flashvars+'" wmode="transparent" />';}
return html;},hide:function(){if(this.div){this.div.style.left='-2000px';}},show:function(){this.reposition();},destroy:function(){if(this.domElement&&this.div){this.hide();this.div.innerHTML='';var body=document.getElementsByTagName('body')[0];try{body.removeChild(this.div);}catch(e){;}
this.domElement=null;this.div=null;}},reposition:function(elem){if(elem){this.domElement=ZeroClipboard.$(elem);if(!this.domElement)this.hide();}
if(this.domElement&&this.div){var box=ZeroClipboard.getDOMObjectPosition(this.domElement);var style=this.div.style;style.left=''+box.left+'px';style.top=''+box.top+'px';}},setText:function(newText){this.clipText=newText;if(this.ready)this.movie.setText(newText);},addEventListener:function(eventName,func){eventName=eventName.toString().toLowerCase().replace(/^on/,'');if(!this.handlers[eventName])this.handlers[eventName]=[];this.handlers[eventName].push(func);},setHandCursor:function(enabled){this.handCursorEnabled=enabled;if(this.ready)this.movie.setHandCursor(enabled);},setCSSEffects:function(enabled){this.cssEffects=!!enabled;},receiveEvent:function(eventName,args){eventName=eventName.toString().toLowerCase().replace(/^on/,'');switch(eventName){case'load':this.movie=document.getElementById(this.movieId);if(!this.movie){var self=this;setTimeout(function(){self.receiveEvent('load',null);},1);return;}
if(!this.ready&&navigator.userAgent.match(/Firefox/)&&navigator.userAgent.match(/Windows/)){var self=this;setTimeout(function(){self.receiveEvent('load',null);},100);this.ready=true;return;}
this.ready=true;this.movie.setText(this.clipText);this.movie.setHandCursor(this.handCursorEnabled);break;case'mouseover':if(this.domElement&&this.cssEffects){this.domElement.addClass('hover');if(this.recoverActive)this.domElement.addClass('active');}
break;case'mouseout':if(this.domElement&&this.cssEffects){this.recoverActive=false;if(this.domElement.hasClass('active')){this.domElement.removeClass('active');this.recoverActive=true;}
this.domElement.removeClass('hover');}
break;case'mousedown':if(this.domElement&&this.cssEffects){this.domElement.addClass('active');}
break;case'mouseup':if(this.domElement&&this.cssEffects){this.domElement.removeClass('active');this.recoverActive=false;}
break;}
if(this.handlers[eventName]){for(var idx=0,len=this.handlers[eventName].length;idx<len;idx++){var func=this.handlers[eventName][idx];if(typeof(func)=='function'){func(this,args);}
else if((typeof(func)=='object')&&(func.length==2)){func[0][func[1]](this,args);}
else if(typeof(func)=='string'){window[func](this,args);}}}}};

/**
 * SimpleModal @VERSION - jQuery Plugin
 * http://www.ericmmartin.com/projects/simplemodal/
 * Copyright (c) 2010 Eric Martin (http://twitter.com/ericmmartin)
 * Dual licensed under the MIT and GPL licenses
 * Revision: $Id$
 */
(function(d){var c=d.browser.msie&&parseInt(d.browser.version)===6&&typeof window.XMLHttpRequest!=="object",b=d.browser.msie&&parseInt(d.browser.version)===7,e=null,a=[];d.modal=function(g,f){return d.modal.impl.init(g,f)};d.modal.close=function(){d.modal.impl.close()};d.modal.focus=function(f){d.modal.impl.focus(f)};d.modal.setContainerDimensions=function(){d.modal.impl.setContainerDimensions()};d.modal.setPosition=function(){d.modal.impl.setPosition()};d.modal.update=function(f,g){d.modal.impl.update(f,g)};d.fn.modal=function(f){return d.modal.impl.init(this,f)};d.modal.defaults={appendTo:"body",focus:true,opacity:50,overlayId:"simplemodal-overlay",overlayCss:{},containerId:"simplemodal-container",containerCss:{},dataId:"simplemodal-data",dataCss:{},minHeight:null,minWidth:null,maxHeight:null,maxWidth:null,autoResize:false,autoPosition:true,zIndex:1000,close:true,closeHTML:'<a class="modalCloseImg" title="Close"></a>',closeClass:"simplemodal-close",escClose:true,overlayClose:false,position:null,persist:false,modal:true,onOpen:null,onShow:null,onClose:null};d.modal.impl={d:{},init:function(h,f){var g=this;if(g.d.data){return false}e=d.browser.msie&&!d.boxModel;g.o=d.extend({},d.modal.defaults,f);g.zIndex=g.o.zIndex;g.occb=false;if(typeof h==="object"){h=h instanceof jQuery?h:d(h);g.d.placeholder=false;if(h.parent().parent().size()>0){h.before(d("<span></span>").attr("id","simplemodal-placeholder").css({display:"none"}));g.d.placeholder=true;g.display=h.css("display");if(!g.o.persist){g.d.orig=h.clone(true)}}}else{if(typeof h==="string"||typeof h==="number"){h=d("<div></div>").html(h)}else{alert("SimpleModal Error: Unsupported data type: "+typeof h);return g}}g.create(h);h=null;g.open();if(d.isFunction(g.o.onShow)){g.o.onShow.apply(g,[g.d])}return g},create:function(g){var f=this;a=f.getDimensions();if(f.o.modal&&c){f.d.iframe=d('<iframe src="javascript:false;"></iframe>').css(d.extend(f.o.iframeCss,{display:"none",opacity:0,position:"fixed",height:a[0],width:a[1],zIndex:f.o.zIndex,top:0,left:0})).appendTo(f.o.appendTo)}f.d.overlay=d("<div></div>").attr("id",f.o.overlayId).addClass("simplemodal-overlay").css(d.extend(f.o.overlayCss,{display:"none",opacity:f.o.opacity/100,height:f.o.modal?a[0]:0,width:f.o.modal?a[1]:0,position:"fixed",left:0,top:0,zIndex:f.o.zIndex+1})).appendTo(f.o.appendTo);f.d.container=d("<div></div>").attr("id",f.o.containerId).addClass("simplemodal-container").css(d.extend(f.o.containerCss,{display:"none",position:"fixed",zIndex:f.o.zIndex+2})).append(f.o.close&&f.o.closeHTML?d(f.o.closeHTML).addClass(f.o.closeClass):"").appendTo(f.o.appendTo);f.d.wrap=d("<div></div>").attr("tabIndex",-1).addClass("simplemodal-wrap").css({height:"100%",outline:0,width:"100%"}).appendTo(f.d.container);f.d.data=g.attr("id",g.attr("id")||f.o.dataId).addClass("simplemodal-data").css(d.extend(f.o.dataCss,{display:"none"})).appendTo("body");g=null;f.setContainerDimensions();f.d.data.appendTo(f.d.wrap);if(c||e){f.fixIE()}},bindEvents:function(){var f=this;d("."+f.o.closeClass).bind("click.simplemodal",function(g){g.preventDefault();f.close()});if(f.o.modal&&f.o.close&&f.o.overlayClose){f.d.overlay.bind("click.simplemodal",function(g){g.preventDefault();f.close()})}d(document).bind("keydown.simplemodal",function(g){if(f.o.modal&&g.keyCode===9){f.watchTab(g)}else{if((f.o.close&&f.o.escClose)&&g.keyCode===27){g.preventDefault();f.close()}}});d(window).bind("resize.simplemodal",function(){a=f.getDimensions();f.o.autoResize?f.setContainerDimensions():f.o.autoPosition&&f.setPosition();if(c||e){f.fixIE()}else{if(f.o.modal){f.d.iframe&&f.d.iframe.css({height:a[0],width:a[1]});f.d.overlay.css({height:a[0],width:a[1]})}}})},unbindEvents:function(){d("."+this.o.closeClass).unbind("click.simplemodal");d(document).unbind("keydown.simplemodal");d(window).unbind("resize.simplemodal");this.d.overlay.unbind("click.simplemodal")},fixIE:function(){var f=this,g=f.o.position;d.each([f.d.iframe||null,!f.o.modal?null:f.d.overlay,f.d.container],function(t,l){if(l){var q="document.body.clientHeight",v="document.body.clientWidth",x="document.body.scrollHeight",u="document.body.scrollLeft",o="document.body.scrollTop",k="document.body.scrollWidth",j="document.documentElement.clientHeight",r="document.documentElement.clientWidth",p="document.documentElement.scrollLeft",y="document.documentElement.scrollTop",z=l[0].style;z.position="absolute";if(t<2){z.removeExpression("height");z.removeExpression("width");z.setExpression("height",""+x+" > "+q+" ? "+x+" : "+q+' + "px"');z.setExpression("width",""+k+" > "+v+" ? "+k+" : "+v+' + "px"')}else{var n,h;if(g&&g.constructor===Array){var w=g[0]?typeof g[0]==="number"?g[0].toString():g[0].replace(/px/,""):l.css("top").replace(/px/,"");n=w.indexOf("%")===-1?w+" + (t = "+y+" ? "+y+" : "+o+') + "px"':parseInt(w.replace(/%/,""))+" * (("+j+" || "+q+") / 100) + (t = "+y+" ? "+y+" : "+o+') + "px"';if(g[1]){var m=typeof g[1]==="number"?g[1].toString():g[1].replace(/px/,"");h=m.indexOf("%")===-1?m+" + (t = "+p+" ? "+p+" : "+u+') + "px"':parseInt(m.replace(/%/,""))+" * (("+r+" || "+v+") / 100) + (t = "+p+" ? "+p+" : "+u+') + "px"'}}else{n="("+j+" || "+q+") / 2 - (this.offsetHeight / 2) + (t = "+y+" ? "+y+" : "+o+') + "px"';h="("+r+" || "+v+") / 2 - (this.offsetWidth / 2) + (t = "+p+" ? "+p+" : "+u+') + "px"'}z.removeExpression("top");z.removeExpression("left");z.setExpression("top",n);z.setExpression("left",h)}}})},focus:function(i){var g=this,h=i&&d.inArray(i,["first","last"])!==-1?i:"first";var f=d(":input:enabled:visible:"+h,g.d.wrap);setTimeout(function(){f.length>0?f.focus():g.d.wrap.focus()},10)},getDimensions:function(){var g=d(window);var f=d.browser.opera&&d.browser.version>"9.5"&&d.fn.jquery<"1.3"||d.browser.opera&&d.browser.version<"9.5"&&d.fn.jquery>"1.2.6"?g[0].innerHeight:g.height();return[f,g.width()]},getVal:function(f,g){return f?(typeof f==="number"?f:f==="auto"?0:f.indexOf("%")>0?((parseInt(f.replace(/%/,""))/100)*(g==="h"?a[0]:a[1])):parseInt(f.replace(/px/,""))):null},update:function(f,h){var g=this;if(!g.d.data){return false}g.d.origHeight=g.getVal(f,"h");g.d.origWidth=g.getVal(h,"w");g.d.data.hide();f&&g.d.container.css("height",f);h&&g.d.container.css("width",h);g.setContainerDimensions();g.d.data.show();g.o.focus&&g.focus();g.unbindEvents();g.bindEvents()},setContainerDimensions:function(){var q=this,i=c||b;var f=q.d.origHeight?q.d.origHeight:d.browser.opera?q.d.container.height():q.getVal(i?q.d.container[0].currentStyle.height:q.d.container.css("height"),"h"),h=q.d.origWidth?q.d.origWidth:d.browser.opera?q.d.container.width():q.getVal(i?q.d.container[0].currentStyle.width:q.d.container.css("width"),"w"),m=q.d.data.outerHeight(true),g=q.d.data.outerWidth(true);q.d.origHeight=q.d.origHeight||f;q.d.origWidth=q.d.origWidth||h;var j=q.o.maxHeight?q.getVal(q.o.maxHeight,"h"):null,n=q.o.maxWidth?q.getVal(q.o.maxWidth,"w"):null,l=j&&j<a[0]?j:a[0],p=n&&n<a[1]?n:a[1];var k=q.o.minHeight?q.getVal(q.o.minHeight,"h"):"auto";if(!f){if(!m){f=k}else{if(m>l){f=l}else{if(q.o.minHeight&&k!=="auto"&&m<k){f=k}else{f=m}}}}else{f=q.o.autoResize&&f>l?l:f<k?k:f}var o=q.o.minWidth?q.getVal(q.o.minWidth,"w"):"auto";if(!h){if(!g){h=o}else{if(g>p){h=p}else{if(q.o.minWidth&&o!=="auto"&&g<o){h=o}else{h=g}}}}else{h=q.o.autoResize&&h>p?p:h<o?o:h}q.d.container.css({height:f,width:h});q.d.wrap.css({overflow:(m>f||g>h)?"auto":"visible"});q.o.autoPosition&&q.setPosition()},setPosition:function(){var g=this,i,h,j=(a[0]/2)-(g.d.container.outerHeight(true)/2),f=(a[1]/2)-(g.d.container.outerWidth(true)/2);if(g.o.position&&Object.prototype.toString.call(g.o.position)==="[object Array]"){i=g.o.position[0]||j;h=g.o.position[1]||f}else{i=j;h=f}g.d.container.css({left:h,top:i})},watchTab:function(g){var f=this;if(d(g.target).parents(".simplemodal-container").length>0){f.inputs=d(":input:enabled:visible:first, :input:enabled:visible:last",f.d.data[0]);if((!g.shiftKey&&g.target===f.inputs[f.inputs.length-1])||(g.shiftKey&&g.target===f.inputs[0])||f.inputs.length===0){g.preventDefault();var h=g.shiftKey?"last":"first";f.focus(h)}}else{g.preventDefault();f.focus()}},open:function(){var f=this;f.d.iframe&&f.d.iframe.show();if(d.isFunction(f.o.onOpen)){f.o.onOpen.apply(f,[f.d])}else{f.d.overlay.show();f.d.container.show();f.d.data.show()}f.o.focus&&f.focus();f.bindEvents()},close:function(){var f=this;if(!f.d.data){return false}f.unbindEvents();if(d.isFunction(f.o.onClose)&&!f.occb){f.occb=true;f.o.onClose.apply(f,[f.d])}else{if(f.d.placeholder){var g=d("#simplemodal-placeholder");if(f.o.persist){g.replaceWith(f.d.data.removeClass("simplemodal-data").css("display",f.display))}else{f.d.data.hide().remove();g.replaceWith(f.d.orig)}}else{f.d.data.hide().remove()}f.d.container.hide().remove();f.d.overlay.hide();f.d.iframe&&f.d.iframe.hide().remove();setTimeout(function(){f.d.overlay.remove();f.d={}},10)}}}})(jQuery);

/**
 * Tipsy v0.1.7 + 1
 * http://plugins.jquery.com/project/tipsy
 * JAZ303 - http://plugins.jquery.com/users/jaz303
 * Dynamic feature from: http://flowplayer.org/tools/tooltip/dynamic.html
 */
(function(n){function Tipsy($element,options){this.$element=n($element);this.options=options;this.enabled=true;this.fixTitle();}
Tipsy.prototype={show:function(){var title=this.getTitle();if(title&&this.enabled){var $tip=this.tip();var justCreated=n.data($tip,'tipsy.justCreated'),tipArrow=null;if(justCreated){tipArrow=n('<div />').addClass('tipArrow');n.data($tip,'tipsy.justCreated',false);}
$tip.find('.tipInner')[this.options.html?'html':'text'](title);$tip[0].className='tipsy';$tip.remove().css({top:0,left:0,visibility:'hidden',display:'block'}).appendTo(document.body);var pos=n.extend({},this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight});var actualWidth=$tip[0].offsetWidth,actualHeight=$tip[0].offsetHeight;var gravity=(typeof this.options.gravity=='function')?this.options.gravity.call(this.$element[0],$tip):this.options.gravity;var tp={top:pos.top+pos.height/2-actualHeight/2,left:pos.left+pos.width/2-actualWidth/2};switch(gravity.charAt(0)){case'n':if(justCreated)$tip.prepend(tipArrow.addClass('north'));tp.top=pos.top+pos.height+this.options.offset[1];break;case's':if(justCreated)$tip.append(tipArrow.addClass('south'));tp.top=pos.top-$tip[0].offsetHeight-this.options.offset[1];break;case'e':if(justCreated)$tip.prepend(tipArrow.addClass('east'));tp.left=pos.left-actualWidth-this.options.offset[0];break;case'w':if(justCreated)$tip.prepend(tipArrow.addClass('west'));tp.left=pos.left+pos.width+this.options.offset[0];break;}
if(gravity.length==2){console.log(gravity);if(gravity.charAt(1)=='w'){tp.left=pos.left+pos.width/2-15;}else{tp.left=pos.left+pos.width/2-actualWidth+15;}}
$tip.css(tp);if(this.options.effects.slideandfade){var tPos=$tip.position();var tPosN={top:tPos.top,left:tPos.left};switch(gravity.charAt(0)){case'n':tPosN.top-=3;break;case's':tPosN.top+=3;break;case'w':tPosN.left+=3;break;case'e':tPosN.left-=3;break;}
$tip.css({top:tPosN.top,left:tPosN.left,opacity:0,visibility:'visible'}).animate({top:tPos.top,left:tPos.left,opacity:this.options.opacity},'fast');n.data($tip,'tipsy.pos',tPosN);}else{$tip.css({visibility:'visible',opacity:this.options.opacity});}}},hide:function(){var tip=this.tip();if(this.options.effects.slideandfade){var tipPos=n.data(tip,'tipsy.pos');tip.stop().animate({top:tipPos.top,left:tipPos.left,opacity:0},'fast',function(){tip.remove();});}else{tip.remove();}},fixTitle:function(){var ne=this.$element;if(ne.attr('title')||typeof(ne.attr('alt'))!='string'){ne.attr('alt',ne.attr('title')||'').removeAttr('title');}},getTitle:function(){var title,ne=this.$element,o=this.options;this.fixTitle();var title,o=this.options;if(typeof o.title=='string'){title=ne.attr(o.title=='title'?'alt':o.title);}else if(typeof o.title=='function'){title=o.title.call(ne[0]);}
title=(''+title).replace(/(^\s*|\s*n)/,"");return title||o.fallback;},tip:function(checkIfNew){if(!this.$tip){this.$tip=n('<div class="tipsy"></div>').html('<div class="tipInner"></div>');n.data(this.$tip,'tipsy.justCreated',true);}
return this.$tip;},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=null;}},enable:function(){this.enabled=true;},disable:function(){this.enabled=false;},toggleEnabled:function(){this.enabled=!this.enabled;}};n.fn.tipsy=function(options){if(options===true){return this.data('tipsy');}else if(typeof options=='string'){var tipsy=this.data('tipsy');if(tipsy)tipsy[options]();return this;}
options=n.extend({},n.fn.tipsy.defaults,options);function get(ele){var tipsy=n.data(ele,'tipsy');if(!tipsy){tipsy=new Tipsy(ele,n.fn.tipsy.elementOptions(ele,options));n.data(ele,'tipsy',tipsy);}
return tipsy;}
function enter(){var tipsy=get(this);tipsy.hoverState='in';if(options.delayIn==0){tipsy.show();}else{tipsy.fixTitle();setTimeout(function(){if(tipsy.hoverState=='in')tipsy.show();},options.delayIn);}};function leave(){var tipsy=get(this);tipsy.hoverState='out';if(options.delayOut==0){tipsy.hide();}else{setTimeout(function(){if(tipsy.hoverState=='out')tipsy.hide();},options.delayOut);}};if(!options.live)this.each(function(){get(this);});if(options.trigger!='manual'){var binder=options.live?'live':'bind',eventIn=options.trigger=='hover'?'mouseenter':'focus',eventOut=options.trigger=='hover'?'mouseleave':'blur';this[binder](eventIn,enter)[binder](eventOut,leave);}
return this;};n.fn.tipsy.elementOptions=function(ele,options){return n.metadata?n.extend({},options,n(ele).metadata()):options;};n.fn.tipsy.autoNS=function(){return n(this).offset().top>(n(document).scrollTop()+n(window).height()/2)?'s':'n';};n.fn.tipsy.autoWE=function(){return n(this).offset().left>(n(document).scrollLeft()+n(window).width()/2)?'e':'w';};n.fn.tipsy.auto=function(tip){var w=n(window),o=tip.offset(),result='';var right=w.width()+w.scrollLeft();var bottom=w.height()+w.scrollTop();var crop=[o.top<=w.scrollTop(),right<=o.left+tip.width(),bottom<=o.top+tip.height(),w.scrollLeft()>=o.left];if(!(function(crop){var i=crop.length;while(i--)if(crop[i])return false;return true;})(crop)){if(crop[2])result+='s';if(crop[0])result+='n';if(crop[3])result+='w';if(crop[1])result+='e';}
return result;};n.fn.tipsy.defaults={delayIn:100,delayOut:100,effects:{slideandfade:true},fallback:'',gravity:jQuery.fn.tipsy.auto,html:true,live:false,offset:[0,0],opacity:1.0,title:'title',trigger:'hover'};})(jQuery);

/*
 * Copyright (c) 2007 Josh Bush (digitalbush.com)
 * 
 * Permission is hereby granted, free of charge, to any person
 * obtaining a copy of this software and associated documentation
 * files (the "Software"), to deal in the Software without
 * restriction, including without limitation the rights to use,
 * copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following
 * conditions:

 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 * OTHER DEALINGS IN THE SOFTWARE. 
 */
/*
 * Version: Beta 1
 * Release: 2007-06-01
 */ 
(function($){var map=new Array();$.watermark={ShowAll:function(){for(var i=0;i<map.length;i++){if(map[i].obj.val()==""){map[i].obj.val(map[i].text);map[i].obj.css("color",map[i].WatermarkColor);}else{map[i].obj.css("color",map[i].DefaultColor);}}},HideAll:function(){for(var i=0;i<map.length;i++){if(map[i].obj.val()==map[i].text)
map[i].obj.val("");}}}
$.fn.watermark=function(text,color){if(!color)
color="#aaa";return this.each(function(){var input=$(this);var defaultColor=input.css("color");map[map.length]={text:text,obj:input,DefaultColor:defaultColor,WatermarkColor:color};function clearMessage(){if(input.val()==text)
input.val("");input.css("color",defaultColor);}
function insertMessage(){if(input.val().length==0||input.val()==text){input.val(text);input.css("color",color);}else
input.css("color",defaultColor);}
input.focus(clearMessage);input.blur(insertMessage);input.change(insertMessage);insertMessage();});};})(jQuery);
