/***---------------------------------------------------------------------------------------------------------------------------***\
|****-------------------------------------------------------------------------------------------------------------------------****|
|******																														******|
|*******		transParent UI : a Progressively Enhanced Frameworking - jQuery UI / HTML5 / CSS3 Enhancements			   *******|
|*********		[ http://www.keithparent.com/transparentui/																 *********|
|***********-----------------------------------------------------------------------------------------------------------***********|
|*******																												   *******|
*				A CSS/jQuery UI Framework that focuses on rapid UI production & progressive enhancement
*				techniques to extend and maintain reusable code via industry mark-up naming conventions
*				for quicker development.
*				Copyright [c] 2010, Keith Parent  [ keithparent@me.com  [ http://www.keithparent.com
--------------------------------------------------------------------------------------------------------------------------------**|
--------------------------------------------------------------------------------------------------------------------------------**|
*
* 	C O N T E N T S		:		[  T A B L E   O F  ]
*	-----------------------------------------------------------------------------
*	[ jQuery Function & Namespace Definitions									]
*	:	HTML5 Enabling
*	:	Monkey-Patches
*	:	jQuery bigTarget
*	:	jQuery Easing 1.3
*	:	jQuery LiveFilter v.1.1
*	:	jQuery UI Selectmenu
*	:	jQuery Uniform
*	:	dPassword (delayed password masking - like iPhone)
*	:	CSS Background Animation
*	:	Smooth Scrolling
*	:	Google Webfont
*	:
*	-----------------------------------------------------------------------------
*	[ jQuery Function & Namespace Application Controllers						]
*	:	Initialization of UI Enhancement Object of Functions
*	:	Conditional Testing  & Instantiation of all UI Enhancements
*	:
--------------------------------------------------------------------------------------------------------------------------------**|
--------------------------------------------------------------------------------------------------------------------------------**/

/***------------------------------------------------------------------------------------------------
	HTML5 Enabling  [ iepp v1.5.1 MIT @jon_neal ]
------------------------------------------------------------------------------------------------***/
/*@cc_on@if(@_jscript_version<9)(function(p,e){function q(a,b){if(g[a])g[a].styleSheet.cssText+=b;else{var c=r[l],d=e[j]("style");d.media=a;c.insertBefore(d,c[l]);g[a]=d;q(a,b)}}function s(a,b){for(var c=new RegExp("\\b("+m+")\\b(?!.*[;}])","gi"),d=function(k){return".iepp_"+k},h=-1;++h<a.length;){b=a[h].media||b;s(a[h].imports,b);q(b,a[h].cssText.replace(c,d))}}function t(){for(var a,b=e.getElementsByTagName("*"),c,d,h=new RegExp("^"+m+"$","i"),k=-1;++k<b.length;)if((a=b[k])&&(d=a.nodeName.match(h))){c=new RegExp("^\\s*<"+d+"(.*)\\/"+d+">\\s*$","i");i.innerHTML=a.outerHTML.replace(/\r|\n/g," ").replace(c,a.currentStyle.display=="block"?"<div$1/div>":"<span$1/span>");c=i.childNodes[0];c.className+=" iepp_"+d;c=f[f.length]=[a,c];a.parentNode.replaceChild(c[1],c[0])}s(e.styleSheets,"all")}function u(){for(var a=-1,b;++a<f.length;)f[a][1].parentNode.replaceChild(f[a][0],f[a][1]);for(b in g)r[l].removeChild(g[b]);g={};f=[]}for(var r=e.documentElement,i=e.createDocumentFragment(),g={},m="abbr|article|aside|audio|canvas|command|datalist|details|figure|figcaption|footer|header|hgroup|keygen|mark|meter|nav|output|progress|section|source|summary|time|video",n=m.split("|"),f=[],o=-1,l="firstChild",j="createElement";++o<n.length;){e[j](n[o]);i[j](n[o])}i=i.appendChild(e[j]("div"));p.attachEvent("onbeforeprint",t);p.attachEvent("onafterprint",u)})(this,document);@end@*/

/***------------------------------------------------------------------------------------------------
	Assorted jQuery feature enhancements (monkey-patches) by Ralph Holzmann. MIT License.
------------------------------------------------------------------------------------------------***/
(function($){var _next=$.fn.next;$.fn.next=function(selector) {if(typeof(selector)==="number"&&selector>1){return $(jQuery.nth(this[0],(selector+1),"nextSibling"));}return _next.apply(this,arguments); };var _prev=$.fn.prev;$.fn.prev=function(selector){if(typeof(selector)==="number"&&selector>1){return $(jQuery.nth(this[0],(selector+1),"previousSibling"));}return _prev.apply(this,arguments); }; var _parent = $.fn.parent;$.fn.parent=function(selector){	if(typeof(selector)==="number"&&selector>1){var parent=this[0].parentNode;while(--selector){parent=parent.parentNode;}return parent && parent.nodeType !== 11 ? $(parent) : null; }return _parent.apply(this,arguments);}})(jQuery);(function($){var _clone=$.fn.clone;$.fn.clone=function(n,withDataAndEvents){if(typeof(n)==="number"&&n>1){var stack=[];while(n--){ stack.push(_clone.call(this, withDataAndEvents)); }	return stack; }	return _clone.call(this, withDataAndEvents); }})(jQuery); (function($){var _fadeIn=$.fn.fadeIn;$.fn.fadeIn=function(easing,callback,cancel){return _fadeIn.call(this,easing,function(){if(jQuery.browser.msie && !cancel) $(this).get(0).style.removeAttribute('filter');if($.isFunction(callback))callback();});};var _fadeOut=$.fn.fadeOut;$.fn.fadeOut =function(easing,callback,cancel){return _fadeOut.call(this, easing,function(){if(jQuery.browser.msie && !cancel) $(this).get(0).style.removeAttribute('filter'); if($.isFunction(callback)) callback(); }); }})(jQuery);(function($){$.fn.extend({outerHtml:function(replacement){if(replacement){return this.each(function (){ $(this).replaceWith(replacement); }); }	var tmp_node = $("<div></div>").append( $(this).clone() );var markup=tmp_node.html();tmp_node.remove();return markup;}});})(jQuery);

/***------------------------------------------------------------------------------------------------
	jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
	Open source under the BSD License. Copyright © 2001 Robert Penner, All rights reserved. 
------------------------------------------------------------------------------------------------***/
jQuery.easing['jswing']=jQuery.easing['swing'];jQuery.extend(jQuery.easing,{def:'easeOutQuad',swing:function(x,t,b,c,d){return jQuery.easing[jQuery.easing.def](x,t,b,c,d);},easeInQuad:function(x,t,b,c,d){ return c * (t/=d)*t+b;},easeOutQuad:function(x,t,b,c,d){return -c*(t/=d)*(t-2)+b;},easeInOutQuad:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t+b;return -c/2*((--t)*(t-2)-1)+b;},easeInCubic: function(x,t,b,c,d){return c*(t/=d)*t*t+b;},easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b;},easeInOutCubic:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t+b;return c/2*((t-= 2)*t*t+2)+b;},easeInQuart:function(x,t,b,c,d){return c*(t/=d)*t*t*t+b;},easeOutQuart:function(x,t,b,c,d){return -c*((t=t/d-1)*t*t*t-1)+b; }, easeInOutQuart: function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t+b;return -c/2*((t-=2)*t*t*t-2)+b;},easeInQuint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b;},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t * t + 1) + b; }, easeInOutQuint:function(x,t,b,c,d){if((t/=d/2) < 1) return c / 2 * t * t * t * t * t + b; return c / 2 * ((t -= 2) * t * t * t * t + 2) + b; }, easeInSine: function(x,t,b,c,d) { return -c * Math.cos(t / d * (Math.PI / 2)) + c + b; }, easeOutSine: function(x,t,b,c,d) { return c * Math.sin(t / d * (Math.PI / 2)) + b; }, easeInOutSine: function(x,t,b,c,d) { return -c / 2 * (Math.cos(Math.PI * t / d) - 1) + b; }, easeInExpo: function(x,t,b,c,d) { return (t == 0) ? b : c * Math.pow(2, 10 * (t / d - 1)) + b; }, easeOutExpo: function(x,t,b,c,d) { return (t == d) ? b + c : c * (-Math.pow(2, -10 * t / d) + 1) + b; }, easeInOutExpo: function(x,t,b,c,d) { if (t == 0) return b; if (t == d) return b + c; if ((t /= d / 2) < 1) return c / 2 * Math.pow(2, 10 * (t - 1)) + b; return c / 2 * (-Math.pow(2, -10 * --t) + 2) + b; }, easeInCirc: function(x,t,b,c,d) { return -c * (Math.sqrt(1 - (t /= d) * t) - 1) + b; }, easeOutCirc: function(x,t,b,c,d) { return c * Math.sqrt(1 - (t = t / d - 1) * t) + b; }, easeInOutCirc: function(x,t,b,c,d) { if ((t /= d / 2) < 1) return -c / 2 * (Math.sqrt(1 - t * t) - 1) + b; return c / 2 * (Math.sqrt(1 - (t -= 2) * t) + 1) + b; }, easeInElastic: function(x,t,b,c,d) { var s = 1.70158; var p = 0; var a = c; if (t == 0) return b; if ((t /= d) == 1) return b + c; if (!p) p = d * .3; if (a < Math.abs(c)) { a = c; var s = p / 4; } else var s = p / (2 * Math.PI) * Math.asin(c / a); return -(a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b; },  easeOutElastic: function(x,t,b,c,d) { var s = 1.70158; var p = 0; var a = c; if (t == 0) return b; if ((t /= d) == 1) return b + c; if (!p) p = d * .3; if (a < Math.abs(c)) { a = c; var s = p / 4; } else var s = p / (2 * Math.PI) * Math.asin(c / a); return a * Math.pow(2, -10 * t) * Math.sin((t * d - s) * (2 * Math.PI) / p) + c + b; }, easeInOutElastic: function(x,t,b,c,d) { var s = 1.70158; var p = 0; var a = c; if (t == 0) return b; if ((t /= d / 2) == 2) return b + c; if (!p) p = d * (.3 * 1.5);if(a<Math.abs(c)){a=c;var s=p/4;} else var s = p / (2 * Math.PI) * Math.asin(c / a); if (t < 1) return -.5 * (a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b; return a*Math.pow(2, -10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p) * .5 + c + b; }, easeInBack: function(x,t,b,c,d,s) {if(s==undefined)s=1.70158;return c*(t/=d)*t*((s+1)*t-s)+b;}, easeOutBack: function(x,t,b,c,d,s) { if (s == undefined) s = 1.70158; return c * ((t = t / d - 1) * t * ((s + 1) * t + s) + 1) + b; }, easeInOutBack: function(x,t,b,c,d,s) { if (s == undefined) s = 1.70158; if ((t /= d / 2) < 1) return c / 2 * (t * t * (((s *= (1.525)) + 1) * t - s)) + b; return c / 2 * ((t -= 2) * t * (((s *= (1.525)) + 1) * t + s) + 2) + b; }, easeInBounce: function(x,t,b,c,d) { return c - jQuery.easing.easeOutBounce(x, d - t, 0, c, d) + b; },easeOutBounce: function(x,t,b,c,d) { if ((t /= d) < (1 / 2.75)) { return c * (7.5625 * t * t) + b; } else if (t < (2 / 2.75)) { return c * (7.5625 * (t -= (1.5 / 2.75)) * t + .75) + b; } else if (t < (2.5 / 2.75)) { return c * (7.5625 * (t -= (2.25 / 2.75)) * t + .9375) + b; }else{ return c * (7.5625 * (t -= (2.625 / 2.75)) * t + .984375) + b; } },easeInOutBounce:function(x,t,b,c,d){if(t<d/2)return jQuery.easing.easeInBounce(x,t*2,0,c,d)*.5+b;return jQuery.easing.easeOutBounce(x,t*2-d,0,c,d)*.5+c*.5+b;}});

