/*	- External Link (rel="external") - Automatic
	- autofill
	- alphanumeric
	- browser
	- CFJS
	- confirmLink (SunStar Media)
	- cookies
	- download
	- Elastic
	- expander
	- filestyle
	- fixedtableheader
	- form extensions
	- highlight
	- Masked Input
	- Multilevel subselect
	- passroids
	- pngFix
	- preload
	  - domroll
	- showPassword
	- SWFObject
	- thickbox
	- toggleCheckboxes
*/


/*	Auto-Fill Plugin Written by Joe Sak
	http://plugins.jquery.com/project/jQuery-AutoFill
	http://www.joesak.com/2008/11/19/a-jquery-function-to-auto-fill-input-fields-and-clear-them-on-click/  */
(function($){$.fn.autofill=function(options){var defaults={value:'First Name',defaultTextColor:"#b2adad",activeTextColor:"#333"};var options=$.extend(defaults,options);return this.each(function(){var obj=$(this);obj.css({color:options.defaultTextColor}).val(options.value).focus(function(){if(obj.val()==options.value){obj.val("").css({color:options.activeTextColor});}}).blur(function(){if(obj.val()==""){obj.css({color:options.defaultTextColor}).val(options.value);}});});};})(jQuery);


/*	Copyright (c) 2006-2008 Sam Collett (http://www.texotela.co.uk)
	Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
	and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
	Version 2.1
	http://www.texotela.co.uk/code/jquery/checkboxes/  */
;(function(d){d.fn.toggleCheckboxes=function(a,b){a=a||"*";b=b||false;var c=d([]);this.each(function(){var e=d("input[type=checkbox]",this).filter(a).each(function(){this.checked=!this.checked}).filter(":checked");c=e});if(!b){c=this}return c};d.fn.checkCheckboxes=function(a,b){a=a||"*";b=b||false;var c=d([]);this.each(function(){var e=d("input[type=checkbox]",this).filter(a).each(function(){this.checked=true}).filter(":checked");c=e});if(!b){c=this}return c};d.fn.unCheckCheckboxes=function(a,b){a=a||"*";b=b||false;var c=d([]);this.each(function(){var e=d("input[type=checkbox]",this).filter(a).each(function(){this.checked=false}).filter(":not(:checked)");c=e});if(!b){c=this}return c};d.radioCheckboxGroup=function(e,a){a=a||"*";var b="input[type=checkbox]";if(e){b+="[name="+e+"]"}var c=d(b).filter(a);c.click(function(){c.not(this).each(function(){this.checked=false}).end()})}})(jQuery);

/*	jQuery browser plugin detection 1.0.2
	http://plugins.jquery.com/project/jqplugin
	Checks for plugins / mimetypes supported in the browser extending the jQuery.browser object
	Copyright (c) 2008 Leonardo Rossetti motw.leo@gmail.com 
	jQuery.browser.flash sl/pdf/java/qtime/wmp/shk/rp (returns true or false)
*/
(function($){if(typeof $.browser==="undefined"||!$.browser){var browser={};$.extend(browser);}
var pluginList={flash:{activex:"ShockwaveFlash.ShockwaveFlash",plugin:/flash/gim},sl:{activex:["AgControl.AgControl"],plugin:/silverlight/gim},pdf:{activex:"PDF.PdfCtrl",plugin:/adobe\s?acrobat/gim},qtime:{activex:"QuickTime.QuickTime",plugin:/quicktime/gim},wmp:{activex:"WMPlayer.OCX",plugin:/(windows\smedia)|(Microsoft)/gim},shk:{activex:"SWCtl.SWCtl",plugin:/shockwave/gim},rp:{activex:"RealPlayer",plugin:/realplayer/gim},java:{activex:navigator.javaEnabled(),plugin:/java/gim}};var isSupported=function(p){if(window.ActiveXObject){try{new ActiveXObject(pluginList[p].activex);$.browser[p]=true;}catch(e){$.browser[p]=false;}}else{$.each(navigator.plugins,function(){if(this.name.match(pluginList[p].plugin)){$.browser[p]=true;return false;}else{$.browser[p]=false;}});}};$.each(pluginList,function(i,n){isSupported(i);});})(jQuery);


/*	Multilevel subselect
	http://www.ajaxray.com/blog/2007/11/08/jquery-controlled-dependent-or-cascading-select-list-2/
	$(document).ready(function(){
		makeSublist('child','grandsun', true, '');	
		makeSublist('parent','child', false, '1');	
	});  */
function makeSublist(parent,child,isSubselectOptional,childVal){
	$("body").append('<select style="display:none" id="'+parent+child+'"></select>');
	$('#'+parent+child).html($('#'+child+' option'));
	var parentValue = $('#'+parent).attr('value');
	$('#'+child).html($('#'+parent+child+' .sub_'+parentValue).clone());
	childVal = (typeof childVal == 'undefined')? '' : childVal ;
//	$("#"+child+' option[@value="'+ childVal +'"]').attr('selected','selected');
	$("#"+child).val(childVal).attr('selected','selected');
	$('#'+parent).change( function(){
		var parentValue = $('#'+parent).attr('value');
		$('#'+child).html($("#"+parent+child+" .sub_"+parentValue).clone());
		if(isSubselectOptional) $('#'+child).prepend('<option value="none">none</option>');
		$('#'+child).trigger('change');
		$('#'+child).focus();
	});
}


/*  highlight
	http://www.unwrongest.com/projects/highlight/
	http://code.google.com/p/jquery-highlight/  */
(function($){$.fn.extend({highlight:function(h){function findText(a,b){if(a.nodeType==3)return searchText(a,b);else if(a.nodeType==1&&a.childNodes&&!(/(script|style)/i.test(a.tagName))){for(var i=0;i<a.childNodes.length;++i){i+=findText(a.childNodes[i],b)}}return 0}function searchText(a,b){var c=a.data.toUpperCase().indexOf(b);if(c>=0)return highlight(a,c,b);else return 0}function highlight(a,b,c){var d=document.createElement('span');d.className='highlight';var e=a.splitText(b);var f=e.splitText(c.length);var g=e.cloneNode(true);d.appendChild(g);e.parentNode.replaceChild(d,e);return 1}return this.each(function(){if(typeof h=='string')findText(this,h.toUpperCase());else for(var i=0;i<h.length;++i)findText(this,h[i].toUpperCase())})}})})(jQuery);



/*	Masked Input plugin for jQuery
	Copyright (c) 2007-2009 Josh Bush (digitalbush.com)
	Licensed under the MIT license (http://digitalbush.com/projects/masked-input-plugin/#license) 
	Version: 1.2.2 (03/09/2009 22:39:06)  */
(function(a){var c=(a.browser.msie?"paste":"input")+".mask";var b=(window.orientation!=undefined);a.mask={definitions:{"9":"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"}};a.fn.extend({caret:function(e,f){if(this.length==0){return}if(typeof e=="number"){f=(typeof f=="number")?f:e;return this.each(function(){if(this.setSelectionRange){this.focus();this.setSelectionRange(e,f)}else{if(this.createTextRange){var g=this.createTextRange();g.collapse(true);g.moveEnd("character",f);g.moveStart("character",e);g.select()}}})}else{if(this[0].setSelectionRange){e=this[0].selectionStart;f=this[0].selectionEnd}else{if(document.selection&&document.selection.createRange){var d=document.selection.createRange();e=0-d.duplicate().moveStart("character",-100000);f=e+d.text.length}}return{begin:e,end:f}}},unmask:function(){return this.trigger("unmask")},mask:function(j,d){if(!j&&this.length>0){var f=a(this[0]);var g=f.data("tests");return a.map(f.data("buffer"),function(l,m){return g[m]?l:null}).join("")}d=a.extend({placeholder:"_",completed:null},d);var k=a.mask.definitions;var g=[];var e=j.length;var i=null;var h=j.length;a.each(j.split(""),function(m,l){if(l=="?"){h--;e=m}else{if(k[l]){g.push(new RegExp(k[l]));if(i==null){i=g.length-1}}else{g.push(null)}}});return this.each(function(){var r=a(this);var m=a.map(j.split(""),function(x,y){if(x!="?"){return k[x]?d.placeholder:x}});var n=false;var q=r.val();r.data("buffer",m).data("tests",g);function v(x){while(++x<=h&&!g[x]){}return x}function t(x){while(!g[x]&&--x>=0){}for(var y=x;y<h;y++){if(g[y]){m[y]=d.placeholder;var z=v(y);if(z<h&&g[y].test(m[z])){m[y]=m[z]}else{break}}}s();r.caret(Math.max(i,x))}function u(y){for(var A=y,z=d.placeholder;A<h;A++){if(g[A]){var B=v(A);var x=m[A];m[A]=z;if(B<h&&g[B].test(x)){z=x}else{break}}}}function l(y){var x=a(this).caret();var z=y.keyCode;n=(z<16||(z>16&&z<32)||(z>32&&z<41));if((x.begin-x.end)!=0&&(!n||z==8||z==46)){w(x.begin,x.end)}if(z==8||z==46||(b&&z==127)){t(x.begin+(z==46?0:-1));return false}else{if(z==27){r.val(q);r.caret(0,p());return false}}}function o(B){if(n){n=false;return(B.keyCode==8)?false:null}B=B||window.event;var C=B.charCode||B.keyCode||B.which;var z=a(this).caret();if(B.ctrlKey||B.altKey||B.metaKey){return true}else{if((C>=32&&C<=125)||C>186){var x=v(z.begin-1);if(x<h){var A=String.fromCharCode(C);if(g[x].test(A)){u(x);m[x]=A;s();var y=v(x);a(this).caret(y);if(d.completed&&y==h){d.completed.call(r)}}}}}return false}function w(x,y){for(var z=x;z<y&&z<h;z++){if(g[z]){m[z]=d.placeholder}}}function s(){return r.val(m.join("")).val()}function p(y){var z=r.val();var C=-1;for(var B=0,x=0;B<h;B++){if(g[B]){m[B]=d.placeholder;while(x++<z.length){var A=z.charAt(x-1);if(g[B].test(A)){m[B]=A;C=B;break}}if(x>z.length){break}}else{if(m[B]==z[x]&&B!=e){x++;C=B}}}if(!y&&C+1<e){r.val("");w(0,h)}else{if(y||C+1>=e){s();if(!y){r.val(r.val().substring(0,C+1))}}}return(e?B:i)}if(!r.attr("readonly")){r.one("unmask",function(){r.unbind(".mask").removeData("buffer").removeData("tests")}).bind("focus.mask",function(){q=r.val();var x=p();s();setTimeout(function(){if(x==j.length){r.caret(0,x)}else{r.caret(x)}},0)}).bind("blur.mask",function(){p();if(r.val()!=q){r.change()}}).bind("keydown.mask",l).bind("keypress.mask",o).bind(c,function(){setTimeout(function(){r.caret(p(true))},0)})}p()})}})})(jQuery);



