



/*
 http://www.gnu.org/licenses/gpl-3.0.txt GPL
*/
(function(a){function d(){var b=a("<div></div>").attr("id","activebar-container");b.css({display:"none",position:"fixed",zIndex:"9999",top:"0px",left:"0px",cursor:"pointer"});a(window).bind("resize",function(){b.width(a(this).width())});a(window).trigger("resize");if(a.browser.msie&&(a.browser.version.substring(0,1)=="5"||a.browser.version.substring(0,1)=="6")){b.css("position","absolute");a(window).scroll(function(){b.stop(true,true);a.fn.activebar.state==3?b.css("top",a(window).scrollTop()+"px"):
b.css("top",a(window).scrollTop()-b.height()+"px")})}b.append(a("<div></div>").attr("class","icon").css({"float":"left",width:"16px",height:"16px",margin:"6px 4px 4px 4px"}));b.append(a("<div></div>").attr("class","close").css({"float":"right",margin:"6px 4px 4px 4px",width:"16px",height:"16px"}).click(function(c){a.fn.activebar.hide();c.stopPropagation()}));b.append(a("<div></div>").attr("class","content").css({margin:"8px 28px 4px 28px"}));a("body").prepend(b);return b}function e(b,c){b.css({background:c.background,
borderBottom:"1px solid "+c.border});b.unbind("mouseenter mouseleave");b.hover(function(){a(this).css("backgroundColor",c.highlight)},function(){a(this).css("backgroundColor",c.background)});a(".icon",b).css("background","transparent url( '"+c.icon+"' ) top left no-repeat");a(".close",b).css("background","transparent url( '"+c.button+"' ) top left no-repeat");a(".content",b).css({color:c.fontColor,fontFamily:c.font,fontSize:c.fontSize})}a.fn.activebar=function(b){b=a.fn.extend({},a.fn.activebar.defaults,
b);if(a.fn.activebar.container==null)a.fn.activebar.container=d(b);e(a.fn.activebar.container,b);a.fn.activebar.hide();a(".content",a.fn.activebar.container).empty();a(this).each(function(){a(".content",a.fn.activebar.container).append(this)});a.fn.activebar.container.unbind("click");b.url!=null&&a.fn.activebar.container.click(function(){window.location.href=b.url});a.fn.activebar.container.css("top","-"+a.fn.activebar.container.height()+"px");a.fn.activebar.show()};a.fn.activebar.defaults={background:"InfoBackground",
border:"#c8c8c8",highlight:"Highlight",font:"Bitstream Vera Sans,verdana,sans-serif",fontColor:"InfoText",fontSize:"12px",icon:"images/activebar-information.gif",button:"images/activebar-closebtn.png",url:null};a.fn.activebar.state=0;a.fn.activebar.container=null;a.fn.activebar.show=function(){if(!(a.fn.activebar.state>1)){a.fn.activebar.state=2;a.fn.activebar.container.css("display","block");var b=a.fn.activebar.container.height();a.fn.activebar.container.animate({top:"+="+b+"px"},b*10,"linear",
function(){a.fn.activebar.state=3})}};a.fn.activebar.hide=function(){if(!(a.fn.activebar.state<2)){a.fn.activebar.state=1;var b=a.fn.activebar.container.height();a.fn.activebar.container.animate({top:"-="+b+"px"},100,"linear",function(){a.fn.activebar.container.css("display","none");a.fn.activebar.visible=false})}}})(jQuery);

(function(a){a.fn.equalHeights=function(c,b){tallest=c?c:0;this.each(function(){if(a(this).height("auto").height()>tallest)tallest=a(this).height()});if(b&&tallest>b)tallest=b;this.each(function(){a(this).height()==tallest?a(this).height("auto"):a(this).height(tallest)})}})(jQuery);

