jQuery.fn.tipbox=function(a,b,c){function f(){d.css({display:"none"})}function e(a){d.css({display:"block",top:a.pageY+16,left:a.pageX})}jQuery.fn.tipbox.created.id="tipBox";$("body").append(jQuery.fn.tipbox.created);var d=$(jQuery.fn.tipbox.created);d.css({position:"absolute",display:"none"});this.each(function(){$(this).mousemove(function(f){e(f);if(b)d.html(a);else d.text(a);d.removeClass();if(c)d.addClass(c)});$(this).mouseout(function(){f()})})};jQuery.fn.tipbox.created=document.createElement("div");$(document).ready(function(){$(".tweet").tweet({username:["PeakScientific"],filter:function(a){return!/^@\w+/.test(a["tweet_raw_text"])},fetch:6,count:3,avatar_size:32,loading_text:"loading tweets..."})});(function(a){a.fn.lightBox=function(b){function s(a){var b=new Date;c=null;do{var c=new Date}while(c-b<a)}function r(){var a,b;if(self.pageYOffset){b=self.pageYOffset;a=self.pageXOffset}else if(document.documentElement&&document.documentElement.scrollTop){b=document.documentElement.scrollTop;a=document.documentElement.scrollLeft}else if(document.body){b=document.body.scrollTop;a=document.body.scrollLeft}arrayPageScroll=new Array(a,b);return arrayPageScroll}function q(){var a,b;if(window.innerHeight&&window.scrollMaxY){a=window.innerWidth+window.scrollMaxX;b=window.innerHeight+window.scrollMaxY}else if(document.body.scrollHeight>document.body.offsetHeight){a=document.body.scrollWidth;b=document.body.scrollHeight}else{a=document.body.offsetWidth;b=document.body.offsetHeight}var c,d;if(self.innerHeight){if(document.documentElement.clientWidth){c=document.documentElement.clientWidth}else{c=self.innerWidth}d=self.innerHeight}else if(document.documentElement&&document.documentElement.clientHeight){c=document.documentElement.clientWidth;d=document.documentElement.clientHeight}else if(document.body){c=document.body.clientWidth;d=document.body.clientHeight}if(b<d){pageHeight=d}else{pageHeight=b}if(a<c){pageWidth=a}else{pageWidth=c}arrayPageSize=new Array(pageWidth,pageHeight,c,d);return arrayPageSize}function p(){a("#jquery-lightbox").remove();a("#jquery-overlay").fadeOut(function(){a("#jquery-overlay").remove()});a("embed, object, select").css({visibility:"visible"})}function o(){if(b.imageArray.length-1>b.activeImage){objNext=new Image;objNext.src=b.imageArray[b.activeImage+1][0]}if(b.activeImage>0){objPrev=new Image;objPrev.src=b.imageArray[b.activeImage-1][0]}}function n(a){if(a==null){keycode=event.keyCode;escapeKey=27}else{keycode=a.keyCode;escapeKey=a.DOM_VK_ESCAPE}key=String.fromCharCode(keycode).toLowerCase();if(key==b.keyToClose||key=="x"||keycode==escapeKey){p()}if(key==b.keyToPrev||keycode==37){if(b.activeImage!=0){b.activeImage=b.activeImage-1;g();m()}}if(key==b.keyToNext||keycode==39){if(b.activeImage!=b.imageArray.length-1){b.activeImage=b.activeImage+1;g();m()}}}function m(){a(document).unbind()}function l(){a(document).keydown(function(a){n(a)})}function k(){a("#lightbox-nav").show();a("#lightbox-nav-btnPrev,#lightbox-nav-btnNext").css({background:"transparent url("+b.imageBlank+") no-repeat"});if(b.activeImage!=0){a("#lightbox-nav-btnPrev").unbind().hover(function(){a(this).css({background:"url("+b.imageBtnPrev+") left 15% no-repeat"})},function(){a(this).css({background:"transparent url("+b.imageBlank+") no-repeat"})}).show().bind("click",function(){b.activeImage=b.activeImage-1;g();return false})}if(b.activeImage!=b.imageArray.length-1){a("#lightbox-nav-btnNext").unbind().hover(function(){a(this).css({background:"url("+b.imageBtnNext+") right 15% no-repeat"})},function(){a(this).css({background:"transparent url("+b.imageBlank+") no-repeat"})}).show().bind("click",function(){b.activeImage=b.activeImage+1;g();return false})}l()}function j(){a("#lightbox-container-image-data-box").slideDown("fast");a("#lightbox-image-details-caption").hide();if(b.imageArray[b.activeImage][1]){a("#lightbox-image-details-caption").html(b.imageArray[b.activeImage][1]).show()}if(b.imageArray.length>1){a("#lightbox-image-details-currentNumber").html(b.txtImage+" "+(b.activeImage+1)+" "+b.txtOf+" "+b.imageArray.length).show()}}function i(){a("#lightbox-loading").hide();a("#lightbox-image").fadeIn(function(){j();k()});o()}function h(c,d){var e=a("#lightbox-container-image-box").width();var f=a("#lightbox-container-image-box").height();var g=c+b.containerBorderSize*2;var h=d+b.containerBorderSize*2;var j=e-g;var k=f-h;a("#lightbox-container-image-box").animate({width:g,height:h},b.containerResizeSpeed,function(){i()});if(j==0&&k==0){if(a.browser.msie){s(250)}else{s(100)}}a("#lightbox-nav-btnPrev,#lightbox-nav-btnNext").css({height:d+b.containerBorderSize*2});a("#lightbox-container-image-data-box").css({width:c})}function g(){a("#lightbox-loading").show();a("#lightbox-image,#lightbox-nav,#lightbox-nav-btnPrev,#lightbox-nav-btnNext,#lightbox-container-image-data-box,#lightbox-image-details-currentNumber").hide();var c=new Image;c.onload=function(){a("#lightbox-image").attr("src",b.imageArray[b.activeImage][0]);h(c.width,c.height);c.onload=function(){}};c.src=b.imageArray[b.activeImage][0]}function f(){a("body").append('<div id="jquery-overlay"></div><div id="jquery-lightbox"><div id="lightbox-container-image-box"><div id="lightbox-container-image"><img id="lightbox-image"><div style="" id="lightbox-nav"><a href="#" id="lightbox-nav-btnPrev"></a><a href="#" id="lightbox-nav-btnNext"></a></div><div id="lightbox-loading"><a href="#" id="lightbox-loading-link"><img src="'+b.imageLoading+'"></a></div></div></div><div id="lightbox-container-image-data-box"><div id="lightbox-container-image-data"><div id="lightbox-image-details"><span id="lightbox-image-details-caption"></span><span id="lightbox-image-details-currentNumber"></span></div><div id="lightbox-secNav"><a href="#" id="lightbox-secNav-btnClose"><img src="'+b.imageBtnClose+'"></a></div></div></div></div>');var c=q();a("#jquery-overlay").css({backgroundColor:b.overlayBgColor,opacity:b.overlayOpacity,width:c[0],height:c[1]}).fadeIn();var d=r();a("#jquery-lightbox").css({top:d[1]+c[3]/10,left:d[0]}).show();a("#jquery-overlay,#jquery-lightbox").click(function(){p()});a("#lightbox-loading-link,#lightbox-secNav-btnClose").click(function(){p();return false});a(window).resize(function(){var b=q();a("#jquery-overlay").css({width:b[0],height:b[1]});var c=r();a("#jquery-lightbox").css({top:c[1]+b[3]/10,left:c[0]})})}function e(c,d){a("embed, object, select").css({visibility:"hidden"});f();b.imageArray.length=0;b.activeImage=0;if(d.length==1){b.imageArray.push(new Array(c.getAttribute("href"),c.getAttribute("title")))}else{for(var e=0;e<d.length;e++){b.imageArray.push(new Array(d[e].getAttribute("href"),d[e].getAttribute("title")))}}while(b.imageArray[b.activeImage][0]!=c.getAttribute("href")){b.activeImage++}g()}function d(){e(this,c);return false}b=jQuery.extend({overlayBgColor:"#000",overlayOpacity:.8,imageLoading:"images/lightbox-ico-loading.gif",imageBtnPrev:"images/lightbox-btn-prev.gif",imageBtnNext:"images/lightbox-btn-next.gif",imageBtnClose:"images/lightbox-btn-close.gif",imageBlank:"images/lightbox-blank.gif",containerBorderSize:10,containerResizeSpeed:400,txtImage:"Image",txtOf:"of",keyToClose:"c",keyToPrev:"p",keyToNext:"n",imageArray:[],activeImage:0},b);var c=this;return this.unbind("click").click(d)}})(jQuery);$(function(){$("input").each(function(){$(this).addClass("input-"+this.type)});$("input[title], textarea[title]").inputHint()});$(window).load(function(){function a(){$(".inner h1").fadeIn(750,function(){$(".inner h2").fadeIn(500)})}$(".inner h1").hide();$(".inner h2").hide();setTimeout(a,750);if($(".country").val()=="United States"){$(".states").css("display","inline");$(".stateslabel").css("display","inline")}else{$(".states").css("display","none");$(".stateslabel").css("display","none")}$(".country").change(function(){if($(".country").val()=="United States"){$(".states").css("display","inline");$(".stateslabel").css("display","inline")}else{$(".states").css("display","none");$(".stateslabel").css("display","none")}});$(".button").click(function(){if($(".country").val()=="United States"&&$(".states").val()=="Please select"){alert("Please select a state");return false}})});(function(a){a.fn.tweet=function(b){function f(){var a="https:"==document.location.protocol?"https:":"http:";var b=c.fetch===null?c.count:c.fetch;if(c.list){return a+"//"+c.twitter_api_url+"/1/"+c.username[0]+"/lists/"+c.list+"/statuses.json?per_page="+b+"&callback=?"}else if(c.favorites){return a+"//"+c.twitter_api_url+"/favorites/"+c.username[0]+".json?count="+c.count+"&callback=?"}else if(c.query===null&&c.username.length==1){return a+"//"+c.twitter_api_url+"/1/statuses/user_timeline.json?screen_name="+c.username[0]+"&count="+b+(c.retweets?"&include_rts=1":"")+"&callback=?"}else{var d=c.query||"from:"+c.username.join(" OR from:");return a+"//"+c.twitter_search_url+"/search.json?&q="+encodeURIComponent(d)+"&rpp="+b+"&callback=?"}}function e(a){var b=arguments.length>1?arguments[1]:new Date;var c=parseInt((b.getTime()-a)/1e3,10);var d="";if(c<60){d=c+" seconds ago"}else if(c<120){d="a minute ago"}else if(c<45*60){d=parseInt(c/60,10).toString()+" minutes ago"}else if(c<2*60*60){d="an hour ago"}else if(c<24*60*60){d=""+parseInt(c/3600,10).toString()+" hours ago"}else if(c<48*60*60){d="a day ago"}else{d=parseInt(c/86400,10).toString()+" days ago"}return"about "+d}function d(a){return Date.parse(a.replace(/^([a-z]{3})( [a-z]{3} \d\d?)(.*)( \d{4})$/i,"$1,$2$4$3"))}var c=a.extend({username:null,list:null,favorites:false,query:null,avatar_size:null,count:3,fetch:null,retweets:true,intro_text:null,outro_text:null,join_text:null,auto_join_text_default:"i said,",auto_join_text_ed:"i",auto_join_text_ing:"i am",auto_join_text_reply:"i replied to",auto_join_text_url:"i was looking at",loading_text:null,refresh_interval:null,twitter_url:"twitter.com",twitter_api_url:"api.twitter.com",twitter_search_url:"search.twitter.com",template:"{avatar}{time}{join}{text}",comparator:function(a,b){return b["tweet_time"]-a["tweet_time"]},filter:function(a){return true}},b);a.fn.extend({linkUrl:function(){var b=[];var c=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»""'']))/gi;this.each(function(){b.push(this.replace(c,function(a){var b=/^[a-z]+:/i.test(a)?a:"http://"+a;return'<a href="'+b+'">'+a+"</a>"}))});return a(b)},linkUser:function(){var b=[];var d=/[\@]+(\w+)/gi;this.each(function(){b.push(this.replace(d,'@<a href="http://'+c.twitter_url+'/$1">$1</a>'))});return a(b)},linkHash:function(){var b=[];var d=/(?:^| )[\#]+([\w\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u00ff\u0600-\u06ff]+)/gi;var e=c.username&&c.username.length==1?"&from="+c.username.join("%2BOR%2B"):"";this.each(function(){b.push(this.replace(d,' <a href="http://'+c.twitter_search_url+"/search?q=&tag=$1&lang=all"+e+'">#$1</a>'))});return a(b)},capAwesome:function(){var b=[];this.each(function(){b.push(this.replace(/\b(awesome)\b/gi,'<span class="awesome">$1</span>'))});return a(b)},capEpic:function(){var b=[];this.each(function(){b.push(this.replace(/\b(epic)\b/gi,'<span class="epic">$1</span>'))});return a(b)},makeHeart:function(){var b=[];this.each(function(){b.push(this.replace(/(<)+[3]/gi,"<tt class='heart'>&#x2665;</tt>"))});return a(b)}});return this.each(function(b,g){var h=a('<ul class="tweet_list">').appendTo(g);var i='<p class="tweet_intro">'+c.intro_text+"</p>";var j='<p class="tweet_outro">'+c.outro_text+"</p>";var k=a('<p class="loading">'+c.loading_text+"</p>");if(c.username&&typeof c.username=="string"){c.username=[c.username]}var l=function(a){if(typeof c.template==="string"){var b=c.template;for(var d in a){var e=a[d];b=b.replace(new RegExp("{"+d+"}","g"),e===null?"":e)}return b}else return c.template(a)};if(c.loading_text)a(g).append(k);a(g).bind("load",function(){a.getJSON(f(),function(b){if(c.loading_text)k.remove();if(c.intro_text)h.before(i);h.empty();var f=a.map(b.results||b,function(b){var f=c.join_text;if(c.join_text=="auto"){if(b.text.match(/^(@([A-Za-z0-9-_]+)) .*/i)){f=c.auto_join_text_reply}else if(b.text.match(/(^\w+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&\?\/.=]+) .*/i)){f=c.auto_join_text_url}else if(b.text.match(/^((\w+ed)|just) .*/im)){f=c.auto_join_text_ed}else if(b.text.match(/^(\w*ing) .*/i)){f=c.auto_join_text_ing}else{f=c.auto_join_text_default}}var g=b.from_user||b.user.screen_name;var h=b.source;var i="http://"+c.twitter_url+"/"+g;var j=c.avatar_size;var k=b.profile_image_url||b.user.profile_image_url;var l="http://"+c.twitter_url+"/"+g+"/status/"+b.id_str;var m=typeof b.retweeted_status!="undefined";var n=m?b.retweeted_status.user.screen_name:null;var o=d(b.created_at);var p=e(o);var q=m?"RT @"+n+" "+b.retweeted_status.text:b.text;var r=a([q]).linkUrl().linkUser().linkHash()[0];var t='<a class="tweet_user" href="'+i+'">'+g+"</a>";var u=c.join_text?'<span class="tweet_join"> '+f+" </span>":" ";var v=j?'<a class="tweet_avatar" href="'+i+'"><img src="'+k+'" height="'+j+'" width="'+j+'" alt="'+g+'\'s avatar" title="'+g+'\'s avatar" border="0"/></a>':"";var w='<span class="tweet_time"><a href="'+l+'" title="view tweet on twitter">'+p+"</a></span>";var x='<span class="tweet_text">'+a([r]).makeHeart().capAwesome().capEpic()[0]+"</span>";return{item:b,screen_name:g,user_url:i,avatar_size:j,avatar_url:k,source:h,tweet_url:l,tweet_time:o,tweet_relative_time:p,tweet_raw_text:q,tweet_text:r,retweet:m,retweeted_screen_name:n,user:t,join:u,avatar:v,time:w,text:x}});f=a.grep(f,c.filter).slice(0,c.count);h.append(a.map(f.sort(c.comparator),function(a){return"<li>"+l(a)+"</li>"}).join("")).children("li:first").addClass("tweet_first").end().children("li:odd").addClass("tweet_even").end().children("li:even").addClass("tweet_odd");if(c.outro_text)h.after(j);a(g).trigger("loaded").trigger(f.length===0?"empty":"full");if(c.refresh_interval){window.setTimeout(function(){a(g).trigger("load")},1e3*c.refresh_interval)}})}).trigger("load")})}})(jQuery);if(typeof deconcept=="undefined")var deconcept={};if(typeof deconcept.util=="undefined")deconcept.util={};if(typeof deconcept.SWFObjectUtil=="undefined")deconcept.SWFObjectUtil={};deconcept.SWFObject=function(a,b,c,d,e,f,g,h,i,j){if(!document.getElementById){return}this.DETECT_KEY=j?j:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params={};this.variables={};this.attributes=[];if(a){this.setAttribute("swf",a)}if(b){this.setAttribute("id",b)}if(c){this.setAttribute("width",c)}if(d){this.setAttribute("height",d)}if(e){this.setAttribute("version",new deconcept.PlayerVersion(e.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true}}if(f){this.addParam("bgcolor",f)}var k=g?g:"high";this.addParam("quality",k);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var l=h?h:window.location;this.setAttribute("xiRedirectUrl",l);this.setAttribute("redirectUrl","");if(i){this.setAttribute("redirectUrl",i)}};deconcept.SWFObject.prototype={useExpressInstall:function(a){this.xiSWFPath=!a?"expressinstall.swf":a;this.setAttribute("useExpressInstall",true)},setAttribute:function(a,b){this.attributes[a]=b},getAttribute:function(a){return this.attributes[a]||""},addParam:function(a,b){this.params[a]=b},getParams:function(){return this.params},addVariable:function(a,b){this.variables[a]=b},getVariable:function(a){return this.variables[a]||""},getVariables:function(){return this.variables},getVariablePairs:function(){var a=[];var b;var c=this.getVariables();for(b in c){a[a.length]=b+"="+c[b]}return a},getSWFHTML:function(){var a="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}a='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+(this.getAttribute("style")||"")+'"';a+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var b=this.getParams();for(var c in b){a+=[c]+'="'+b[c]+'" '}var d=this.getVariablePairs().join("&");if(d.length>0){a+='flashvars="'+d+'"'}a+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}a='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+(this.getAttribute("style")||"")+'">';a+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var b=this.getParams();for(var c in b){a+='<param name="'+c+'" value="'+b[c]+'" />'}var d=this.getVariablePairs().join("&");if(d.length>0){a+='<param name="flashvars" value="'+d+'" />'}a+="</object>"}return a},write:function(a){if(this.getAttribute("useExpressInstall")){var b=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(b)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var c=typeof a=="string"?document.getElementById(a):a;c.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var a=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var b=navigator.plugins["Shockwave Flash"];if(b&&b.description){a=new deconcept.PlayerVersion(b.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var c=1;var d=3;while(c){try{d++;c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+d);a=new deconcept.PlayerVersion([d,0,0])}catch(e){c=null}}}else{try{var c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(e){try{var c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");a=new deconcept.PlayerVersion([6,0,21]);c.AllowScriptAccess="always"}catch(e){if(a.major==6){return a}}try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(e){}}if(c!=null){a=new deconcept.PlayerVersion(c.GetVariable("$version").split(" ")[1].split(","))}}return a};deconcept.PlayerVersion=function(a){this.major=a[0]!=null?parseInt(a[0]):0;this.minor=a[1]!=null?parseInt(a[1]):0;this.rev=a[2]!=null?parseInt(a[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(a){if(this.major<a.major)return false;if(this.major>a.major)return true;if(this.minor<a.minor)return false;if(this.minor>a.minor)return true;if(this.rev<a.rev)return false;return true};deconcept.util={getRequestParameter:function(a){var b=document.location.search||document.location.hash;if(a==null){return b}if(b){var c=b.substring(1).split("&");for(var d=0;d<c.length;d++){if(c[d].substring(0,c[d].indexOf("="))==a){return c[d].substring(c[d].indexOf("=")+1)}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var a=document.getElementsByTagName("OBJECT");for(var b=a.length-1;b>=0;b--){a[b].style.display="none";for(var c in a[b]){if(typeof a[b][c]=="function"){a[b][c]=function(){}}}}};if(!document.getElementById&&document.all){document.getElementById=function(a){return document.all[a]}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;(function(a){function c(c,d){var e;do{e=a.curCSS(c,d);if(e!=""&&e!="transparent"||a.nodeName(c,"body"))break;d="backgroundColor"}while(c=c.parentNode);return b(e)}function b(b){var c;if(b&&b.constructor==Array&&b.length==3)return b;if(c=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(b))return[parseInt(c[1]),parseInt(c[2]),parseInt(c[3])];if(c=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(b))return[parseFloat(c[1])*2.55,parseFloat(c[2])*2.55,parseFloat(c[3])*2.55];if(c=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(b))return[parseInt(c[1],16),parseInt(c[2],16),parseInt(c[3],16)];if(c=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(b))return[parseInt(c[1]+c[1],16),parseInt(c[2]+c[2],16),parseInt(c[3]+c[3],16)];return d[a.trim(b).toLowerCase()]}a.each(["backgroundColor","borderColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(d,e){a.fx.step[e]=function(a){if(a.state==0){a.start=c(a.elem,e);a.end=b(a.end)}a.elem.style[e]="rgb("+[Math.max(Math.min(parseInt(a.pos*(a.end[0]-a.start[0])+a.start[0]),255),0),Math.max(Math.min(parseInt(a.pos*(a.end[1]-a.start[1])+a.start[1]),255),0),Math.max(Math.min(parseInt(a.pos*(a.end[2]-a.start[2])+a.start[2]),255),0)].join(",")+")"}});var d={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]}})(jQuery);(function(a){a.fn.inputHint=function(b){function e(){if(a(this).hasClass(b.hintClass))a(this).removeClass(b.hintClass).val("")}function d(){if(a(this).val()==""){a(this).addClass(b.hintClass).val(c(this))}}function c(c){var d;if(b.using&&(d=a(b.using,c)).length>0){return d.text()}else{return a(c).attr(b.hintAttr)||""}}b=a.extend({hintClass:"hint",hintAttr:"title"},b||{});this.filter(function(){return!!c(this)}).focus(e).blur(d).blur();this.each(function(){var b=this;a(this).parents("form").submit(function(){e.apply(b)})});return this.end()}})(jQuery)