/*  File Style
http://www.appelsiini.net/projects/filestyle
http://www.letstalkdev.com/development/styling-the-file-input/  */
(function($){$.fn.filestyle=function(options){var settings={width:250};if(options){$.extend(settings,options);};return this.each(function(){var self=this;var wrapper=$("<div>").css({"width":settings.imagewidth+"px","height":settings.imageheight+"px","background":"url("+settings.image+") 0 0 no-repeat","background-position":"right","display":"inline","position":"absolute","overflow":"hidden"});var filename=$('<input class="file">').addClass($(self).attr("class")).css({"display":"inline","width":settings.width+"px"});$(self).before(filename);$(self).wrap(wrapper);$(self).css({"position":"relative","height":settings.imageheight+"px","width":settings.width+"px","display":"inline","cursor":"pointer","opacity":"0.0"});if($.browser.mozilla){if(/Win/.test(navigator.platform)){$(self).css("margin-left","-142px");}else{$(self).css("margin-left","-168px");};}else{$(self).css("margin-left",settings.imagewidth-settings.width+"px");};$(self).bind("change",function(){filename.val($(self).val());});});};})(jQuery);




/*	jQuery.Preload - Multifunctional preloader
	Copyright (c) 2008 Ariel Flesler - aflesler(at)gmail(dot)com
	Dual licensed under MIT and GPL.
	Date: 3/25/2009
	@author Ariel Flesler
	@version 1.0.8
	http://flesler.blogspot.com/2008/01/jquerypreload.html */
(function($){var h=$.preload=function(c,d){if(c.split)c=$(c);d=$.extend({},h.defaults,d);var f=$.map(c,function(a){if(!a)return;if(a.split)return d.base+a+d.ext;var b=a.src||a.href;if(typeof d.placeholder=='string'&&a.src)a.src=d.placeholder;if(b&&d.find)b=b.replace(d.find,d.replace);return b||null}),data={loaded:0,failed:0,next:0,done:0,total:f.length};if(!data.total)return finish();var g=$(Array(d.threshold+1).join('<img/>')).load(handler).error(handler).bind('abort',handler).each(fetch);function handler(e){data.element=this;data.found=e.type=='load';data.image=this.src;data.index=this.index;var a=data.original=c[this.index];data[data.found?'loaded':'failed']++;data.done++;if(d.enforceCache)h.cache.push($('<img/>').attr('src',data.image)[0]);if(d.placeholder&&a.src)a.src=data.found?data.image:d.notFound||a.src;if(d.onComplete)d.onComplete(data);if(data.done<data.total)fetch(0,this);else{if(g&&g.unbind)g.unbind('load').unbind('error').unbind('abort');g=null;finish()}};function fetch(i,a,b){if(a.attachEvent&&data.next&&data.next%h.gap==0&&!b){setTimeout(function(){fetch(i,a,1)},0);return!1}if(data.next==data.total)return!1;a.index=data.next;a.src=f[data.next++];if(d.onRequest){data.index=a.index;data.element=a;data.image=a.src;data.original=c[data.next-1];d.onRequest(data)}};function finish(){if(d.onFinish)d.onFinish(data)}};h.gap=14;h.cache=[];h.defaults={threshold:2,base:'',ext:'',replace:''};$.fn.preload=function(a){h(this,a);return this}})(jQuery);



/*	jQuery Form Extensions 1.0
	http://code.google.com/p/jquery-form-extensions/
	Copyright (c) 2009 C.Small
	Licensed under the MIT license.
	Date: 21:31 20/05/2009
	http://code.google.com/p/jquery-form-extensions/  */
(function(a){a.fn.elementExists=function(){return jQuery(this).length>0}})(jQuery);(function(a){a.fn.formElementType=function(){if(jQuery(this).elementExists()){return jQuery(this).attr("type")}else{return""}}})(jQuery);(function(a){a.fn.isTextBox=function(){return(jQuery(this).formElementType()==="text")}})(jQuery);(function(a){a.fn.isTextArea=function(){return(jQuery(this).formElementType()==="textarea")}})(jQuery);(function(a){a.fn.isPassword=function(){return(jQuery(this).formElementType()==="password")}})(jQuery);(function(a){a.fn.isHiddenInput=function(){return(jQuery(this).formElementType()==="hidden")}})(jQuery);(function(a){a.fn.isCheckBox=function(){return(jQuery(this).formElementType()==="checkbox")}})(jQuery);(function(a){a.fn.isRadioBox=function(){return(jQuery(this).formElementType()==="radio")}})(jQuery);(function(a){a.fn.isButton=function(){return(jQuery(this).formElementType()==="button")}})(jQuery);(function(a){a.fn.isSubmitButton=function(){return(jQuery(this).formElementType()==="submit")}})(jQuery);(function(a){a.fn.isResetButton=function(){return(jQuery(this).formElementType()==="reset")}})(jQuery);(function(a){a.fn.isSelectBox=function(){var c=jQuery(this).formElementType();var b=(this).attr("size");if(c!=="select-one"){return false}else{if(typeof b==="undefined"){return false}else{return(parseInt(b)>1)}}}})(jQuery);(function(a){a.fn.isMultiSelectBox=function(){return(jQuery(this).formElementType()==="select-multiple")}})(jQuery);(function(a){a.fn.isDropDownList=function(){var c=jQuery(this).formElementType();var b=(this).attr("size");if(c!=="select-one"){return false}else{if(typeof b==="undefined"){return true}else{return(parseInt(b)<=1)}}}})(jQuery);(function(a){a.fn.isChecked=function(){var b=jQuery(this);return b.is(":checked")}})(jQuery);(function(a){a.fn.isSelected=function(){var f=jQuery(this);if(arguments.length===0){return false}var b=false;var d=arguments[0];var c=arguments;if(f.isRadioBox()){var e=jQuery("input[type='radio'][name='"+f.attr("name")+"'][checked]");if(e.length===1){return(d===e.val())}}else{if(f.isSelectBox()||f.isDropDownList()){var e=jQuery("#"+f.attr("id")+" option:selected");if(e.length===1){return(d===e.val())}}else{if(f.isMultiSelectBox()){var e=jQuery("#"+f.attr("id")+" option:selected");jQuery.each(e,function(){var h=jQuery(this);b=false;for(var g=0;g<c.length;g++){if(c[g]===h.val()){b=true;break}}})}}}return b}})(jQuery);(function(a){a.fn.selectedItem=function(b){var d=jQuery(this);if(typeof b==="undefined"||isNaN(b)){b=0}if(d.isRadioBox()){var c=jQuery("input[type='radio'][name='"+d.attr("name")+"'][checked]");if(b>c.length-1){b=c.length-1}else{if(b<0){b=0}}if(c.length>0){return jQuery(c[b])}}else{if(d.isSelectBox()||d.isMultiSelectBox()||d.isDropDownList()){var c=jQuery("#"+d.attr("id")+" option:selected");if(b>c.length-1){b=c.length-1}else{if(b<0){b=0}}if(c.length>0){return jQuery(c[b])}}}return d}})(jQuery);(function(a){a.fn.firstSelectedItem=function(){return jQuery(this).selectedItem()}})(jQuery);(function(a){a.fn.lastSelectedItem=function(){return jQuery(this).selectedItem(Number.MAX_VALUE)}})(jQuery);(function(a){a.fn.selectedValue=function(){var b=jQuery(this);return b.selectedItem(0).val()}})(jQuery);(function(a){a.fn.selectedValues=function(){var b=[];var d=jQuery(this);if(d.isMultiSelectBox()){var c=jQuery("#"+d.attr("id")+" option:selected");jQuery.each(c,function(){b.push(jQuery(this).val())})}else{b.push(d.selectedValue())}return b}})(jQuery);(function(a){a.fn.itemExists=function(e){var f=jQuery(this);var b=false;if(f.isRadioBox()){var d=jQuery("input[type='radio'][name='"+f.attr("name")+"'][value='"+e+"']");b=(d.length===1)}else{if(f.isSelectBox()||f.isMultiSelectBox()||f.isDropDownList()){var c=jQuery("#"+f.attr("id")+" option");jQuery.each(c,function(){if(jQuery(this).val()===e){b=true;return false}})}else{return(jQuery(this).val()===e)}}return b}})(jQuery);




/*	Copyright (c) 2005 - 2009, James Auldridge
	All rights reserved.
	Licensed under the BSD, MIT, and GPL (your choice!) Licenses:
	http://code.google.com/p/cookies/
	http://code.google.com/p/cookies/wiki/License
	http://code.google.com/p/cookies/wiki/Documentation   */