function closefacebox(){jQuery(document).trigger("close.facebox")}
(function(a){function e(b){if(a.facebox.settings.inited)return true;else a.facebox.settings.inited=true;a(document).trigger("init.facebox");j();var c=a.facebox.settings.imageTypes.join("|");a.facebox.settings.imageTypesRegexp=new RegExp(".("+c+")$","i");b&&a.extend(a.facebox.settings,b);a("body").append(a.facebox.settings.faceboxHtml);var d=[new Image,new Image];d[0].src=a.facebox.settings.closeImage;d[1].src=a.facebox.settings.loadingImage;a("#facebox").find(".b:first, .bl, .br, .tl, .tr").each(function(){d.push(new Image);
d.slice(-1).src=a(this).css("background-image").replace(/url\((.+)\)/,"$1")});a("#facebox .close").click(a.facebox.close);a("#facebox .close_image").attr("src",a.facebox.settings.closeImage)}function k(){var b,c;if(self.pageYOffset){c=self.pageYOffset;b=self.pageXOffset}else if(document.documentElement&&document.documentElement.scrollTop){c=document.documentElement.scrollTop;b=document.documentElement.scrollLeft}else if(document.body){c=document.body.scrollTop;b=document.body.scrollLeft}return new Array(b,
c)}function l(){var b;if(self.innerHeight)b=self.innerHeight;else if(document.documentElement&&document.documentElement.clientHeight)b=document.documentElement.clientHeight;else if(document.body)b=document.body.clientHeight;return b}function j(){var b=a.facebox.settings;b.loadingImage=b.loading_image||b.loadingImage;b.closeImage=b.close_image||b.closeImage;b.imageTypes=b.image_types||b.imageTypes;b.faceboxHtml=b.facebox_html||b.faceboxHtml}function f(b,c){if(b.match(/#/)){var d=window.location.href.split("#")[0];
d=b.replace(d,"");a.facebox.reveal(a(d).show().replaceWith("<div id='facebox_moved'></div>"),c)}else b.match(a.facebox.settings.imageTypesRegexp)?g(b,c):h(b,c)}function g(b,c){var d=new Image;d.onload=function(){a.facebox.reveal('<div class="image"><img style="max-width: 700px;" src="'+d.src+'" /></div>',c);a("#facebox .image img").click(function(){a(this).css("max-width",a(this).css("max-width")=="700px"?null:"700px");a.facebox.updatePosition()})};d.src=b}function h(b,c){a.get(b,function(d){a.facebox.reveal(d,
c)})}function m(b,c){a.facebox.reveal('<iframe id="facebox_iframe" scrolling="no" frameBorder="0" border="0" src=""></iframe>',c);a("#facebox_iframe").attr("src",b).load(function(){a(document).trigger("resize.facebox")})}function i(){return a.facebox.settings.overlay==false||a.facebox.settings.opacity===null}function n(){if(!i()){a("#facebox_overlay").length==0&&a("body").append('<div id="facebox_overlay" class="facebox_hide"></div>');a("#facebox_overlay").hide().addClass("facebox_overlayBG").css("opacity",
a.facebox.settings.opacity).click(function(){a(document).trigger("close.facebox")}).fadeIn(3E3);return false}}function o(){if(!i()){a("#facebox_overlay").fadeOut(100,function(){a("#facebox_overlay").removeClass("facebox_overlayBG");a("#facebox_overlay").addClass("facebox_hide");a("#facebox_overlay").remove()});return false}}a.facebox=function(b,c){a.facebox.loading();if(b.ajax)h(b.ajax,c);else if(b.image)g(b.image,c);else if(b.div)f(b.div,c);else if(b.iframe)m(b.iframe,c);else a.isFunction(b)?b.call(a):
a.facebox.reveal(b,c)};a.extend(a.facebox,{settings:{opacity:0.2,overlay:true,loadingImage:"/utility/images/facebox/loading.gif",closeImage:"/utility/images/facebox/closelabel.gif",imageTypes:["png","jpg","jpeg","gif"],faceboxHtml:'<div id="facebox" style="display:none;"><div class="popup"><table><tbody><tr><td class="tl"/><td class="b"/><td class="tr"/></tr><tr><td class="b"/><td class="body"><a href="#" class="close"></a><div class="content"></div></td><td class="b"/></tr><tr><td class="bl"/><td class="b"/><td class="br"/></tr></tbody></table></div></div>'},
loading:function(){e();if(a("#facebox .loading").length==1)return true;n();a("#facebox .content").empty();a("#facebox .body").children().hide().end().append('<div class="loading"><img src="'+a.facebox.settings.loadingImage+'"/></div>');a("#facebox").css({top:k()[1]+l()/10,left:a(window).width()/2-205}).show();a(document).bind("keydown.facebox",function(b){b.keyCode==27&&a.facebox.close();return true});a(document).trigger("loading.facebox")},updatePosition:function(){newleft=a(window).width()/2-a("#facebox table").width()/
2;if(newleft<0)newleft=0;a("#facebox").css("left",newleft)},reveal:function(b,c){a(document).trigger("beforeReveal.facebox");c&&a("#facebox .content").addClass(c);a("#facebox .content").append(b);a("#facebox .loading").remove();a("#facebox .body").children().fadeIn("normal");this.updatePosition();a(document).trigger("reveal.facebox").trigger("afterReveal.facebox")},close:function(){a(document).trigger("close.facebox");return false}});a.fn.facebox=function(b){e(b);return this.bind("click.facebox",
function(){a.facebox.loading(true);var c=this.rel.match(/facebox\[?\.(\w+)\]?/);if(c)c=c[1];f(this.href,c);return false})};a(document).bind("close.facebox",function(){a(document).unbind("keydown.facebox");a("#facebox").fadeOut(function(){a("#facebox_moved").length==0?a("#facebox .content").removeClass().addClass("content"):a("#facebox_moved").replaceWith(a("#facebox .content").children().hide());o();a("#facebox .loading").remove();a(document).trigger("closed.facebox")})});a(document).bind("resize.facebox",
function(){var b=a("#facebox_iframe"),c=document.getElementById("facebox_iframe").contentWindow.document,d=0;if(jQuery.browser.msie)d=c.body.scrollHeight;else if(c&&c.body&&c.body.offsetHeight)d=c.body.offsetHeight;else if(c&&c.body&&c.body.scrollHeight)d=c.body.scrollHeight;b.css("height",d+"px")})})(jQuery);

(function(b){b.fn.autogrow=function(a){return this.each(function(){new b.autogrow(this,a)})};b.autogrow=function(a,c){this.options=c||{};this.interval=this.dummy=null;this.line_height=this.options.lineHeight||parseInt(b(a).css("line-height"));this.min_height=this.options.minHeight||parseInt(b(a).css("min-height"));this.max_height=this.options.maxHeight||parseInt(b(a).css("max-height"));this.textarea=b(a);this.expand_tolerance=!isNaN(this.options.expandTolerance)&&this.options.expandTolerance>0?this.options.expandTolerance:
1;if(isNaN(this.line_height))this.line_height=0;this.init()};b.autogrow.fn=b.autogrow.prototype={autogrow:"1.2.3"};b.autogrow.fn.extend=b.autogrow.extend=b.extend;b.autogrow.fn.extend({init:function(){var a=this;this.textarea.css({overflow:"hidden",display:"block"});this.textarea.bind("focus",function(){a.startExpand()}).bind("blur",function(){a.stopExpand()})},startExpand:function(){var a=this;this.interval=window.setInterval(function(){a.checkExpand()},200)},stopExpand:function(){clearInterval(this.interval)},
checkExpand:function(){if(this.dummy==null){this.dummy=b("<div></div>");this.dummy.css({"font-size":this.textarea.css("font-size"),"font-family":this.textarea.css("font-family"),width:this.textarea.css("width"),padding:this.textarea.css("padding"),"line-height":this.line_height+"px","overflow-x":"hidden",position:"absolute",top:0,left:-9999}).appendTo("body")}else this.dummy.show();var a=this.textarea.val().replace(/(<|>)/g,"");a=b.browser.msie?a.replace(/\n/g,"<BR/>new"):a.replace(/\n/g,"<br/>new");
if(this.dummy.html()!=a){this.dummy.html(a);if(this.max_height>0&&this.dummy.height()+this.expand_tolerance*this.line_height>this.max_height){this.textarea.css("overflow-y","auto");this.textarea.height()<this.max_height&&this.textarea.animate({height:this.max_height+this.expand_tolerance*this.line_height+"px"},100)}else{this.textarea.css("overflow-y","hidden");if(this.textarea.height()<this.dummy.height()+this.expand_tolerance*this.line_height||this.dummy.height()<this.textarea.height())if(this.dummy.height()<
this.min_height)this.textarea.height()<this.min_height+this.expand_tolerance*this.line_height&&this.textarea.animate({height:this.min_height+this.expand_tolerance*this.line_height+"px"},100);else this.textarea.height()<this.dummy.height()+this.expand_tolerance*this.line_height&&this.textarea.animate({height:this.dummy.height()+this.expand_tolerance*this.line_height+"px"},100)}}this.dummy.hide()}})})(jQuery);

(function(a){function i(){var d=window.innerHeight,c=document.compatMode;if(c||!a.support.boxModel)d=c=="CSS1Compat"?document.documentElement.clientHeight:document.body.clientHeight;return d}a(window).scroll(function(){var d=i(),c=document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop,e=[];a.each(a.cache,function(){this.events&&this.events.inview&&e.push(this.handle.elem)});e.length&&a(e).each(function(){var b=a(this),f=b.offset().top,g=b.height(),h=b.data("inview")||
false;if(c>f+g||c+d<f){if(h){b.data("inview",false);b.trigger("inview",[false])}}else if(c<f+g)if(!h){b.data("inview",true);b.trigger("inview",[true])}})});a(function(){a(window).scroll()})})(jQuery);

jQuery.fn.htabs=function(a,h,b,d){var c="#"+this.attr("id");$(c+">UL>LI").click(function(){if(!$(this).hasClass("ms")){b!=null&&b!=""&&eval(d+"([{name:'$P0',value: '"+b+"'},{name:'$IP0',value: $(this).attr('id')}])");$(c+">UL>LI").removeClass("ms");$(this).addClass("ms");$(this).blur();var g=$(this).closestPlus($("div",this).attr("href"));try{var e=$(this).closestPlus("#opt_"+$("div",this).attr("href").substring(1));$(this).closestPlus(".opt").html(e.html())}catch(j){}e=$(c+">DIV>DIV");var i=$("._jstrigger",
g);i.length!=0&&eval($(i[0]).attr("id")+"()");switch(h){case "fade":e.fadeOut(a).fadeOut(a);g.fadeIn(a);break;case "slide":e.slideUp(a);g.fadeOut(a).fadeIn(a);break;case "none":e.hide();g.show();break;default:e.hide(a);g.show(a)}return false}});var f=location.hash;if(!isNull(f)&&f!="")$("[href*="+f+"]",$(this)).parent().click();else $(c+"UL>LI.ms").length==0&&$(c+"UL>LI:first").click();return $(this)};
jQuery.fn.vtabs=function(a,h){var b="#"+this.attr("id");$(b+">DIV>DIV:gt(0)").hide();$(b+" .jvtabsnav").offset();$("body").offset();$("#nav_move").css({width:$(b+">UL>LI>A:first").outerWidth(true),height:$(b+">UL>LI>A:first").outerHeight(true),left:Math.round($(this).offset().left-$(b).offset().left),top:Math.round($(this).offset().top-$(b).offset().top)});$(b+">UL>LI>A").click(function(){if(!$(this).hasClass("current")){$(this).offset();parseInt($(this).css("padding-left"),10);$("#nav_move").animate({top:Math.round($(this).offset().top-
$(b).offset().top)},{duration:100,easing:"swing"});$(b+">UL>LI>A").removeClass("current");$(this).addClass("current");$(this).blur();var d=$(this).closestPlus($(this).attr("href")),c=$(b+">DIV>DIV"),f=$("._jstrigger",d);f.length!=0&&eval($(f[0]).attr("id")+"()");switch(h){case "fade":c.fadeOut(a).fadeOut(a);d.fadeIn(a);break;case "slide":c.slideUp(a);d.fadeOut(a).fadeIn(a);break;case "none":c.hide();d.show();break;default:c.hide(a);d.show(a)}return false}});$(b+">UL>LI>A:first").click();return $(this)};

$.radioCheckboxGroup=function(c,b,f,d){b=b||"*";var e="input[type=checkbox]";if(c)e+="[name="+c+"]";var a=$(e).filter(b);a.click(function(){a.not(this).each(function(){this.checked=false}).end();f&&a.filter(":checked").length==0&&a.first().each(function(){this.checked=true});isNull(d)||d()})};

(function(d){function g(a,e,c){var b=f[a]||(f[a]={loaded:false,callbacks:[]});if(b.loaded)return e.apply(c);b.callbacks.push({fn:e,context:c});b.callbacks.length==1&&d.ajax({type:"GET",url:a,dataType:"script",cache:true,success:function(){b.loaded=true;d.each(b.callbacks,function(){this.fn.apply(this.context)});b.callbacks.length=0}})}var f=[];d.requireScript=function(a,e,c,b){if(typeof b==="undefined"&&c&&c.hasOwnProperty("parallel")){b=c;c=window}b=d.extend({parallel:true},b);if(!d.isArray(a))return g(a,
e,c);var h=0;if(b.parallel)return d.each(a,function(){g(this,function(){++h==a.length&&e.apply(c)})});(function(){if(h==a.length)return e.apply(c);g(a[h++],arguments.callee)})()};d.requireScript.registerLoaded=function(a){d.each(d.makeArray(a),function(){(f[a]||(f[a]={})).loaded=true})}})(jQuery);

jQuery.fn.selectedText=function(c){c=c||window;var b=null,d=null;if(c.getSelection){b=c.getSelection().anchorNode;d=c.getSelection().toString();var a=c.getSelection();console.log(c.getSelection());if(!a.isCollapsed&&$.browser.mozilla)if(a.focusNode.nodeName!=="#text")if(a.focusOffset-a.anchorOffset>1)console.log("Selected spanning more than one",b=a.anchorNode);else a.anchorNode.childNodes[a.anchorOffset].nodeName!=="#text"?console.log("Selected non-text",b=a.anchorNode.childNodes[a.anchorOffset]):
console.log("Selected whole element",b=a.anchorNode);else if(a.anchorNode.data===a.focusNode.data)console.log("Selected non bounding text",b=a.anchorNode.parentNode);else if(a.anchorOffset===0&&!a.anchorNode.data)console.log("Selected whole element at start of paragraph (whereby selected element has not text e.g. &lt;script&gt;",b=a.anchorNode);else if(typeof a.anchorNode.data!=="undefined"&&a.anchorOffset===0&&a.anchorOffset<a.anchorNode.data.length)console.log("Selected whole element at start of paragraph",
b=a.anchorNode.parentNode);else if(typeof a.anchorNode.data!=="undefined"&&a.anchorOffset<a.anchorNode.data.length)console.log("Selected preceeding element text",b=a.anchorNode.parentNode);else if(typeof a.anchorNode.data!=="undefined"&&a.anchorOffset===a.anchorNode.data.length&&a.focusOffset===0)console.log("Selected whole element text",b=a.anchorNode.nextSibling||a.focusNode.previousSibling);else{if(a.focusOffset>0)console.log("Selected suceeding element text",b=a.focusNode.parentNode)}else if(a.isCollapsed)b=
b.parentNode}else if(c.document.selection){a=c.document.selection.createRange();b=a.parentElement?a.parentElement():a.item(0);d=a.text||a;if(d.toString)d=d.toString()}else throw"Error";if(b.nodeName==="#text")b=b.parentNode;if(typeof b.tagName==="undefined")return false;return{obj:b,text:d}};

(function(b){b.fn.shadow=function(){return this.each(function(){var a=b(this),c=rndid();if(a.length>0){a.outerWidth();a.outerHeight();a.after("<div id='"+c+"' style='width:500px;height:500px;position:relative;left:0;display:none;'><div class='bl_sh bt_shws'>&nbsp;</div><div class='b_sh bt_shws'>&nbsp;</div><div class='br_sh bt_shws rt_shws'>&nbsp;</div><div class='r_sh rt_shws'>&nbsp;</div><div class='tr_sh rt_shws'>&nbsp;</div></div>");b(function(){a.update()});b(window).resize(function(){a.update()});
a.removeClass("shadow")}})};b.fn.shadowExpand=function(a,c,f){a="#"+a;var h=b(a),d=b(h).width(),e=b(h).height();d=c-d;e=f-e;var g=b(a+" div.b_sh")[0];d=b(g).width()+d;b(g).css("width",d+"px");d=b(a+" div.r_sh")[0];g=b(d).height()+e;b(d).css("height",g+"px");a=b(a+" .bt_shws");e=b(a[0]).position().top+e;b(a).css("top",e+"px");b(h).css("width",c+"px").css("height",f+"px")};b.fn.update=function(){var a=b(this),c=b(this).next("div"),f=a.is(":visible");if(f==true){c.show();a.shadowExpand(c.attr("id"),
a.outerWidth(),a.outerHeight());c.css("top",-a.outerHeight())}f||c.hide()}})(jQuery);$(function(){$(".shadow").shadow()});

/*
 * jquery.tools 1.1.2 - The missing UI library for the Web
 * 
 * [tools.tooltip-1.1.3, tools.tooltip.slide-1.0.0, tools.tooltip.dynamic-1.0.1, tools.flashembed-1.0.4]
 * 
 * Copyright (c) 2009 Tero Piirainen
 * http://flowplayer.org/tools/
 *
 * Dual licensed under MIT and GPL 2+ licenses
 * http://www.opensource.org/licenses
 * 
 * -----
 * 
 * File generated: Wed Mar 17 11:03:06 GMT 2010
 */
(function(c){var d=[];c.tools=c.tools||{};c.tools.tooltip={version:"1.1.3",conf:{effect:"toggle",fadeOutSpeed:"fast",tip:null,predelay:0,delay:30,opacity:1,lazy:undefined,position:["top","center"],offset:[0,0],cancelDefault:true,relative:false,oneInstance:true,events:{def:"mouseover,mouseout",input:"focus,blur",widget:"focus mouseover,blur mouseout",tooltip:"mouseover,mouseout"},api:false},addEffect:function(e,g,f){b[e]=[g,f]}};var b={toggle:[function(e){var f=this.getConf(),g=this.getTip(),h=f.opacity;if(h<1){g.css({opacity:h})}g.show();e.call()},function(e){this.getTip().hide();e.call()}],fade:[function(e){this.getTip().fadeIn(this.getConf().fadeInSpeed,e)},function(e){this.getTip().fadeOut(this.getConf().fadeOutSpeed,e)}]};function a(f,g){var p=this,k=c(this);f.data("tooltip",p);var l=f.next();if(g.tip){l=c(g.tip);if(l.length>1){l=f.nextAll(g.tip).eq(0);if(!l.length){l=f.parent().nextAll(g.tip).eq(0)}}}function o(u){var t=g.relative?f.position().top:f.offset().top,s=g.relative?f.position().left:f.offset().left,v=g.position[0];t-=l.outerHeight()-g.offset[0];s+=f.outerWidth()+g.offset[1];var q=l.outerHeight()+f.outerHeight();if(v=="center"){t+=q/2}if(v=="bottom"){t+=q}v=g.position[1];var r=l.outerWidth()+f.outerWidth();if(v=="center"){s-=r/2}if(v=="left"){s-=r}return{top:t,left:s}}var i=f.is(":input"),e=i&&f.is(":checkbox, :radio, select, :button"),h=f.attr("type"),n=g.events[h]||g.events[i?(e?"widget":"input"):"def"];n=n.split(/,\s*/);if(n.length!=2){throw"Tooltip: bad events configuration for "+h}f.bind(n[0],function(r){if(g.oneInstance){c.each(d,function(){this.hide()})}var q=l.data("trigger");if(q&&q[0]!=this){l.hide().stop(true,true)}r.target=this;p.show(r);n=g.events.tooltip.split(/,\s*/);l.bind(n[0],function(){p.show(r)});if(n[1]){l.bind(n[1],function(){p.hide(r)})}});f.bind(n[1],function(q){p.hide(q)});if(!c.browser.msie&&!i&&!g.predelay){f.mousemove(function(){if(!p.isShown()){f.triggerHandler("mouseover")}})}if(g.opacity<1){l.css("opacity",g.opacity)}var m=0,j=f.attr("title");if(j&&g.cancelDefault){f.removeAttr("title");f.data("title",j)}c.extend(p,{show:function(r){if(r){f=c(r.target)}clearTimeout(l.data("timer"));if(l.is(":animated")||l.is(":visible")){return p}function q(){l.data("trigger",f);var t=o(r);if(g.tip&&j){l.html(f.data("title"))}r=r||c.Event();r.type="onBeforeShow";k.trigger(r,[t]);if(r.isDefaultPrevented()){return p}t=o(r);l.css({position:"absolute",top:t.top,left:t.left});var s=b[g.effect];if(!s){throw'Nonexistent effect "'+g.effect+'"'}s[0].call(p,function(){r.type="onShow";k.trigger(r)})}if(g.predelay){clearTimeout(m);m=setTimeout(q,g.predelay)}else{q()}return p},hide:function(r){clearTimeout(l.data("timer"));clearTimeout(m);if(!l.is(":visible")){return}function q(){r=r||c.Event();r.type="onBeforeHide";k.trigger(r);if(r.isDefaultPrevented()){return}b[g.effect][1].call(p,function(){r.type="onHide";k.trigger(r)})}if(g.delay&&r){l.data("timer",setTimeout(q,g.delay))}else{q()}return p},isShown:function(){return l.is(":visible, :animated")},getConf:function(){return g},getTip:function(){return l},getTrigger:function(){return f},bind:function(q,r){k.bind(q,r);return p},onHide:function(q){return this.bind("onHide",q)},onBeforeShow:function(q){return this.bind("onBeforeShow",q)},onShow:function(q){return this.bind("onShow",q)},onBeforeHide:function(q){return this.bind("onBeforeHide",q)},unbind:function(q){k.unbind(q);return p}});c.each(g,function(q,r){if(c.isFunction(r)){p.bind(q,r)}})}c.prototype.tooltip=function(e){var f=this.eq(typeof e=="number"?e:0).data("tooltip");if(f){return f}var g=c.extend(true,{},c.tools.tooltip.conf);if(c.isFunction(e)){e={onBeforeShow:e}}else{if(typeof e=="string"){e={tip:e}}}e=c.extend(true,g,e);if(typeof e.position=="string"){e.position=e.position.split(/,?\s/)}if(e.lazy!==false&&(e.lazy===true||this.length>20)){this.one("mouseover",function(h){f=new a(c(this),e);f.show(h);d.push(f)})}else{this.each(function(){f=new a(c(this),e);d.push(f)})}return e.api?f:this}})(jQuery);
(function(b){var a=b.tools.tooltip;a.effects=a.effects||{};a.effects.slide={version:"1.0.0"};b.extend(a.conf,{direction:"up",bounce:false,slideOffset:10,slideInSpeed:200,slideOutSpeed:200,slideFade:!b.browser.msie});var c={up:["-","top"],down:["+","top"],left:["-","left"],right:["+","left"]};b.tools.tooltip.addEffect("slide",function(d){var f=this.getConf(),g=this.getTip(),h=f.slideFade?{opacity:f.opacity}:{},e=c[f.direction]||c.up;h[e[1]]=e[0]+"="+f.slideOffset;if(f.slideFade){g.css({opacity:0})}g.show().animate(h,f.slideInSpeed,d)},function(e){var g=this.getConf(),i=g.slideOffset,h=g.slideFade?{opacity:0}:{},f=c[g.direction]||c.up;var d=""+f[0];if(g.bounce){d=d=="+"?"-":"+"}h[f[1]]=d+"="+i;this.getTip().animate(h,g.slideOutSpeed,function(){b(this).hide();e.call()})})})(jQuery);
(function(d){var c=d.tools.tooltip;c.plugins=c.plugins||{};c.plugins.dynamic={version:"1.0.1",conf:{api:false,classNames:"top right bottom left"}};function b(h){var e=d(window);var g=e.width()+e.scrollLeft();var f=e.height()+e.scrollTop();return[h.offset().top<=e.scrollTop(),g<=h.offset().left+h.width(),f<=h.offset().top+h.height(),e.scrollLeft()>=h.offset().left]}function a(f){var e=f.length;while(e--){if(f[e]){return false}}return true}d.fn.dynamic=function(g){var h=d.extend({},c.plugins.dynamic.conf),f;if(typeof g=="number"){g={speed:g}}g=d.extend(h,g);var e=g.classNames.split(/\s/),i;this.each(function(){if(d(this).tooltip().jquery){throw"Lazy feature not supported by dynamic plugin. set lazy: false for tooltip"}var j=d(this).tooltip().onBeforeShow(function(n,o){var m=this.getTip(),l=this.getConf();if(!i){i=[l.position[0],l.position[1],l.offset[0],l.offset[1],d.extend({},l)]}d.extend(l,i[4]);l.position=[i[0],i[1]];l.offset=[i[2],i[3]];m.css({visibility:"hidden",position:"absolute",top:o.top,left:o.left}).show();var k=b(m);if(!a(k)){if(k[2]){d.extend(l,g.top);l.position[0]="top";m.addClass(e[0])}if(k[3]){d.extend(l,g.right);l.position[1]="right";m.addClass(e[1])}if(k[0]){d.extend(l,g.bottom);l.position[0]="bottom";m.addClass(e[2])}if(k[1]){d.extend(l,g.left);l.position[1]="left";m.addClass(e[3])}if(k[0]||k[2]){l.offset[0]*=-1}if(k[1]||k[3]){l.offset[1]*=-1}}m.css({visibility:"visible"}).hide()});j.onShow(function(){var l=this.getConf(),k=this.getTip();l.position=[i[0],i[1]];l.offset=[i[2],i[3]]});j.onHide(function(){var k=this.getTip();k.removeClass(g.classNames)});f=j});return g.api?f:this}})(jQuery);
(function(){var e=typeof jQuery=="function";var i={width:"100%",height:"100%",allowfullscreen:true,allowscriptaccess:"always",quality:"high",version:null,onFail:null,expressInstall:null,w3c:false,cachebusting:false};if(e){jQuery.tools=jQuery.tools||{};jQuery.tools.flashembed={version:"1.0.4",conf:i}}function j(){if(c.done){return false}var l=document;if(l&&l.getElementsByTagName&&l.getElementById&&l.body){clearInterval(c.timer);c.timer=null;for(var k=0;k<c.ready.length;k++){c.ready[k].call()}c.ready=null;c.done=true}}var c=e?jQuery:function(k){if(c.done){return k()}if(c.timer){c.ready.push(k)}else{c.ready=[k];c.timer=setInterval(j,13)}};function f(l,k){if(k){for(key in k){if(k.hasOwnProperty(key)){l[key]=k[key]}}}return l}function g(k){switch(h(k)){case"string":k=k.replace(new RegExp('(["\\\\])',"g"),"\\$1");k=k.replace(/^\s?(\d+)%/,"$1pct");return'"'+k+'"';case"array":return"["+b(k,function(n){return g(n)}).join(",")+"]";case"function":return'"function()"';case"object":var l=[];for(var m in k){if(k.hasOwnProperty(m)){l.push('"'+m+'":'+g(k[m]))}}return"{"+l.join(",")+"}"}return String(k).replace(/\s/g," ").replace(/\'/g,'"')}function h(l){if(l===null||l===undefined){return false}var k=typeof l;return(k=="object"&&l.push)?"array":k}if(window.attachEvent){window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}})}function b(k,n){var m=[];for(var l in k){if(k.hasOwnProperty(l)){m[l]=n(k[l])}}return m}function a(r,t){var q=f({},r);var s=document.all;var n='<object width="'+q.width+'" height="'+q.height+'"';if(s&&!q.id){q.id="_"+(""+Math.random()).substring(9)}if(q.id){n+=' id="'+q.id+'"'}if(q.cachebusting){q.src+=((q.src.indexOf("?")!=-1?"&":"?")+Math.random())}if(q.w3c||!s){n+=' data="'+q.src+'" type="application/x-shockwave-flash"'}else{n+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'}n+=">";if(q.w3c||s){n+='<param name="movie" value="'+q.src+'" />'}q.width=q.height=q.id=q.w3c=q.src=null;for(var l in q){if(q[l]!==null){n+='<param name="'+l+'" value="'+q[l]+'" />'}}var o="";if(t){for(var m in t){if(t[m]!==null){o+=m+"="+(typeof t[m]=="object"?g(t[m]):t[m])+"&"}}o=o.substring(0,o.length-1);n+='<param name="flashvars" value=\''+o+"' />"}n+="</object>";return n}function d(m,p,l){var k=flashembed.getVersion();f(this,{getContainer:function(){return m},getConf:function(){return p},getVersion:function(){return k},getFlashvars:function(){return l},getApi:function(){return m.firstChild},getHTML:function(){return a(p,l)}});var q=p.version;var r=p.expressInstall;var o=!q||flashembed.isSupported(q);if(o){p.onFail=p.version=p.expressInstall=null;m.innerHTML=a(p,l)}else{if(q&&r&&flashembed.isSupported([6,65])){f(p,{src:r});l={MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title};m.innerHTML=a(p,l)}else{if(m.innerHTML.replace(/\s/g,"")!==""){}else{m.innerHTML="<h2>Flash version "+q+" or greater is required</h2><h3>"+(k[0]>0?"Your version is "+k:"You have no flash plugin installed")+"</h3>"+(m.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='http://www.adobe.com/go/getflashplayer'>here</a></p>");if(m.tagName=="A"){m.onclick=function(){location.href="http://www.adobe.com/go/getflashplayer"}}}}}if(!o&&p.onFail){var n=p.onFail.call(this);if(typeof n=="string"){m.innerHTML=n}}if(document.all){window[p.id]=document.getElementById(p.id)}}window.flashembed=function(l,m,k){if(typeof l=="string"){var n=document.getElementById(l);if(n){l=n}else{c(function(){flashembed(l,m,k)});return}}if(!l){return}if(typeof m=="string"){m={src:m}}var o=f({},i);f(o,m);return new d(l,o,k)};f(window.flashembed,{getVersion:function(){var m=[0,0];if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){var l=navigator.plugins["Shockwave Flash"].description;if(typeof l!="undefined"){l=l.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var n=parseInt(l.replace(/^(.*)\..*$/,"$1"),10);var r=/r/.test(l)?parseInt(l.replace(/^.*r(.*)$/,"$1"),10):0;m=[n,r]}}else{if(window.ActiveXObject){try{var p=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(q){try{p=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");m=[6,0];p.AllowScriptAccess="always"}catch(k){if(m[0]==6){return m}}try{p=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(o){}}if(typeof p=="object"){l=p.GetVariable("$version");if(typeof l!="undefined"){l=l.replace(/^\S+\s+(.*)$/,"$1").split(",");m=[parseInt(l[0],10),parseInt(l[2],10)]}}}}return m},isSupported:function(k){var m=flashembed.getVersion();var l=(m[0]>k[0])||(m[0]==k[0]&&m[1]>=k[1]);return l},domReady:c,asString:g,getHTML:a});if(e){jQuery.fn.flashembed=function(l,k){var m=null;this.each(function(){m=flashembed(this,l,k)});return l.api===false?this:m}}})();

(function(c){function p(b){if(!a.parent){a.parent=c('<div id="'+b.id+'"><h3></h3><div class="body"></div><div class="url"></div></div>').appendTo(document.body).hide();c.fn.bgiframe&&a.parent.bgiframe();a.title=c("h3",a.parent);a.body=c("div.body",a.parent);a.url=c("div.url",a.parent)}}function d(b){return c.data(b,"qtooltip")}function q(b){if(d(this).delay)j=setTimeout(m,d(this).delay);else m();n=!!d(this).track;c(document.body).bind("mousemove",i);i(b)}function r(){if(!(c.qtooltip.blocked||this==
f||!this.qtooltipText&&!d(this).bodyHandler)){f=this;l=this.qtooltipText;if(d(this).bodyHandler){a.title.hide();var b=d(this).bodyHandler.call(this);b.nodeType||b.jquery?a.body.empty().append(b):a.body.html(b);a.body.show()}else if(d(this).showBody){b=l.split(d(this).showBody);a.title.html(b.shift()).show();a.body.empty();for(var e=0,g;g=b[e];e++){e>0&&a.body.append("<br/>");a.body.append(g)}a.body.hideWhenEmpty()}else{a.title.html(l).show();a.body.hide()}d(this).showURL&&c(this).url()?a.url.html(c(this).url().replace("http://",
"")).show():a.url.hide();a.parent.addClass(d(this).extraClass);d(this).fixPNG&&a.parent.fixPNG();q.apply(this,arguments)}}function m(){j=null;if((!k||!c.fn.bgiframe)&&d(f).fade)if(a.parent.is(":animated"))a.parent.stop().show().fadeTo(d(f).fade,f.tOpacity);else a.parent.is(":visible")?a.parent.fadeTo(d(f).fade,f.tOpacity):a.parent.fadeIn(d(f).fade);else a.parent.show();i()}function i(b){if(!c.qtooltip.blocked)if(!(b&&b.target.tagName=="OPTION")){!n&&a.parent.is(":visible")&&c(document.body).unbind("mousemove",
i);if(f==null)c(document.body).unbind("mousemove",i);else{a.parent.removeClass("viewport-right").removeClass("viewport-bottom");var e=a.parent[0].offsetLeft,g=a.parent[0].offsetTop;if(b){e=b.pageX+d(f).left;g=b.pageY+d(f).top;b="auto";if(d(f).positionLeft){b=c(window).width()-e;e="auto"}a.parent.css({left:e,right:b,top:g})}b=s();var h=a.parent[0];if(b.x+b.cx<h.offsetLeft+h.offsetWidth){e-=h.offsetWidth+20+d(f).left;a.parent.css({left:e+"px"}).addClass("viewport-right")}if(b.y+b.cy<h.offsetTop+h.offsetHeight){g-=
h.offsetHeight+20+d(f).top;a.parent.css({top:g+"px"}).addClass("viewport-bottom")}}}}function s(){return{x:c(window).scrollLeft(),y:c(window).scrollTop(),cx:c(window).width(),cy:c(window).height()}}function o(){function b(){a.parent.removeClass(e.extraClass).hide().css("opacity","")}if(!c.qtooltip.blocked){j&&clearTimeout(j);f=null;var e=d(this);if((!k||!c.fn.bgiframe)&&e.fade)a.parent.is(":animated")?a.parent.stop().fadeTo(e.fade,0,b):a.parent.stop().fadeOut(e.fade,b);else b();d(this).fixPNG&&a.parent.unfixPNG()}}
var a={},f,l,j,k=c.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent),n=false;c.qtooltip={blocked:false,defaults:{delay:100,fade:true,showURL:false,extraClass:"",top:15,left:15,id:"qtooltip"},block:function(){c.qtooltip.blocked=!c.qtooltip.blocked}};c.fn.extend({qtooltip:function(b){b=c.extend({},c.qtooltip.defaults,b);p(b);return this.each(function(){c.data(this,"qtooltip",b);this.tOpacity=a.parent.css("opacity");this.qtooltipText=this.title;c(this).removeAttr("title");this.alt=""}).mouseover(r).mouseout(o).click(o)},
fixPNG:k?function(){return this.each(function(){var b=c(this).css("backgroundImage");if(b.match(/^url\(["']?(.*\.png)["']?\)$/i)){b=RegExp.$1;c(this).css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='"+b+"')"}).each(function(){var e=c(this).css("position");e!="absolute"&&e!="relative"&&c(this).css("position","relative")})}})}:function(){return this},unfixPNG:k?function(){return this.each(function(){c(this).css({filter:"",backgroundImage:""})})}:
function(){return this},hideWhenEmpty:function(){return this.each(function(){c(this)[c(this).html()?"show":"hide"]()})},url:function(){return this.attr("href")||this.attr("src")}})})(jQuery);

(function(b){var k=["Page_ClientValidate"],l=false;b.extend(b.expr[":"],{search:function(a){return"search"===a.type},data:function(a,c,e){if(c=/^((?:[^=!^$*]|[!^$*](?!=))+)(?:([!^$*]?=)(.*))?$/.exec(e[3])){a=b(a).data(c[1]);if(a!==void 0){if(c[2]){a=""+a;switch(c[2]){case "=":return a==c[3];case "!=":return a!=c[3];case "^=":return a.slice(0,c[3].length)==c[3];case "$=":return a.slice(-c[3].length)==c[3];case "*=":return a.indexOf(c[3])!==-1}}return true}}return false}});b.watermark={version:"3.0.4",
options:{className:"input-wtm",useNative:true},hide:function(a){b(a).filter(":data(watermark)").each(function(){b.watermark._hide(b(this))})},_hide:function(a,c){if(a.val()==a.data("watermarkText")){a.val("");if(a.data("watermarkPassword"))if(a.attr("type")==="text"){var e=a.data("watermarkPassword"),f=a.parent();f[0].removeChild(a[0]);f[0].appendChild(e[0]);a=e}if(a.data("watermarkMaxLength")){a.attr("maxLength",a.data("watermarkMaxLength"));a.removeData("watermarkMaxLength")}if(c){a.attr("autocomplete",
"off");window.setTimeout(function(){a.select()},0)}}a.removeClass(a.data("watermarkClass"))},show:function(a){b(a).filter(":data(watermark)").each(function(){b.watermark._show(b(this))})},_show:function(a){var c=a.val(),e=a.data("watermarkText"),f=a.attr("type");if((c.length==0||c==e)&&!a.data("watermarkFocus")){l=true;if(a.data("watermarkPassword"))if(f==="password"){c=a.data("watermarkPassword");var d=a.parent();d[0].removeChild(a[0]);d[0].appendChild(c[0]);a=c;a.attr("maxLength",e.length)}if(f===
"text"||f==="search"){f=a.attr("maxLength");if(f>0&&e.length>f){a.data("watermarkMaxLength",f);a.attr("maxLength",e.length)}}a.addClass(a.data("watermarkClass"));a.val(e)}else b.watermark._hide(a)},hideAll:function(){if(l){b.watermark.hide(":text,:password,:search,textarea");l=false}},showAll:function(){b.watermark.show(":text,:password,:search,textarea")}};b.fn.watermark=function(a,c){var e=typeof a==="string",f;if(typeof c==="object"){f=typeof c.className==="string";c=b.extend({},b.watermark.options,
c)}else if(typeof c==="string"){f=true;c=b.extend({},b.watermark.options,{className:c})}else c=b.watermark.options;if(typeof c.useNative!=="function")c.useNative=c.useNative?function(){return true}:function(){return false};return this.each(function(){var d=b(this);if(d.is(":text,:password,:search,textarea")){if(d.data("watermark")){if(e||f){b.watermark._hide(d);e&&d.data("watermarkText",a);f&&d.data("watermarkClass",c.className)}}else{if(c.useNative.call(this,d))if((""+d.css("-webkit-appearance")).replace("undefined",
"")!==""&&d.attr("tagName")!=="TEXTAREA"){e&&d.attr("placeholder",a);return}d.data("watermarkText",e?a:"");d.data("watermarkClass",c.className);d.data("watermark",1);if(d.attr("type")==="password"){var h=d.wrap("<span>").parent(),g=b(h.html().replace(/type=["']?password["']?/i,'type="text"'));g.data("watermarkText",d.data("watermarkText"));g.data("watermarkClass",d.data("watermarkClass"));g.data("watermark",1);g.attr("maxLength",a.length);g.focus(function(){b.watermark._hide(g,true)}).bind("dragenter",
function(){b.watermark._hide(g)}).bind("dragend",function(){window.setTimeout(function(){g.blur()},1)});d.blur(function(){b.watermark._show(d)}).bind("dragleave",function(){b.watermark._show(d)});g.data("watermarkPassword",d);d.data("watermarkPassword",g)}else d.focus(function(){d.data("watermarkFocus",1);b.watermark._hide(d,true)}).blur(function(){d.data("watermarkFocus",0);b.watermark._show(d)}).bind("dragenter",function(){b.watermark._hide(d)}).bind("dragleave",function(){b.watermark._show(d)}).bind("dragend",
function(){window.setTimeout(function(){b.watermark._show(d)},1)}).bind("drop",function(i){i=i.originalEvent.dataTransfer.getData("Text");d.val().replace(i,"")===d.data("watermarkText")&&d.val(i);d.focus()});if(this.form){h=this.form;var j=b(h);if(!j.data("watermarkSubmit")){j.submit(b.watermark.hideAll);if(h.submit){j.data("watermarkSubmit",h.submit);h.submit=function(i,n){return function(){var m=n.data("watermarkSubmit");b.watermark.hideAll();m.apply?m.apply(i,Array.prototype.slice.call(arguments)):
m()}}(h,j)}else{j.data("watermarkSubmit",1);h.submit=function(i){return function(){b.watermark.hideAll();delete i.submit;i.submit()}}(h)}}}}b.watermark._show(d)}}).end()};k.length&&b(function(){var a,c,e;for(a=k.length-1;a>=0;a--){c=k[a];e=window[c];if(typeof e==="function")window[c]=function(f){return function(){b.watermark.hideAll();f.apply(null,Array.prototype.slice.call(arguments))}}(e)}})})(jQuery);

function DefaultTextEditor(b,c){this._variableName=b;this._element=document.getElementById(c);this.GetContent=function(){return this._element.value};this.SaveBookmark=function(){};this.InsertContent=function(a){this._element.value+=a};this.UpdateContent=function(a){this._element.value=a};this.GetContainerNode=function(){return this._element};this.Focus=function(){this._element.focus()};this.Resize=function(a,d){this._element.style.width=a+"px";this._element.style.height=d+"px"}};

var expDays=30;function GetCookie(a){a=a+"=";for(var b=a.length,c=document.cookie.length,d=0;d<c;){var e=d+b;if(document.cookie.substring(d,e)==a)return getCookieVal(e);d=document.cookie.indexOf(" ",d)+1;if(d==0)break}return null}
function SetCookie(a,b){var c=SetCookie.arguments,d=SetCookie.arguments.length,e=d>2?c[2]:null,g=d>3?c[3]:null,f=d>4?c[4]:null;c=d>5?c[5]:false;document.cookie=a+"="+escape(b)+(e==null?"":"; expires="+e.toGMTString())+(g==null?"":"; path="+g)+(f==null?"":"; domain="+f)+(c==true?"; secure":"")}function DeleteCookie(a){var b=new Date;b.setTime(b.getTime()-1);var c=GetCookie(a);document.cookie=a+"="+c+"; expires="+b.toGMTString()}var exp=new Date;exp.setTime(exp.getTime()+expDays*24*60*60*1E3);
function getCookieVal(a){var b=document.cookie.indexOf(";",a);if(b==-1)b=document.cookie.length;return unescape(document.cookie.substring(a,b))}function once(a){var b=GetCookie(a);if(b==null){b=1;SetCookie(a,b,exp);return true}else{b++;SetCookie(a,b,exp);return false}}jQuery.extend({random:function(a){return Math.floor(a*(Math.random()%1))},randomBtw:function(a,b){return a+jQuery.random(b-a+1)}});
function rndid(){function a(){return((1+Math.random())*65536|0).toString(16).substring(1)}return a()+a()+a()+a()+a()}function isNull(a){if(typeof a=="undefined")return true;if(a==null)return true;return false}jQuery(document).ready(function(){var a=$(".pop");if(a.length>0){var b=$.randomBtw(0,a.length-1);jQuery.facebox($(a[b]).html())}});function refresh(){location.reload()}
$.fn.quicktip=function(a,b,c){return this.each(function(){var d=$(a),e=false;d.addClass("tooltip");if(typeof b=="undefined"||b==null)b="top center";if(typeof c=="undefined"||c==null)e=true;d.hide();d=$(this).tooltip({events:{def:"mouseenter,mouseleave"},tip:d,effect:"toggle",position:b,api:false,relative:false,lazy:false,opacity:"1",predelay:"150",delay:"500"});e&&d.dynamic()})};function trim(a,b){return ltrim(rtrim(a,b),b)}
function ltrim(a,b){b=b||"\\s";return a.replace(RegExp("^["+b+"]+","g"),"")}function rtrim(a,b){b=b||"\\s";return a.replace(RegExp("["+b+"]+$","g"),"")}function tog(a){a.attr("checked",!a.attr("checked"))}$.fn.replaceHtml=function(a){var b="tmp_"+rndid();this.after("<div id='"+b+"'></div>").remove();$("#"+b).after(a).remove();return this};$.fn.brandDN=function(){return this.each(function(){$(this).css("display")=="none"&&$(this).addClass("tmphide").show()})};
$.fn.showTemp=function(){$(this).parents(":hidden").brandDN();return $(this)};$.fn.hideTemp=function(){$(this).parents(".tmphide").removeClass("tmphide").hide();return $(this)};$.fn.elementHtml=function(){return $("<div>").append($(this).clone()).remove().html()};$.fn.jForm=function(){return this.parent("fieldset")};
$.fn.closestPlus=function(a){var b=$(this).closest(a);if(b.length==0)b=$(a,$(this).parent());if(b.length==0)b=$(a,$(this).parent().parent());if(b.length==0)b=$(a,$(this).parent().parent().parent());if(b.length==0)b=$(a,$(this).parent().parent().parent().parent());if(b.length==0)b=$(a,$(this).parent().parent().parent().parent().parent());if(b.length==0)b=$(a,$(this).parent().parent().parent().parent().parent().parent());if(b.length==0)b=$(a,$(this).parent().parent().parent().parent().parent().parent().parent());
return b};$.fn.triggerSubmit=function(a){var b=$("._jstrigger",$(this));if(b.length==0)b=$("._jstrigger",$(this).parents("fieldset"));if(b.length==0)return $(this);a==null?eval(b.attr("id")+"()"):eval(b.attr("id")+"("+a+")");return $(this)};function grabHtmlLegacy(a,b,c,d,e,g,f,i,h,k,j,l,m,n,o){return grabHtml({caller:a,gatewayUrl:b,formName:c,formTargetId:d,target:e,preScript:g,postScript:f,action:i,replacementType:h,debug:k,values:j,fadeIn:l,fadeOut:m,slideIn:n,slideOut:o})}
function grabHtml(a){if(a.viewName!=null)a.gatewayUrl="/views/"+a.viewName.replace(/\./,"/")+".htm";var b=$(a.caller),c=a.target;if(!isNull(c)&&!isNull(a.multiFire)){if(c.hasClass("_disabled"))return;c.addClass("_disabled")}if(c==null||typeof c=="undefined"||c.length==0)c=b.closestPlus("#"+a.formTargetId);if(a.formName=="")a.formName=b.closest("fieldset").attr("id");var d=b.closestPlus("#"+a.formName);d.find("[class*=input-wtm]").focus();var e=c,g=c.parent();if(a.preScript==null||a.preScript(b,e,
g,a.action)){var f=d.find("input, textarea, select");f=f.filter(function(){return $(this).parents("fieldset").attr("id")==d.attr("id")});var i=f.serializeArray();a.values!=null&&jQuery.each(a.values,function(){i.push({name:this.name,value:this.value})});i.push({name:"__LOC__",value:window.location.href});i.push({name:"__XJAX__FIRED",value:"_"});i.push({name:"__XJAX__",value:"_"});!isNull(a.action)&&a.action!=""&&i.push({name:"__ACTION__",value:a.action});f={};b.fadeTo(200,"0.3");$("body").css("cursor",
"progress");b.css("cursor","progress");f.type="POST";f.url=a.gatewayUrl;f.processData=true;f.data=i;f.dataType="html";f.success=function(h){function k(){if(c.length!=0){var j=$("<span>"+h+"</span>");if(a.replacementType==1)c.append(j);else if(a.replacementType==2)c.html("").append(j);else a.replacementType==3&&c.replaceHtml(j);if(a.fadeIn>0||a.slideIn>0)j.hide();a.fadeIn>0&&j.fadeIn(a.fadeIn);a.slideIn>0&&j.show(a.slideIn);__initpage(j)}else a.debug=="yes"&&a.formTargetId!="null"&&a.formTargetId!=
null&&typeof a.formTargetId!="undefined"&&alert("Cant find target element: "+a.formTargetId)}b.clearQueue().fadeTo(200,"1");$("body").css("cursor","auto");b.css("cursor","auto");a.preDataFunction!=null&&a.preDataFunction(h);if(h.length>4&&h.substring(0,4)==">>>>")window.location=h.substring(4);else if(h.length=h.substring(0,4)==">>>>")window.location.reload();else{if(a.fadeOut>0)b.fadeOut(a.fadeOut,function(){k()});else a.slideOut>0?b.hide(a.slideOut,function(){k()}):k();a.postScript!=null&&a.postScript(b,
e,g,a.action)}};f.error=function(h){b.clearQueue().css("opacity","1");$("body").css("cursor","auto");b.css("cursor","auto");a.debug=="yes"?$("html").html("").append(h.responseText):alert("An error has occurred, either try again - or try again later.")};$.ajax(f)}}function service(a,b,c,d){$.ajax({type:"POST",url:a,contentType:"application/json; charset=utf-8",data:b,dataType:"json",success:c,error:d})}function _track(a,b){return _track(a,b,"")}function _track(a,b,c){return _track(a,b,c,-1)}
function _track(a,b,c,d){try{if(typeof _gaq=="undefined")return false;if(typeof d=="undefined")d=-1;if(typeof c=="undefined")c="";if(d==-1&&c==""){_gaq.push(["_trackEvent",a,b]);return true}if(d==-1){_gaq.push(["_trackEvent",a,b,c]);return true}_gaq.push(["_trackEvent",a,b,c,d]);return true}catch(e){return false}}
$.fn.disableTextSelect=function(){return this.each(function(){if($.browser.mozilla)$(this).css("MozUserSelect","none");else $.browser.msie?$(this).bind("selectstart",function(){return false}):$(this).mousedown(function(){return false})})};$.fn.onfocusrows=function(a){return this.each(function(){$(this).bind("focus",function(){var b=$(this);b.height()<a&&b.css("height",a)})})};var _fadelock=false;$.fn.fadeOutDelay=function(){return this.each(function(){$(this).delay(2500).fadeOut(200)})};
$.fn.fadeInDelay=function(a){if(typeof a=="undefined")a=350;return this.each(function(){$(this).clearQueue().fadeIn(a).fadeTo(0,"1")})};$.fn.hackhreposition=function(){return this.each(function(){var a=$(this),b=$(".h").offset();b!=null&&a.offset().left+a.outerWidth(true)-22>b.left+956&&a.css("left",b.left+(956-a.outerWidth(true))+22)})};
$.fn.viewhoverpop=function(a){return this.each(function(){var b=$(this),c=a.value;if(!isNull(a.classEncodedValue)&&a.classEncodedValue==true){var d=b.attr("class").match(/_encval#([\d]+)#_/);if(d==null){a.debug=="yes"&&alert("viewhoverpop: Cant find id in encoded class -> "+b.attr("class"));return}c=d[1];b.removeClass("_encval#"+c+"#_")}else if(isNull(a.value)){c=b.attr("id");if(isNull(c))c=""}if(isNull(a.parameter))a.parameter="$P0";d=rndid();var e=$('<div id="'+d+'" style="display:none;"><div class="wait">&nbsp;</div></div>');
a.containerClass!=null&&e.addClass(a.containerClass);$("body").append(e);b.quicktip(e,"bottom right",false);b.css("cursor","help");var g=$(this).tooltip({api:true}),f=false;g.onBeforeShow(function(){var i=function(){e.css("height","auto");e.css("width","auto");g.getTip().css("left",g.getTrigger().css("cursor","help").offset().left).hackhreposition();_fadelock=true};a.selectedClass!=null&&b.addClass(a.selectedClass);if(!f){a.trackingName!=null&&_track(a.trackingName,a.trackingCat,c);grabHtml({viewName:a.viewName,
gatewayUrl:a.gatewayUrl,postScript:i,action:"",caller:b,target:e,replacementType:2,values:[{name:a.parameter,value:c}],debug:a.debug});f=true}return true});g.onHide(function(){a.selectedClass!=null&&b.removeClass(a.selectedClass);_fadelock=false;$(".fade").fadeOutDelay()});g.onShow(function(){g.getTip().css("left",g.getTrigger().css("cursor","help").offset().left).hackhreposition();_fadelock=true})})};$(".ltrigger").bind("inview",function(a,b){b==true&&$(this).triggerSubmit()});
function convhtml(a){return a.replace(/<br \/>/g,"<br>").replace(/\n/g,"<br>").replace(/\r/g,"<br>").replace(/<br><br>/g,"<br>").replace(/<br><br>/g,"<br>").replace(/<br> <br>/g,"<br>").replace(/<br> <br>/g,"<br>")}function getSelectedText(){if($.browser.mozilla)return document.getSelection();try{var a=$().selectedText();if(!isNull(a)&&!isNull(a.text))return a.text;return""}catch(b){}return""}$("input[class*=trig13]").keypress(function(a){if(a.keyCode=="13"){a.preventDefault();$(this).parents("fieldset").triggerSubmit()}});
$(".tabs").live("mouseenter",function(){$(".opt",$(this)).fadeInDelay()}).live("mouseleave",function(){$(".opt",$(this)).fadeOutDelay()});$(".fader").live("mouseenter",function(){$(".fade",$(this)).fadeInDelay()}).live("mouseleave",function(){_fadelock||$(".fade",$(this)).fadeOutDelay()});$(".h .nav li[id]").viewhoverpop({viewName:"views.navigation.mega-menu",containerClass:"menudd",selectedClass:"ms",trackingName:"Navigation",trackingCat:"Mega popup"});
$(".opt",".tabs").live("click",function(){_track("Navigation","Tab option",$(this).text());return true});$(".inf,.CommonTextButton,.ml,.h,.noSelect").disableTextSelect();
function __initpage(a){$("[class*=_uid _encval#]",a).viewhoverpop({viewName:"views.user.simple-details",classEncodedValue:true,parameter:"$IP0",containerClass:"cutt",trackingName:"Navigation",trackingCat:"User tooltip"});$("input[type=checkbox]").addClass("cbx");$("input[type=radio]").addClass("radio");$("[class*=faded]").css("opacity","0.3")}__initpage($("form"));

var optionNo=0,userdir="/",insertBuffer="";function mp3vision(){document.getElementById("mp3loading").style.visibility="hidden";document.getElementById("mp3loaded").style.visibility="visible"}function report_RP(a,b){alert(a)}function addName(){}function disablebuttons(a){disablerec(a);disablesave(a)}function disablerec(a){var b=document.getElementById("mp3bRec");if(b!=null)b.disabled=a}function disablesave(a){var b=document.getElementById("mp3bSave");if(b!=null)b.disabled=a}
function mp3recToggleVisible(a){if(typeof hiddenaudiorecorder!="undefined"){a=document.getElementById("audiorecordercontainer");if(a!=null){a.innerHTML=hiddenaudiorecorder;document.getElementById("reclink").style.display="none";a.style.display="block"}}return false}function setStatus_RP(a,b){if(a==" ")a="Voice record BETA. You may now begin recording";document.getElementById("Status").innerHTML=a;b==7&&fileUpLoaded();b==4&&disablesave(false);b==2&&disablesave(true);b==100&&mp3vision()}
function setTimer_RP(a){if(a!=" ")document.getElementById("Timer").innerHTML=a}function confirmRecord(a,b){confirm(a)?RECORD_RP():STOP_RP()}function RECORD_RP(){document.RPApplet.RECORD()}function PLAYBACK_RP(){document.RPApplet.PLAYBACK()}function PAUSE_RP(){document.RPApplet.PAUSE()}function STOP_RP(){document.RPApplet.STOP_RP()};

function WebForm_PostBackOptions(a,b,c,d,h,g,k){this.eventTarget=a;this.eventArgument=b;this.validation=c;this.validationGroup=d;this.actionUrl=h;this.trackFocus=g;this.clientSubmit=k}
function WebForm_DoPostBackWithOptions(a){var b=true;if(a.validation)if(typeof Page_ClientValidate=="function")b=Page_ClientValidate(a.validationGroup);if(b){if(typeof a.actionUrl!="undefined"&&a.actionUrl!=null&&a.actionUrl.length>0)theForm.action=a.actionUrl;if(a.trackFocus){b=theForm.elements.__LASTFOCUS;if(typeof b!="undefined"&&b!=null)if(typeof document.activeElement=="undefined")b.value=a.eventTarget;else{var c=document.activeElement;if(typeof c!="undefined"&&c!=null)if(typeof c.id!="undefined"&&
c.id!=null&&c.id.length>0)b.value=c.id;else if(typeof c.name!="undefined")b.value=c.name}}}a.clientSubmit&&__doPostBack(a.eventTarget,a.eventArgument)}var __pendingCallbacks=[],__synchronousCallBackIndex=-1;
function WebForm_DoCallback(a,b,c,d,h,g){var k=__theFormPostData+"__CALLBACKID="+WebForm_EncodeCallback(a)+"&__CALLBACKPARAM="+WebForm_EncodeCallback(b);if(theForm.__EVENTVALIDATION)k+="&__EVENTVALIDATION="+WebForm_EncodeCallback(theForm.__EVENTVALIDATION.value);var i;try{i=new XMLHttpRequest}catch(s){try{i=new ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}var q=true;try{q=i&&i.setRequestHeader}catch(u){}var j={};j.eventCallback=c;j.context=d;j.errorCallback=h;j.async=g;var n=WebForm_FillFirstAvailableSlot(__pendingCallbacks,
j);if(!g){if(__synchronousCallBackIndex!=-1)__pendingCallbacks[__synchronousCallBackIndex]=null;__synchronousCallBackIndex=n}if(q){i.onreadystatechange=WebForm_CallbackComplete;j.xmlRequest=i;i.open("POST",theForm.action,true);i.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=utf-8");i.send(k)}else{j.xmlRequest={};var l="__CALLBACKFRAME"+n,e=document.frames[l];if(!e){e=document.createElement("IFRAME");e.width="1";e.height="1";e.frameBorder="0";e.id=l;e.name=l;e.style.position=
"absolute";e.style.top="-100px";e.style.left="-100px";try{if(callBackFrameUrl)e.src=callBackFrameUrl}catch(v){}document.body.appendChild(e)}var r=window.setInterval(function(){if((e=document.frames[l])&&e.document){window.clearInterval(r);e.document.write("");e.document.close();e.document.write('<html><body><form method="post"><input type="hidden" name="__CALLBACKLOADSCRIPT" value="t"></form></body></html>');e.document.close();e.document.forms[0].action=theForm.action;for(var f=__theFormPostCollection.length,
o,p=0;p<f;p++)if(o=__theFormPostCollection[p]){var m=e.document.createElement("INPUT");m.type="hidden";m.name=o.name;m.value=o.value;e.document.forms[0].appendChild(m)}f=e.document.createElement("INPUT");f.type="hidden";f.name="__CALLBACKID";f.value=a;e.document.forms[0].appendChild(f);f=e.document.createElement("INPUT");f.type="hidden";f.name="__CALLBACKPARAM";f.value=b;e.document.forms[0].appendChild(f);if(theForm.__EVENTVALIDATION){f=e.document.createElement("INPUT");f.type="hidden";f.name="__EVENTVALIDATION";
f.value=theForm.__EVENTVALIDATION.value;e.document.forms[0].appendChild(f)}f=e.document.createElement("INPUT");f.type="hidden";f.name="__CALLBACKINDEX";f.value=n;e.document.forms[0].appendChild(f);e.document.forms[0].submit()}},10)}}
function WebForm_CallbackComplete(){for(var a=0;a<__pendingCallbacks.length;a++)if((callbackObject=__pendingCallbacks[a])&&callbackObject.xmlRequest&&callbackObject.xmlRequest.readyState==4){__pendingCallbacks[a].async||(__synchronousCallBackIndex=-1);__pendingCallbacks[a]=null;var b=document.getElementById("__CALLBACKFRAME"+a);b&&b.parentNode.removeChild(b);WebForm_ExecuteCallback(callbackObject)}}
function WebForm_ExecuteCallback(a){var b=a.xmlRequest.responseText;if(b.charAt(0)=="s")typeof a.eventCallback!="undefined"&&a.eventCallback!=null&&a.eventCallback(b.substring(1),a.context);else if(b.charAt(0)=="e")typeof a.errorCallback!="undefined"&&a.errorCallback!=null&&a.errorCallback(b.substring(1),a.context);else{var c=b.indexOf("|");if(c!=-1){var d=parseInt(b.substring(0,c));if(!isNaN(d)){var h=b.substring(c+1,c+d+1);if(h!=""){var g=theForm.__EVENTVALIDATION;if(!g){g=document.createElement("INPUT");
g.type="hidden";g.name="__EVENTVALIDATION";theForm.appendChild(g)}g.value=h}typeof a.eventCallback!="undefined"&&a.eventCallback!=null&&a.eventCallback(b.substring(c+d+1),a.context)}}}}function WebForm_FillFirstAvailableSlot(a,b){var c;for(c=0;c<a.length;c++)if(!a[c])break;a[c]=b;return c}var __nonMSDOMBrowser=window.navigator.appName.toLowerCase().indexOf("explorer")==-1,__theFormPostData="",__theFormPostCollection=[];
function WebForm_InitCallback(){for(var a=theForm.elements.length,b,c=0;c<a;c++){b=theForm.elements[c];var d=b.tagName.toLowerCase();if(d=="input"){d=b.type;if((d=="text"||d=="hidden"||d=="password"||(d=="checkbox"||d=="radio")&&b.checked)&&b.id!="__EVENTVALIDATION")WebForm_InitCallbackAddField(b.name,b.value)}else if(d=="select"){d=b.options.length;for(var h=0;h<d;h++)b.options[h].selected==true&&WebForm_InitCallbackAddField(b.name,b.value)}else d=="textarea"&&WebForm_InitCallbackAddField(b.name,
b.value)}}function WebForm_InitCallbackAddField(a,b){var c={};c.name=a;c.value=b;__theFormPostCollection[__theFormPostCollection.length]=c;__theFormPostData+=WebForm_EncodeCallback(a)+"="+WebForm_EncodeCallback(b)+"&"}function WebForm_EncodeCallback(a){return encodeURIComponent?encodeURIComponent(a):escape(a)}var __disabledControlArray=[];
function WebForm_ReEnableControls(){if(typeof __enabledControlArray=="undefined")return false;for(var a=0,b=0;b<__enabledControlArray.length;b++){var c;c=__nonMSDOMBrowser?document.getElementById(__enabledControlArray[b]):document.all[__enabledControlArray[b]];if(typeof c!="undefined"&&c!=null&&c.disabled==true){c.disabled=false;__disabledControlArray[a++]=c}}setTimeout("WebForm_ReDisableControls()",0);return true}
function WebForm_ReDisableControls(){for(var a=0;a<__disabledControlArray.length;a++)__disabledControlArray[a].disabled=true}function WebForm_FireDefaultButton(a,b){if(a.keyCode==13){var c=a.srcElement||a.target;if(!c||c.tagName.toLowerCase()!="textarea")if((c=__nonMSDOMBrowser?document.getElementById(b):document.all[b])&&typeof c.click!="undefined"){c.click();a.cancelBubble=true;a.stopPropagation&&a.stopPropagation();return false}}return true}
function WebForm_GetScrollX(){if(__nonMSDOMBrowser)return window.pageXOffset;else if(document.documentElement&&document.documentElement.scrollLeft)return document.documentElement.scrollLeft;else if(document.body)return document.body.scrollLeft;return 0}
function WebForm_GetScrollY(){if(__nonMSDOMBrowser)return window.pageYOffset;else if(document.documentElement&&document.documentElement.scrollTop)return document.documentElement.scrollTop;else if(document.body)return document.body.scrollTop;return 0}
function WebForm_SaveScrollPositionSubmit(){if(__nonMSDOMBrowser){theForm.elements.__SCROLLPOSITIONY.value=window.pageYOffset;theForm.elements.__SCROLLPOSITIONX.value=window.pageXOffset}else{theForm.__SCROLLPOSITIONX.value=WebForm_GetScrollX();theForm.__SCROLLPOSITIONY.value=WebForm_GetScrollY()}if(typeof this.oldSubmit!="undefined"&&this.oldSubmit!=null)return this.oldSubmit();return true}
function WebForm_SaveScrollPositionOnSubmit(){theForm.__SCROLLPOSITIONX.value=WebForm_GetScrollX();theForm.__SCROLLPOSITIONY.value=WebForm_GetScrollY();if(typeof this.oldOnSubmit!="undefined"&&this.oldOnSubmit!=null)return this.oldOnSubmit();return true}
function WebForm_RestoreScrollPosition(){__nonMSDOMBrowser?window.scrollTo(theForm.elements.__SCROLLPOSITIONX.value,theForm.elements.__SCROLLPOSITIONY.value):window.scrollTo(theForm.__SCROLLPOSITIONX.value,theForm.__SCROLLPOSITIONY.value);if(typeof theForm.oldOnLoad!="undefined"&&theForm.oldOnLoad!=null)return theForm.oldOnLoad();return true}
function WebForm_TextBoxKeyHandler(a){if(a.keyCode==13){var b;b=__nonMSDOMBrowser?a.target:a.srcElement;if(typeof b!="undefined"&&b!=null)if(typeof b.onchange!="undefined"){b.onchange();a.cancelBubble=true;a.stopPropagation&&a.stopPropagation();return false}}return true}function WebForm_TrimString(a){return a.replace(/^\s+|\s+$/g,"")}
function WebForm_AppendToClassName(a,b){var c=" "+WebForm_TrimString(a.className)+" ";b=WebForm_TrimString(b);if(c.indexOf(" "+b+" ")===-1)a.className=a.className===""?b:a.className+" "+b}function WebForm_RemoveClassName(a,b){var c=" "+WebForm_TrimString(a.className)+" ";b=WebForm_TrimString(b);var d=c.indexOf(" "+b+" ");if(d>=0)a.className=WebForm_TrimString(c.substring(0,d)+" "+c.substring(d+b.length+1,c.length))}
function WebForm_GetElementById(a){return document.getElementById?document.getElementById(a):document.all?document.all[a]:null}function WebForm_GetElementByTagName(a,b){var c=WebForm_GetElementsByTagName(a,b);return c&&c.length>0?c[0]:null}function WebForm_GetElementsByTagName(a,b){if(a&&b){if(a.getElementsByTagName)return a.getElementsByTagName(b);if(a.all&&a.all.tags)return a.all.tags(b)}return null}
function WebForm_GetElementDir(a){if(a){if(a.dir)return a.dir;return WebForm_GetElementDir(a.parentNode)}return"ltr"}
function WebForm_GetElementPosition(a){var b={};b.x=0;b.y=0;b.width=0;b.height=0;if(a.offsetParent){b.x=a.offsetLeft;b.y=a.offsetTop;for(var c=a.offsetParent;c;){b.x+=c.offsetLeft;b.y+=c.offsetTop;var d=c.tagName.toLowerCase();if(d!="table"&&d!="body"&&d!="html"&&d!="div"&&c.clientTop&&c.clientLeft){b.x+=c.clientLeft;b.y+=c.clientTop}c=c.offsetParent}}else if(a.left&&a.top){b.x=a.left;b.y=a.top}else{if(a.x)b.x=a.x;if(a.y)b.y=a.y}if(a.offsetWidth&&a.offsetHeight){b.width=a.offsetWidth;b.height=a.offsetHeight}else if(a.style&&
a.style.pixelWidth&&a.style.pixelHeight){b.width=a.style.pixelWidth;b.height=a.style.pixelHeight}return b}function WebForm_GetParentByTagName(a,b){for(var c=a.parentNode,d=b.toUpperCase();c&&c.tagName.toUpperCase()!=d;)c=c.parentNode?c.parentNode:c.parentElement;return c}function WebForm_SetElementHeight(a,b){if(a&&a.style)a.style.height=b+"px"}function WebForm_SetElementWidth(a,b){if(a&&a.style)a.style.width=b+"px"}function WebForm_SetElementX(a,b){if(a&&a.style)a.style.left=b+"px"}
function WebForm_SetElementY(a,b){if(a&&a.style)a.style.top=b+"px"};



var swfobject=function(){function x(){if(!v){try{var a=i.getElementsByTagName("body")[0].appendChild(r("span"));a.parentNode.removeChild(a)}catch(b){return}v=true;a=B.length;for(var c=0;c<a;c++)B[c]()}}function S(a){if(v)a();else B[B.length]=a}function T(a){if(typeof m.addEventListener!=j)m.addEventListener("load",a,false);else if(typeof i.addEventListener!=j)i.addEventListener("load",a,false);else if(typeof m.attachEvent!=j)aa(m,"onload",a);else if(typeof m.onload=="function"){var b=m.onload;m.onload=
function(){b();a()}}else m.onload=a}function ba(){U?ca():K()}function ca(){var a=i.getElementsByTagName("body")[0],b=r(o);b.setAttribute("type",C);var c=a.appendChild(b);if(c){var d=0;(function(){if(typeof c.GetVariable!=j){var e=c.GetVariable("$version");if(e){e=e.split(" ")[1].split(",");f.pv=[parseInt(e[0],10),parseInt(e[1],10),parseInt(e[2],10)]}}else if(d<10){d++;setTimeout(arguments.callee,10);return}a.removeChild(b);c=null;K()})()}else K()}function K(){var a=s.length;if(a>0)for(var b=0;b<a;b++){var c=
s[b].id,d=s[b].callbackFn,e={success:false,id:c};if(f.pv[0]>0){var g=n(c);if(g)if(D(s[b].swfVersion)&&!(f.wk&&f.wk<312)){w(c,true);if(d){e.success=true;e.ref=L(c);d(e)}}else if(s[b].expressInstall&&M()){e={};e.data=s[b].expressInstall;e.width=g.getAttribute("width")||"0";e.height=g.getAttribute("height")||"0";if(g.getAttribute("class"))e.styleclass=g.getAttribute("class");if(g.getAttribute("align"))e.align=g.getAttribute("align");var h={};g=g.getElementsByTagName("param");for(var k=g.length,l=0;l<
k;l++)if(g[l].getAttribute("name").toLowerCase()!="movie")h[g[l].getAttribute("name")]=g[l].getAttribute("value");N(e,h,c,d)}else{da(g);d&&d(e)}}else{w(c,true);if(d){if((c=L(c))&&typeof c.SetVariable!=j){e.success=true;e.ref=c}d(e)}}}}function L(a){var b=null;if((a=n(a))&&a.nodeName=="OBJECT")if(typeof a.SetVariable!=j)b=a;else if(a=a.getElementsByTagName(o)[0])b=a;return b}function M(){return!E&&D("6.0.65")&&(f.win||f.mac)&&!(f.wk&&f.wk<312)}function N(a,b,c,d){E=true;O=d||null;V={success:false,
id:c};var e=n(c);if(e){if(e.nodeName=="OBJECT"){z=P(e);F=null}else{z=e;F=c}a.id=W;if(typeof a.width==j||!/%$/.test(a.width)&&parseInt(a.width,10)<310)a.width="310";if(typeof a.height==j||!/%$/.test(a.height)&&parseInt(a.height,10)<137)a.height="137";i.title=i.title.slice(0,47)+" - Flash Player Installation";d=f.ie&&f.win?"ActiveX":"PlugIn";d="MMredirectURL="+m.location.toString().replace(/&/g,"%26")+"&MMplayerType="+d+"&MMdoctitle="+i.title;if(typeof b.flashvars!=j)b.flashvars+="&"+d;else b.flashvars=
d;if(f.ie&&f.win&&e.readyState!=4){d=r("div");c+="SWFObjectNew";d.setAttribute("id",c);e.parentNode.insertBefore(d,e);e.style.display="none";(function(){e.readyState==4?e.parentNode.removeChild(e):setTimeout(arguments.callee,10)})()}Q(a,b,c)}}function da(a){if(f.ie&&f.win&&a.readyState!=4){var b=r("div");a.parentNode.insertBefore(b,a);b.parentNode.replaceChild(P(a),b);a.style.display="none";(function(){a.readyState==4?a.parentNode.removeChild(a):setTimeout(arguments.callee,10)})()}else a.parentNode.replaceChild(P(a),
a)}function P(a){var b=r("div");if(f.win&&f.ie)b.innerHTML=a.innerHTML;else if(a=a.getElementsByTagName(o)[0])if(a=a.childNodes)for(var c=a.length,d=0;d<c;d++)!(a[d].nodeType==1&&a[d].nodeName=="PARAM")&&a[d].nodeType!=8&&b.appendChild(a[d].cloneNode(true));return b}function Q(a,b,c){var d,e=n(c);if(f.wk&&f.wk<312)return d;if(e){if(typeof a.id==j)a.id=c;if(f.ie&&f.win){var g="";for(var h in a)if(a[h]!=Object.prototype[h])if(h.toLowerCase()=="data")b.movie=a[h];else if(h.toLowerCase()=="styleclass")g+=
' class="'+a[h]+'"';else if(h.toLowerCase()!="classid")g+=" "+h+'="'+a[h]+'"';h="";for(var k in b)if(b[k]!=Object.prototype[k])h+='<param name="'+k+'" value="'+b[k]+'" />';e.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+g+">"+h+"</object>";G[G.length]=a.id;d=n(a.id)}else{k=r(o);k.setAttribute("type",C);for(g in a)if(a[g]!=Object.prototype[g])if(g.toLowerCase()=="styleclass")k.setAttribute("class",a[g]);else g.toLowerCase()!="classid"&&k.setAttribute(g,a[g]);for(var l in b)b[l]!=
Object.prototype[l]&&l.toLowerCase()!="movie"&&ea(k,l,b[l]);e.parentNode.replaceChild(k,e);d=k}}return d}function ea(a,b,c){var d=r("param");d.setAttribute("name",b);d.setAttribute("value",c);a.appendChild(d)}function X(a){var b=n(a);if(b&&b.nodeName=="OBJECT")if(f.ie&&f.win){b.style.display="none";(function(){b.readyState==4?fa(a):setTimeout(arguments.callee,10)})()}else b.parentNode.removeChild(b)}function fa(a){if(a=n(a)){for(var b in a)if(typeof a[b]=="function")a[b]=null;a.parentNode.removeChild(a)}}
function n(a){var b=null;try{b=i.getElementById(a)}catch(c){}return b}function r(a){return i.createElement(a)}function aa(a,b,c){a.attachEvent(b,c);y[y.length]=[a,b,c]}function D(a){var b=f.pv;a=a.split(".");a[0]=parseInt(a[0],10);a[1]=parseInt(a[1],10)||0;a[2]=parseInt(a[2],10)||0;return b[0]>a[0]||b[0]==a[0]&&b[1]>a[1]||b[0]==a[0]&&b[1]==a[1]&&b[2]>=a[2]?true:false}function Y(a,b,c,d){if(!(f.ie&&f.mac)){var e=i.getElementsByTagName("head")[0];if(e){c=c&&typeof c=="string"?c:"screen";if(d)R=p=null;
if(!p||R!=c){d=r("style");d.setAttribute("type","text/css");d.setAttribute("media",c);p=e.appendChild(d);if(f.ie&&f.win&&typeof i.styleSheets!=j&&i.styleSheets.length>0)p=i.styleSheets[i.styleSheets.length-1];R=c}if(f.ie&&f.win)p&&typeof p.addRule==o&&p.addRule(a,b);else p&&typeof i.createTextNode!=j&&p.appendChild(i.createTextNode(a+" {"+b+"}"))}}}function w(a,b){if(Z){b=b?"visible":"hidden";if(v&&n(a))n(a).style.visibility=b;else Y("#"+a,"visibility:"+b)}}function $(a){return/[\\\"<>\.;]/.exec(a)!=
null&&typeof encodeURIComponent!=j?encodeURIComponent(a):a}var j="undefined",o="object",C="application/x-shockwave-flash",W="SWFObjectExprInst",m=window,i=document,t=navigator,U=false,B=[ba],s=[],G=[],y=[],z,F,O,V,v=false,E=false,p,R,Z=true,f=function(){var a=typeof i.getElementById!=j&&typeof i.getElementsByTagName!=j&&typeof i.createElement!=j,b=t.userAgent.toLowerCase(),c=t.platform.toLowerCase(),d=c?/win/.test(c):/win/.test(b);c=c?/mac/.test(c):/mac/.test(b);b=/webkit/.test(b)?parseFloat(b.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,
"$1")):false;var e=!+"\u000b1",g=[0,0,0],h=null;if(typeof t.plugins!=j&&typeof t.plugins["Shockwave Flash"]==o){if((h=t.plugins["Shockwave Flash"].description)&&!(typeof t.mimeTypes!=j&&t.mimeTypes[C]&&!t.mimeTypes[C].enabledPlugin)){U=true;e=false;h=h.replace(/^.*\s+(\S+\s+\S+$)/,"$1");g[0]=parseInt(h.replace(/^(.*)\..*$/,"$1"),10);g[1]=parseInt(h.replace(/^.*\.(.*)\s.*$/,"$1"),10);g[2]=/[a-zA-Z]/.test(h)?parseInt(h.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else if(typeof m.ActiveXObject!=j)try{var k=
new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if(k)if(h=k.GetVariable("$version")){e=true;h=h.split(" ")[1].split(",");g=[parseInt(h[0],10),parseInt(h[1],10),parseInt(h[2],10)]}}catch(l){}return{w3:a,pv:g,wk:b,ie:e,win:d,mac:c}}();(function(){if(f.w3){if(typeof i.readyState!=j&&i.readyState=="complete"||typeof i.readyState==j&&(i.getElementsByTagName("body")[0]||i.body))x();if(!v){typeof i.addEventListener!=j&&i.addEventListener("DOMContentLoaded",x,false);if(f.ie&&f.win){i.attachEvent("onreadystatechange",
function(){if(i.readyState=="complete"){i.detachEvent("onreadystatechange",arguments.callee);x()}});m==top&&function(){if(!v){try{i.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}x()}}()}f.wk&&function(){v||(/loaded|complete/.test(i.readyState)?x():setTimeout(arguments.callee,0))}();T(x)}}})();(function(){f.ie&&f.win&&window.attachEvent("onunload",function(){for(var a=y.length,b=0;b<a;b++)y[b][0].detachEvent(y[b][1],y[b][2]);a=G.length;for(b=0;b<a;b++)X(G[b]);for(var c in f)f[c]=
null;f=null;for(var d in swfobject)swfobject[d]=null;swfobject=null})})();return{registerObject:function(a,b,c,d){if(f.w3&&a&&b){var e={};e.id=a;e.swfVersion=b;e.expressInstall=c;e.callbackFn=d;s[s.length]=e;w(a,false)}else d&&d({success:false,id:a})},getObjectById:function(a){if(f.w3)return L(a)},embedSWF:function(a,b,c,d,e,g,h,k,l,A){var H={success:false,id:b};if(f.w3&&!(f.wk&&f.wk<312)&&a&&b&&c&&d&&e){w(b,false);S(function(){c+="";d+="";var u={};if(l&&typeof l===o)for(var q in l)u[q]=l[q];u.data=
a;u.width=c;u.height=d;q={};if(k&&typeof k===o)for(var I in k)q[I]=k[I];if(h&&typeof h===o)for(var J in h)if(typeof q.flashvars!=j)q.flashvars+="&"+J+"="+h[J];else q.flashvars=J+"="+h[J];if(D(e)){I=Q(u,q,b);u.id==b&&w(b,true);H.success=true;H.ref=I}else if(g&&M()){u.data=g;N(u,q,b,A);return}else w(b,true);A&&A(H)})}else A&&A(H)},switchOffAutoHideShow:function(){Z=false},ua:f,getFlashPlayerVersion:function(){return{major:f.pv[0],minor:f.pv[1],release:f.pv[2]}},hasFlashPlayerVersion:D,createSWF:function(a,
b,c){if(f.w3)return Q(a,b,c)},showExpressInstall:function(a,b,c,d){f.w3&&M()&&N(a,b,c,d)},removeSWF:function(a){f.w3&&X(a)},createCSS:function(a,b,c,d){f.w3&&Y(a,b,c,d)},addDomLoadEvent:S,addLoadEvent:T,getQueryParamValue:function(a){var b=i.location.search||i.location.hash;if(b){if(/\?/.test(b))b=b.split("?")[1];if(a==null)return $(b);b=b.split("&");for(var c=0;c<b.length;c++)if(b[c].substring(0,b[c].indexOf("="))==a)return $(b[c].substring(b[c].indexOf("=")+1))}return""},expressInstallCallback:function(){if(E){var a=
n(W);if(a&&z){a.parentNode.replaceChild(z,a);if(F){w(F,true);if(f.ie&&f.win)z.style.display="block"}O&&O(V)}E=false}}}}();

UTF8={encode:function(a){for(var b,c=-1,d=(a=a.split("")).length,e=String.fromCharCode;++c<d;a[c]=(b=a[c].charCodeAt(0))>=127?e(192|b>>>6)+e(128|b&63):a[c]);return a.join("")},decode:function(a){for(var b,c,d=-1,e=(a=a.split("")).length,f=String.fromCharCode;++d<e;(b=a[d].charCodeAt(0))&128&&(a[d]=(b&252)==192&&((c=a[d+1].charCodeAt(0))&192)==128?f(((b&3)<<6)+(c&63)):f(128),a[++d]=""));return a.join("")}};