/***------------------------------------------------------------------------------------------------
	Google Webfont : Copyright 2010 Small Batch, Inc.
------------------------------------------------------------------------------------------------***/
;(function(window,document,undefined){webfont={};webfont.Q=function(a,b){var c=arguments.length>2?Array.prototype.slice.call(arguments,2):[];return function(){c.push.apply(c,arguments);return b.apply(a,c)}};webfont.z=function(a){this.R=a};webfont.z.prototype.createElement=function(a,b,c){a=this.R.createElement(a);if(b)for(var d in b)b.hasOwnProperty(d)&&a.setAttribute(d,b[d]);c&&a.appendChild(this.R.createTextNode(c));return a};function i(a,b,c){a=a.R.getElementsByTagName(b)[0];if(!a)a=document.documentElement;if(a&&a.lastChild){a.insertBefore(c,a.lastChild);return true}return false}function m(a,b){function c(){document.body?b():setTimeout(c,0)}c()}function n(a,b){if(b.parentNode){b.parentNode.removeChild(b);return true}return false}function o(a,b){return a.createElement("link",{rel:"stylesheet",href:b})}function p(a,b,c){a=b.className.split(/\s+/);for(var d=0,e=a.length;d<e;d++)if(a[d]==c)return;a.push(c);b.className=a.join(" ").replace(/^\s+/,"")}function q(a,b,c){a=b.className.split(/\s+/);for(var d=[],e=0,f=a.length;e<f;e++)a[e]!=c&&d.push(a[e]);b.className=d.join(" ").replace(/^\s+/,"").replace(/\s+$/,"")};webfont.o=function(a,b,c,d,e,f){this.Aa=a;this.Ga=b;this.Fa=c;this.Ea=d;this.Ca=e;this.Z=f};webfont.o.prototype.getName=function(){return this.Aa};webfont.e=function(a){this.a=a};webfont.e.f="Unknown";webfont.e.sa=new webfont.o(webfont.e.f,webfont.e.f,webfont.e.f,false);webfont.e.prototype.parse=function(){return this.a.indexOf("MSIE")!=-1?r(this):this.a.indexOf("Opera")!=-1?s(this):this.a.indexOf("AppleWebKit")!=-1?t(this):this.a.indexOf("Gecko")!=-1?u(this):webfont.e.sa};function v(a){var b=w(a,a.a,/(iPod|iPad|iPhone|Android)/);if(b!="")return b;a=w(a,a.a,/(Linux|Mac_PowerPC|Macintosh|Windows)/);if(a!=""){if(a=="Mac_PowerPC")a="Macintosh";return a}return webfont.e.f}function r(a){var b=w(a,a.a,/(MSIE [\d\w\.]+)/);if(b!=""){var c=b.split(" ");b=c[0];c=c[1];return new webfont.o(b,c,b,c,v(a),x(a,c)>=6)}return new webfont.o("MSIE",webfont.e.f,"MSIE",webfont.e.f,v(a),false)}function s(a){var b=webfont.e.f,c=webfont.e.f,d=w(a,a.a,/(Presto\/[\d\w\.]+)/);if(d!=""){c=d.split("/");b=c[0];c=c[1]}else{if(a.a.indexOf("Gecko")!=-1)b="Gecko";d=w(a,a.a,/rv:([^\)]+)/);if(d!="")c=d}if(a.a.indexOf("Version/")!=-1){d=w(a,a.a,/Version\/([\d\.]+)/);if(d!="")return new webfont.o("Opera",d,b,c,v(a),x(a,d)>=10)}d=w(a,a.a,/Opera[\/ ]([\d\.]+)/);if(d!="")return new webfont.o("Opera",d,b,c,v(a),x(a,d)>=10);return new webfont.o("Opera",webfont.e.f,b,c,v(a),false)}function t(a){var b=v(a),c=w(a,a.a,/AppleWebKit\/([\d\.\+]+)/);if(c=="")c=webfont.e.f;var d=webfont.e.f;if(a.a.indexOf("Chrome")!=-1)d="Chrome";else if(a.a.indexOf("Safari")!=-1)d="Safari";var e=webfont.e.f;if(a.a.indexOf("Version/")!=-1)e=w(a,a.a,/Version\/([\d\.\w]+)/);else if(d=="Chrome")e=w(a,a.a,/Chrome\/([\d\.]+)/);var f=w(a,c,/\d+\.(\d+)/);return new webfont.o(d,e,"AppleWebKit",c,b,x(a,c)>=526||x(a,c)>=525&&parseInt(f)>=13)}function u(a){var b=webfont.e.f,c=webfont.e.f,d=false;if(a.a.indexOf("Firefox")!=-1){b="Firefox";var e=w(a,a.a,/Firefox\/([\d\w\.]+)/);if(e!=""){d=w(a,e,/\d+\.(\d+)/);c=e;d=e!=""&&x(a,e)>=3&&parseInt(d)>=5}}else if(a.a.indexOf("Mozilla")!=-1)b="Mozilla";e=w(a,a.a,/rv:([^\)]+)/);if(e=="")e=webfont.e.f;else if(!d){d=x(a,e);var f=parseInt(w(a,e,/\d+\.(\d+)/)),h=parseInt(w(a,e,/\d+\.\d+\.(\d+)/));d=d>1||d==1&&f>9||d==1&&f==9&&h>=2||e.match(/1\.9\.1b[123]/)!=null||e.match(/1\.9\.1\.[\d\.]+/)!=null}return new webfont.o(b,c,"Gecko",e,v(a),d)}function x(a,b){a=w(a,b,/(\d+)/);if(a!="")return parseInt(a);return-1}function w(a,b,c){if((a=b.match(c))&&a[1])return a[1];return""};webfont.d=function(a,b,c,d){this.c=a;this.j=b;this.ba=c;this.q=d||webfont.d.oa;this.p=new webfont.F("-")};webfont.d.oa="wf";webfont.d.u="loading";webfont.d.D="active";webfont.d.I="inactive";webfont.d.O="font";function y(a){p(a.c,a.j,a.p.h(a.q,webfont.d.u));A(a,webfont.d.u)}function B(a,b,c){q(a.c,a.j,a.p.h(a.q,b,c,webfont.d.u));p(a.c,a.j,a.p.h(a.q,b,c,webfont.d.D));A(a,webfont.d.O+webfont.d.D,b,c)}function C(a){p(a.c,a.j,a.p.h(a.q,webfont.d.I));A(a,webfont.d.I)}function D(a){q(a.c,a.j,a.p.h(a.q,webfont.d.u));p(a.c,a.j,a.p.h(a.q,webfont.d.D));A(a,webfont.d.D)}function A(a,b,c,d){a.ba[b]&&a.ba[b](c,d)};webfont.qa=function(){this.ia={}};function E(a,b){var c=[];for(var d in b)if(b.hasOwnProperty(d)){var e=a.ia[d];e&&c.push(e(b[d]))}return c};webfont.t=function(a,b,c,d,e){this.c=a;this.v=b;this.S=c;this.L=d;this.fa=e;this.ca=0;this.X=this.ha=false;this.za=new webfont.$;this.M=new webfont.g};webfont.t.aa="DEFAULT_FONT";webfont.t.pa="n4";webfont.t.prototype.watch=function(a,b,c){for(var d=a.length,e=0;e<d;e++){var f=a[e];b[f]||(b[f]=[webfont.t.pa]);this.ca+=b[f].length}if(c)this.ha=c;for(e=0;e<d;e++){f=a[e];c=b[f];for(var h=0,k=c.length;h<k;h++){var g=c[h],j=F(this,webfont.t.aa,g),z=this.S.T(j);n(this.c,j);j=f;var l=this.v;p(l.c,l.j,l.p.h(l.q,j,g,webfont.d.u));A(l,webfont.d.O+webfont.d.u,j,g);l=F(this,j,g);if(z!=this.S.T(l)){n(this.c,l);B(this.v,j,g);this.X=true;G(this)}else H(this,this.fa(),z,l,j,g)}}};function G(a){if(--a.ca==0&&a.ha)a.X?D(a.v):C(a.v)}webfont.t.prototype.wa=function(a,b,c,d,e){if(b!=this.S.T(c)){n(this.c,c);B(this.v,d,e);this.X=true;G(this)}else if(this.fa()-a<5E3)H(this,a,b,c,d,e);else{n(this.c,c);a=this.v;q(a.c,a.j,a.p.h(a.q,d,e,webfont.d.u));p(a.c,a.j,a.p.h(a.q,d,e,webfont.d.I));A(a,webfont.d.O+webfont.d.I,d,e);G(this)}};function H(a,b,c,d,e,f){a.L(function(h,k){return function(){k.call(h,b,c,d,e,f)}}(a,a.wa),50)}function F(a,b,c){b=a.za.quote(b);c=a.M.expand(c);c=a.c.createElement("span",{style:"position:absolute;top:-999px;font-size:300px;font-family:"+b+","+webfont.t.aa+";"+c},"Mm");i(a.c,"html",c);return c};webfont.C=function(a,b,c,d,e){this.c=a;this.da=b;this.j=c;this.L=d;this.a=e;this.V=this.W=0};webfont.C.prototype.K=function(a,b){this.da.ia[a]=b};webfont.C.prototype.load=function(a){var b=new webfont.d(this.c,this.j,a);this.a.Z?I(this,b,a):C(b)};webfont.C.prototype.xa=function(a,b,c,d){if(d)a.load(webfont.Q(this,this.Ba,b,c));else{a=--this.W==0;this.V--;if(a)this.V==0?C(b):y(b);c.watch([],{},a)}};webfont.C.prototype.Ba=function(a,b,c,d){var e=--this.W==0;e&&y(a);this.L(webfont.Q(this,function(f,h,k,g){f.watch(h,k||{},g)},b,c,d,e))};function I(a,b,c){c=E(a.da,c);a.V=a.W=c.length;for(var d=new webfont.t(a.c,b,{T:function(k){return k.offsetWidth}},a.L,function(){return+new Date}),e=0,f=c.length;e<f;e++){var h=c[e];h.Y(a.a,webfont.Q(a,a.xa,h,b,d))}};webfont.F=function(a){this.ya=a||webfont.F.na};webfont.F.na="-";webfont.F.prototype.h=function(){for(var a=[],b=0;b<arguments.length;b++)a.push(arguments[b].replace(/[\W_]+/g,"").toLowerCase());return a.join(this.ya)};webfont.$=function(){this.ka='"'};webfont.$.prototype.quote=function(a){var b=[];a=a.split(/,\s*/);for(var c=0;c<a.length;c++){var d=a[c].replace(/['"]/g,"");d.indexOf(" ")==-1?b.push(d):b.push(this.ka+d+this.ka)}return b.join(",")};webfont.g=function(){this.N=webfont.g.ra;this.s=webfont.g.ta};webfont.g.ra=["font-style","font-weight"];webfont.g.ta={"font-style":[["n","normal"],["i","italic"],["o","oblique"]],"font-weight":[["1","100"],["2","200"],["3","300"],["4","400"],["5","500"],["6","600"],["7","700"],["8","800"],["9","900"],["4","normal"],["7","bold"]]};webfont.g.J=function(a,b,c){this.ga=a;this.Da=b;this.s=c};webfont.g.J.prototype.compact=function(a,b){for(var c=0;c<this.s.length;c++)if(b==this.s[c][1]){a[this.ga]=this.s[c][0];return}};webfont.g.J.prototype.expand=function(a,b){for(var c=0;c<this.s.length;c++)if(b==this.s[c][0]){a[this.ga]=this.Da+":"+this.s[c][1];return}};webfont.g.prototype.compact=function(a){var b=["n","4"];a=a.split(";");for(var c=0,d=a.length;c<d;c++){var e=a[c].replace(/\s+/g,"").split(":");if(e.length==2){var f=e[1];a:{e=e[0];for(var h=0;h<this.N.length;h++)if(e==this.N[h]){e=new webfont.g.J(h,e,this.s[e]);break a}e=null}e&&e.compact(b,f)}}return b.join("")};webfont.g.prototype.expand=function(a){if(a.length!=2)return null;for(var b=[null,null],c=0,d=this.N.length;c<d;c++){var e=this.N[c],f=a.substr(c,1);(new webfont.g.J(c,e,this.s[e])).expand(b,f)}return b[0]&&b[1]?b.join(";")+";":null};window.WebFont=function(){var a=new webfont.z(document),b=(new webfont.e(navigator.userAgent)).parse();return new webfont.C(a,new webfont.qa,document.documentElement,function(c,d){setTimeout(c,d)},b)}();window.WebFont.load=window.WebFont.load;window.WebFont.addModule=window.WebFont.K;webfont.H=function(a){this.va=a||webfont.H.ma;this.m=null};webfont.H.ma="//fonts.googleapis.com/css";webfont.H.prototype.h=function(){if(!this.m)throw new Error("No fonts to load !");for(var a=this.m.length,b=[],c=0;c<a;c++)b.push(this.m[c].replace(/ /g,"+"));return this.va+"?family="+b.join("%7C")};webfont.G=function(a){this.m=a;this.ja=[];this.la={};this.M=new webfont.g};webfont.G.ua={ultralight:"n2",light:"n3",regular:"i4",bold:"i7",italic:"i4",bolditalic:"i7",ul:"n2",l:"n3",r:"n4",b:"n7",i:"i4",bi:"i7"};webfont.G.prototype.parse=function(){for(var a=this.m.length,b=0;b<a;b++){var c=this.m[b].split(":"),d=c[0],e=null;if(c.length==2){var f=[];c=c[1].split(",");for(var h=c.length,k=0;k<h;k++){var g;g=c[k];if(g.match(/^[\w ]+$/)){var j=webfont.G.ua[g];if(j)g=j;else{j=g.match(/^(\d*)(\w*)$/);g=j[1];j=j[2];g=(g=this.M.expand([j?j:"n",g?g.substr(0,1):"4"].join("")))?this.M.compact(g):null}}else g="";g&&f.push(g)}if(f.length>0)e=f}else e=["n4"];this.ja.push(d);this.la[d]=e}};webfont.A=function(a,b,c){this.a=a;this.c=b;this.k=c};webfont.A.B="google";webfont.A.prototype.Y=function(a,b){a.Ca.match(/iPad|iPod|iPhone/)!=null&&b(false);return b(a.Z)};webfont.A.prototype.load=function(a){var b=new webfont.H(this.k.api),c=this.k.families,d=this.c,e=this.a.getName()=="MSIE"&&this.k.blocking!=true;b.m=c;e?m(d,function(){i(d,"head",o(d,b.h()))}):i(d,"head",o(d,b.h()));c=new webfont.G(c);c.parse();a(c.ja,c.la)};WebFont.K(webfont.A.B,function(a){var b=(new webfont.e(navigator.userAgent)).parse();return new webfont.A(b,new webfont.z(document),a)});webfont.w=function(a,b){this.c=a;this.k=b};webfont.w.B="custom";webfont.w.prototype.load=function(a){for(var b=this.k.urls||[],c=this.k.families||[],d=0,e=b.length;d<e;d++)i(this.c,"head",o(this.c,b[d]));a(c)};webfont.w.prototype.Y=function(a,b){return b(a.Z)};WebFont.K(webfont.w.B,function(a){return new webfont.w(new webfont.z(document),a)});webfont.n=function(a,b,c){this.U=a;this.c=b;this.k=c;this.m=[];this.ea={}};webfont.n.B="typekit";webfont.n.P="__webfonttypekitmodule__";webfont.n.prototype.Y=function(a,b){var c=this.k.id,d=this.k,e=this;if(c){this.U[webfont.n.P]||(this.U[webfont.n.P]={});this.U[webfont.n.P][c]=function(f){f(a,d,function(h,k,g){e.m=k;e.ea=g;b(h)})};i(this.c,"head",this.c.createElement("script",{src:(this.k.api||"http://use.typekit.com")+"/"+c+".js"}))}else b(true)};webfont.n.prototype.load=function(a){a(this.m,this.ea)};WebFont.K(webfont.n.B,function(a){return new webfont.n(window,new webfont.z(document),a)});})(this,document);

/***------------------------------------------------------------------------------------------------
	bigTarget.js Version 1.0.1 by Leevi Graham - Newism Web Design & Development : http://newism.com.au
	@Notes: Tooltip code from fitted.js - http://www.trovster.com/lab/plugins/fitted/
 ------------------------------------------------------------------------------------------------***/
(function($){$.fn.bigTarget = function(options){debug(this);var opts=$.extend({},$.fn.bigTarget.defaults,options);return this.each(function(){var $a=$(this),href=$a.attr('href'),title=$a.attr('title'),o=$.meta?$.extend({},opts,$a.data()):opts;$a.parents(o.clickZone).hover(function(){$h=$(this);$h.addClass(o.hoverClass);if(typeof o.title!='undefined'&&o.title===true&&title!=''){$h.attr('title',title);}}, function(){$h.removeClass(o.hoverClass);if(typeof o.title != 'undefined' && o.title === true && title != ''){$h.removeAttr('title');}}).click(function(){if(getSelectedText() == ""){/*if($a.is('[rel*=external]')){window.open(href);return false;} else { window.location = href;}*/}});});};function debug($obj){if(window.console&&window.console.log)window.console.log('bigTarget selection count: '+$obj.size());};function getSelectedText(){if(window.getSelection){return window.getSelection().toString();}else if(document.getSelection){return document.getSelection();}else if(document.selection){ return document.selection.createRange().text;}};$.fn.bigTarget.defaults={hoverClass:'hover',clickZone:'li:eq(0)',title:true};})(jQuery);

/***------------------------------------------------------------------------------------------------
	jQuery LiveFilter v.1.1
------------------------------------------------------------------------------------------------***/
(function(a){a.fn.liveFilter=function(d){var b="#"+a(this).attr("id");if(d=="table"){var c="tr"}else{var c="li"}a("input.filter").keyup(function(){var e=a(this).val();a(b+" "+d+" "+c).hide();if(d=="table"){a(b+" "+d+" tr.header").show()}a(b+" "+d+" "+c+':Contains("'+e+'")').show()});jQuery.expr[":"].Contains=function(f,g,e){return jQuery(f).text().toUpperCase().indexOf(e[3].toUpperCase())>=0}}})(jQuery);

/***------------------------------------------------------------------------------------------------
	jQuery UI Selectmenu	http://docs.jquery.com/UI	( Depends: ui.core.js )
	Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about). Dual MIT and GPL licenses.
------------------------------------------------------------------------------------------------***/
(function($){ $.widget("ui.selectmenu", { _init: function(){ var self = this, o = this.options; var num = Math.round(Math.random() * 1000); this.ids = [this.element.attr('id') + '_' + 'button' + '_' + num, this.element.attr('id') + '_' + 'menu' + '_' + num]; this._safemouseup = true; this.newelement = $('<a class="'+ this.widgetBaseClass +' ui-widget ui-state-default ui-corner-all" id="'+this.ids[0]+'" role="button" href="#" aria-haspopup="true" aria-owns="'+this.ids[1]+'" aria-expanded="false"></a>').insertAfter(this.element); var tabindex = this.element.attr('tabindex') || '0'; this.newelement.attr('tabindex', tabindex); this.newelement.data('selectelement', this.element); this.selectmenuIcon = $('<span class="'+ this.widgetBaseClass +'-icon ui-icon"></span>').prependTo(this.newelement).addClass( (o.style == "popup")? 'ui-icon-triangle-2-n-s' : 'ui-icon-triangle-1-s' ); $('label[for='+this.element.attr('id')+']').attr('for', this.ids[0]).bind('click', function(){ self.newelement.focus(); return false; }); this.newelement.bind('mousedown', function(event){ self._toggle(event); if(o.style == "popup"){ self._safemouseup = false; setTimeout(function(){self._safemouseup = true;}, 300); } return false; }).bind('click',function(){ return false; }).keydown(function(event){ var ret = true; switch (event.keyCode) { case $.ui.keyCode.ENTER: ret = true; break; case $.ui.keyCode.SPACE: ret = false; self._toggle(event); break; case $.ui.keyCode.UP: case $.ui.keyCode.LEFT: ret = false; self._moveSelection(-1); break; case $.ui.keyCode.DOWN: case $.ui.keyCode.RIGHT: ret = false; self._moveSelection(1); break; case $.ui.keyCode.TAB: ret = true; break; default: ret = false; self._typeAhead(event.keyCode, 'mouseup'); break;	} return ret; }).bind('mouseover focus', function(){ $(this).addClass(self.widgetBaseClass+'-focus ui-state-hover'); }).bind('mouseout blur', function(){ $(this).removeClass(self.widgetBaseClass+'-focus ui-state-hover'); }); $(document).mousedown(function(event){ self.close(event); }); this.element.click(function(){ this._refreshValue(); }).focus(function(){ this.newelement.focus(); }); var cornerClass = (o.style == "dropdown")? " ui-corner-bottom" : " ui-corner-all"; this.list = $('<ul class="' + self.widgetBaseClass + '-menu ui-widget ui-widget-content'+cornerClass+'" aria-hidden="true" role="listbox" aria-multiselectable="false" aria-labelledby="'+this.ids[0]+'" id="'+this.ids[1]+'"></ul>').appendTo('body'); var selectOptionData = []; this.element.find('option').each(function(){ selectOptionData.push({ value: $(this).attr('value'), text: self._formatText(jQuery(this).text()), selected: $(this).attr('selected'), classes: $(this).attr('class'), parentOptGroup: $(this).parent('optgroup').attr('label') }); }); var activeClass = (self.options.style == "popup") ? " ui-state-active" : ""; for(var i in selectOptionData){ var thisLi = $('<li><a href="#" tabindex="-1" role="option" aria-selected="false">'+ selectOptionData[i].text +'</a></li>').data('index',i).addClass(selectOptionData[i].classes).data('optionClasses', selectOptionData[i].classes|| '').mouseup(function(event){ if(self._safemouseup){ var changed = $(this).data('index') != self._selectedIndex(); self.value($(this).data('index')); self.select(event); if(changed){ self.change(event); } self.close(event,true); } return false; }).click(function(){ return false; }).bind('mouseover focus', function(){ self._selectedOptionLi().addClass(activeClass); self._focusedOptionLi().removeClass(self.widgetBaseClass+'-item-focus ui-state-hover'); $(this).removeClass('ui-state-active').addClass(self.widgetBaseClass + '-item-focus ui-state-hover'); }).bind('mouseout blur', function(){ if($(this).is( self._selectedOptionLi() )){ $(this).addClass(activeClass); } $(this).removeClass(self.widgetBaseClass + '-item-focus ui-state-hover'); }); if(selectOptionData[i].parentOptGroup){ var optGroupName = self.widgetBaseClass + '-group-' + selectOptionData[i].parentOptGroup; if(this.list.find('li.' + optGroupName).size()){ this.list.find('li.' + optGroupName + ':last ul').append(thisLi); } else{ $('<li class="'+self.widgetBaseClass+'-group '+optGroupName+'"><span class="'+self.widgetBaseClass+'-group-label">'+selectOptionData[i].parentOptGroup+'</span><ul></ul></li>').appendTo(this.list).find('ul').append(thisLi); } } else{ thisLi.appendTo(this.list); } this.list.bind('mousedown mouseup', function(){return false;}); if(o.icons){ for(var j in o.icons){ if(thisLi.is(o.icons[j].find)){ thisLi.data('optionClasses', selectOptionData[i].classes + ' ' + self.widgetBaseClass + '-hasIcon').addClass(self.widgetBaseClass + '-hasIcon'); var iconClass = o.icons[j].icon || ""; thisLi.find('a:eq(0)').prepend('<span class="'+self.widgetBaseClass+'-item-icon ui-icon '+iconClass + '"></span>'); }}}} this.list.find('li:last').addClass("ui-corner-bottom"); if(o.style == 'popup'){ this.list.find('li:first').addClass("ui-corner-top"); } if(o.transferClasses){ var transferClasses = this.element.attr('class') || ''; this.newelement.add(this.list).addClass(transferClasses); } var selectWidth = this.element.width(); this.newelement.width( (o.width) ? o.width : selectWidth); if(o.style == 'dropdown'){ this.list.width( (o.menuWidth) ? o.menuWidth : ((o.width) ? o.width : selectWidth)); } else { this.list.width( (o.menuWidth) ? o.menuWidth : ((o.width) ? o.width - o.handleWidth : selectWidth - o.handleWidth)); } if(o.maxHeight && o.maxHeight < this.list.height()){ this.list.height(o.maxHeight); } this._optionLis = this.list.find('li:not(.'+ self.widgetBaseClass +'-group)'); this.list.keydown(function(event){ var ret = true; switch (event.keyCode) { case $.ui.keyCode.UP: case $.ui.keyCode.LEFT: ret = false; self._moveFocus(-1); break; case $.ui.keyCode.DOWN: case $.ui.keyCode.RIGHT: ret = false; self._moveFocus(1); break; case $.ui.keyCode.HOME: ret = false; self._moveFocus(':first'); break; case $.ui.keyCode.PAGE_UP: ret = false; self._scrollPage('up'); break; case $.ui.keyCode.PAGE_DOWN: ret = false; self._scrollPage('down'); break; case $.ui.keyCode.END: ret = false; self._moveFocus(':last'); break; case $.ui.keyCode.ENTER: case $.ui.keyCode.SPACE: ret = false; self.close(event,true); $(event.target).parents('li:eq(0)').trigger('mouseup'); break; case $.ui.keyCode.TAB: ret = true; self.close(event); break; case $.ui.keyCode.ESCAPE: ret = false; self.close(event,true); break; default: ret = false; self._typeAhead(event.keyCode,'focus'); break; } return ret; }); if(o.style == 'dropdown'){ this.newelement.addClass(self.widgetBaseClass+"-dropdown"); this.list.addClass(self.widgetBaseClass+"-menu-dropdown"); } else { this.newelement.addClass(self.widgetBaseClass+"-popup"); this.list.addClass(self.widgetBaseClass+"-menu-popup");	} this.newelement.prepend('<span class="'+self.widgetBaseClass+'-status">'+ selectOptionData[this._selectedIndex()].text +'</span>'); this.element.hide(); if(this.element.attr('disabled') == true){ this.disable(); } this.value(this._selectedIndex()); }, destroy: function() { this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass + '-disabled' + ' ' + this.namespace + '-state-disabled').removeAttr('aria-disabled'); $('label[for='+this.newelement.attr('id')+']').attr('for',this.element.attr('id')).unbind('click'); this.newelement.remove(); this.list.remove(); this.element.show(); }, _typeAhead: function(code, eventType){ var self = this; if(!self._prevChar){ self._prevChar = ['',0]; } var C = String.fromCharCode(code); c = C.toLowerCase(); var focusFound = false; function focusOpt(elem, ind){ focusFound = true; $(elem).trigger(eventType); self._prevChar[1] = ind; }; this.list.find('li a').each(function(i){ if(!focusFound){ var thisText = $(this).text(); if( thisText.indexOf(C) == 0 || thisText.indexOf(c) == 0){ if(self._prevChar[0] == C){ if(self._prevChar[1] < i){ focusOpt(this,i); } } else{ focusOpt(this,i);}}}}); this._prevChar[0] = C; }, _uiHash: function(){ return { value: this.value() }; }, open: function(event){ var self = this; this._refreshPosition(); this._closeOthers(event); this.newelement.attr('aria-expanded', true).addClass('ui-state-active'); this.list.appendTo('body').addClass(self.widgetBaseClass + '-open').attr('aria-hidden', false).find('li:not(.'+ self.widgetBaseClass +'-group):eq('+ this._selectedIndex() +') a').focus();	if(this.options.style == "dropdown"){ this.newelement.removeClass('ui-corner-all').addClass('ui-corner-top'); }	this._refreshPosition(); this._trigger("open", event, this._uiHash()); }, close: function(event, retainFocus){ if(this.newelement.is('.ui-state-active')){ this.newelement.attr('aria-expanded', false).removeClass('ui-state-active'); this.list.attr('aria-hidden', true).removeClass(this.widgetBaseClass+'-open'); if(this.options.style == "dropdown"){ this.newelement.removeClass('ui-corner-top').addClass('ui-corner-all'); } if(retainFocus){this.newelement.focus();} this._trigger("close", event, this._uiHash()); }}, change: function(event) { this.element.trigger('change'); this._trigger("change", event, this._uiHash()); }, select: function(event) { this._trigger("select", event, this._uiHash()); }, _closeOthers: function(event){ $('.'+ this.widgetBaseClass +'.ui-state-active').not(this.newelement).each(function(){ $(this).data('selectelement').selectmenu('close',event); }); $('.'+ this.widgetBaseClass +'.ui-state-hover').trigger('mouseout'); }, _toggle: function(event,retainFocus){ if(this.list.is('.'+ this.widgetBaseClass +'-open')){ this.close(event,retainFocus); } else { this.open(event); } }, _formatText: function(text){ return this.options.format ? this.options.format(text) : text; }, _selectedIndex: function(){ return this.element[0].selectedIndex; }, _selectedOptionLi: function(){ return this._optionLis.eq(this._selectedIndex()); }, _focusedOptionLi: function(){ return this.list.find('.'+ this.widgetBaseClass +'-item-focus'); }, _moveSelection: function(amt){ var currIndex = parseInt(this._selectedOptionLi().data('index'), 10); var newIndex = currIndex + amt; return this._optionLis.eq(newIndex).trigger('mouseup'); }, _moveFocus: function(amt){ if(!isNaN(amt)){ var currIndex = parseInt(this._focusedOptionLi().data('index'), 10); var newIndex = currIndex + amt; } else { var newIndex = parseInt(this._optionLis.filter(amt).data('index'), 10); } if(newIndex < 0){ newIndex = 0; } if(newIndex > this._optionLis.size()-1){ newIndex =  this._optionLis.size()-1; } this._focusedOptionLi().find('a:eq(0)').blur(); this._optionLis.eq(newIndex).find('a:eq(0)').focus(); }, _scrollPage: function(direction){ var numPerPage = Math.floor(this.list.outerHeight() / this.list.find('li:first').outerHeight()); numPerPage = (direction == 'up') ? -numPerPage : numPerPage; this._moveFocus(numPerPage); }, setData: function(key, value) { this.options[key] = value; if (key == 'disabled') { this.element.add(this.newelement).add(this.list) [value ? 'addClass' : 'removeClass']( this.widgetBaseClass + '-disabled' + ' ' + this.namespace + '-state-disabled').attr("aria-disabled", value); }}, value: function(newValue) { if (arguments.length) { this.element[0].selectedIndex = newValue; this._refreshValue(); this._refreshPosition(); } return this.element[0].selectedIndex; }, _refreshValue: function() { var activeClass = (this.options.style == "popup") ? " ui-state-active" : ""; this.list.find('.'+ this.widgetBaseClass +'-item-selected').removeClass(this.widgetBaseClass + "-item-selected" + activeClass).find('a').attr('aria-selected', 'false'); this._selectedOptionLi().addClass(this.widgetBaseClass + "-item-selected"+activeClass).find('a').attr('aria-selected', 'true'); var currentOptionClasses = this.newelement.data('optionClasses') ? this.newelement.data('optionClasses') : ""; var newOptionClasses = this._selectedOptionLi().data('optionClasses') ? this._selectedOptionLi().data('optionClasses') : ""; this.newelement.removeClass(currentOptionClasses).data('optionClasses', newOptionClasses).addClass( newOptionClasses ).find('.'+this.widgetBaseClass+'-status').html(this._selectedOptionLi().find('a:eq(0)').html()); }, _refreshPosition: function(){ this.list.css('left', this.newelement.offset().left); var menuTop = this.newelement.offset().top; var scrolledAmt = this.list[0].scrollTop; this.list.find('li:lt('+this._selectedIndex()+')').each(function(){ scrolledAmt -= $(this).outerHeight();}); if(this.newelement.is('.'+this.widgetBaseClass+'-popup')){ menuTop+=scrolledAmt; this.list.css('top', menuTop); } else { menuTop += this.newelement.height(); this.list.css('top', menuTop); }}}); $.extend($.ui.selectmenu,{getter:"value", version:"@VERSION",eventPrefix: "selectmenu",defaults:{transferClasses:true,style:'popup',width:null,menuWidth:null,handleWidth:26,maxHeight:null,icons:null,format:null}});})(jQuery);

/***------------------------------------------------------------------------------------------------
	jQuery Uniform
------------------------------------------------------------------------------------------------***/
(function(a){a.uniform={options:{selectClass:"selector",radioClass:"radio",checkboxClass:"checker",fileClass:"uploader",filenameClass:"filename",fileBtnClass:"action",fileDefaultText:"No file selected",fileBtnText:"Choose File",checkedClass:"checked",focusClass:"focus",disabledClass:"disabled",activeClass:"active",hoverClass:"hover",useID:true,idPrefix:"uniform",resetSelector:false},elements:[]};if(a.browser.msie&&a.browser.version<7){a.support.selectOpacity=false}else{a.support.selectOpacity=true}a.fn.uniform=function(c){c=a.extend(a.uniform.options,c);var e=this;if(c.resetSelector!=false){a(c.resetSelector).mouseup(function(){function i(){a.uniform.update(e)}setTimeout(i,10)})}function b(j){var k=a("<div />"),i=a("<span />");k.addClass(c.selectClass);if(c.useID){k.attr("id",c.idPrefix+"-"+j.attr("id"))}i.html(j.find(":selected").text());j.css("opacity",0);j.wrap(k);j.before(i);k=j.parent("div");i=j.siblings("span");j.change(function(){i.text(j.find(":selected").text());k.removeClass(c.activeClass)}).focus(function(){k.addClass(c.focusClass)}).blur(function(){k.removeClass(c.focusClass);k.removeClass(c.activeClass)}).mousedown(function(){k.addClass(c.activeClass)}).mouseup(function(){k.removeClass(c.activeClass)}).click(function(){k.removeClass(c.activeClass)}).hover(function(){k.addClass(c.hoverClass)},function(){k.removeClass(c.hoverClass)}).keyup(function(){i.text(j.find(":selected").text())});if(a(j).attr("disabled")){k.addClass(c.disabledClass)}a.uniform.noSelect(i);h(j)}function d(j){var k=a("<div />"),i=a("<span />");k.addClass(c.checkboxClass);if(c.useID){k.attr("id",c.idPrefix+"-"+j.attr("id"))}a(j).wrap(k);a(j).wrap(i);i=j.parent();k=i.parent();a(j).css("opacity",0).focus(function(){k.addClass(c.focusClass)}).blur(function(){k.removeClass(c.focusClass)}).click(function(){if(!a(j).attr("checked")){i.removeClass(c.checkedClass)}else{i.addClass(c.checkedClass)}}).mousedown(function(){k.addClass(c.activeClass)}).mouseup(function(){k.removeClass(c.activeClass)}).hover(function(){k.addClass(c.hoverClass)},function(){k.removeClass(c.hoverClass)});if(a(j).attr("checked")){i.addClass(c.checkedClass)}if(a(j).attr("disabled")){k.addClass(c.disabledClass)}h(j)}function f(j){var k=a("<div />"),i=a("<span />");k.addClass(c.radioClass);if(c.useID){k.attr("id",c.idPrefix+"-"+j.attr("id"))}a(j).wrap(k);a(j).wrap(i);i=j.parent();k=i.parent();a(j).css("opacity",0).focus(function(){k.addClass(c.focusClass)}).blur(function(){k.removeClass(c.focusClass)}).click(function(){if(!a(j).attr("checked")){i.removeClass(c.checkedClass)}else{a("."+c.radioClass+" span."+c.checkedClass+":has([name='"+a(j).attr("name")+"'])").removeClass(c.checkedClass);i.addClass(c.checkedClass)}}).mousedown(function(){if(!a(j).is(":disabled")){k.addClass(c.activeClass)}}).mouseup(function(){k.removeClass(c.activeClass)}).hover(function(){k.addClass(c.hoverClass)},function(){k.removeClass(c.hoverClass)});if(a(j).attr("checked")){i.addClass(c.checkedClass)}if(a(j).attr("disabled")){k.addClass(c.disabledClass)}h(j)}function g(l){$el=a(l);var m=a("<div />"),k=a("<span>"+c.fileDefaultText+"</span>"),j=a("<span>"+c.fileBtnText+"</span>");m.addClass(c.fileClass);k.addClass(c.filenameClass);j.addClass(c.fileBtnClass);if(c.useID){m.attr("id",c.idPrefix+"-"+$el.attr("id"))}$el.wrap(m);$el.after(j);$el.after(k);m=$el.closest("div");k=$el.siblings("."+c.filenameClass);j=$el.siblings("."+c.fileBtnClass);if(!$el.attr("size")){var i=m.width();$el.attr("size",i/10)}$el.css("opacity",0).focus(function(){m.addClass(c.focusClass)}).blur(function(){m.removeClass(c.focusClass)}).change(function(){var n=a(this).val();n=n.split(/[\/\\]+/);n=n[(n.length-1)];k.text(n)}).mousedown(function(){if(!a(l).is(":disabled")){m.addClass(c.activeClass)}}).mouseup(function(){m.removeClass(c.activeClass)}).hover(function(){m.addClass(c.hoverClass)},function(){m.removeClass(c.hoverClass)});if($el.attr("disabled")){m.addClass(c.disabledClass)}a.uniform.noSelect(k);a.uniform.noSelect(j);h(l)}function h(i){i=a(i).get();if(i.length>1){a.each(i,function(j,k){a.uniform.elements.push(k)})}else{a.uniform.elements.push(i)}}a.uniform.noSelect=function(i){function j(){return false}a(i).each(function(){this.onselectstart=this.ondragstart=j;a(this).mousedown(j).css({MozUserSelect:"none"})})};a.uniform.update=function(i){if(i==undefined){i=a(a.uniform.elements)}i=a(i);i.each(function(){$e=a(this);if($e.is("select")){spanTag=$e.siblings("span");divTag=$e.parent("div");divTag.removeClass(c.hoverClass+" "+c.focusClass+" "+c.activeClass);spanTag.html($e.find(":selected").text());if($e.is(":disabled")){divTag.addClass(c.disabledClass)}else{divTag.removeClass(c.disabledClass)}}else{if($e.is(":checkbox")){spanTag=$e.closest("span");divTag=$e.closest("div");divTag.removeClass(c.hoverClass+" "+c.focusClass+" "+c.activeClass);spanTag.removeClass(c.checkedClass);if($e.is(":checked")){spanTag.addClass(c.checkedClass)}if($e.is(":disabled")){divTag.addClass(c.disabledClass)}else{divTag.removeClass(c.disabledClass)}}else{if($e.is(":radio")){spanTag=$e.closest("span");divTag=$e.closest("div");divTag.removeClass(c.hoverClass+" "+c.focusClass+" "+c.activeClass);spanTag.removeClass(c.checkedClass);if($e.is(":checked")){spanTag.addClass(c.checkedClass)}if($e.is(":disabled")){divTag.addClass(c.disabledClass)}else{divTag.removeClass(c.disabledClass)}}else{if($e.is(":file")){divTag=$e.parent("div");filenameTag=$e.siblings(c.filenameClass);btnTag=$e.siblings(c.fileBtnClass);divTag.removeClass(c.hoverClass+" "+c.focusClass+" "+c.activeClass);filenameTag.text($e.val());if($e.is(":disabled")){divTag.addClass(c.disabledClass)}else{divTag.removeClass(c.disabledClass)}}}}}})};return this.each(function(){if(a.support.selectOpacity){var i=a(this);if(i.is("select")){if(i.attr("multiple")!=true){b(i)}}else{if(i.is(":checkbox")){d(i)}else{if(i.is(":radio")){f(i)}else{if(i.is(":file")){g(i)}}}}}})}})(jQuery);

/***------------------------------------------------------------------------------------------------
	dPassword v0.1 - jQuery delayed password masking (iPhone style), MIT License. Copyright (c) 2009 DECAF°, Stefan Ullrich (http://decaf.de)
------------------------------------------------------------------------------------------------***/
(function($){$.fn.dPassword=function(options){ var defaults={interval:200,duration:3000,replacement:'%u25CF',prefix:'password_',debug:false};var opts=$.extend(defaults,options);var checker=new Array();var timer=new Array();$(this).each(function(){if(opts.debug)console.log('init ['+$(this).attr('id')+']');var name=$(this).attr('name');var id=$(this).attr('id');var cssclass=$(this).attr('class');var style=$(this).attr('style');var size=$(this).attr('size');var maxlength=$(this).attr('maxlength');var disabled=$(this).attr('disabled');var tabindex=$(this).attr('tabindex');var accesskey=$(this).attr('accesskey');var value=$(this).attr('value');checker.push(id);timer.push(id);$(this).hide();if(opts.debug){$(this).after('<span id="debug_'+opts.prefix+name+'" style="color: #f00;"></span>');}$(this).after(' <input name="'+(opts.prefix+name)+'" '+'id="'+(opts.prefix+id)+'" '+'type="text" '+'value="'+value+'" '+(cssclass!=''?'class="'+cssclass+'"':'')+(style!=''?'style="'+style+'"':'')+(size!=''?'size="'+size+'"':'')+(maxlength!=-1?'maxlength="'+maxlength+'"':'')+(disabled!=''?'disabled="'+disabled+'"':'')+(tabindex!=''?'tabindex="'+tabindex+'"':'')+(accesskey!=undefined?'accesskey="'+accesskey+'"':'')+'autocomplete="off" />');$('label[for='+id+']').attr('for',opts.prefix+id);$(this).attr('tabindex','');$(this).attr('accesskey','');$('#'+opts.prefix+id).bind('focus',function(event){if(opts.debug)console.log('event: focus ['+getId($(this).attr('id'))+']');clearTimeout(checker[getId($(this).attr('id'))]);checker[getId($(this).attr('id'))]=setTimeout("check('"+getId($(this).attr('id'))+"', '')",opts.interval);});$('#'+opts.prefix+id).bind('blur',function(event){if(opts.debug)console.log('event: blur ['+getId($(this).attr('id'))+']');clearTimeout(checker[getId($(this).attr('id'))]);});setTimeout("check('"+id+"', '', true);",opts.interval);});getId=function(id){var pattern=opts.prefix+'(.*)';var regex=new RegExp(pattern);regex.exec(id);id=RegExp.$1;return id;};setPassword=function(id,str){if(opts.debug)console.log('setPassword: ['+id+']');var tmp='';for(i=0;i<str.length;i++){if(str.charAt(i)==unescape(opts.replacement)){tmp=tmp+$('#'+id).val().charAt(i);}else{tmp=tmp+str.charAt(i);}}$('#'+id).val(tmp);};check=function(id,oldValue,initialCall){if(opts.debug)console.log('check: ['+id+']');var bullets=$('#'+opts.prefix+id).val();if(oldValue!=bullets){setPassword(id,bullets);if(bullets.length>1){var tmp='';for(i=0;i<bullets.length-1;i++){tmp=tmp+unescape(opts.replacement);}tmp=tmp+bullets.charAt(bullets.length-1);$('#'+opts.prefix+id).val(tmp);}else{}clearTimeout(timer[id]);timer[id]=setTimeout("convertLastChar('"+id+"')",opts.duration);}if(opts.debug){$('#debug_'+opts.prefix+id).text($('#'+id).val());}if(!initialCall){checker[id]=setTimeout("check('"+id+"', '"+$('#'+opts.prefix+id).val()+"', false)",opts.interval);}};convertLastChar=function(id){if($('#'+opts.prefix+id).val()!=''){var tmp='';for(i=0;i<$('#'+opts.prefix+id).val().length;i++){tmp=tmp+unescape(opts.replacement);}$('#'+opts.prefix+id).val(tmp);}}};})(jQuery);

/***------------------------------------------------------------------------------------------------
	CSS BACKGROUND ANIMATION v. 1.1 by Alexander Farkas
------------------------------------------------------------------------------------------------***/
(function($) { if (!document.defaultView || !document.defaultView.getComputedStyle) { var oldCurCSS = jQuery.curCSS;  jQuery.curCSS = function(elem, name, force) { if (name !== 'backgroundPosition' || !elem.currentStyle || elem.currentStyle[name]) return oldCurCSS.apply(this, arguments); var style = elem.style; if (!force && style && style[name]) return style[name]; return oldCurCSS(elem, 'backgroundPositionX', force) + ' ' + oldCurCSS(elem, 'backgroundPositionY', force); };}})(jQuery); (function($) { function toArray(strg) { strg = strg.replace(/left|top/g, '0px'); strg = strg.replace(/right|bottom/g, '100%'); strg = strg.replace(/([0-9\.]+)(\s|\)|$)/g, "$1px$2"); var res = strg.match(/(-?[0-9\.]+)(px|\%|em|pt)\s(-?[0-9\.]+)(px|\%|em|pt)/);  return [parseFloat(res[1], 10), res[2], parseFloat(res[3], 10), res[4]]; } $.fx.step.backgroundPosition = function(fx) { if (!fx.bgPosReady) { var start = $.curCSS(fx.elem, 'backgroundPosition'); if (!start) start = '0px 0px'; start = toArray(start); fx.start = [start[0], start[2]]; var end = toArray(fx.options.curAnim.backgroundPosition); fx.end = [end[0], end[2]]; fx.unit = [end[1], end[3]]; fx.bgPosReady = true; } var nowPosX = []; nowPosX[0] = ((fx.end[0] - fx.start[0]) * fx.pos) + fx.start[0] + fx.unit[0]; nowPosX[1] = ((fx.end[1] - fx.start[1]) * fx.pos) + fx.start[1] + fx.unit[1]; fx.elem.style.backgroundPosition = nowPosX[0] + ' ' + nowPosX[1]; };})(jQuery);

/***------------------------------------------------------------------------------------------------
	jQuery bgFade : Copyright 2010 Jake Lauer with Clarity Design (isthatclear.com) : Released under the MIT and GPL licenses.
------------------------------------------------------------------------------------------------***/
(function($){$.fn.bgFade=function(action,options){if(action=='fadeIn'){var defaults={top:"",left:"",height:"",width:"",fadeSpeed:200,fadeToOpacity:1,animate:false};}else if(action=='fadeOut'){var defaults={top:"",left:"",height:"",width:"",fadeSpeed:200,fadeToOpacity:0,animate:false};}var options=$.extend(defaults,options);return this.each(function(){if(action=='fadeIn'){if($(this).css('position')=="static"){$(this).css({position:'relative'});}$(this).append('<span class="bg_fade"></span>')}var fader=$(this).find('.bg_fade');var aThis=$(this);if(options.top==""){if(fader.css('top')=='0px'){fTop=0;}else{fTop=fader.css('top');}}else{fTop=options.top;}if(options.top!=""&&action!='fadeIn'){fTop=options.top;}else if(options.top==""&&action!='fadeIn'){fTop=0;}if(options.left==0){if(fader.css('left')=='0px'){fLeft=0;}else{fLeft=fader.css('left');}}else{fLeft=options.left;}if(options.left!=""&&action!='fadeIn'){fLeft=options.left;}else if(options.left==""&&action!='fadeIn'){fLeft=0;}if(options.width==""){if(fader.css('width')=='0px'){fWidth=0;}else{fWidth=fader.css('width');}}else{fWidth=options.width;}if(options.width!=""&&action!='fadeIn'){fWidth=options.width;}else if(options.width==""&&action!='fadeIn'){fWidth=$(this).width();}if(options.height==""){if(fader.css('height')=='0px'){fHeight=0;}else{fHeight=fader.css('height');}}else{fHeight=options.height;}if(options.height!=""&&action!='fadeIn'){fHeight=options.height;}else if(options.height==""&&action!='fadeIn'){fHeight=$(this).height();}if(action=='fadeIn'){fader.css({opacity:0});}if(options.animate==false){fader.css({top:fTop,left:fLeft,width:fWidth,height:fHeight});}if(action=='fadeIn'){bgFadeOn(options,fader,aThis);}else if(action=='fadeOut'){bgFadeOff(options,fader,aThis);}});function bgFadeOn(options,fader,aThis){if(options.animate==true){aThis.stop().animate({top:fTop,left:fLeft,width:fWidth,height:fHeight},options.fadeSpeed);fader.stop().animate({opacity: options.fadeToOpacity,width:fWidth,height:fHeight},options.fadeSpeed);}else{fader.stop().fadeTo(options.fadeSpeed,options.fadeToOpacity);}}function bgFadeOff(options,fader,aThis){if(options.animate==true){aThis.stop().animate({top:fTop,left:fLeft,width:fWidth,height:fHeight},options.fadeSpeed);fader.stop().animate({opacity:options.fadeToOpacity},options.fadeSpeed,function(){if(options.fadeToOpacity==0){$(this).remove();}else{$(this).parent().find('.bg_fade').not($(this)).remove();}});}else{fader.stop().fadeTo(options.fadeSpeed,options.fadeToOpacity,function(){if(options.fadeToOpacity==0){$(this).remove();}else{$(this).parent().find('.bg_fade').not($(this)).remove();}});}}};})(jQuery);

/***------------------------------------------------------------------------------------------------
	Smooth Scrolling
------------------------------------------------------------------------------------------------***/
function enable_smooth_scroll() {function filterPath(string) { return string	.replace(/^\//,'')	.replace(/(index|default).[a-zA-Z]{3,4}$/,'')	.replace(/\/$/,'');}var locationPath = filterPath(location.pathname), scrollElement = 'html, body'; $('html, body').each(function () {var initScrollTop = $(this).attr('scrollTop');$(this).attr('scrollTop', initScrollTop + 1);if ($(this).attr('scrollTop') == initScrollTop + 1) { scrollElement = this.nodeName.toLowerCase(); $(this).attr('scrollTop', initScrollTop); return false;}}); $('a[href*=#]').each(function() {var thisPath = filterPath(this.pathname) || locationPath; if (locationPath == thisPath && (location.hostname == this.hostname || !this.hostname)  && this.hash.replace(/#/, '')) { if ($(this.hash).length) {$(this).click(function(e) { var targetOffset = $(this.hash).offset().top, target = this.hash; e.preventDefault();$(scrollElement).animate( {scrollTop: targetOffset}, 500, function() { location.hash = target; });});}}});}

/***------------------------------------------------------------------------------------------------
	jQuery.ScrollTo - Easy element scrolling using jQuery
------------------------------------------------------------------------------------------------***/
if(typeof $.scrollTo != 'function'){ ;(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);}


/***------------------------------------------------------------------------------------------------
	jQuery.preloader - v0.95 - K Reeve aka BinaryKitten
------------------------------------------------------------------------------------------------***/
(function ($) {
	$.preLoadImages = function(imageList,callback) {
		var pic = [], i, total, loaded = 0;
		if (typeof imageList != 'undefined') {
			if ($.isArray(imageList)) {
				total = imageList.length; // used later
					for (i=0; i < total; i++) {
						pic[i] = new Image();
						pic[i].onload = function() {
							loaded++; // should never hit a race condition due to JS's non-threaded nature
							if (loaded == total) {
								if ($.isFunction(callback)) {
									callback();
								}
							}
						};
						pic[i].src = imageList[i];
					}
			}
			else {
				pic[0] = new Image();
				pic[0].onload = function() {
					if ($.isFunction(callback)) {
						callback();
					}
				}
				pic[0].src = imageList;
			}
		}
		pic = undefined;
	};

	$.preLoadCSSImages = function(callback) {
		var pic = [], i, imageList = [], loaded = 0, total, regex = new RegExp("url\((.*)\)",'i'),spl;
		var cssSheets = document.styleSheets,path,myRules,Rule,match,txt,img,sheetIdx,ruleIdx;
		for (sheetIdx=0;sheetIdx < cssSheets.length;sheetIdx++){
			var sheet = cssSheets[sheetIdx];
			if (typeof sheet.href == 'string' && sheet.href.length > 0) {
				spl = sheet.href.split('/');spl.pop();path = spl.join('/')+'/';
			}
			else {
				path = './';
			}
			myRules = sheet.cssRules ? sheet.cssRules : sheet.rules;
			for (ruleIdx=0;ruleIdx < myRules.length;ruleIdx++) {
				Rule = myRules[ruleIdx];
				
				txt = Rule.cssText ? Rule.cssText : Rule.style.cssText;
				match = regex.exec(txt);
				
				if (match != null) {
					img = match[1].substring(1,match[1].indexOf(')',1));
					if (img.substring(0,4) == 'http') {
						imageList[imageList.length] = img;
					}
					else if ( match[1].substring(1,2) == '/') {
						var p2 = path.split('/');p2.pop();p2.pop();p2x = p2.join("/");
						imageList[imageList.length] = p2x+img;
					}
					else {
						imageList[imageList.length] = path+img;
					}
				}
			};
		};

		total = imageList.length; // used later
		for (i=0; i < total; i++) {
			pic[i] = new Image();
			pic[i].onload = function() {
				loaded++; // should never hit a race condition due to JS's non-threaded nature
				if (loaded == total) {
					if ($.isFunction(callback)) {
						callback();
					}
				}
			};
			pic[i].src = imageList[i];
		}

	};
	$.preLoadAllImages = function(imageList,callback) {
		if (typeof imageList != 'undefined') {
			if ($.isFunction(imageList)) {
				callback = imageList;
			}
			else if (!$.isArray(imageList)) {
				imageList = [imageList];
			}
		}
		$.preLoadCSSImages(function(){
			if (imageList.length > 0) {
				$.preLoadImages(imageList,function(){
					callback();
				});
			}
			else {
				callback();
			}
		});
	}
})(jQuery);


/***------------------------------------------------------------------------------------------------
	Misc jQuery Helper Functions
------------------------------------------------------------------------------------------------***/

// Center any element: $(this).center(x,y); //where x & y are boolean
jQuery.fn.center = function(x,y){
	this.css("position","absolute");
	if(x){this.css("left",($(window).width()-this.width())/2+$(window).scrollLeft()+"px");}
	if(y){this.css("top",( $(window).height()-this.height())/2+$(window).scrollTop()+"px");}
	return this;
};

/***------------------------------------------------------------------------------------------------
	jQuery UI : transParent Enhancement
	: jQuery object array to initialize evaluated functions (in alphabetical order)
------------------------------------------------------------------------------------------------***/
var ui = {

	BackToTop : function(){
		var winH = $(window).height(),pg = $(document.body),pgH = pg.outerHeight();
		var top = '<a class="ui-helper-hidden-accessible" id="top" name="top" />';//$(document.body).children(0).position().top;
		var toTop = '<a href="#top" class="ui-button" title="Back To Top" id="toTop"><span class="ui-icon ui-icon-arrowthickstop-1-n" />Up</a>';
		if(pgH >= winH){if(!$("#top").length){ pg.prepend(top).append(toTop);}}
		/*else{pg.css('margin-top',(winH-pgH)/2);if($("#toTop").length){ toTop.hide();}}*/
		$(window).scroll(function(){if($(window).scrollTop() > $(document.body).children(0).position().top){$("#toTop").animate({'easing':'easeOutExpo','opacity':'show'},800);}else{$("#toTop").animate({'easing':'easeInExpo','opacity':'hide'},800);}});
		if($('#toTop').length){$('#toTop').hide().bind('click',function(event){var $anchor = $(this);$('html, body').stop().animate({scrollTop:$($anchor.attr('href')).offset().top},1500,'easeInOutExpo');event.preventDefault();});}
	},
	
	CenterToPage : function(){
		$(window).resize(function() {
			var elem = $(this);
			elem.css({ position:'absolute', left:($(window).width() - elem.outerWidth()) / 2, top:($(window).height() - elem.outerHeight()) / 2 });
		});
		$(window).resize();
	},
	
	External : function(){
		var thisHost = window.location.host.toLowerCase();
    	$('a[href^="http"]:not(a[href^="http://' + thisHost + '"]):not(a[href^="http://www.' + thisHost + '"]):not(a#live_chat_status),a[href$=".pdf"],.ext').attr('target', '_blank');
		
	},
	
	Input : function(){
		$("input:text,input:password,textarea").each(function(){
			var inputTxt = $(this).val();
			$(this)
				.val(inputTxt)
				.focus(function(){$(this).val('')})
				.blur(function(){($(this).val() === '')? $(this).val(inputTxt) : null; });
		});
		// Some UI Form Enhancements

    	
		$('input:text,input:password,textarea').addClass("ui-corner-all")
			.focus(function(){ $(this).animate({backgroundPosition:'(0px -28px)',backgroundColor:'#fff'},'slow','easeOutBounce').addClass('focus') })
			.blur(function(){ if ($(this).val().length == 0) $(this).animate({backgroundPosition:'(0px 0px)'},'fast','easeInBounce').removeClass('focus');
		});
	},
	
	Navigation : function(){
		var onNav;
		var onSub;
		$('#menu>div').hide().find('span>div').addClass('ui-corner-all');
		$('#nav>li').animate({'easing':'easeOutExpo','opacity':'show'},'slow');
		
		$('#nav>li.sub').hover(function(){
			onNav = true;
			var subnav = "#"+$(this).find("a").attr("rel");
			$("#menu>div:not(" + subnav + ")").animate({'easing':'easeOutExpo','opacity':'hide'},'fast');
			$(subnav).animate({'easing':'easeOutExpo','opacity':'show'},'slow').hover(function(){ onSub = true; },function(){ onSub = false; $(this).animate({'easing':'easeOutExpo','opacity':'hide'},'fast'); });
		},function(){ onNav = false; });
		
		$('#nav>li.non').hover(function(){ $("#menu>div").animate({'easing':'easeOutExpo','opacity':'hide'},'fast'); }, function(){});
		setInterval(function(){if( !onNav && !onSub ){$("#menu>div").animate({'easing':'easeOutExpo','opacity':'hide'},'fast');};}, 500);
		

	},
	
	Selectmenu : function(){
		var addressFormatting = function(text) { var newText = text, findreps = [ {find:/^([^\-]+) \- /g, rep:'<span class="ui-selectmenu-item-header">$1</span>'}, {find:/([^\|><]+) \| /g, rep:'<span class="ui-selectmenu-item-content">$1</span>'}, {find:/([^\|><\(\)]+) (\()/g, rep:'<span class="ui-selectmenu-item-content">$1</span>$2'}, {find:/([^\|><\(\)]+)$/g, rep:'<span class="ui-selectmenu-item-content">$1</span>'}, {find:/(\([^\|><]+\))$/g, rep:'<span class="ui-selectmenu-item-footer">$1</span>'} ]; for(var i in findreps) { newText = newText.replace(findreps[i].find, findreps[i].rep);} return newText;};
		$("select").selectmenu({maxHeight:350,width:200,style:'popup',menuWidth:175,format:addressFormatting,icons:[{find:'.script',icon:'ui-icon-script'},{find:'.image',icon:'ui-icon-image'},{find:'.font',icon:'ui-icon-document-b'},{find:'.customicons'}]});
	},
	
	SimpleSlide : function(){
		$('#simpleslide img:gt(0)').hide();
		setInterval(function(){$('#simpleslide :first-child').fadeOut().next('img').fadeIn().end().appendTo('#simpleslide');}, 5000);
	},
	
	Sprite : function(){
		$(".sprite").append('<span class="hover" />')
		.each(function(){
			var $span = $('> span.hover', this).css('opacity', 0);
			$(this).hover(function(){ $span.stop().animate({'easing':'easeOutExpo','opacity':'show'},2400);},function(){ $span.stop().animate({'easing':'easeOutExpo','opacity':'hide'},1800);})
		});
	},
	
	UI : function(){
		
		// Zebra Stripe a Data Table
		if($("table.data").length){ $("table.data").find("tr:odd,tr:odd td").addClass('alt');}
		if($("#accordion").length){ $("#accordion").accordion({header:'h3',collapsible:true,icons:{header:'ui-icon-plusthick',headerSelected:'ui-icon-minusthick'},fillSpace:false,event:'click',autoHeight:true, navigation:false,header:'> div > h3'}).sortable({axis:'y',handle:'h3'});}
		if($("#tabs").length){$("#tabs").tabs();}
		if($("#progressbar").length){$("#progressbar").progressbar({value:42});}
		if($("#rangeslider").length){$('#rangeslider').slider({ range:true,values:[13,69]});}
		
		// Rollover Image Swap
		if($(".over").length){$(".over img").hover(function(){$(this).attr('src', $(this).attr('src').split('.').join('_o.'));}, function(){$(this).attr('src', $(this).attr('src').split('_o.').join('.'));});}
		if($(".fade").length){ $(".fade").find("img").hover(function() { this.check = this.check || 1; $(this).stop().fadeTo('slow', this.check++ % 2 == 0 ? 1 : 0.5, 'easeInSine'); }); }
		
		// Icon Support for Basic System Feedback Messaging
		if($(".error").length){ $(".error").prepend('<span class="fugue fugue-cross"></span>').addClass("ui-corner-all")};
		if($(".message").length){ $(".message").prepend('<span class="fugue fugue-paper-plane"></span>').addClass("ui-corner-all")};
		if($(".notice").length){ $(".notice").prepend('<span class="fugue fugue-information-balloon"></span>').addClass("ui-corner-all")};
		if($(".success").length){ $(".success").prepend('<span class="fugue fugue-tick"></span>').addClass("ui-corner-all")};
		if($(".warning").length){ $(".warning").prepend('<span class="fugue fugue-exclamation"></span>').addClass("ui-corner-all")};
		
		// Corner Control
		if($("#nav").length){ $("#nav>li.ui-button").removeClass('ui-corner-all').addClass('ui-corner-top');}
		if($(".box").length){
			$(".box").addClass("ui-widget");
			$(".box h2").addClass("ui-widget-header");
			$(".box").addClass("ui-corner-all");
			$(".box h2").addClass("ui-corner-top");
		}
		
		if($("#stickToTop").length){
			var stickToTop = parseInt($('#stickToTop').offset().top);
			$(window).scroll(function(){ $("#stickToTop").css((parseInt($(window).scrollTop())+parseInt($("#stickToTop").css('margin-top')) > stickToTop) ? {position:'fixed',top:'0px'} : {position:'relative'}); });
		}
		
		// bigTarget
		if($(".bigTarget").length){ $(".bigTarget").bigTarget({hoverClass:'focus ui-corner-all inset',clickZone:'div:eq(0)'});}
		
		// No Right-Click Context Menu
		//$(document).bind("contextmenu",function(event){event.preventDefault()});
		
		// Apply UI Buttons, Buttonsets, and Tooltips
		$(":button:not('ui-button'),button:not('ui-button'),:submit:not('ui-button'),:reset:not('ui-button'),#nav>li").addClass("ui-button");
    	if($(".ui-button").length){$(".ui-button").button();}
		if($(".ui-buttonset").length){$(".ui-buttonset").buttonset();}
		if($(".tooltip").length){$(".tooltip:not('.ui-tooltip'),.ui-tooltip").tooltip({open:function(){var tooltip=$(this).tooltip("widget");$(document).mousemove(function(event){tooltip.position({my:"left center",at:"right center",offset:"25 -25",of:event});}).mousemove();},close:function(){$(document).unbind("mousemove");}});}
		
		$.preLoadAllImages('css/custom-theme/images/ui-anim_basic_16x16.gif',function(){$('<img />').attr({src:'css/custom-theme/images/ui-anim_basic_16x16.gif',id:'loader'}).appendTo('#position');$.preLoadCSSImages(function(){$('#loader').remove();})});

	},
	
	Webfont : function(){ WebFont.load({ google:{families:['Droid Sans:regular,900']}, custom:{families:['AvantGarde','SegoeUI'], urls:['css/fonts/AvantGarde/stylesheet.css','css/fonts/SegoeUI/stylesheet.css']}});}

};

// I N S T A N T I A T I O N //
jQuery(function($){
	if($(".center").length)			ui.CenterToPage();
	if($("a,.ext").length)				ui.External();
	if($("#nav").length)				ui.Navigation();
	//if($("input").length)				ui.Input();
	//if($("select").length)				ui.Selectmenu();
	if($('#simpleslide').length)		ui.SimpleSlide();
	if($(".sprite").length)			ui.Sprite();
	// Functions Called Automatically
	ui.BackToTop();
	ui.Webfont();
	ui.UI();	// > ALWAYS call last.								  
});

/* EOF */