var jaaulde=window.jaaulde||{};jaaulde.utils=jaaulde.utils||{};jaaulde.utils.cookies=(function()
{var cookies=[];var defaultOptions={hoursToLive:null,path:'/',domain:null,secure:false};var resolveOptions=function(options)
{var returnValue;if(typeof options!=='object'||options===null)
{returnValue=defaultOptions;}
else
{returnValue={hoursToLive:(typeof options.hoursToLive==='number'&&options.hoursToLive!==0?options.hoursToLive:defaultOptions.hoursToLive),path:(typeof options.path==='string'&&options.path!==''?options.path:defaultOptions.path),domain:(typeof options.domain==='string'&&options.domain!==''?options.domain:defaultOptions.domain),secure:(typeof options.secure==='boolean'&&options.secure?options.secure:defaultOptions.secure)};}
return returnValue;};var expiresGMTString=function(hoursToLive)
{var dateObject=new Date();dateObject.setTime(dateObject.getTime()+(hoursToLive*60*60*1000));return dateObject.toGMTString();};var assembleOptionsString=function(options)
{options=resolveOptions(options);return((typeof options.hoursToLive==='number'?'; expires='+expiresGMTString(options.hoursToLive):'')+'; path='+options.path+
(typeof options.domain==='string'?'; domain='+options.domain:'')+
(options.secure===true?'; secure':''));};var splitCookies=function()
{cookies={};var pair,name,value,separated=document.cookie.split(';');for(var i=0;i<separated.length;i=i+1)
{pair=separated[i].split('=');name=pair[0].replace(/^\s*/,'').replace(/\s*$/,'');value=decodeURIComponent(pair[1]);cookies[name]=value;}
return cookies;};var constructor=function(){};constructor.prototype.get=function(cookieName)
{var returnValue;splitCookies();if(typeof cookieName==='string')
{returnValue=(typeof cookies[cookieName]!=='undefined')?cookies[cookieName]:null;}
else if(typeof cookieName==='object'&&cookieName!==null)
{returnValue={};for(var item in cookieName)
{if(typeof cookies[cookieName[item]]!=='undefined')
{returnValue[cookieName[item]]=cookies[cookieName[item]];}
else
{returnValue[cookieName[item]]=null;}}}
else
{returnValue=cookies;}
return returnValue;};constructor.prototype.filter=function(cookieNameRegExp)
{var returnValue={};splitCookies();if(typeof cookieNameRegExp==='string')
{cookieNameRegExp=new RegExp(cookieNameRegExp);}
for(var cookieName in cookies)
{if(cookieName.match(cookieNameRegExp))
{returnValue[cookieName]=cookies[cookieName];}}
return returnValue;};constructor.prototype.set=function(cookieName,value,options)
{if(typeof value==='undefined'||value===null)
{if(typeof options!=='object'||options===null)
{options={};}
value='';options.hoursToLive=-8760;}
var optionsString=assembleOptionsString(options);document.cookie=cookieName+'='+encodeURIComponent(value)+optionsString;};constructor.prototype.del=function(cookieName,options)
{var allCookies={};if(typeof options!=='object'||options===null)
{options={};}
if(typeof cookieName==='boolean'&&cookieName===true)
{allCookies=this.get();}
else if(typeof cookieName==='string')
{allCookies[cookieName]=true;}
for(var name in allCookies)
{if(typeof name==='string'&&name!=='')
{this.set(name,null,options);}}};constructor.prototype.test=function()
{var returnValue=false,testName='cT',testValue='data';this.set(testName,testValue);if(this.get(testName)===testValue)
{this.del(testName);returnValue=true;}
return returnValue;};constructor.prototype.setOptions=function(options)
{if(typeof options!=='object')
{options=null;}
defaultOptions=resolveOptions(options);};return new constructor();})();(function()
{if(window.jQuery)
{(function($)
{$.cookies=jaaulde.utils.cookies;var extensions={cookify:function(options)
{return this.each(function()
{var i,resolvedName=false,resolvedValue=false,name='',value='',nameAttrs=['name','id'],nodeName,inputType;for(i in nameAttrs)
{if(!isNaN(i))
{name=$(this).attr(nameAttrs[i]);if(typeof name==='string'&&name!=='')
{resolvedName=true;break;}}}
if(resolvedName)
{nodeName=this.nodeName.toLowerCase();if(nodeName!=='input'&&nodeName!=='textarea'&&nodeName!=='select'&&nodeName!=='img')
{value=$(this).html();resolvedValue=true;}
else
{inputType=$(this).attr('type');if(typeof inputType==='string'&&inputType!=='')
{inputType=inputType.toLowerCase();}
if(inputType!=='radio'&&inputType!=='checkbox')
{value=$(this).val();resolvedValue=true;}}
if(resolvedValue)
{if(typeof value!=='string'||value==='')
{value=null;}
$.cookies.set(name,value,options);}}});},cookieFill:function()
{return this.each(function()
{var i,resolvedName=false,name='',value,nameAttrs=['name','id'],iteration=0,nodeName;for(i in nameAttrs)
{if(!isNaN(i))
{name=$(this).attr(nameAttrs[i]);if(typeof name==='string'&&name!=='')
{resolvedName=true;break;}}}
if(resolvedName)
{value=$.cookies.get(name);if(value!==null)
{nodeName=this.nodeName.toLowerCase();if(nodeName==='input'||nodeName==='textarea'||nodeName==='select')
{$(this).val(value);}
else
{$(this).html(value);}}}
iteration=0;});},cookieBind:function(options)
{return this.each(function()
{$(this).cookieFill().change(function()
{$(this).cookify(options);});});}};$.each(extensions,function(i)
{$.fn[i]=this;});})(window.jQuery);}})();




/*	jQuery PassRoids - Password strength meter and match verifier
	http://www.thecreativeoutfit.com
	$('#editForm').passroids({main:'#NewPassword',verify:'#VerifyPassword',button:'#PasswordBtn',minimum:1});
	#psr_score {display:inline; padding-left:10px;}
	#psr_verify {display:inline; padding-left:10px;}
	#psr_strength_notice {display:inline; padding-left:10px;}
	.psr_Weak {color:#A52A2A;}
	.psr_Medium {color:#FFA500;}
	.psr_Strong {color:#3DBE5E;}
	.psr_Excellent {color:#416EC2;}  */
jQuery.fn.passroids=function(o){var o=jQuery.extend({main:'#password',verify:null,button:null,minimum:0},o);jQuery(o.main).after('<div id="psr_score"></div>');if(o.verify!=null){jQuery(o.verify).after('<div id="psr_verify"></div>');}
if(o.button!=null){jQuery(o.button).after('<div id="psr_strength_notice"></div>');}
if(o.button!=null){jQuery(o.button).attr('disabled','true');}
function testPass(v){var s=0
if(v.length<5){s=(s+3);}
else if(v.length>4&&v.length<8){s=(s+6);}
else if(v.length>7&&v.length<16){s=(s+12);}
else if(v.length>15){s=(s+18);}
if(v.match(/[a-z]/)){s=(s+1);}
if(v.match(/[A-Z]/)){s=(s+5);}
if(v.match(/\d+/)){s=(s+5);}
if(v.match(/(.*[0-9].*[0-9].*[0-9])/)){s=(s+5);}
if(v.match(/.[!,@,#,$,%,^,&,*,?,_,~]/)){s=(s+5);}
if(v.match(/(.*[!,@,#,$,%,^,&,*,?,_,~].*[!,@,#,$,%,^,&,*,?,_,~])/)){s=(s+5);}
if(v.match(/([a-z].*[A-Z])|([A-Z].*[a-z])/)){s=(s+4);}
if(v.match(/([a-zA-Z])/)&&v.match(/([0-9])/)){s=(s+4);}
if(v.match(/([a-zA-Z0-9].*[!,@,#,$,%,^,&,*,?,_,~])|([!,@,#,$,%,^,&,*,?,_,~].*[a-zA-Z0-9])/)){s=(s+7);}
return s;}
function evalScore(s){var strength=0;switch(true){case s<=13:strength=0;break;case s>=14&&s<=27:strength=1;break;case s>=28&&s<=40:strength=2;break;case s>=41:strength=3;break;}
return strength;}
function changeButtonState(v){var val=jQuery(o.main).val();var s=testPass(val);var strength=evalScore(s);if(o.button!=null){if(v==1&&strength>=o.minimum){jQuery(o.button).attr('disabled','');jQuery('#psr_strength_notice').html('');}
else{jQuery(o.button).attr('disabled','true');if(strength<o.minimum){jQuery('#psr_strength_notice').html('Please choose a stronger password.')}}}}
return this.each(function(){jQuery(o.main).keyup(function(){var val=jQuery(o.main).val();var s=0;if(val!=''){var s=testPass(val);}
var levels=new Array();levels[0]="Weak";levels[1]="Medium";levels[2]="Strong";levels[3]="Excellent";var strength=evalScore(s);jQuery('#psr_score').html('Strength: <span class=psr_'+levels[strength]+'>'+levels[strength]+'</span>');});if(o.verify!=null){jQuery(o.verify).keyup(function(){var main=jQuery(o.main).val();var verify=jQuery(o.verify).val();if(main==verify){jQuery('#psr_verify').html('');changeButtonState(1);}});jQuery(o.verify).blur(function(){var main=jQuery(o.main).val();var verify=jQuery(o.verify).val();if(main!=verify){jQuery('#psr_verify').html('Passwords do not match');changeButtonState(0);}});}});};




/*	Thickbox 3 - One Box To Rule Them All.
	By Cody Lindley (http://www.codylindley.com)
	Copyright (c) 2007 cody lindley
	Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php  */
var tb_pathToImage = "/_scriptsGlobal/jquery/thickboxAnimation.gif";
$(function(){tb_init('a.thickbox, area.thickbox, input.thickbox');imgLoader=new Image();imgLoader.src=tb_pathToImage;});function tb_init(domChunk){$(domChunk).click(function(){var t=this.title||this.name||null;var a=this.href||this.alt;var g=this.rel||false;tb_show(t,a,g);this.blur();return false;});}
function tb_show(caption,url,imageGroup){try{if(typeof document.body.style.maxHeight==="undefined"){$("body","html").css({height:"100%",width:"100%"});$("html").css("overflow","hidden");if(document.getElementById("TB_HideSelect")===null){$("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>");$("#TB_overlay").click(tb_remove);}}else{if(document.getElementById("TB_overlay")===null){$("body").append("<div id='TB_overlay'></div><div id='TB_window'></div>");$("#TB_overlay").click(tb_remove);}}
if(tb_detectMacXFF()){$("#TB_overlay").addClass("TB_overlayMacFFBGHack");}else{$("#TB_overlay").addClass("TB_overlayBG");}
if(caption===null){caption="";}
$("body").append("<div id='TB_load'><img src='"+imgLoader.src+"' /></div>");$('#TB_load').show();var baseURL;if(url.indexOf("?")!==-1){baseURL=url.substr(0,url.indexOf("?"));}else{baseURL=url;}
var urlString=/\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/;var urlType=baseURL.toLowerCase().match(urlString);if(urlType=='.jpg'||urlType=='.jpeg'||urlType=='.png'||urlType=='.gif'||urlType=='.bmp'){TB_PrevCaption="";TB_PrevURL="";TB_PrevHTML="";TB_NextCaption="";TB_NextURL="";TB_NextHTML="";TB_imageCount="";TB_FoundURL=false;if(imageGroup){TB_TempArray=$("a[@rel="+imageGroup+"]").get();for(TB_Counter=0;((TB_Counter<TB_TempArray.length)&&(TB_NextHTML===""));TB_Counter++){var urlTypeTemp=TB_TempArray[TB_Counter].href.toLowerCase().match(urlString);if(!(TB_TempArray[TB_Counter].href==url)){if(TB_FoundURL){TB_NextCaption=TB_TempArray[TB_Counter].title;TB_NextURL=TB_TempArray[TB_Counter].href;TB_NextHTML="<span id='TB_next'>&nbsp;&nbsp;<a href='#'>Next &gt;</a></span>";}else{TB_PrevCaption=TB_TempArray[TB_Counter].title;TB_PrevURL=TB_TempArray[TB_Counter].href;TB_PrevHTML="<span id='TB_prev'>&nbsp;&nbsp;<a href='#'>&lt; Prev</a></span>";}}else{TB_FoundURL=true;TB_imageCount="Image "+(TB_Counter+1)+" of "+(TB_TempArray.length);}}}
imgPreloader=new Image();imgPreloader.onload=function(){imgPreloader.onload=null;var pagesize=tb_getPageSize();var x=pagesize[0]-150;var y=pagesize[1]-150;var imageWidth=imgPreloader.width;var imageHeight=imgPreloader.height;if(imageWidth>x){imageHeight=imageHeight*(x/imageWidth);imageWidth=x;if(imageHeight>y){imageWidth=imageWidth*(y/imageHeight);imageHeight=y;}}else if(imageHeight>y){imageWidth=imageWidth*(y/imageHeight);imageHeight=y;if(imageWidth>x){imageHeight=imageHeight*(x/imageWidth);imageWidth=x;}}
TB_WIDTH=imageWidth+30;TB_HEIGHT=imageHeight+60;$("#TB_window").append("<a href='' id='TB_ImageOff' title='Close'><img id='TB_Image' src='"+url+"' width='"+imageWidth+"' height='"+imageHeight+"' alt='"+caption+"'/></a>"+"<div id='TB_caption'>"+caption+"<div id='TB_secondLine'>"+TB_imageCount+TB_PrevHTML+TB_NextHTML+"</div></div><div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div>");$("#TB_closeWindowButton").click(tb_remove);if(!(TB_PrevHTML==="")){function goPrev(){if($(document).unbind("click",goPrev)){$(document).unbind("click",goPrev);}
$("#TB_window").remove();$("body").append("<div id='TB_window'></div>");tb_show(TB_PrevCaption,TB_PrevURL,imageGroup);return false;}
$("#TB_prev").click(goPrev);}
if(!(TB_NextHTML==="")){function goNext(){$("#TB_window").remove();$("body").append("<div id='TB_window'></div>");tb_show(TB_NextCaption,TB_NextURL,imageGroup);return false;}
$("#TB_next").click(goNext);}
document.onkeydown=function(e){if(e==null){keycode=event.keyCode;}else{keycode=e.which;}
if(keycode==27){tb_remove();}else if(keycode==190){if(!(TB_NextHTML=="")){document.onkeydown="";goNext();}}else if(keycode==188){if(!(TB_PrevHTML=="")){document.onkeydown="";goPrev();}}};tb_position();$("#TB_load").remove();$("#TB_ImageOff").click(tb_remove);$("#TB_window").css({display:"block"});};imgPreloader.src=url;}else{var queryString=url.replace(/^[^\?]+\??/,'');var params=tb_parseQuery(queryString);TB_WIDTH=(params['width']*1)+30||630;TB_HEIGHT=(params['height']*1)+40||440;ajaxContentW=TB_WIDTH-30;ajaxContentH=TB_HEIGHT-45;if(url.indexOf('TB_iframe')!=-1){urlNoQuery=url.split('TB_');$("#TB_iframeContent").remove();if(params['modal']!="true"){$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div></div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;' > </iframe>");}else{$("#TB_overlay").unbind();$("#TB_window").append("<iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;'> </iframe>");}}else{if($("#TB_window").css("display")!="block"){if(params['modal']!="true"){$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'>close</a> or Esc Key</div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px'></div>");}else{$("#TB_overlay").unbind();$("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>");}}else{$("#TB_ajaxContent")[0].style.width=ajaxContentW+"px";$("#TB_ajaxContent")[0].style.height=ajaxContentH+"px";$("#TB_ajaxContent")[0].scrollTop=0;$("#TB_ajaxWindowTitle").html(caption);}}
$("#TB_closeWindowButton").click(tb_remove);if(url.indexOf('TB_inline')!=-1){$("#TB_ajaxContent").append($('#'+params['inlineId']).children());$("#TB_window").unload(function(){$('#'+params['inlineId']).append($("#TB_ajaxContent").children());});tb_position();$("#TB_load").remove();$("#TB_window").css({display:"block"});}else if(url.indexOf('TB_iframe')!=-1){tb_position();if($.browser.safari){$("#TB_load").remove();$("#TB_window").css({display:"block"});}}else{$("#TB_ajaxContent").load(url+="&random="+(new Date().getTime()),function(){tb_position();$("#TB_load").remove();tb_init("#TB_ajaxContent a.thickbox");$("#TB_window").css({display:"block"});});}}
if(!params['modal']){document.onkeyup=function(e){if(e==null){keycode=event.keyCode;}else{keycode=e.which;}
if(keycode==27){tb_remove();}};}}catch(e){}}
function tb_showIframe(){$("#TB_load").remove();$("#TB_window").css({display:"block"});}
function tb_remove(){$("#TB_imageOff").unbind("click");$("#TB_closeWindowButton").unbind("click");$("#TB_window").fadeOut("fast",function(){$('#TB_window,#TB_overlay,#TB_HideSelect').trigger("unload").unbind().remove();});$("#TB_load").remove();if(typeof document.body.style.maxHeight=="undefined"){$("body","html").css({height:"auto",width:"auto"});$("html").css("overflow","");}
document.onkeydown="";document.onkeyup="";return false;}
function tb_position(){$("#TB_window").css({marginLeft:'-'+parseInt((TB_WIDTH/2),10)+'px',width:TB_WIDTH+'px'});if(!(jQuery.browser.msie&&jQuery.browser.version<7)){$("#TB_window").css({marginTop:'-'+parseInt((TB_HEIGHT/2),10)+'px'});}}
function tb_parseQuery(query){var Params={};if(!query){return Params;}
var Pairs=query.split(/[;&]/);for(var i=0;i<Pairs.length;i++){var KeyVal=Pairs[i].split('=');if(!KeyVal||KeyVal.length!=2){continue;}
var key=unescape(KeyVal[0]);var val=unescape(KeyVal[1]);val=val.replace(/\+/g,' ');Params[key]=val;}
return Params;}
function tb_getPageSize(){var de=document.documentElement;var w=window.innerWidth||self.innerWidth||(de&&de.clientWidth)||document.body.clientWidth;var h=window.innerHeight||self.innerHeight||(de&&de.clientHeight)||document.body.clientHeight;arrayPageSize=[w,h];return arrayPageSize;}
function tb_detectMacXFF(){var userAgent=navigator.userAgent.toLowerCase();if(userAgent.indexOf('mac')!=-1&&userAgent.indexOf('firefox')!=-1){return true;}}


/*	jQuery SWFObject Plugin
	http://jquery.thewikies.com/swfobject/	*/
(function(D){var F=document,H="extend",C=function(){},E="join",B="object",G='style="vertical-align:bottom;',A="";D.flashPlayerVersion=(function(){var K,I,N,M,P=false,O="ShockwaveFlash.ShockwaveFlash";if(!(K=navigator.plugins["Shockwave Flash"])){try{I=new ActiveXObject(O+".7")}catch(N){try{I=new ActiveXObject(O+".6");K=[6,0,21];I.AllowScriptAccess="always"}catch(M){if(K&&K[0]==6){P=true}}if(!P){try{I=new ActiveXObject(O)}catch(L){K="X 0,0,0"}}}if(!P&&I){try{K=I.GetVariable("$version")}catch(J){}}}else{K=K.description}K=K.match(/^[A-Za-z\s]*?(\d+)(\.|,)(\d+)(\s+r|,)(\d+)/);return[K[1]*1,K[3]*1,K[5]*1]}());D.flashExpressInstaller="expressInstall.swf";D.hasFlashPlayer=(D.flashPlayerVersion[0]!=0);D.hasFlashPlayerVersion=function(J){var I=D.flashPlayerVersion;J=(/string|number/.test(typeof J))?J.toString().split("."):J;J=[J.major||J[0]||I[0],J.minor||J[1]||I[1],J.release||J[2]||I[2]];return(D.hasFlashPlayer&&(J[0]<I[0]||(J[0]==I[0]&&(J[1]<I[1]||(J[1]==I[1]&&J[2]<=I[2])))))};D.flash=function(R){if(!D.hasFlashPlayer){return false}var J=R.swf||A,P=R.params||{},L=F.createElement("body"),I,Q,M,K,O,N;R.height=R.height||180;R.width=R.width||320;if(R.hasVersion&&!D.hasFlashPlayerVersion(R.hasVersion)){D[H](R,{id:"SWFObjectExprInst",height:Math.max(R.height,137),width:Math.max(R.width,214)});J=R.expressInstaller||D.flashExpressInstaller;P={flashvars:{MMredirectURL:location.href,MMplayerType:(D.browser.msie&&D.browser.win)?"ActiveX":"PlugIn",MMdoctitle:F.title.slice(0,47)+" - Flash Player Installation"}}}if(typeof P==B){if(R.flashvars){P.flashvars=R.flashvars}if(R.wmode){P.wmode=R.wmode}}for(O in (N=["expressInstall","flashvars","hasVersion","params","swf","wmode"])){delete R[N[O]]}I=[];for(O in R){if(typeof R[O]==B){Q=[];for(N in R[O]){Q.push(N.replace(/([A-Z])/,"-$1").toLowerCase()+":"+R[O][N]+";")}R[O]=Q[E](A)}I.push(O+'="'+R[O]+'"')}R=I[E](" ");if(typeof P==B){I=[];for(O in P){if(typeof P[O]==B){Q=[];for(N in P[O]){Q.push([N,"=",encodeURIComponent(P[O][N])][E](A))}P[O]=Q[E]("&amp;")}I.push(['<PARAM NAME="',O,'" VALUE="',P[O],'">'][E](A))}P=I[E](A)}if(!(/style=/.test(R))){R+=" "+G+'"'}if(!(/style=(.*?)vertical-align/.test(R))){R=R.replace(/style="/,G)}if(D.browser.msie){R+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';P='<PARAM NAME="movie" VALUE="'+J+'">'+P}else{R+=' type="application/x-shockwave-flash" data="'+J+'"'}L.innerHTML=["<OBJECT ",R,">",P,"</OBJECT>"][E](A);return D(L.firstChild)};D.fn.flash=function(K){if(!D.hasFlashPlayer){return this}var L=0,I,J;while((J=this.eq(L++))[0]){I=D[H]({beforeEach:C,afterEach:C},K);I.beforeEach.apply(J[0],[K]);J.html(D.flash(I));if(F.getElementById("SWFObjectExprInst")){L=this.length}I.afterEach.apply(J[0],[K])}return this}}(jQuery));

/* 	jQuery-Plugin - $.download - allows for simple get/post requests for files
	by Scott Jehl, scott@filamentgroup.com
	http://www.filamentgroup.com
	reference article: http://www.filamentgroup.com/lab/jquery_plugin_for_requesting_ajax_like_file_downloads/
	Copyright (c) 2008 Filament Group, Inc
	Dual licensed under the MIT (filamentgroup.com/examples/mit-license.txt) and GPL (filamentgroup.com/examples/gpl-license.txt) licenses. */
jQuery.download = function(url, data, method){
	if( url && data ){ 
		data = typeof data == 'string' ? data : jQuery.param(data);
		var inputs = '';
		jQuery.each(data.split('&'), function(){ 
			var pair = this.split('=');
			inputs+='<input type="hidden" name="'+ pair[0] +'" value="'+ pair[1] +'" />'; 
		});
		jQuery('<form action="'+ url +'" method="'+ (method||'post') +'">'+inputs+'</form>')
		.appendTo('body').submit().remove();
	};
};



/*	jQuery alphanumeric
	http://itgroup.com.ph/alphanumeric/  */
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(2($){$.c.f=2(p){p=$.d({g:"!@#$%^&*()+=[]\\\\\\\';,/{}|\\":<>?~`.- ",4:"",9:""},p);7 3.b(2(){5(p.G)p.4+="Q";5(p.w)p.4+="n";s=p.9.z(\'\');x(i=0;i<s.y;i++)5(p.g.h(s[i])!=-1)s[i]="\\\\"+s[i];p.9=s.O(\'|\');6 l=N M(p.9,\'E\');6 a=p.g+p.4;a=a.H(l,\'\');$(3).J(2(e){5(!e.r)k=o.q(e.K);L k=o.q(e.r);5(a.h(k)!=-1)e.j();5(e.u&&k==\'v\')e.j()});$(3).B(\'D\',2(){7 F})})};$.c.I=2(p){6 8="n";8+=8.P();p=$.d({4:8},p);7 3.b(2(){$(3).f(p)})};$.c.t=2(p){6 m="A";p=$.d({4:m},p);7 3.b(2(){$(3).f(p)})}})(C);',53,53,'||function|this|nchars|if|var|return|az|allow|ch|each|fn|extend||alphanumeric|ichars|indexOf||preventDefault||reg|nm|abcdefghijklmnopqrstuvwxyz|String||fromCharCode|charCode||alpha|ctrlKey||allcaps|for|length|split|1234567890|bind|jQuery|contextmenu|gi|false|nocaps|replace|numeric|keypress|which|else|RegExp|new|join|toUpperCase|ABCDEFGHIJKLMNOPQRSTUVWXYZ'.split('|'),0,{}));


/*	jQuery Expander plugin
	http://plugins.learningjquery.com/expander/
	Version 0.4  (12/09/2008)
	Dual licensed under the MIT and GPL licenses:	http://www.opensource.org/licenses/mit-license.php 	http://www.gnu.org/licenses/gpl.html  */
(function($){$.fn.expander=function(options){var opts=$.extend({},$.fn.expander.defaults,options);var delayedCollapse;return this.each(function(){var $this=$(this);var o=$.meta?$.extend({},opts,$this.data()):opts;var cleanedTag,startTags,endTags;var allText=$this.html();var startText=allText.slice(0,o.slicePoint).replace(/\w+$/,'');startTags=startText.match(/<\w[^>]*>/g);if(startTags){startText=allText.slice(0,o.slicePoint+startTags.join('').length).replace(/\w+$/,'');}
if(startText.lastIndexOf('<')>startText.lastIndexOf('>')){startText=startText.slice(0,startText.lastIndexOf('<'));}
var endText=allText.slice(startText.length);if(!$('span.details',this).length){if(endText.replace(/\s+$/,'').split(' ').length<o.widow){return;}
if(endText.indexOf('</')>-1){endTags=endText.match(/<(\/)?[^>]*>/g);for(var i=0;i<endTags.length;i++){if(endTags[i].indexOf('</')>-1){var startTag,startTagExists=false;for(var j=0;j<i;j++){startTag=endTags[j].slice(0,endTags[j].indexOf(' ')).replace(/(\w)$/,'$1>');if(startTag==rSlash(endTags[i])){startTagExists=true;}}
if(!startTagExists){startText=startText+endTags[i];var matched=false;for(var s=startTags.length-1;s>=0;s--){if(startTags[s].slice(0,startTags[s].indexOf(' ')).replace(/(\w)$/,'$1>')==rSlash(endTags[i])&&matched==false){cleanedTag=cleanedTag?startTags[s]+cleanedTag:startTags[s];matched=true;}};}}}
endText=cleanedTag&&cleanedTag+endText||endText;}
$this.html([startText,'<span class="read-more">',o.expandPrefix,'<a href="#">',o.expandText,'</a>','</span>','<span class="details">',endText,'</span>'].join(''));}
var $thisDetails=$('span.details',this),$readMore=$('span.read-more',this);$thisDetails.hide();$readMore.find('a').click(function(){$readMore.hide();if(o.expandEffect==='show'&&!o.expandSpeed){o.beforeExpand($this);$thisDetails.show();o.afterExpand($this);delayCollapse(o,$thisDetails);}else{o.beforeExpand($this);$thisDetails[o.expandEffect](o.expandSpeed,function(){$thisDetails.css({zoom:''});o.afterExpand($this);delayCollapse(o,$thisDetails);});}
return false;});if(o.userCollapse){$this.find('span.details').append('<span class="re-collapse">'+o.userCollapsePrefix+'<a href="#">'+o.userCollapseText+'</a></span>');$this.find('span.re-collapse a').click(function(){clearTimeout(delayedCollapse);var $detailsCollapsed=$(this).parents('span.details');reCollapse($detailsCollapsed);o.onCollapse($this,true);return false;});}});function reCollapse(el){el.hide().prev('span.read-more').show();}
function delayCollapse(option,$collapseEl){if(option.collapseTimer){delayedCollapse=setTimeout(function(){reCollapse($collapseEl);option.onCollapse($collapseEl.parent(),false);},option.collapseTimer);}}
function rSlash(rString){return rString.replace(/\//,'');}};$.fn.expander.defaults={slicePoint:100,widow:4,expandText:'read more',expandPrefix:'&hellip; ',collapseTimer:0,expandEffect:'fadeIn',expandSpeed:'',userCollapse:true,userCollapseText:'[collapse expanded text]',userCollapsePrefix:' ',beforeExpand:function($thisEl){},afterExpand:function($thisEl){},onCollapse:function($thisEl,byUser){}};})(jQuery);


/*	CFJS for jQuery
	version 1.1.9 (11/21/2008)
	@requires jQuery (http://jquery.com)
	Copyright (c) 2008 - 2009 Christopher Jordan (chris.s.jordan@gmail.com)
	Dual licensed under the MIT and GPL licenses:
	http://www.opensource.org/licenses/mit-license.php
	http://www.gnu.org/licenses/gpl.html
	http://cjordan.us/index.cfm/CFJS
	http://cfjs.riaforge.org/  */
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('2I.2J({1B:B(d){u d.U(/(\\D?)(\\d{4,})/g,B(a,b,c){u(/[.\\w]/).1C(b)?a:b+c.U(/\\d(?=(?:\\d\\d\\d)+(?!\\d))/g,\'$&,\')})},26:B(a){E c=0;V(E i=0;i<a.I;i++){x(a[i].1j==27){c++}}u c},2K:B(n){u 17.28(n)},2L:B(a,v){u a.1D(v)},2M:B(a,v){u a.2a(v)},2b:B(a,c,d){E e;x(c.J()==\'2N\'){x(!d||d.J()!="1E"){e=B(a,b){a=a.J();b=b.J();x(a<b){u-1}N x(a>b){u 1}N{u 0}}}N{e=B(a,b){a=a.J();b=b.J();x(a>b){u-1}N x(a<b){u 1}N{u 0}}}}N x(c.J()==\'2O\'){x(!d||d.J()!="1E"){e=B(a,b){x(a<b){u-1}N x(a>b){u 1}N{u 0}}}N{e=B(a,b){x(a>b){u-1}N x(a<b){u 1}N{u 0}}}}N x(c.J()==\'2P\'){x(!d||d.J()!="1E"){e=B(a,b){u a-b}}N{e=B(a,b){u b-a}}}u a.2Q(e)},2c:B(a,d){x(!d){d=","}E b=/[,]/1u;u a.14().U(b,d)},2R:B(a){u a.I},2S:B(n){u 17.2d(n)},2e:B(a,b){x(a==b){u 0}x(a>b){u 1}N{u-1}},2T:B(a,b){u G.2e(a.J(),b.J())},1F:B(y,m,d){E a=18 1b();a.1G(y);a.1H(m-1);a.1I(d);a.1J(0);a.1K(0);a.1L(0);u a},2U:B(y,m,d,h,n,s){E a=18 1b();a.1G(y);a.1H(m-1);a.1I(d);a.1J(h);a.1K(n);a.1L(s);u a},2V:B(h,n,s){E a=18 1b();a.1G(2W);a.1H(11);a.1I(30);a.1J(h);a.1K(n);a.1L(s);u a},2X:B(d){E a="1v 1w 1M";E b,W,X;x(1e(1b.1N(d))){u a}b=d.1d();W=d.1c()+1;W=(W<10)?"0"+W:W;X=d.1k();X=(X<10)?"0"+X:X;u"{d \'"+b+"-"+W+"-"+X+"\'}"},2Y:B(d){E a="1v 1w 1M";E b,W,X,1O,1f,1g;x(1e(1b.1N(d))){u a}b=d.1d();W=d.1c()+1;W=(W<10)?"0"+W:W;X=d.1k();X=(X<10)?"0"+X:X;1O=d.19();1f=d.1l();1g=d.1m();u"{2Z \'"+b+"-"+W+"-"+X+" "+1O+":"+1f+":"+1g+"\'}"},32:B(d){E a="1v 1w 1M";E b,1f,1g;x(1e(1b.1N(d))){u a}b=d.19();1f=d.1l();1g=d.1m();u"{t \'"+b+":"+1f+":"+1g+"\'}"},1P:B(a,b,c){E d=18 1b(b);E e=18 1b(c);E f=e.2f()-d.2f();E g=18 1b(f);E h=e.2g()-d.2g();E i=e.2h()-d.2h()+(h!==0?h*12:0);E j=i/3;E k=f;E l=f/33;E m=l/2i;E n=m/2i;E o=n/24;E p=o/7;E q=0;1n(a.1Q()){C"1R":u h;C"q":u j;C"m":u i;C"y":u o;C"d":u o;C"w":u o;C"2j":u p;C"h":u n;C"n":u m;C"s":u l;C"34":u k;2k:u"1v 35: \'"+a+"\'"}},2l:B(d,c){E e=B(a,b){x(!b){b=2}a=1S(a);V(E i=0,1T=\'\';i<(b-a.I);i++){1T+=\'0\'}u 1T+a};u c.U(/"[^"]*"|\'[^\']*\'|\\b(?:d{1,4}|m{1,4}|1U(?:1U)?|([36])\\1?|[37])\\b/g,B(a){1n(a){C\'d\':u d.1k();C\'38\':u e(d.1k());C\'39\':u[\'3a\',\'3b\',\'3c\',\'3d\',\'3e\',\'3f\',\'3g\'][d.1V()];C\'3h\':u[\'3i\',\'3j\',\'3k\',\'3l\',\'3m\',\'3n\',\'3o\'][d.1V()];C\'m\':u d.1c()+1;C\'3p\':u e(d.1c()+1);C\'3q\':u[\'3r\',\'3s\',\'3t\',\'3u\',\'2m\',\'3v\',\'3w\',\'3x\',\'3y\',\'3z\',\'3A\',\'3B\'][d.1c()];C\'3C\':u[\'3D\',\'3E\',\'3F\',\'3G\',\'2m\',\'3H\',\'3I\',\'3J\',\'3K\',\'3L\',\'3M\',\'3N\'][d.1c()];C\'1U\':u 1S(d.1d()).2n(2);C\'1R\':u d.1d();C\'h\':u d.19()%12||12;C\'3O\':u e(d.19()%12||12);C\'H\':u d.19();C\'3P\':u e(d.19());C\'M\':u d.1l();C\'3Q\':u e(d.1l());C\'s\':u d.1m();C\'3R\':u e(d.1m());C\'l\':u e(d.1W(),3);C\'L\':E m=d.1W();x(m>3S){m=17.2o(m/10)}u e(m);C\'3T\':u d.19()<12?\'3U\':\'3V\';C\'t\':u d.19()<12?\'a\':\'p\';C\'3W\':u d.19()<12?\'3X\':\'3Y\';C\'T\':u d.19()<12?\'A\':\'P\';C\'Z\':u d.3Z().1X(/[A-Z]+$/);2k:u a.2n(1,a.I-2)}})},40:B(a,d){E b;1n(a){C"1R":u d.1d();C"q":E m=d.1c()+1;1n(m){C 1:C 2:C 3:u 1;C 4:C 5:C 6:u 2;C 7:C 8:C 9:u 3;C 10:C 11:C 12:u 4}C"m":m=d.1c()+1;m=(m<10)?"0"+m:m;u m;C"y":b=G.1F(d.1d(),1,1);u 17.2d(G.1P("d",b,d));C"d":E c=d.1k();c=(c<10)?"0"+c:c;u c;C"w":u d.1V()+1;C"2j":b=G.1F(d.1d(),1,1);u 17.2o(G.1P("d",b,d)/7);C"h":u d.19();C"n":u d.1l();C"s":u d.1m();C"l":u d.1W()}},41:B(n){u(G.1B(n.1Y(2)))},42:B(n){E a=n.14().U(/\\$|\\,/g,\'\');a=a.14().U(\'(\',\'-\');a=a.14().U(\')\',\'\');x(1e(a)){a=0}E b=(a==(a=17.28(n)));a=17.1o(a*1h+0.43);E c=a%1h;a=17.1o(a/1h).14();x(c<10){c="0"+c}a+="."+c;a=G.1B(a);u(((b)?\'\':\'(\')+\'$\'+a+((b)?\'\':\')\'))},2p:B(a,s){u s.14().44(a)+1},45:B(a,s){u G.2p(a.J(),s.J())},46:B(a,s,p){s+="";u s.1p(0,p)+a+s.1p(p,s.I)},2q:B(a,b){x(b){2r=G.26(a);x(2r==b){u O}u K}x(a.1j==27){u O}u K},1Z:B(v){x(v.1j==47){u O}u K},1q:B(d){E a=/^(\\d{1,2})(\\/|-)(\\d{1,2})(\\/|-)(\\d{4})$/;E b=d.14().1X(a);x(b===48){u K}E c=b[1];E e=b[3];E f=b[5];E g=(f%4===0&&(f%1h!==0||f%20===0));x(c<1||c>12){u K}x(e<1||e>31){u K}x((c==4||c==6||c==9||c==11)&&e==31){u K}x(c==2){x(e>29||(e==29&&!g)){u K}}u O},2s:B(o){x(49 o!="4a"){u O}u K},4b:B(y){x((y/4)!=17.1o(y/4)){u K}x((y/1h)!=17.1o(y/1h)){u O}x((y/20)!=17.1o(y/20)){u K}u O},1x:B(s){x(1e(s)){u K}u O},2t:B(v){x(G.1y(v)){u O}x(G.1x(v)){u O}x(G.1Z(v)){u O}x(G.1q(v)){u O}u K},1y:B(s){x(s.1j==1S){u O}u K},2u:B(s){x(s.1j==4c){u O}u K},Y:B(t,v,r,m){t=t.1Q();1n(t){C"4d":u G.2t(v);C"4e":u G.2q(v);C"1w":u G.1q(v);C"4f":u G.1Z(v);C"4g":u G.Y("1a",v,/(^[a-z]([a-2v\\.]*)@([a-2v\\.]*)([.][a-z]{2,4})$)/i);C"4h":u G.1q(v);C"4i":u G.1x(v);C"4j":u G.Y("1a",v,/(^[0-9-a-1i-F]{8}-([0-9-a-1i-F]{4}-){3}[0-9-a-1i-F]{12}$)/);C"4k":u G.Y("1a",v,/(^-?\\d\\d*$)/);C"4l":u G.1x(v);C"2w":u(((v*1)>=r)&&((v*1)<=m))?O:K;C"1a":u v.14().1X(r)?O:K;C"4m":u G.Y("1a",v,r);C"4n":u G.Y("2x",v);C"2x":u G.Y("1a",v,/^([0-6]\\d{2}|7[0-6]\\d|4o[0-2])([ \\-]?)(\\d{2})\\2(\\d{4})$/);C"4p":u G.1y(v);C"4q":u G.2u(v);C"4r":u G.Y("1a",v,/^(\\([1-9]\\d{2}\\)\\s?|[1-9]\\d{2}[\\.\\-])?\\d{3}[\\.\\-]\\d{4}$/);C"4s":u G.1q(v);C"4t":u G.Y("1a",v,/(4u|4v|4w):\\/\\/(\\w+:{0,1}\\w*@)?(\\S+)(:[0-9]+)?(\\/|\\/([\\w#!:.?+=&%@!\\-\\/]))?/i);C"4x":u G.Y("1a",v,/(^[0-9-a-1i-F]{8}-([0-9-a-1i-F]{4}-){2}[0-9-a-1i-F]{15}$)/);C"4y":u G.Y("1a",v,/(^[a-2y-2z][0-4z-2y-2z]*$)/);C"4A":u G.Y("1a",v,/(^\\d{5}$)|(^\\d{5}-\\d{4}$)/);C"4B":x(!G.Y("2w",v.I,13,16)){u K}E a=0;E i,1r;V(i=(2-(v.I%2));i<=v.I;i+=2){a+=2A(v.21(i-1),10)}V(i=(v.I%2)+1;i<v.I;i+=2){1r=2A(v.21(i-1),10)*2;a+=(1r<10)?1r:(1r-9)}u((a%10)===0)?O:K}},4C:B(s){s+="";u s.1Q()},4D:B(s,c){s+="";u s.1p(0,c)},4E:B(s){s+="";u s.I},2B:B(l,v,d){l+="";x(!d){d=","}E r="";x(G.22(l)){r=l+d+v}N{r=v}u r},1z:B(l,a,b){l+="";x(!b){b=","}E c="^,$,|,.,+,*,?,\\,/";x(G.1s(c,b)){b="\\\\"+b}E d=18 1t(b,"1u");u l.U(d,a)},4F:B(l,a,d){l+="";x(!d){d=","}E b="^,$,|,.,+,*,?,\\,/";x(G.1s(b,a)){a="\\\\"+a}l=l.Q(d);E c=18 1t(a,"g");V(E i=0;i<l.I;i++){x(c.1C(l[i])){u i}}u K},4G:B(l,a,d){l+="";x(!d){d=","}E b="^,$,|,.,+,*,?,\\,/";x(G.1s(b,a)){a="\\\\"+a}l=l.Q(d);E c=18 1t(a,"1u");V(E i=0;i<l.I;i++){x(c.1C(l[i])){u i}}u K},4H:B(l,p,d){l+="";x(!d){d=","}E i,23;E a=p-1;E b="";E r="";V(i=0;i<l.Q(d).I;i++){x(i!=a){23=i+1;x(r.I){b=d}r+=b+G.2C(l,23,d)}}u r},1s:B(l,v,d){l+="";x(!d){d=","}E r=0;E a=l.Q(d);V(E i=0;i<a.I;i++){x(a[i]==v){r=i+1;4I}}u r},4J:B(l,v,d){l+="";x(!d){d=","}u G.1s(l.J(),v.J(),d)},4K:B(l,d){l+="";x(!d){d=","}u l.Q(d)[0]},2C:B(l,p,d){l+="";x(!d){d=","}u l.Q(d)[p-1]},4L:B(l,p,v,d){E a;l+="";x(!d){d=","}l=l.Q(d);x(p===0){l.2a(v)}N{a=l.2D(p);l.1D(v);l=l.4M(a)}u G.1z(l.14(),d,",")},4N:B(l,d){l+="";x(!d){d=","}l=l.Q(d);u l[l.I-1]},22:B(l,d){l+="";x(!d){d=","}x(l.I){u l.Q(d).I}u 0},4O:B(l,v,d){l+="";x(!d){d=","}E r="";x(G.22(l)){r=v+d+l}N{r=v}u r},4P:B(l,d){l+="";x(!d){d=","}l=l.Q(d);l.2D(0,1);l=(l.I)?G.2c(l,d):"";u l},4Q:B(l,p,v,d){l+="";x(!d){d=","}l=l.Q(d);l[p-1]=v;u G.1z(l.14(),d,",")},4R:B(l,a,b,d){l+="";x(!d){d=","}l=l.Q(d);l=G.2b(l,a,b);u G.1z(l.14(),d,",")},4S:B(l,d){l+="";E r,a,i;x(!d){d=","}r=[];a=l.Q(d);u a},4T:B(l,v,d){E c=0;l+="";x(!d){d=","}l=l.Q(d);V(E i=0;i<l.I;i++){x(l[i]==v){c++}}u c},4U:B(l,v,d){E c=0;l+="";x(!d){d=","}l=l.Q(d);V(E i=0;i<l.I;i++){x(l[i].J()==v.J()){c++}}u c},4V:B(s){s+="";x(s.I){u s.U(/^\\s*/,\'\')}u\'\'},4W:B(s,a,c){s+="";a-=1;u s.1p(a,a+c)},4X:B(s,n,a,b){x(1A.I<=3){b="R"}x(1A.I<=2){a=" "}x(1A.I<=1){n=10}x(1A.I===0){s=""}E c=s.I;E d=n-c;x(c>=n){u s}x(b=="R"||b=="2E"){u s+G.25(a,d)}u G.25(a,d)+s},4Y:B(n,d){x(!G.2s(n)){x(G.1y(d)){2F("E "+n+" = \'"+d+"\';")}N{2F("E "+n+" = "+d+";")}}},25:B(s,n){E a="";V(E i=1;i<=n;i++){a+=s}u a},4Z:B(s,a,b,c){s+="";x(!c||c.J()!="2G"){c=""}N{c="g"}E d=18 1t(a,c);u s.U(d,b)},50:B(s,a,b,c){s+="";x(!c||c.J()!="2G"){c="i"}N{c="1u"}E d=18 1t(a,c);u s.U(d,b)},51:B(s){s+="";E i=s.I;E r="";V(i;0<=i;i--){r+=s.21(i)}u r},2E:B(s,c){s+="";u s.1p(s.I-c,s.I)},52:B(n,p){x(!1e(n.1Y(p))){u n.1Y(p)}u n},53:B(s){s+="";x(s.I){u s.U(/\\s*$/,\'\')}u\'\'},54:B(s){E k;E a=[];V(k 2H s){a.1D(k)}u a},55:B(s,k){u!!s[k]},56:B(s,d){E k;E a="";x(!d){d=","}V(k 2H s){a=G.2B(a,k,d)}u a},57:B(t,m){u G.2l(t,m)},58:B(s){s+="";x(s.I){u s.U(/^\\s\\s*/,\'\').U(/\\s\\s*$/,\'\')}u\'\'},59:B(s){u s.14().J()},5a:B(s){u 5b(s)},5c:B(s){u 5d(s)}});',62,324,'||||||||||||||||||||||||||||||return|||if||||function|case||var||this||length|toUpperCase|false|||else|true||split||||replace|for|month|day|IsValid||||||toString|||Math|new|getHours|regex|Date|getMonth|getFullYear|isNaN|minutes|seconds|100|fA|constructor|getDate|getMinutes|getSeconds|switch|floor|slice|IsDate|digit|ListFind|RegExp|gi|invalid|date|IsNumeric|IsString|ListChangeDelims|arguments|_commafy|test|push|DESC|CreateDate|setFullYear|setMonth|setDate|setHours|setMinutes|setSeconds|object|parse|hours|DateDiff|toLowerCase|yyyy|String|zeros|yy|getDay|getMilliseconds|match|toFixed|IsBoolean|400|charAt|ListLen|posInList||RepeatString|_DimensionCount|Array|abs||unshift|ArraySort|ArrayToList|ceil|Compare|valueOf|getUTCFullYear|getUTCMonth|60|ww|default|DateFormat|May|substr|round|Find|IsArray|nod|IsDefined|IsSimpleValue|IsStruct|z_|range|ssn|zA|Z_|parseInt|ListAppend|ListGetAt|splice|Right|eval|ALL|in|jQuery|extend|Abs|ArrayAppend|ArrayPrepend|TEXTNOCASE|TEXT|NUMERIC|sort|ArrayLen|Ceiling|CompareNoCase|CreateDateTime|CreateTime|1899|CreateODBCDate|CreateODBCDateTime|ts|||CreateODBCTime|1000|ms|interval|hHMstT|lLZ|dd|ddd|Sun|Mon|Tue|Wed|Thr|Fri|Sat|dddd|Sunday|Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|mm|mmm|Jan|Feb|Mar|Apr|Jun|Jul|Aug|Sep|Oct|Nov|Dec|mmmm|January|February|March|April|June|July|August|September|October|November|December|hh|HH|MM|ss|99|tt|am|pm|TT|AM|PM|toUTCString|DatePart|DecimalFormat|DollarFormat|50000000001|indexOf|FindNoCase|Insert|Boolean|null|typeof|undefined|IsLeapYear|Object|any|array|boolean|email|eurodate|float|guid|integer|numeric|regular_expression|social_security_number|77|string|struct|telephone|time|url|ftp|http|https|uuid|variablename|9a|zipcode|creditcard|LCase|Left|Len|ListContains|ListContainsNoCase|ListDeleteAt|break|ListFindNoCase|ListFirst|ListInsertAt|concat|ListLast|ListPrepend|ListRest|ListSetAt|ListSort|ListToArray|ListValueCount|ListValueCountNoCase|LTrim|Mid|Pad|Param|Replace|ReplaceNoCase|Reverse|Round|RTrim|StructKeyArray|StructKeyExists|StructKeyList|TimeFormat|Trim|UCase|URLDecode|unescape|URLEncodedFormat|encodeURI'.split('|'),0,{}))

/*	jQuery-Plugin "showPassword"
	$('#my-form').showPassword(); would insert "password togglers" in every input[type=password] within #my-form div.
	http://andreaslagerkvist.com/jquery/show-password/   */
jQuery.fn.showPassword = function (conf) {
	var config = $.extend({ str:		'Show password',  className:	'password-toggler' }, conf);
	return this.each(function () {
		jQuery('input[type=password]', this).each(function () {
			var field		= jQuery(this);
			var fakeField	= jQuery('<input type="text" class="' + config.className + '" value="' + field.val() + '" />').insertAfter(field).hide();
			var check		= jQuery('<label class="' + config.className + '"><input type="checkbox" /> ' + config.str + '</label>');
			var parentLabel	= field.parents('label');
			if (parentLabel.length) { check.insertAfter(parentLabel); }
			else { check.insertAfter(fakeField); }
			check.find('input').click(function() {
				if (jQuery(this).is(':checked')) { field.hide(); fakeField.val(field.val()).show(); }
				else { field.show(); fakeField.hide(); }
			});
			fakeField.change(function() {field.val(fakeField.val());});
		});
	});
};


/*	jQuery-Plugin "pngFix"
	Version: 1.1, 11.09.2007
	by Andreas Eberhard, andreas.eberhard@gmail.com
	http://jquery.andreaseberhard.de/pngFix/
	Copyright (c) 2007 Andreas Eberhard
	Licensed under GPL (http://www.opensource.org/licenses/gpl-license.php) */
eval(function(p,a,c,k,e,r){e=function(c){return(c<62?'':e(parseInt(c/62)))+((c=c%62)>35?String.fromCharCode(c+29):c.toString(36))};if('0'.replace(0,e)==0){while(c--)r[e(c)]=k[c];k=[function(e){return r[e]||e}];e=function(){return'([237-9n-zA-Z]|1\\w)'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(s(m){3.fn.pngFix=s(c){c=3.extend({P:\'blank.gif\'},c);8 e=(o.Q=="t R S"&&T(o.u)==4&&o.u.A("U 5.5")!=-1);8 f=(o.Q=="t R S"&&T(o.u)==4&&o.u.A("U 6.0")!=-1);p(3.browser.msie&&(e||f)){3(2).B("img[n$=.C]").D(s(){3(2).7(\'q\',3(2).q());3(2).7(\'r\',3(2).r());8 a=\'\';8 b=\'\';8 g=(3(2).7(\'E\'))?\'E="\'+3(2).7(\'E\')+\'" \':\'\';8 h=(3(2).7(\'F\'))?\'F="\'+3(2).7(\'F\')+\'" \':\'\';8 i=(3(2).7(\'G\'))?\'G="\'+3(2).7(\'G\')+\'" \':\'\';8 j=(3(2).7(\'H\'))?\'H="\'+3(2).7(\'H\')+\'" \':\'\';8 k=(3(2).7(\'V\'))?\'float:\'+3(2).7(\'V\')+\';\':\'\';8 d=(3(2).parent().7(\'href\'))?\'cursor:hand;\':\'\';p(2.9.v){a+=\'v:\'+2.9.v+\';\';2.9.v=\'\'}p(2.9.w){a+=\'w:\'+2.9.w+\';\';2.9.w=\'\'}p(2.9.x){a+=\'x:\'+2.9.x+\';\';2.9.x=\'\'}8 l=(2.9.cssText);b+=\'<y \'+g+h+i+j;b+=\'9="W:X;white-space:pre-line;Y:Z-10;I:transparent;\'+k+d;b+=\'q:\'+3(2).q()+\'z;r:\'+3(2).r()+\'z;\';b+=\'J:K:L.t.M(n=\\\'\'+3(2).7(\'n\')+\'\\\', N=\\\'O\\\');\';b+=l+\'"></y>\';p(a!=\'\'){b=\'<y 9="W:X;Y:Z-10;\'+a+d+\'q:\'+3(2).q()+\'z;r:\'+3(2).r()+\'z;">\'+b+\'</y>\'}3(2).hide();3(2).after(b)});3(2).B("*").D(s(){8 a=3(2).11(\'I-12\');p(a.A(".C")!=-1){8 b=a.13(\'url("\')[1].13(\'")\')[0];3(2).11(\'I-12\',\'none\');3(2).14(0).15.J="K:L.t.M(n=\'"+b+"\',N=\'O\')"}});3(2).B("input[n$=.C]").D(s(){8 a=3(2).7(\'n\');3(2).14(0).15.J=\'K:L.t.M(n=\\\'\'+a+\'\\\', N=\\\'O\\\');\';3(2).7(\'n\',c.P)})}return 3}})(3);',[],68,'||this|jQuery||||attr|var|style||||||||||||||src|navigator|if|width|height|function|Microsoft|appVersion|border|padding|margin|span|px|indexOf|find|png|each|id|class|title|alt|background|filter|progid|DXImageTransform|AlphaImageLoader|sizingMethod|scale|blankgif|appName|Internet|Explorer|parseInt|MSIE|align|position|relative|display|inline|block|css|image|split|get|runtimeStyle'.split('|'),0,{}));



/* Copyright (c) 2009 Mustafa OZCAN (http://www.mustafaozcan.net)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 * Version: 1.0.2
 * Requires: jquery.1.3+
 http://plugins.jquery.com/project/fixedtableheader
 http://www.mustafaozcan.net/en/page/jQuery-Fixed-Table-Header-Plugin.aspx
 */
jQuery.fn.fixedtableheader = function(options) { var settings = jQuery.extend({ headerrowsize: 1, highlightrow: false, highlightclass: "highlight" }, options); this.each(function(i) { var $tbl = $(this); var $tblhfixed = $tbl.find("tr:lt(" + settings.headerrowsize + ")"); var headerelement = "th"; if ($tblhfixed.find(headerelement).length == 0) headerelement = "td"; if ($tblhfixed.find(headerelement).length > 0) { $tblhfixed.find(headerelement).each(function() { $(this).css("width", $(this).width()); }); var $clonedTable = $tbl.clone().empty(); var tblwidth = GetTblWidth($tbl); $clonedTable.attr("id", "fixedtableheader" + i).css({ "position": "fixed", "top": "0", "left": $tbl.offset().left }).append($tblhfixed.clone()).width(tblwidth).hide().appendTo($("body")); if (settings.highlightrow) $("tr:gt(" + (settings.headerrowsize - 1) + ")", $tbl).hover(function() { $(this).addClass(settings.highlightclass); }, function() { $(this).removeClass(settings.highlightclass); }); $(window).scroll(function() { if (jQuery.browser.msie && jQuery.browser.version == "6.0") $clonedTable.css({ "position": "absolute", "top": $(window).scrollTop(), "left": $tbl.offset().left }); else $clonedTable.css({ "position": "fixed", "top": "0", "left": $tbl.offset().left - $(window).scrollLeft() }); var sctop = $(window).scrollTop(); var elmtop = $tblhfixed.offset().top; if (sctop > elmtop && sctop <= (elmtop + $tbl.height() - $tblhfixed.height())) $clonedTable.show(); else $clonedTable.hide(); }); $(window).resize(function() { if ($clonedTable.outerWidth() != $tbl.outerWidth()) { $tblhfixed.find(headerelement).each(function(index) { var w = $(this).width(); $(this).css("width", w); $clonedTable.find(headerelement).eq(index).css("width", w); }); $clonedTable.width($tbl.outerWidth()); } $clonedTable.css("left", $tbl.offset().left); }); } }); function GetTblWidth($tbl) { var tblwidth = $tbl.outerWidth(); return tblwidth; } };


/*	http://www.unwrongest.com/projects/elastic/ 
	@name							Elastic
	@descripton						Elastic is Jquery plugin that grow and shrink your textareas automaticliy
	@version						1.6.1
	@requires						Jquery 1.2.6+
	@author							Jan Jarfalk jan.jarfalk@unwrongest.com */
(function(f){f.fn.extend({elastic:function(){var d=['paddingTop','paddingRight','paddingBottom','paddingLeft','fontSize','lineHeight','fontFamily','width','fontWeight'];return this.each(function(){if(this.type!='textarea'){return false}var $textarea=f(this),$twin=f('<div />').css({'position':'absolute','display':'none'}),lineHeight=parseInt($textarea.css('line-height'),10)||parseInt($textarea.css('font-size'),'10'),minheight=parseInt($textarea.css('height'),10)||lineHeight*3,maxheight=parseInt($textarea.css('max-height'),10)||Number.MAX_VALUE,goalheight=0,i=0;$twin.appendTo($textarea.parent());var i=d.length;while(i--){$twin.css(d[i].toString(),$textarea.css(d[i].toString()))}function setHeightAndOverflow(a,b){curratedHeight=Math.floor(parseInt(a,10));if($textarea.height()!=curratedHeight){$textarea.css({'height':curratedHeight+'px','overflow':b})}}function update(){var a=$textarea.val().replace(/<|>/g,' ').replace(/\n/g,'<br />').replace(/&/g,"&amp;");var b=$twin.html();if(a+'&nbsp;'!=b){$twin.html(a+'&nbsp;');if(Math.abs($twin.height()+lineHeight-$textarea.height())>3){var c=$twin.height()+lineHeight;if(c>=maxheight){setHeightAndOverflow(maxheight,'auto')}else if(c<=minheight){setHeightAndOverflow(minheight,'hidden')}else{setHeightAndOverflow(c,'hidden')}}}}$textarea.css({'overflow':'hidden'});$textarea.keyup(function(){update()});$textarea.live('input paste',function(e){setTimeout(update,250)});update()})}})})(jQuery);


/* Onload functions (default) */
$(function(){
	$('a[rel*=external]').attr("target", "_blank");

	/* SunStar Media (jQuery.Preload required) */
	$.preload( '.domroll', {find:/\.([^\.]+)$/, replace:'_f2.$1'});
	$('.domroll').hover(function(){this.src = this.src.replace(/\.([^\.]+)$/,'_f2.$1');},function(){this.src = this.src.replace('_f2','');});

	$(document).pngFix();

	$('.NumOnly').numeric();
	$('.NumGPS').numeric({allow:"-."});
	$('.NumDecimal').numeric({allow:"."});
	$('.NumComma').numeric({allow:",."});
	$('.confirmLink').click(function(){ return confirm($(this).attr('title').length ? $(this).attr('title') : 'Are you sure?'); });

	/*	Scalable CSS Buttons Using PNG and Background Colors
	http://monc.se/kitchen/59/scalable-css-buttons-using-png-and-background-colors */	
	$('.cssBtn').each(function(){
		var b = $(this);
		var tt = b.text() || b.val();
		if ($(':submit,:button',this)) {
			b = $('<a>').insertAfter(this). addClass(this.className).attr('id',this.id);
			$(this).remove();
		}
		b.text('').css({cursor:'pointer'}). prepend('<i><\/i>').append($('<span>').
		text(tt).append('<i><\/i><span><\/span>'));
	});
	
});