/*
 * SimpleModal 1.2.2 - jQuery Plugin
 * http://www.ericmmartin.com/projects/simplemodal/
 * Copyright (c) 2008 Eric Martin
 * Dual licensed under the MIT and GPL licenses
 * Revision: $Id: jquery.simplemodal.js 181 2008-12-16 16:51:44Z emartin24 $
 
 * Modded 2009.03.04 by Juice to accommodate FF2 transparency issues
 
 */
(function(c){var e=(jQuery.browser.mozilla&&parseFloat(jQuery.browser.version.substr(0,3))<1.9);if(e){c.modal=function(g,f){return c.modal.impl.init(g,f)};c.modal.close=function(){c.modal.impl.close()};c.fn.modal=function(f){return c.modal.impl.init(this,f)};c.modal.defaults={overlayId:"simplemodal-overlay",overlayCss:{background:'transparent url("/images/pop_bg.png") top left repeat'},containerId:"simplemodal-container",containerCss:{},dataCss:{},zIndex:1000,close:true,closeHTML:'<a class="modalCloseImg" title="Close"></a>',closeClass:"simplemodal-close",position:null,persist:false,onOpen:null,onShow:null,onClose:null};c.modal.impl={opts:null,dialog:{},init:function(g,f){if(this.dialog.data){return false}this.opts=c.extend({},c.modal.defaults,f);this.zIndex=this.opts.zIndex;this.occb=false;if(typeof g=="object"){g=g instanceof jQuery?g:c(g);if(g.parent().parent().size()>0){this.dialog.parentNode=g.parent();if(!this.opts.persist){this.dialog.orig=g.clone(true)}}}else{if(typeof g=="string"||typeof g=="number"){g=c("<div/>").html(g)}else{alert("SimpleModal Error: Unsupported data type: "+typeof g);return false}}this.dialog.data=g.addClass("simplemodal-data").css(this.opts.dataCss);g=null;this.create();this.open();if(c.isFunction(this.opts.onShow)){this.opts.onShow.apply(this,[this.dialog])}return this},create:function(){a=this.getDimensions();if(b){this.dialog.iframe=c('<iframe src="javascript:false;"/>').css(c.extend(this.opts.iframeCss,{display:"none",position:"fixed",height:a[0],width:a[1],zIndex:this.opts.zIndex,top:0,left:0})).appendTo("body")}this.dialog.overlay=c("<div/>").attr("id",this.opts.overlayId).addClass("simplemodal-overlay").css(c.extend(this.opts.overlayCss,{display:"none",height:a[0],width:a[1],position:"fixed",left:0,top:0,zIndex:this.opts.zIndex+1})).appendTo("body");this.dialog.container=c("<div/>").attr("id",this.opts.containerId).addClass("simplemodal-container").css(c.extend(this.opts.containerCss,{display:"none",position:"fixed",zIndex:this.opts.zIndex+2})).append(this.opts.close?c(this.opts.closeHTML).addClass(this.opts.closeClass):"").appendTo("body");this.setPosition();if(b||d){this.fixIE()}this.dialog.container.append(this.dialog.data.hide())},bindEvents:function(){var f=this;c("."+this.opts.closeClass).bind("click.simplemodal",function(g){g.preventDefault();f.close()});c(window).bind("resize.simplemodal",function(){a=f.getDimensions();f.setPosition();if(b||d){f.fixIE()}else{f.dialog.iframe&&f.dialog.iframe.css({height:a[0],width:a[1]});f.dialog.overlay.css({height:a[0],width:a[1]})}})},unbindEvents:function(){c("."+this.opts.closeClass).unbind("click.simplemodal");c(window).unbind("resize.simplemodal")},fixIE:function(){var f=this.opts.position;c.each([this.dialog.iframe||null,this.dialog.overlay,this.dialog.container],function(t,k){if(k){var q="document.body.clientHeight",v="document.body.clientWidth",x="document.body.scrollHeight",u="document.body.scrollLeft",o="document.body.scrollTop",j="document.body.scrollWidth",h="document.documentElement.clientHeight",r="document.documentElement.clientWidth",p="document.documentElement.scrollLeft",y="document.documentElement.scrollTop",z=k[0].style;z.position="absolute";if(t<2){z.removeExpression("height");z.removeExpression("width");z.setExpression("height",""+x+" > "+q+" ? "+x+" : "+q+' + "px"');z.setExpression("width",""+j+" > "+v+" ? "+j+" : "+v+' + "px"')}else{var n,g;if(f&&f.constructor==Array){if(f[0]){var w=typeof f[0]=="number"?f[0].toString():f[0].replace(/px/,"");n=w.indexOf("%")==-1?w+" + (t = "+y+" ? "+y+" : "+o+') + "px"':parseInt(w.replace(/%/,""))+" * (("+h+" || "+q+") / 100) + (t = "+y+" ? "+y+" : "+o+') + "px"'}if(f[1]){var m=typeof f[1]=="number"?f[1].toString():f[1].replace(/px/,"");g=m.indexOf("%")==-1?m+" + (t = "+p+" ? "+p+" : "+u+') + "px"':parseInt(m.replace(/%/,""))+" * (("+r+" || "+v+") / 100) + (t = "+p+" ? "+p+" : "+u+') + "px"'}}else{n="("+h+" || "+q+") / 2 - (this.offsetHeight / 2) + (t = "+y+" ? "+y+" : "+o+') + "px"';g="("+r+" || "+v+") / 2 - (this.offsetWidth / 2) + (t = "+p+" ? "+p+" : "+u+') + "px"'}z.removeExpression("top");z.removeExpression("left");z.setExpression("top",n);z.setExpression("left",g)}}})},getDimensions:function(){var g=c(window);var f=c.browser.opera&&c.browser.version>"9.5"&&c.fn.jquery<="1.2.6"?document.documentElement.clientHeight:g.height();return[f,g.width()]},setPosition:function(){var i,h,g=(a[0]/2)-((this.dialog.container.height()||this.dialog.data.height())/2),f=(a[1]/2)-((this.dialog.container.width()||this.dialog.data.width())/2);if(this.opts.position&&this.opts.position.constructor==Array){i=this.opts.position[0]||g;h=this.opts.position[1]||f}else{i=g;h=f}this.dialog.container.css({left:h,top:i})},open:function(){this.dialog.iframe&&this.dialog.iframe.show();if(c.isFunction(this.opts.onOpen)){this.opts.onOpen.apply(this,[this.dialog])}else{this.dialog.overlay.show();this.dialog.container.show();this.dialog.data.show()}this.bindEvents()},close:function(){if(!this.dialog.data){return false}if(c.isFunction(this.opts.onClose)&&!this.occb){this.occb=true;this.opts.onClose.apply(this,[this.dialog])}else{if(this.dialog.parentNode){if(this.opts.persist){this.dialog.data.hide().appendTo(this.dialog.parentNode)}else{this.dialog.data.remove();this.dialog.orig.appendTo(this.dialog.parentNode)}}else{this.dialog.data.remove()}this.dialog.container.remove();this.dialog.overlay.remove();this.dialog.iframe&&this.dialog.iframe.remove();this.dialog={}}this.unbindEvents()}}}else{var b=c.browser.msie&&parseInt(c.browser.version)==6&&!window.XMLHttpRequest,d=c.browser.msie&&!c.boxModel,a=[];c.modal=function(g,f){return c.modal.impl.init(g,f)};c.modal.close=function(){c.modal.impl.close()};c.fn.modal=function(f){return c.modal.impl.init(this,f)};c.modal.defaults={opacity:96,overlayId:"simplemodal-overlay",overlayCss:{},containerId:"simplemodal-container",containerCss:{},dataCss:{},zIndex:1000,close:true,closeHTML:'<a class="modalCloseImg" title="Close"></a>',closeClass:"simplemodal-close",position:null,persist:false,onOpen:null,onShow:null,onClose:null};c.modal.impl={opts:null,dialog:{},init:function(g,f){if(this.dialog.data){return false}this.opts=c.extend({},c.modal.defaults,f);this.zIndex=this.opts.zIndex;this.occb=false;if(typeof g=="object"){g=g instanceof jQuery?g:c(g);if(g.parent().parent().size()>0){this.dialog.parentNode=g.parent();if(!this.opts.persist){this.dialog.orig=g.clone(true)}}}else{if(typeof g=="string"||typeof g=="number"){g=c("<div/>").html(g)}else{alert("SimpleModal Error: Unsupported data type: "+typeof g);return false}}this.dialog.data=g.addClass("simplemodal-data").css(this.opts.dataCss);g=null;this.create();this.open();if(c.isFunction(this.opts.onShow)){this.opts.onShow.apply(this,[this.dialog])}return this},create:function(){a=this.getDimensions();if(b){this.dialog.iframe=c('<iframe src="javascript:false;"/>').css(c.extend(this.opts.iframeCss,{display:"none",opacity:0,position:"fixed",height:a[0],width:a[1],zIndex:this.opts.zIndex,top:0,left:0})).appendTo("body")}this.dialog.overlay=c("<div/>").attr("id",this.opts.overlayId).addClass("simplemodal-overlay").css(c.extend(this.opts.overlayCss,{display:"none",opacity:this.opts.opacity/100,height:a[0],width:a[1],position:"fixed",left:0,top:0,zIndex:this.opts.zIndex+1})).appendTo("body");this.dialog.container=c("<div/>").attr("id",this.opts.containerId).addClass("simplemodal-container").css(c.extend(this.opts.containerCss,{display:"none",position:"fixed",zIndex:this.opts.zIndex+2})).append(this.opts.close?c(this.opts.closeHTML).addClass(this.opts.closeClass):"").appendTo("body");this.setPosition();if(b||d){this.fixIE()}this.dialog.container.append(this.dialog.data.hide())},bindEvents:function(){var f=this;c("."+this.opts.closeClass).bind("click.simplemodal",function(g){g.preventDefault();f.close()});c(window).bind("resize.simplemodal",function(){a=f.getDimensions();f.setPosition();if(b||d){f.fixIE()}else{f.dialog.iframe&&f.dialog.iframe.css({height:a[0],width:a[1]});f.dialog.overlay.css({height:a[0],width:a[1]})}})},unbindEvents:function(){c("."+this.opts.closeClass).unbind("click.simplemodal");c(window).unbind("resize.simplemodal")},fixIE:function(){var f=this.opts.position;c.each([this.dialog.iframe||null,this.dialog.overlay,this.dialog.container],function(t,k){if(k){var q="document.body.clientHeight",v="document.body.clientWidth",x="document.body.scrollHeight",u="document.body.scrollLeft",o="document.body.scrollTop",j="document.body.scrollWidth",h="document.documentElement.clientHeight",r="document.documentElement.clientWidth",p="document.documentElement.scrollLeft",y="document.documentElement.scrollTop",z=k[0].style;z.position="absolute";if(t<2){z.removeExpression("height");z.removeExpression("width");z.setExpression("height",""+x+" > "+q+" ? "+x+" : "+q+' + "px"');z.setExpression("width",""+j+" > "+v+" ? "+j+" : "+v+' + "px"')}else{var n,g;if(f&&f.constructor==Array){if(f[0]){var w=typeof f[0]=="number"?f[0].toString():f[0].replace(/px/,"");n=w.indexOf("%")==-1?w+" + (t = "+y+" ? "+y+" : "+o+') + "px"':parseInt(w.replace(/%/,""))+" * (("+h+" || "+q+") / 100) + (t = "+y+" ? "+y+" : "+o+') + "px"'}if(f[1]){var m=typeof f[1]=="number"?f[1].toString():f[1].replace(/px/,"");g=m.indexOf("%")==-1?m+" + (t = "+p+" ? "+p+" : "+u+') + "px"':parseInt(m.replace(/%/,""))+" * (("+r+" || "+v+") / 100) + (t = "+p+" ? "+p+" : "+u+') + "px"'}}else{n="("+h+" || "+q+") / 2 - (this.offsetHeight / 2) + (t = "+y+" ? "+y+" : "+o+') + "px"';g="("+r+" || "+v+") / 2 - (this.offsetWidth / 2) + (t = "+p+" ? "+p+" : "+u+') + "px"'}z.removeExpression("top");z.removeExpression("left");z.setExpression("top",n);z.setExpression("left",g)}}})},getDimensions:function(){var g=c(window);var f=c.browser.opera&&c.browser.version>"9.5"&&c.fn.jquery<="1.2.6"?document.documentElement.clientHeight:g.height();return[f,g.width()]},setPosition:function(){var i,h,g=(a[0]/2)-((this.dialog.container.height()||this.dialog.data.height())/2),f=(a[1]/2)-((this.dialog.container.width()||this.dialog.data.width())/2);if(this.opts.position&&this.opts.position.constructor==Array){i=this.opts.position[0]||g;h=this.opts.position[1]||f}else{i=g;h=f}this.dialog.container.css({left:h,top:i})},open:function(){this.dialog.iframe&&this.dialog.iframe.show();if(c.isFunction(this.opts.onOpen)){this.opts.onOpen.apply(this,[this.dialog])}else{this.dialog.overlay.show();this.dialog.container.show();this.dialog.data.show()}this.bindEvents()},close:function(){if(!this.dialog.data){return false}if(c.isFunction(this.opts.onClose)&&!this.occb){this.occb=true;this.opts.onClose.apply(this,[this.dialog])}else{if(this.dialog.parentNode){if(this.opts.persist){this.dialog.data.hide().appendTo(this.dialog.parentNode)}else{this.dialog.data.remove();this.dialog.orig.appendTo(this.dialog.parentNode)}}else{this.dialog.data.remove()}this.dialog.container.remove();this.dialog.overlay.remove();this.dialog.iframe&&this.dialog.iframe.remove();this.dialog={}}this.unbindEvents()}}}})(jQuery);
/*
 * jQuery.ScrollTo - Easy element scrolling using jQuery.
 * Copyright (c) 2007-2008 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com
 * Dual licensed under MIT and GPL.
 * Date: 9/11/2008
 * @author Ariel Flesler
 * @version 1.4
 *
 * http://flesler.blogspot.com/2007/10/jqueryscrollto.html
 */
(function(b){var a=b.scrollTo=function(d,f,e){b(window).scrollTo(d,f,e)};a.defaults={axis:"y",duration:1};a.window=function(d){return b(window).scrollable()};b.fn.scrollable=function(){return this.map(function(){var d=this.parentWindow||this.defaultView,h=this.nodeName=="#document"?d.frameElement||d:this,f=h.contentDocument||(h.contentWindow||h).document,e=h.setInterval;return h.nodeName=="IFRAME"||e&&b.browser.safari?f.body:e?f.documentElement:this})};b.fn.scrollTo=function(f,e,d){if(typeof e=="object"){d=e;e=0}if(typeof d=="function"){d={onAfter:d}}d=b.extend({},a.defaults,d);e=e||d.speed||d.duration;d.queue=d.queue&&d.axis.length>1;if(d.queue){e/=2}d.offset=c(d.offset);d.over=c(d.over);return this.scrollable().each(function(){var h=this,s=b(h),r=f,g,n={},m=s.is("html,body");switch(typeof r){case"number":case"string":if(/^([+-]=)?\d+(px)?$/.test(r)){r=c(r);break}r=b(r,this);case"object":if(r.is||r.style){g=(r=b(r)).offset()}}b.each(d.axis.split(""),function(k,y){var w=y=="x"?"Left":"Top",q=w.toLowerCase(),x="scroll"+w,u=h[x],p=y=="x"?"Width":"Height",o=p.toLowerCase();if(g){n[x]=g[q]+(m?0:u-s.offset()[q]);if(d.margin){n[x]-=parseInt(r.css("margin"+w))||0;n[x]-=parseInt(r.css("border"+w+"Width"))||0}n[x]+=d.offset[q]||0;if(d.over[q]){n[x]+=r[o]()*d.over[q]}}else{n[x]=r[q]}if(/^\d+$/.test(n[x])){n[x]=n[x]<=0?0:Math.min(n[x],i(p))}if(!k&&d.queue){if(u!=n[x]){j(d.onAfterFirst)}delete n[x]}});j(d.onAfter);function j(k){s.animate(n,e,d.easing,k&&function(){k.call(this,f,d)})}function i(k){var p="scroll"+k,o=h.ownerDocument;return m?Math.max(o.documentElement[p],o.body[p]):h[p]}}).end()};function c(d){return typeof d=="object"?d:{top:d,left:d}}})(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/wiki/License
 *
 */

var jaaulde=window.jaaulde||{};jaaulde.utils=jaaulde.utils||{};jaaulde.utils.cookies=(function(){var d=[];var b={hoursToLive:null,path:"/",domain:null,secure:false};var g=function(h){var i;if(typeof h!=="object"||h===null){i=b}else{i={hoursToLive:(typeof h.hoursToLive==="number"&&h.hoursToLive!==0?h.hoursToLive:b.hoursToLive),path:(typeof h.path==="string"&&h.path!==""?h.path:b.path),domain:(typeof h.domain==="string"&&h.domain!==""?h.domain:b.domain),secure:(typeof h.secure==="boolean"&&h.secure?h.secure:b.secure)}}return i};var a=function(h){var i=new Date();i.setTime(i.getTime()+(h*60*60*1000));return i.toGMTString()};var f=function(h){h=g(h);return((typeof h.hoursToLive==="number"?"; expires="+a(h.hoursToLive):"")+"; path="+h.path+(typeof h.domain==="string"?"; domain="+h.domain:"")+(h.secure===true?"; secure":""))};var e=function(){d={};var n,j,m,h=document.cookie.split(";");for(var k=0;k<h.length;k=k+1){n=h[k].split("=");j=n[0].replace(/^\s*/,"").replace(/\s*$/,"");m=decodeURIComponent(n[1]);d[j]=m}return d};var c=function(){};c.prototype.get=function(j){var h;e();if(typeof j==="string"){h=(typeof d[j]!=="undefined")?d[j]:null}else{if(typeof j==="object"&&j!==null){h={};for(var i in j){if(typeof d[j[i]]!=="undefined"){h[j[i]]=d[j[i]]}else{h[j[i]]=null}}}else{h=d}}return h};c.prototype.filter=function(h){var i={};e();if(typeof h==="string"){h=new RegExp(h)}for(var j in d){if(j.match(h)){i[j]=d[j]}}return i};c.prototype.set=function(k,i,h){if(typeof i==="undefined"||i===null){if(typeof h!=="object"||h===null){h={}}i="";h.hoursToLive=-8760}var j=f(h);document.cookie=k+"="+encodeURIComponent(i)+j};c.prototype.del=function(k,j){var h={};if(typeof j!=="object"||j===null){j={}}if(typeof k==="boolean"&&k===true){h=this.get()}else{if(typeof k==="string"){h[k]=true}}for(var i in h){if(typeof i==="string"&&i!==""){this.set(i,null,j)}}};c.prototype.test=function(){var i=false,h="cT",j="data";this.set(h,j);if(this.get(h)===j){this.del(h);i=true}return i};c.prototype.setOptions=function(h){if(typeof h!=="object"){h=null}b=g(h)};return new c()})();(function(){if(window.jQuery){(function(b){b.cookies=jaaulde.utils.cookies;var a={cookify:function(c){return this.each(function(){var g,e=false,d=false,f="",k="",j=["name","id"],m,h;for(g in j){if(!isNaN(g)){f=b(this).attr(j[g]);if(typeof f==="string"&&f!==""){e=true;break}}}if(e){m=this.nodeName.toLowerCase();if(m!=="input"&&m!=="textarea"&&m!=="select"&&m!=="img"){k=b(this).html();d=true}else{h=b(this).attr("type");if(typeof h==="string"&&h!==""){h=h.toLowerCase()}if(h!=="radio"&&h!=="checkbox"){k=b(this).val();d=true}}if(d){if(typeof k!=="string"||k===""){k=null}b.cookies.set(f,k,c)}}})},cookieFill:function(){return this.each(function(){var e,c=false,d="",h,g=["name","id"],f=0,j;for(e in g){if(!isNaN(e)){d=b(this).attr(g[e]);if(typeof d==="string"&&d!==""){c=true;break}}}if(c){h=b.cookies.get(d);if(h!==null){j=this.nodeName.toLowerCase();if(j==="input"||j==="textarea"||j==="select"){b(this).val(h)}else{b(this).html(h)}}}f=0})},cookieBind:function(c){return this.each(function(){b(this).cookieFill().change(function(){b(this).cookify(c)})})}};b.each(a,function(c){b.fn[c]=this})})(window.jQuery)}})();

/*
 * jQuery Color Animations
 * Copyright 2007 John Resig
 * Released under the MIT and GPL licenses.
 */
(function(d){d.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(f,e){d.fx.step[e]=function(g){if(g.state==0){g.start=c(g.elem,e);g.end=b(g.end)}g.elem.style[e]="rgb("+[Math.max(Math.min(parseInt((g.pos*(g.end[0]-g.start[0]))+g.start[0]),255),0),Math.max(Math.min(parseInt((g.pos*(g.end[1]-g.start[1]))+g.start[1]),255),0),Math.max(Math.min(parseInt((g.pos*(g.end[2]-g.start[2]))+g.start[2]),255),0)].join(",")+")"}});
/*
	// Color Conversion functions from highlightFade
	// By Blair Mitchelmore
	// http://jquery.offput.ca/highlightFade/
*/
function b(f){var e;if(f&&f.constructor==Array&&f.length==3){return f}if(e=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(f)){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}if(e=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(f)){return[parseFloat(e[1])*2.55,parseFloat(e[2])*2.55,parseFloat(e[3])*2.55]}if(e=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(f)){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}if(e=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(f)){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}return a[d.trim(f).toLowerCase()]}function c(g,e){var f;do{f=d.curCSS(g,e);if(f!=""&&f!="transparent"||d.nodeName(g,"body")){break}e="backgroundColor"}while(g=g.parentNode);return b(f)}var a={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]}})(jQuery);

/* Copyright (c) 2008 Brandon Aaron (http://brandonaaron.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.3
 * Requires jQuery 1.1.3+
 * Docs: http://docs.jquery.com/Plugins/livequery
 */
(function(a){a.extend(a.fn,{livequery:function(f,e,d){var c=this,g;if(a.isFunction(f)){d=e,e=f,f=undefined}a.each(a.livequery.queries,function(h,j){if(c.selector==j.selector&&c.context==j.context&&f==j.type&&(!e||e.$lqguid==j.fn.$lqguid)&&(!d||d.$lqguid==j.fn2.$lqguid)){return(g=j)&&false}});g=g||new a.livequery(this.selector,this.context,f,e,d);g.stopped=false;g.run();return this},expire:function(f,e,d){var c=this;if(a.isFunction(f)){d=e,e=f,f=undefined}a.each(a.livequery.queries,function(g,h){if(c.selector==h.selector&&c.context==h.context&&(!f||f==h.type)&&(!e||e.$lqguid==h.fn.$lqguid)&&(!d||d.$lqguid==h.fn2.$lqguid)&&!this.stopped){a.livequery.stop(h.id)}});return this}});a.livequery=function(c,e,g,f,d){this.selector=c;this.context=e||document;this.type=g;this.fn=f;this.fn2=d;this.elements=[];this.stopped=false;this.id=a.livequery.queries.push(this)-1;f.$lqguid=f.$lqguid||a.livequery.guid++;if(d){d.$lqguid=d.$lqguid||a.livequery.guid++}return this};a.livequery.prototype={stop:function(){var c=this;if(this.type){this.elements.unbind(this.type,this.fn)}else{if(this.fn2){this.elements.each(function(d,e){c.fn2.apply(e)})}}this.elements=[];this.stopped=true},run:function(){if(this.stopped){return}var e=this;var f=this.elements,d=a(this.selector,this.context),c=d.not(f);this.elements=d;if(this.type){c.bind(this.type,this.fn);if(f.length>0){a.each(f,function(g,h){if(a.inArray(h,d)<0){a.event.remove(h,e.type,e.fn)}})}}else{c.each(function(){e.fn.apply(this)});if(this.fn2&&f.length>0){a.each(f,function(g,h){if(a.inArray(h,d)<0){e.fn2.apply(h)}})}}}};a.extend(a.livequery,{guid:0,queries:[],queue:[],running:false,timeout:null,checkQueue:function(){if(a.livequery.running&&a.livequery.queue.length){var c=a.livequery.queue.length;while(c--){a.livequery.queries[a.livequery.queue.shift()].run()}}},pause:function(){a.livequery.running=false},play:function(){a.livequery.running=true;a.livequery.run()},registerPlugin:function(){a.each(arguments,function(d,e){if(!a.fn[e]){return}var c=a.fn[e];a.fn[e]=function(){var f=c.apply(this,arguments);a.livequery.run();return f}})},run:function(c){if(c!=undefined){if(a.inArray(c,a.livequery.queue)<0){a.livequery.queue.push(c)}}else{a.each(a.livequery.queries,function(d){if(a.inArray(d,a.livequery.queue)<0){a.livequery.queue.push(d)}})}if(a.livequery.timeout){clearTimeout(a.livequery.timeout)}a.livequery.timeout=setTimeout(a.livequery.checkQueue,20)},stop:function(c){if(c!=undefined){a.livequery.queries[c].stop()}else{a.each(a.livequery.queries,function(d){a.livequery.queries[d].stop()})}}});a.livequery.registerPlugin("append","prepend","after","before","wrap","attr","removeAttr","addClass","removeClass","toggleClass","empty","remove");a(function(){a.livequery.play()});var b=a.prototype.init;a.prototype.init=function(d,f){var e=b.apply(this,arguments);if(d&&d.selector){e.context=d.context,e.selector=d.selector}if(typeof d=="string"){e.context=f||document,e.selector=d}
return e};a.prototype.init.prototype=a.prototype})(jQuery);


var siteRoot_str="";
var swfobject=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=false,A=false;var h=function(){var v=typeof K.getElementById!=b&&typeof K.getElementsByTagName!=b&&typeof K.createElement!=b,AC=[0,0,0],x=null;if(typeof T.plugins!=b&&typeof T.plugins[n]==Q){x=T.plugins[n].description;if(x&&!(typeof T.mimeTypes!=b&&T.mimeTypes[P]&&!T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+$)/,"$1");AC[0]=parseInt(x.replace(/^(.*)\..*$/,"$1"),10);AC[1]=parseInt(x.replace(/^.*\.(.*)\s.*$/,"$1"),10);AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=false;try{y=new ActiveXObject(p+".7")}catch(t){try{y=new ActiveXObject(p+".6");AC=[6,0,21];y.AllowScriptAccess="always"}catch(t){if(AC[0]==6){AB=true}}if(!AB){try{y=new ActiveXObject(p)}catch(t){}}}if(!AB&&y){try{x=y.GetVariable("$version");if(x){x=x.split(" ")[1].split(",");AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]}}catch(t){}}}}var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)?parseFloat(AD.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,q=false,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test(r):/mac/.test(AD);

/*@cc_on q=true;@if(@_win32)z=true;@elif(@_mac)w=true;@end@*/
return{w3cdom:v,pv:AC,webkit:AA,ie:q,win:z,mac:w}}();var L=function(){if(!h.w3cdom){return}f(H);if(h.ie&&h.win){try{K.write("<script id=__ie_ondomload defer=true src=//:><\/script>");J=C("__ie_ondomload");if(J){I(J,"onreadystatechange",S)}}catch(q){}}if(h.webkit&&typeof K.readyState!=b){Z=setInterval(function(){if(/loaded|complete/.test(K.readyState)){E()}},10)}if(typeof K.addEventListener!=b){K.addEventListener("DOMContentLoaded",E,null)}R(E)}();function S(){if(J.readyState=="complete"){J.parentNode.removeChild(J);E()}}function E(){if(e){return}if(h.ie&&h.win){var v=a("span");try{var u=K.getElementsByTagName("body")[0].appendChild(v);u.parentNode.removeChild(u)}catch(w){return}}e=true;if(Z){clearInterval(Z);Z=null}var q=o.length;for(var r=0;r<q;r++){o[r]()}}function f(q){if(e){q()}else{o[o.length]=q}}function R(r){if(typeof j.addEventListener!=b){j.addEventListener("load",r,false)}else{if(typeof K.addEventListener!=b){K.addEventListener("load",r,false)}else{if(typeof j.attachEvent!=b){I(j,"onload",r)}else{if(typeof j.onload=="function"){var q=j.onload;j.onload=function(){q();r()}}else{j.onload=r}}}}}function H(){var t=N.length;for(var q=0;q<t;q++){var u=N[q].id;if(h.pv[0]>0){var r=C(u);if(r){N[q].width=r.getAttribute("width")?r.getAttribute("width"):"0";N[q].height=r.getAttribute("height")?r.getAttribute("height"):"0";if(c(N[q].swfVersion)){if(h.webkit&&h.webkit<312){Y(r)}W(u,true)}else{if(N[q].expressInstall&&!A&&c("6.0.65")&&(h.win||h.mac)){k(N[q])}else{O(r)}}}}else{W(u,true)}}}function Y(t){var q=t.getElementsByTagName(Q)[0];if(q){var w=a("embed"),y=q.attributes;if(y){var v=y.length;for(var u=0;u<v;u++){if(y[u].nodeName=="DATA"){w.setAttribute("src",y[u].nodeValue)}else{w.setAttribute(y[u].nodeName,y[u].nodeValue)}}}var x=q.childNodes;if(x){var z=x.length;for(var r=0;r<z;r++){if(x[r].nodeType==1&&x[r].nodeName=="PARAM"){w.setAttribute(x[r].getAttribute("name"),x[r].getAttribute("value"))}}}t.parentNode.replaceChild(w,t)}}function k(w){A=true;var u=C(w.id);if(u){if(w.altContentId){var y=C(w.altContentId);if(y){M=y;l=w.altContentId}}else{M=G(u)}if(!(/%$/.test(w.width))&&parseInt(w.width,10)<310){w.width="310"}if(!(/%$/.test(w.height))&&parseInt(w.height,10)<137){w.height="137"}K.title=K.title.slice(0,47)+" - Flash Player Installation";var z=h.ie&&h.win?"ActiveX":"PlugIn",q=K.title,r="MMredirectURL="+j.location+"&MMplayerType="+z+"&MMdoctitle="+q,x=w.id;if(h.ie&&h.win&&u.readyState!=4){var t=a("div");x+="SWFObjectNew";t.setAttribute("id",x);u.parentNode.insertBefore(t,u);u.style.display="none";var v=function(){u.parentNode.removeChild(u)};I(j,"onload",v)}U({data:w.expressInstall,id:m,width:w.width,height:w.height},{flashvars:r},x)}}function O(t){if(h.ie&&h.win&&t.readyState!=4){var r=a("div");t.parentNode.insertBefore(r,t);r.parentNode.replaceChild(G(t),r);t.style.display="none";var q=function(){t.parentNode.removeChild(t)};I(j,"onload",q)}else{t.parentNode.replaceChild(G(t),t)}}function G(v){var u=a("div");if(h.win&&h.ie){u.innerHTML=v.innerHTML}else{var r=v.getElementsByTagName(Q)[0];if(r){var w=r.childNodes;if(w){var q=w.length;for(var t=0;t<q;t++){if(!(w[t].nodeType==1&&w[t].nodeName=="PARAM")&&!(w[t].nodeType==8)){u.appendChild(w[t].cloneNode(true))}}}}}return u}function U(AG,AE,t){var q,v=C(t);if(v){if(typeof AG.id==b){AG.id=t}if(h.ie&&h.win){var AF="";for(var AB in AG){if(AG[AB]!=Object.prototype[AB]){if(AB.toLowerCase()=="data"){AE.movie=AG[AB]}else{if(AB.toLowerCase()=="styleclass"){AF+=' class="'+AG[AB]+'"'}else{if(AB.toLowerCase()!="classid"){AF+=" "+AB+'="'+AG[AB]+'"'}}}}}var AD="";for(var AA in AE){if(AE[AA]!=Object.prototype[AA]){AD+='<param name="'+AA+'" value="'+AE[AA]+'" />'}}v.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AF+">"+AD+"</object>";i[i.length]=AG.id;q=C(AG.id)}else{if(h.webkit&&h.webkit<312){var AC=a("embed");AC.setAttribute("type",P);for(var z in AG){if(AG[z]!=Object.prototype[z]){if(z.toLowerCase()=="data"){AC.setAttribute("src",AG[z])}else{if(z.toLowerCase()=="styleclass"){AC.setAttribute("class",AG[z])}else{if(z.toLowerCase()!="classid"){AC.setAttribute(z,AG[z])}}}}}for(var y in AE){if(AE[y]!=Object.prototype[y]){if(y.toLowerCase()!="movie"){AC.setAttribute(y,AE[y])}}}v.parentNode.replaceChild(AC,v);q=AC}else{var u=a(Q);u.setAttribute("type",P);for(var x in AG){if(AG[x]!=Object.prototype[x]){if(x.toLowerCase()=="styleclass"){u.setAttribute("class",AG[x])}else{if(x.toLowerCase()!="classid"){u.setAttribute(x,AG[x])}}}}for(var w in AE){if(AE[w]!=Object.prototype[w]&&w.toLowerCase()!="movie"){F(u,w,AE[w])}}v.parentNode.replaceChild(u,v);q=u}}}return q}function F(t,q,r){var u=a("param");u.setAttribute("name",q);u.setAttribute("value",r);t.appendChild(u)}function X(r){var q=C(r);if(q&&(q.nodeName=="OBJECT"||q.nodeName=="EMBED")){if(h.ie&&h.win){if(q.readyState==4){B(r)}else{j.attachEvent("onload",function(){B(r)})}}else{q.parentNode.removeChild(q)}}}function B(t){var r=C(t);if(r){for(var q in r){if(typeof r[q]=="function"){r[q]=null}}r.parentNode.removeChild(r)}}function C(t){var q=null;try{q=K.getElementById(t)}catch(r){}return q}function a(q){return K.createElement(q)}function I(t,q,r){t.attachEvent(q,r);d[d.length]=[t,q,r]}function c(t){var r=h.pv,q=t.split(".");q[0]=parseInt(q[0],10);q[1]=parseInt(q[1],10)||0;q[2]=parseInt(q[2],10)||0;return(r[0]>q[0]||(r[0]==q[0]&&r[1]>q[1])||(r[0]==q[0]&&r[1]==q[1]&&r[2]>=q[2]))?true:false}function V(v,r){if(h.ie&&h.mac){return}var u=K.getElementsByTagName("head")[0],t=a("style");t.setAttribute("type","text/css");t.setAttribute("media","screen");if(!(h.ie&&h.win)&&typeof K.createTextNode!=b){t.appendChild(K.createTextNode(v+" {"+r+"}"))}u.appendChild(t);if(h.ie&&h.win&&typeof K.styleSheets!=b&&K.styleSheets.length>0){var q=K.styleSheets[K.styleSheets.length-1];if(typeof q.addRule==Q){q.addRule(v,r)}}}function W(t,q){var r=q?"visible":"hidden";if(e&&C(t)){C(t).style.visibility=r}else{V("#"+t,"visibility:"+r)}}function g(s){var r=/[\\\"<>\.;]/;var q=r.exec(s)!=null;return q?encodeURIComponent(s):s}var D=function(){if(h.ie&&h.win){window.attachEvent("onunload",function(){var w=d.length;for(var v=0;v<w;v++){d[v][0].detachEvent(d[v][1],d[v][2])}var t=i.length;for(var u=0;u<t;u++){X(i[u])}for(var r in h){h[r]=null}h=null;for(var q in swfobject){swfobject[q]=null}swfobject=null})}}();return{registerObject:function(u,q,t){if(!h.w3cdom||!u||!q){return}var r={};r.id=u;r.swfVersion=q;r.expressInstall=t?t:false;N[N.length]=r;W(u,false)},getObjectById:function(v){var q=null;if(h.w3cdom){var t=C(v);if(t){var u=t.getElementsByTagName(Q)[0];if(!u||(u&&typeof t.SetVariable!=b)){q=t}else{if(typeof u.SetVariable!=b){q=u}}}}return q},embedSWF:function(x,AE,AB,AD,q,w,r,z,AC){if(!h.w3cdom||!x||!AE||!AB||!AD||!q){return}AB+="";AD+="";if(c(q)){W(AE,false);var AA={};if(AC&&typeof AC===Q){for(var v in AC){if(AC[v]!=Object.prototype[v]){AA[v]=AC[v]}}}AA.data=x;AA.width=AB;AA.height=AD;var y={};if(z&&typeof z===Q){for(var u in z){if(z[u]!=Object.prototype[u]){y[u]=z[u]}}}if(r&&typeof r===Q){for(var t in r){if(r[t]!=Object.prototype[t]){if(typeof y.flashvars!=b){y.flashvars+="&"+t+"="+r[t]}else{y.flashvars=t+"="+r[t]}}}}f(function(){U(AA,y,AE);if(AA.id==AE){W(AE,true)}})}else{if(w&&!A&&c("6.0.65")&&(h.win||h.mac)){A=true;W(AE,false);f(function(){var AF={};AF.id=AF.altContentId=AE;AF.width=AB;AF.height=AD;AF.expressInstall=w;k(AF)})}}},getFlashPlayerVersion:function(){return{major:h.pv[0],minor:h.pv[1],release:h.pv[2]}},hasFlashPlayerVersion:c,createSWF:function(t,r,q){if(h.w3cdom){return U(t,r,q)}else{return undefined}},removeSWF:function(q){if(h.w3cdom){X(q)}},createCSS:function(r,q){if(h.w3cdom){V(r,q)}},addDomLoadEvent:f,addLoadEvent:R,getQueryParamValue:function(v){var u=K.location.search||K.location.hash;if(v==null){return g(u)}if(u){var t=u.substring(1).split("&");for(var r=0;r<t.length;r++){if(t[r].substring(0,t[r].indexOf("="))==v){return g(t[r].substring((t[r].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(A&&M){var q=C(m);if(q){q.parentNode.replaceChild(M,q);if(l){W(l,true);if(h.ie&&h.win){M.style.display="block"}}M=null;l=null;A=false}}}}}();

var sIFR=new function(){var O=this;var E={ACTIVE:"sIFR-active",REPLACED:"sIFR-replaced",IGNORE:"sIFR-ignore",ALTERNATE:"sIFR-alternate",CLASS:"sIFR-class",LAYOUT:"sIFR-layout",FLASH:"sIFR-flash",FIX_FOCUS:"sIFR-fixfocus",DUMMY:"sIFR-dummy"};E.IGNORE_CLASSES=[E.REPLACED,E.IGNORE,E.ALTERNATE];this.MIN_FONT_SIZE=6;this.MAX_FONT_SIZE=126;this.FLASH_PADDING_BOTTOM=5;this.VERSION="436";this.isActive=false;this.isEnabled=true;this.fixHover=true;this.autoInitialize=true;this.setPrefetchCookie=true;this.cookiePath="/";this.domains=[];this.forceWidth=true;this.fitExactly=false;this.forceTextTransform=true;this.useDomLoaded=true;this.useStyleCheck=false;this.hasFlashClassSet=false;this.repaintOnResize=true;this.replacements=[];var L=0;var R=false;function Y(){}function D(c){function d(e){return e.toLocaleUpperCase()}this.normalize=function(e){return e.replace(/\n|\r|\xA0/g,D.SINGLE_WHITESPACE).replace(/\s+/g,D.SINGLE_WHITESPACE)};this.textTransform=function(e,f){switch(e){case"uppercase":return f.toLocaleUpperCase();case"lowercase":return f.toLocaleLowerCase();case"capitalize":return f.replace(/^\w|\s\w/g,d)}return f};this.toHexString=function(e){if(e.charAt(0)!="#"||e.length!=4&&e.length!=7){return e}e=e.substring(1);return"0x"+(e.length==3?e.replace(/(.)(.)(.)/,"$1$1$2$2$3$3"):e)};this.toJson=function(g,f){var e="";switch(typeof(g)){case"string":e='"'+f(g)+'"';break;case"number":case"boolean":e=g.toString();break;case"object":e=[];for(var h in g){if(g[h]==Object.prototype[h]){continue}e.push('"'+h+'":'+this.toJson(g[h]))}e="{"+e.join(",")+"}";break}return e};this.convertCssArg=function(e){if(!e){return{}}if(typeof(e)=="object"){if(e.constructor==Array){e=e.join("")}else{return e}}var l={};var m=e.split("}");for(var h=0;h<m.length;h++){var k=m[h].match(/([^\s{]+)\s*\{(.+)\s*;?\s*/);if(!k||k.length!=3){continue}if(!l[k[1]]){l[k[1]]={}}var g=k[2].split(";");for(var f=0;f<g.length;f++){var n=g[f].match(/\s*([^:\s]+)\s*\:\s*([^;]+)/);if(!n||n.length!=3){continue}l[k[1]][n[1]]=n[2].replace(/\s+$/,"")}}return l};this.extractFromCss=function(g,f,i,e){var h=null;if(g&&g[f]&&g[f][i]){h=g[f][i];if(e){delete g[f][i]}}return h};this.cssToString=function(f){var g=[];for(var e in f){var j=f[e];if(j==Object.prototype[e]){continue}g.push(e,"{");for(var i in j){if(j[i]==Object.prototype[i]){continue}var h=j[i];if(D.UNIT_REMOVAL_PROPERTIES[i]){h=parseInt(h,10)}g.push(i,":",h,";")}g.push("}")}return g.join("")};this.escape=function(e){return escape(e).replace(/\+/g,"%2B")};this.encodeVars=function(e){return e.join("&").replace(/%/g,"%25")};this.copyProperties=function(g,f){for(var e in g){if(f[e]===undefined){f[e]=g[e]}}return f};this.domain=function(){var f="";try{f=document.domain}catch(g){}return f};this.domainMatches=function(h,g){if(g=="*"||g==h){return true}var f=g.lastIndexOf("*");if(f>-1){g=g.substr(f+1);var e=h.lastIndexOf(g);if(e>-1&&(e+g.length)==h.length){return true}}return false};this.uriEncode=function(e){return encodeURI(decodeURIComponent(e))};this.delay=function(f,h,g){var e=Array.prototype.slice.call(arguments,3);setTimeout(function(){h.apply(g,e)},f)}}D.UNIT_REMOVAL_PROPERTIES={leading:true,"margin-left":true,"margin-right":true,"text-indent":true};D.SINGLE_WHITESPACE=" ";function U(e){var d=this;function c(g,j,h){var k=d.getStyleAsInt(g,j,e.ua.ie);if(k==0){k=g[h];for(var f=3;f<arguments.length;f++){k-=d.getStyleAsInt(g,arguments[f],true)}}return k}this.getBody=function(){return document.getElementsByTagName("body")[0]||null};this.querySelectorAll=function(f){return window.parseSelector(f)};this.addClass=function(f,g){if(g){g.className=((g.className||"")==""?"":g.className+" ")+f}};this.removeClass=function(f,g){if(g){g.className=g.className.replace(new RegExp("(^|\\s)"+f+"(\\s|$)"),"").replace(/^\s+|(\s)\s+/g,"$1")}};this.hasClass=function(f,g){return new RegExp("(^|\\s)"+f+"(\\s|$)").test(g.className)};this.hasOneOfClassses=function(h,g){for(var f=0;f<h.length;f++){if(this.hasClass(h[f],g)){return true}}return false};this.ancestorHasClass=function(g,f){g=g.parentNode;while(g&&g.nodeType==1){if(this.hasClass(f,g)){return true}g=g.parentNode}return false};this.create=function(f,g){var h=document.createElementNS?document.createElementNS(U.XHTML_NS,f):document.createElement(f);if(g){h.className=g}return h};this.getComputedStyle=function(h,i){var f;if(document.defaultView&&document.defaultView.getComputedStyle){var g=document.defaultView.getComputedStyle(h,null);f=g?g[i]:null}else{if(h.currentStyle){f=h.currentStyle[i]}}return f||""};this.getStyleAsInt=function(g,i,f){var h=this.getComputedStyle(g,i);if(f&&!/px$/.test(h)){return 0}return parseInt(h)||0};this.getWidthFromStyle=function(f){return c(f,"width","offsetWidth","paddingRight","paddingLeft","borderRightWidth","borderLeftWidth")};this.getHeightFromStyle=function(f){return c(f,"height","offsetHeight","paddingTop","paddingBottom","borderTopWidth","borderBottomWidth")};this.getDimensions=function(j){var h=j.offsetWidth;var f=j.offsetHeight;if(h==0||f==0){for(var g=0;g<j.childNodes.length;g++){var k=j.childNodes[g];if(k.nodeType!=1){continue}h=Math.max(h,k.offsetWidth);f=Math.max(f,k.offsetHeight)}}return{width:h,height:f}};this.getViewport=function(){return{width:window.innerWidth||document.documentElement.clientWidth||this.getBody().clientWidth,height:window.innerHeight||document.documentElement.clientHeight||this.getBody().clientHeight}};this.blurElement=function(g){try{g.blur();return}catch(h){}var f=this.create("input");f.style.width="0px";f.style.height="0px";g.parentNode.appendChild(f);f.focus();f.blur();f.parentNode.removeChild(f)}}U.XHTML_NS="http://www.w3.org/1999/xhtml";function H(r){var g=navigator.userAgent.toLowerCase();var q=(navigator.product||"").toLowerCase();var h=navigator.platform.toLowerCase();this.parseVersion=H.parseVersion;this.macintosh=/^mac/.test(h);this.windows=/^win/.test(h);this.linux=/^linux/.test(h);this.quicktime=false;this.opera=/opera/.test(g);this.konqueror=/konqueror/.test(g);this.ie=false
/*@cc_on||true@*/
;this.ieSupported=this.ie&&!/ppc|smartphone|iemobile|msie\s5\.5/.test(g)
/*@cc_on&&@_jscript_version>=5.5@*/
;this.ieWin=this.ie&&this.windows
/*@cc_on&&@_jscript_version>=5.1@*/
;this.windows=this.windows&&(!this.ie||this.ieWin);this.ieMac=this.ie&&this.macintosh
/*@cc_on&&@_jscript_version<5.1@*/
;this.macintosh=this.macintosh&&(!this.ie||this.ieMac);this.safari=/safari/.test(g);this.webkit=!this.konqueror&&/applewebkit/.test(g);this.khtml=this.webkit||this.konqueror;this.gecko=!this.khtml&&q=="gecko";this.ieVersion=this.ie&&/.*msie\s(\d\.\d)/.exec(g)?this.parseVersion(RegExp.$1):"0";this.operaVersion=this.opera&&/.*opera(\s|\/)(\d+\.\d+)/.exec(g)?this.parseVersion(RegExp.$2):"0";this.webkitVersion=this.webkit&&/.*applewebkit\/(\d+).*/.exec(g)?this.parseVersion(RegExp.$1):"0";this.geckoVersion=this.gecko&&/.*rv:\s*([^\)]+)\)\s+gecko/.exec(g)?this.parseVersion(RegExp.$1):"0";this.konquerorVersion=this.konqueror&&/.*konqueror\/([\d\.]+).*/.exec(g)?this.parseVersion(RegExp.$1):"0";this.flashVersion=0;if(this.ieWin){var l;var o=false;try{l=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(m){try{l=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");this.flashVersion=this.parseVersion("6");l.AllowScriptAccess="always"}catch(m){o=this.flashVersion==this.parseVersion("6")}if(!o){try{l=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(m){}}}if(!o&&l){this.flashVersion=this.parseVersion((l.GetVariable("$version")||"").replace(/^\D+(\d+)\D+(\d+)\D+(\d+).*/g,"$1.$2.$3"))}}else{if(navigator.plugins&&navigator.plugins["Shockwave Flash"]){var n=navigator.plugins["Shockwave Flash"].description.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var p=n.replace(/^\D*(\d+\.\d+).*$/,"$1");if(/r/.test(n)){p+=n.replace(/^.*r(\d*).*$/,".$1")}else{if(/d/.test(n)){p+=".0"}}this.flashVersion=this.parseVersion(p);var j=false;for(var k=0,c=this.flashVersion>=H.MIN_FLASH_VERSION;c&&k<navigator.mimeTypes.length;k++){var f=navigator.mimeTypes[k];if(f.type!="application/x-shockwave-flash"){continue}if(f.enabledPlugin){j=true;if(f.enabledPlugin.description.toLowerCase().indexOf("quicktime")>-1){c=false;this.quicktime=true}}}if(this.quicktime||!j){this.flashVersion=this.parseVersion("0")}}}this.flash=this.flashVersion>=H.MIN_FLASH_VERSION;this.transparencySupport=this.macintosh||this.windows||this.linux&&(this.flashVersion>=this.parseVersion("10")&&(this.gecko&&this.geckoVersion>=this.parseVersion("1.9")||this.opera));this.computedStyleSupport=this.ie||!!document.defaultView.getComputedStyle;this.fixFocus=this.gecko&&this.windows;this.nativeDomLoaded=this.gecko||this.webkit&&this.webkitVersion>=this.parseVersion("525")||this.konqueror&&this.konquerorMajor>this.parseVersion("03")||this.opera;this.mustCheckStyle=this.khtml||this.opera;this.forcePageLoad=this.webkit&&this.webkitVersion<this.parseVersion("523");this.properDocument=typeof(document.location)=="object";this.supported=this.flash&&this.properDocument&&(!this.ie||this.ieSupported)&&this.computedStyleSupport&&(!this.opera||this.operaVersion>=this.parseVersion("9.61"))&&(!this.webkit||this.webkitVersion>=this.parseVersion("412"))&&(!this.gecko||this.geckoVersion>=this.parseVersion("1.8.0.12"))&&(!this.konqueror)}H.parseVersion=function(c){return c.replace(/(^|\D)(\d+)(?=\D|$)/g,function(f,e,g){f=e;for(var d=4-g.length;d>=0;d--){f+="0"}return f+g})};H.MIN_FLASH_VERSION=H.parseVersion("8");function F(c){this.fix=c.ua.ieWin&&window.location.hash!="";var d;this.cache=function(){d=document.title};function e(){document.title=d}this.restore=function(){if(this.fix){setTimeout(e,0)}}}function S(l){var e=null;function c(){try{if(l.ua.ie||document.readyState!="loaded"&&document.readyState!="complete"){document.documentElement.doScroll("left")}}catch(n){return setTimeout(c,10)}i()}function i(){if(l.useStyleCheck){h()}else{if(!l.ua.mustCheckStyle){d(null,true)}}}function h(){e=l.dom.create("div",E.DUMMY);l.dom.getBody().appendChild(e);m()}function m(){if(l.dom.getComputedStyle(e,"marginLeft")=="42px"){g()}else{setTimeout(m,10)}}function g(){if(e&&e.parentNode){e.parentNode.removeChild(e)}e=null;d(null,true)}function d(n,o){l.initialize(o);if(n&&n.type=="load"){if(document.removeEventListener){document.removeEventListener("DOMContentLoaded",d,false)}if(window.removeEventListener){window.removeEventListener("load",d,false)}}}function j(){l.prepareClearReferences();if(document.readyState=="interactive"){document.attachEvent("onstop",f);setTimeout(function(){document.detachEvent("onstop",f)},0)}}function f(){document.detachEvent("onstop",f);k()}function k(){l.clearReferences()}this.attach=function(){if(window.addEventListener){window.addEventListener("load",d,false)}else{window.attachEvent("onload",d)}if(!l.useDomLoaded||l.ua.forcePageLoad||l.ua.ie&&window.top!=window){return}if(l.ua.nativeDomLoaded){document.addEventListener("DOMContentLoaded",i,false)}else{if(l.ua.ie||l.ua.khtml){c()}}};this.attachUnload=function(){if(!l.ua.ie){return}window.attachEvent("onbeforeunload",j);window.attachEvent("onunload",k)}}var Q="sifrFetch";function N(c){var e=false;this.fetchMovies=function(f){if(c.setPrefetchCookie&&new RegExp(";?"+Q+"=true;?").test(document.cookie)){return}try{e=true;d(f)}catch(g){}if(c.setPrefetchCookie){document.cookie=Q+"=true;path="+c.cookiePath}};this.clear=function(){if(!e){return}try{var f=document.getElementsByTagName("script");for(var g=f.length-1;g>=0;g--){var h=f[g];if(h.type=="sifr/prefetch"){h.parentNode.removeChild(h)}}}catch(j){}};function d(f){for(var g=0;g<f.length;g++){document.write('<script defer type="sifr/prefetch" src="'+f[g].src+'"><\/script>')}}}function b(e){var g=e.ua.ie;var f=g&&e.ua.flashVersion<e.ua.parseVersion("9.0.115");var d={};var c={};this.fixFlash=f;this.register=function(h){if(!g){return}var i=h.getAttribute("id");this.cleanup(i,false);c[i]=h;delete d[i];if(f){window[i]=h}};this.reset=function(){if(!g){return false}for(var j=0;j<e.replacements.length;j++){var h=e.replacements[j];var k=c[h.id];if(!d[h.id]&&(!k.parentNode||k.parentNode.nodeType==11)){h.resetMovie();d[h.id]=true}}return true};this.cleanup=function(l,h){var i=c[l];if(!i){return}for(var k in i){if(typeof(i[k])=="function"){i[k]=null}}c[l]=null;if(f){window[l]=null}if(i.parentNode){if(h&&i.parentNode.nodeType==1){var j=document.createElement("div");j.style.width=i.offsetWidth+"px";j.style.height=i.offsetHeight+"px";i.parentNode.replaceChild(j,i)}else{i.parentNode.removeChild(i)}}};this.prepareClearReferences=function(){if(!f){return}__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}};this.clearReferences=function(){if(f){var j=document.getElementsByTagName("object");for(var h=j.length-1;h>=0;h--){c[j[h].getAttribute("id")]=j[h]}}for(var k in c){if(Object.prototype[k]!=c[k]){this.cleanup(k,true)}}}}function K(d,g,f,c,e){this.sIFR=d;this.id=g;this.vars=f;this.movie=null;this.__forceWidth=c;this.__events=e;this.__resizing=0}K.prototype={getFlashElement:function(){return document.getElementById(this.id)},getAlternate:function(){return document.getElementById(this.id+"_alternate")},getAncestor:function(){var c=this.getFlashElement().parentNode;return !this.sIFR.dom.hasClass(E.FIX_FOCUS,c)?c:c.parentNode},available:function(){var c=this.getFlashElement();return c&&c.parentNode},call:function(c){var d=this.getFlashElement();if(!d[c]){return false}return Function.prototype.apply.call(d[c],d,Array.prototype.slice.call(arguments,1))},attempt:function(){if(!this.available()){return false}try{this.call.apply(this,arguments)}catch(c){if(this.sIFR.debug){throw c}return false}return true},updateVars:function(c,e){for(var d=0;d<this.vars.length;d++){if(this.vars[d].split("=")[0]==c){this.vars[d]=c+"="+e;break}}var f=this.sIFR.util.encodeVars(this.vars);this.movie.injectVars(this.getFlashElement(),f);this.movie.injectVars(this.movie.html,f)},storeSize:function(c,d){this.movie.setSize(c,d);this.updateVars(c,d)},fireEvent:function(c){if(this.available()&&this.__events[c]){this.sIFR.util.delay(0,this.__events[c],this,this)}},resizeFlashElement:function(c,d,e){if(!this.available()){return}this.__resizing++;var f=this.getFlashElement();f.setAttribute("height",c);this.getAncestor().style.minHeight="";this.updateVars("renderheight",c);this.storeSize("height",c);if(d!==null){f.setAttribute("width",d);this.movie.setSize("width",d)}if(this.__events.onReplacement){this.sIFR.util.delay(0,this.__events.onReplacement,this,this);delete this.__events.onReplacement}if(e){this.sIFR.util.delay(0,function(){this.attempt("scaleMovie");this.__resizing--},this)}else{this.__resizing--}},blurFlashElement:function(){if(this.available()){this.sIFR.dom.blurElement(this.getFlashElement())}},resetMovie:function(){this.sIFR.util.delay(0,this.movie.reset,this.movie,this.getFlashElement(),this.getAlternate())},resizeAfterScale:function(){if(this.available()&&this.__resizing==0){this.sIFR.util.delay(0,this.resize,this)}},resize:function(){if(!this.available()){return}this.__resizing++;var g=this.getFlashElement();var f=g.offsetWidth;if(f==0){return}var e=g.getAttribute("width");var l=g.getAttribute("height");var m=this.getAncestor();var o=this.sIFR.dom.getHeightFromStyle(m);g.style.width="1px";g.style.height="1px";m.style.minHeight=o+"px";var c=this.getAlternate().childNodes;var n=[];for(var k=0;k<c.length;k++){var h=c[k].cloneNode(true);n.push(h);m.appendChild(h)}var d=this.sIFR.dom.getWidthFromStyle(m);for(var k=0;k<n.length;k++){m.removeChild(n[k])}g.style.width=g.style.height=m.style.minHeight="";g.setAttribute("width",this.__forceWidth?d:e);g.setAttribute("height",l);if(sIFR.ua.ie){g.style.display="none";var j=g.offsetHeight;g.style.display=""}if(d!=f){if(this.__forceWidth){this.storeSize("width",d)}this.attempt("resize",d)}this.__resizing--},replaceText:function(g,j){var d=this.sIFR.util.escape(g);if(!this.attempt("replaceText",d)){return false}this.updateVars("content",d);var f=this.getAlternate();if(j){while(f.firstChild){f.removeChild(f.firstChild)}for(var c=0;c<j.length;c++){f.appendChild(j[c])}}else{try{f.innerHTML=g}catch(h){}}return true},changeCSS:function(c){c=this.sIFR.util.escape(this.sIFR.util.cssToString(this.sIFR.util.convertCssArg(c)));this.updateVars("css",c);return this.attempt("changeCSS",c)},remove:function(){if(this.movie&&this.available()){this.movie.remove(this.getFlashElement(),this.id)}}};var X=new function(){this.create=function(p,n,j,i,f,e,g,o,l,h,m){var k=p.ua.ie?d:c;return new k(p,n,j,i,f,e,g,o,["flashvars",l,"wmode",h,"bgcolor",m,"allowScriptAccess","always","quality","best"])};function c(s,q,l,h,f,e,g,r,n){var m=s.dom.create("object",E.FLASH);var p=["type","application/x-shockwave-flash","id",f,"name",f,"data",e,"width",g,"height",r];for(var o=0;o<p.length;o+=2){m.setAttribute(p[o],p[o+1])}var j=m;if(h){j=W.create("div",E.FIX_FOCUS);j.appendChild(m)}for(var o=0;o<n.length;o+=2){if(n[o]=="name"){continue}var k=W.create("param");k.setAttribute("name",n[o]);k.setAttribute("value",n[o+1]);m.appendChild(k)}l.style.minHeight=r+"px";while(l.firstChild){l.removeChild(l.firstChild)}l.appendChild(j);this.html=j.cloneNode(true)}c.prototype={reset:function(e,f){e.parentNode.replaceChild(this.html.cloneNode(true),e)},remove:function(e,f){e.parentNode.removeChild(e)},setSize:function(e,f){this.html.setAttribute(e,f)},injectVars:function(e,g){var h=e.getElementsByTagName("param");for(var f=0;f<h.length;f++){if(h[f].getAttribute("name")=="flashvars"){h[f].setAttribute("value",g);break}}}};function d(p,n,j,h,f,e,g,o,k){this.dom=p.dom;this.broken=n;this.html='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="'+f+'" width="'+g+'" height="'+o+'" class="'+E.FLASH+'"><param name="movie" value="'+e+'"></param></object>';var m="";for(var l=0;l<k.length;l+=2){m+='<param name="'+k[l]+'" value="'+k[l+1]+'"></param>'}this.html=this.html.replace(/(<\/object>)/,m+"$1");j.style.minHeight=o+"px";j.innerHTML=this.html;this.broken.register(j.firstChild)}d.prototype={reset:function(f,g){g=g.cloneNode(true);var e=f.parentNode;e.innerHTML=this.html;this.broken.register(e.firstChild);e.appendChild(g)},remove:function(e,f){this.broken.cleanup(f)},setSize:function(e,f){this.html=this.html.replace(e=="height"?/(height)="\d+"/:/(width)="\d+"/,'$1="'+f+'"')},injectVars:function(e,f){if(e!=this.html){return}this.html=this.html.replace(/(flashvars(=|\"\svalue=)\")[^\"]+/,"$1"+f)}}};this.errors=new Y(O);var A=this.util=new D(O);var W=this.dom=new U(O);var T=this.ua=new H(O);var G={fragmentIdentifier:new F(O),pageLoad:new S(O),prefetch:new N(O),brokenFlashIE:new b(O)};this.__resetBrokenMovies=G.brokenFlashIE.reset;var J={kwargs:[],replaceAll:function(d){for(var c=0;c<this.kwargs.length;c++){O.replace(this.kwargs[c])}if(!d){this.kwargs=[]}}};this.activate=function(){if(!T.supported||!this.isEnabled||this.isActive||!C()||a()){return}G.prefetch.fetchMovies(arguments);this.isActive=true;this.setFlashClass();G.fragmentIdentifier.cache();G.pageLoad.attachUnload();if(!this.autoInitialize){return}G.pageLoad.attach()};this.setFlashClass=function(){if(this.hasFlashClassSet){return}W.addClass(E.ACTIVE,W.getBody()||document.documentElement);this.hasFlashClassSet=true};this.removeFlashClass=function(){if(!this.hasFlashClassSet){return}W.removeClass(E.ACTIVE,W.getBody());W.removeClass(E.ACTIVE,document.documentElement);this.hasFlashClassSet=false};this.initialize=function(c){if(!this.isActive||!this.isEnabled){return}if(R){if(!c){J.replaceAll(false)}return}R=true;J.replaceAll(c);if(O.repaintOnResize){if(window.addEventListener){window.addEventListener("resize",Z,false)}else{window.attachEvent("onresize",Z)}}G.prefetch.clear()};this.replace=function(x,u){if(!T.supported){return}if(u){x=A.copyProperties(x,u)}if(!R){return J.kwargs.push(x)}if(this.onReplacementStart){this.onReplacementStart(x)}var AM=x.elements||W.querySelectorAll(x.selector);if(AM.length==0){return}var w=M(x.src);var AR=A.convertCssArg(x.css);var v=B(x.filters);var AN=x.forceSingleLine===true;var AS=x.preventWrap===true&&!AN;var q=AN||(x.fitExactly==null?this.fitExactly:x.fitExactly)===true;var AD=q||(x.forceWidth==null?this.forceWidth:x.forceWidth)===true;var s=x.ratios||[];var AE=x.pixelFont===true;var r=parseInt(x.tuneHeight)||0;var z=!!x.onRelease||!!x.onRollOver||!!x.onRollOut;if(q){A.extractFromCss(AR,".sIFR-root","text-align",true)}var t=A.extractFromCss(AR,".sIFR-root","font-size",true)||"0";var e=A.extractFromCss(AR,".sIFR-root","background-color",true)||"#FFFFFF";var o=A.extractFromCss(AR,".sIFR-root","kerning",true)||"";var AW=A.extractFromCss(AR,".sIFR-root","opacity",true)||"100";var k=A.extractFromCss(AR,".sIFR-root","cursor",true)||"default";var AP=parseInt(A.extractFromCss(AR,".sIFR-root","leading"))||0;var AJ=x.gridFitType||(A.extractFromCss(AR,".sIFR-root","text-align")=="right")?"subpixel":"pixel";var h=this.forceTextTransform===false?"none":A.extractFromCss(AR,".sIFR-root","text-transform",true)||"none";t=/^\d+(px)?$/.test(t)?parseInt(t):0;AW=parseFloat(AW)<1?100*parseFloat(AW):AW;var AC=x.modifyCss?"":A.cssToString(AR);var AG=x.wmode||"";if(!AG){if(x.transparent){AG="transparent"}else{if(x.opaque){AG="opaque"}}}if(AG=="transparent"){if(!T.transparencySupport){AG="opaque"}else{e="transparent"}}else{if(e=="transparent"){e="#FFFFFF"}}for(var AV=0;AV<AM.length;AV++){var AF=AM[AV];if(W.hasOneOfClassses(E.IGNORE_CLASSES,AF)||W.ancestorHasClass(AF,E.ALTERNATE)){continue}var AO=W.getDimensions(AF);var f=AO.height;var c=AO.width;var AA=W.getComputedStyle(AF,"display");if(!f||!c||!AA||AA=="none"){continue}c=W.getWidthFromStyle(AF);var n,AH;if(!t){var AL=I(AF);n=Math.min(this.MAX_FONT_SIZE,Math.max(this.MIN_FONT_SIZE,AL.fontSize));if(AE){n=Math.max(8,8*Math.round(n/8))}AH=AL.lines}else{n=t;AH=1}var d=W.create("span",E.ALTERNATE);var AX=AF.cloneNode(true);AF.parentNode.appendChild(AX);for(var AU=0,AT=AX.childNodes.length;AU<AT;AU++){var m=AX.childNodes[AU];if(!/^(style|script)$/i.test(m.nodeName)){d.appendChild(m.cloneNode(true))}}if(x.modifyContent){x.modifyContent(AX,x.selector)}if(x.modifyCss){AC=x.modifyCss(AR,AX,x.selector)}var p=P(AX,h,x.uriEncode);AX.parentNode.removeChild(AX);if(x.modifyContentString){p.text=x.modifyContentString(p.text,x.selector)}if(p.text==""){continue}var AK=Math.round(AH*V(n,s)*n)+this.FLASH_PADDING_BOTTOM+r;if(AH>1&&AP){AK+=Math.round((AH-1)*AP)}var AB=AD?c:"100%";var AI="sIFR_replacement_"+L++;var AQ=["id="+AI,"content="+A.escape(p.text),"width="+c,"renderheight="+AK,"link="+A.escape(p.primaryLink.href||""),"target="+A.escape(p.primaryLink.target||""),"size="+n,"css="+A.escape(AC),"cursor="+k,"tunewidth="+(x.tuneWidth||0),"tuneheight="+r,"offsetleft="+(x.offsetLeft||""),"offsettop="+(x.offsetTop||""),"fitexactly="+q,"preventwrap="+AS,"forcesingleline="+AN,"antialiastype="+(x.antiAliasType||""),"thickness="+(x.thickness||""),"sharpness="+(x.sharpness||""),"kerning="+o,"gridfittype="+AJ,"flashfilters="+v,"opacity="+AW,"blendmode="+(x.blendMode||""),"selectable="+(x.selectable==null||AG!=""&&!sIFR.ua.macintosh&&sIFR.ua.gecko&&sIFR.ua.geckoVersion>=sIFR.ua.parseVersion("1.9")?"true":x.selectable===true),"fixhover="+(this.fixHover===true),"events="+z,"delayrun="+G.brokenFlashIE.fixFlash,"version="+this.VERSION];var y=A.encodeVars(AQ);var g=new K(O,AI,AQ,AD,{onReplacement:x.onReplacement,onRollOver:x.onRollOver,onRollOut:x.onRollOut,onRelease:x.onRelease});g.movie=X.create(sIFR,G.brokenFlashIE,AF,T.fixFocus&&x.fixFocus,AI,w,AB,AK,y,AG,e);this.replacements.push(g);this.replacements[AI]=g;if(x.selector){if(!this.replacements[x.selector]){this.replacements[x.selector]=[g]}else{this.replacements[x.selector].push(g)}}d.setAttribute("id",AI+"_alternate");AF.appendChild(d);W.addClass(E.REPLACED,AF)}G.fragmentIdentifier.restore()};this.getReplacementByFlashElement=function(d){for(var c=0;c<O.replacements.length;c++){if(O.replacements[c].id==d.getAttribute("id")){return O.replacements[c]}}};this.redraw=function(){for(var c=0;c<O.replacements.length;c++){O.replacements[c].resetMovie()}};this.prepareClearReferences=function(){G.brokenFlashIE.prepareClearReferences()};this.clearReferences=function(){G.brokenFlashIE.clearReferences();G=null;J=null;delete O.replacements};function C(){if(O.domains.length==0){return true}var d=A.domain();for(var c=0;c<O.domains.length;c++){if(A.domainMatches(d,O.domains[c])){return true}}return false}function a(){if(document.location.protocol=="file:"){if(O.debug){O.errors.fire("isFile")}return true}return false}function M(c){if(T.ie&&c.charAt(0)=="/"){c=window.location.toString().replace(/([^:]+)(:\/?\/?)([^\/]+).*/,"$1$2$3")+c}return c}function V(d,e){for(var c=0;c<e.length;c+=2){if(d<=e[c]){return e[c+1]}}return e[e.length-1]||1}function B(g){var e=[];for(var d in g){if(g[d]==Object.prototype[d]){continue}var c=g[d];d=[d.replace(/filter/i,"")+"Filter"];for(var f in c){if(c[f]==Object.prototype[f]){continue}d.push(f+":"+A.escape(A.toJson(c[f],A.toHexString)))}e.push(d.join(","))}return A.escape(e.join(";"))}function Z(d){var e=Z.viewport;var c=W.getViewport();if(e&&c.width==e.width&&c.height==e.height){return}Z.viewport=c;if(O.replacements.length==0){return}if(Z.timer){clearTimeout(Z.timer)}Z.timer=setTimeout(function(){delete Z.timer;for(var f=0;f<O.replacements.length;f++){O.replacements[f].resize()}},200)}function I(f){var g=W.getComputedStyle(f,"fontSize");var d=g.indexOf("px")==-1;var e=f.innerHTML;if(d){f.innerHTML="X"}f.style.paddingTop=f.style.paddingBottom=f.style.borderTopWidth=f.style.borderBottomWidth="0px";f.style.lineHeight="2em";f.style.display="block";g=d?f.offsetHeight/2:parseInt(g,10);if(d){f.innerHTML=e}var c=Math.round(f.offsetHeight/(2*g));f.style.paddingTop=f.style.paddingBottom=f.style.borderTopWidth=f.style.borderBottomWidth=f.style.lineHeight=f.style.display="";if(isNaN(c)||!isFinite(c)||c==0){c=1}return{fontSize:g,lines:c}}function P(c,g,s){s=s||A.uriEncode;var q=[],m=[];var k=null;var e=c.childNodes;var o=false,p=false;var j=0;while(j<e.length){var f=e[j];if(f.nodeType==3){var t=A.textTransform(g,A.normalize(f.nodeValue)).replace(/</g,"&lt;");if(o&&p){t=t.replace(/^\s+/,"")}m.push(t);o=/\s$/.test(t);p=false}if(f.nodeType==1&&!/^(style|script)$/i.test(f.nodeName)){var h=[];var r=f.nodeName.toLowerCase();var n=f.className||"";if(/\s+/.test(n)){if(n.indexOf(E.CLASS)>-1){n=n.match("(\\s|^)"+E.CLASS+"-([^\\s$]*)(\\s|$)")[2]}else{n=n.match(/^([^\s]+)/)[1]}}if(n!=""){h.push('class="'+n+'"')}if(r=="a"){var d=s(f.getAttribute("href")||"");var l=f.getAttribute("target")||"";h.push('href="'+d+'"','target="'+l+'"');if(!k){k={href:d,target:l}}}m.push("<"+r+(h.length>0?" ":"")+h.join(" ")+">");p=true;if(f.hasChildNodes()){q.push(j);j=0;e=f.childNodes;continue}else{if(!/^(br|img)$/i.test(f.nodeName)){m.push("</",f.nodeName.toLowerCase(),">")}}}if(q.length>0&&!f.nextSibling){do{j=q.pop();e=f.parentNode.parentNode.childNodes;f=e[j];if(f){m.push("</",f.nodeName.toLowerCase(),">")}}while(j==e.length-1&&q.length>0)}j++}return{text:m.join("").replace(/^\s+|\s+$|\s*(<br>)\s*/g,"$1"),primaryLink:k||{}}}};var parseSelector=(function(){var c=/\s*,\s*/;var d=/\s*([\s>+~(),]|^|$)\s*/g;var f=/([\s>+~,]|[^(]\+|^)([#.:@])/g;var m=/(^|\))[^\s>+~]/g;var e=/(\)|^)/;var g=/[\s#.:>+~()@]|[^\s#.:>+~()@]+/g;function j(u,w){w=w||document.documentElement;var t=u.split(c),o=[];for(var r=0;r<t.length;r++){var y=[w],p=k(t[r]);for(var s=0;s<p.length;){var v=p[s++],x=p[s++],q="";if(p[s]=="("){while(p[s++]!=")"&&s<p.length){q+=p[s]}q=q.slice(0,-1)}y=i(y,v,x,q)}o=o.concat(y)}return o}function k(p){var o=p.replace(d,"$1").replace(f,"$1*$2").replace(m,a);return o.match(g)||[]}function a(o){return o.replace(e,"$1 ")}function i(r,p,o,q){return(j.selectors[p])?j.selectors[p](r,o,q):[]}var n={toArray:function(p){var q=[];for(var o=0;o<p.length;o++){q.push(p[o])}return q}};var b={isTag:function(o,p){return(p=="*")||(p.toLowerCase()==o.nodeName.toLowerCase())},previousSiblingElement:function(o){do{o=o.previousSibling}while(o&&o.nodeType!=1);return o},nextSiblingElement:function(o){do{o=o.nextSibling}while(o&&o.nodeType!=1);return o},hasClass:function(p,o){return(o.className||"").match("(^|\\s)"+p+"(\\s|$)")},getByTag:function(p,o){return o.getElementsByTagName(p)}};var h={"#":function(q,o){for(var p=0;p<q.length;p++){if(q[p].getAttribute("id")==o){return[q[p]]}}return[]}," ":function(q,o){var r=[];for(var p=0;p<q.length;p++){r=r.concat(n.toArray(b.getByTag(o,q[p])))}return r},">":function(t,q){var u=[];for(var r=0,p;r<t.length;r++){p=t[r];for(var s=0,o;s<p.childNodes.length;s++){o=p.childNodes[s];if(o.nodeType==1&&b.isTag(o,q)){u.push(o)}}}return u},".":function(r,p){var s=[];for(var q=0,o;q<r.length;q++){o=r[q];if(b.hasClass([p],o)){s.push(o)}}return s},":":function(q,o,p){return(j.pseudoClasses[o])?j.pseudoClasses[o](q,p):[]}};j.selectors=h;j.pseudoClasses={};j.util=n;j.dom=b;return j})();function highlight(a){if(a.value==a.getAttribute("value")){a.select()}}function clearValue(a){if(a.value==a.getAttribute("value")){a.defaultVal=a.value;a.value=""}}function rePop(a){if(a.value==""&&a.defaultVal){a.value=a.defaultVal}}function checkEmail(a){email_exp=/^[a-zA-Z0-9._+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/;if(email_exp.test(a)==true){return true}else{return false}}function validForm(){var a=false;


$("#contact-form #submit").click(function(){var b=validForm();if(b===true){jQuery("<div id='returned' style='margin:0;padding:0;'></div>").appendTo("body").hide();

$.post(siteRoot_str+"contact/ajax_send.php",data_str,function(c){if(c=="SUCCESS"){$("#contact-form form").replaceWith($("#returned"));
$("#returned").html("<p>Thank you for contacting Clark Law Firm. We have received your inquiry and will respond to your request in 1-2 business days.</p>").hide().fadeIn(1500)}else{jQuery("<p class='alert'>The Captcha was not typed correctly.</p>").prependTo($("#contact-form form")).hide().slideDown(500)}})}else{if($("#contact-form form p.alert").length>0){$("#contact-form form p.alert").fadeOut(500,function(){$("#contact-form form p.alert").remove();jQuery("<p class='alert'>"+b+"</p>").prependTo($("#contact-form form")).hide().fadeIn(500)})}else{jQuery("<p class='alert'>"+b+"</p>").prependTo($("#contact-form form")).hide().slideDown(500)}}return false})}function innerPageNav(a){$(a).not($(a)+":first").each(function(){

$($(this).attr("href")).css({position:"absolute",left:"-300em",width:"415px",top:"-500em","z-index":1})});
$(a+":first").css({color:"#333"});
$(a).click(function(){$(a).each(function(){$($(this).attr("href")).hide();
$(a).removeClass("current").stop().animate({color:"#eaa61d"})});
$(this).addClass("current").stop().animate({color:"#333"},500);
$($(this).attr("href")).css({position:"relative",top:0,left:0,width:"415px","z-index":0}).stop().show();return false})}$(function(){pageID_str=$("body").attr("id");if(!pageID_str){pageID_str=$("body").attr("class")}$("body").wrapInner("<div class='jsEnabled'></div>");
$(".interior h1").insertBefore("#primary-content");

$("#primary-nav a").removeAttr("title");
$("#primary-nav > li > ul > li").each(function(){if($("ul",this).length>0){tempSN_nod=$("ul",this);
$("ul",this).remove();
$(this).wrapInner("<span></span>");
$(this).append(tempSN_nod)}});
$("#primary-nav > li > ul").hide();
$("#primary-nav").wrap("<div id='pnav-wrap'></div>");
$("#primary-nav > li").hover(function(){$("#primary-nav > li").stop(false,false).animate({paddingRight:"5px",paddingBottom:"3px"},200);
$("#primary-nav > li > ul").stop(false,true).slideUp(200);
$(this).stop(false,false).animate({paddingRight:($(this).children("ul").innerWidth()+12)+"px",paddingBottom:($(this).children("ul").innerHeight()+12)+"px"},200,"linear",function(){$(this).children("ul").stop(false,false).slideDown({duration:200})})},function(){$("#primary-nav > li").stop(false,false).animate({paddingRight:"5px",paddingBottom:"3px"},250);
$("#primary-nav > li > ul").stop(false,true).slideUp(250)});
$("#snav-contact a").livequery("click",function(){$("#snav-contact a").toggleClass("current");

jQuery("<div class='modal-pop' id="+$(this).attr("targ")+"><a class='simplemodal-close'><img src='"+siteRoot_str+"images/modal_close_btn.png' alt='Close' /></a><div class='modal-container'></div></div>").prependTo($("body")).hide()});
$(".media").click(function(){container_nod=$("#"+$(this).attr("targ")+" .modal-container");target_nod=$("#"+$(this).attr("targ"));toTest_str=$(this).attr("href").substring($(this).attr("href").lastIndexOf("/")+1);vars_obj=new Object();if(toTest_str.indexOf("?")>=0){vars_arr=toTest_str.substring(toTest_str.indexOf("?")+1);vars_arr=vars_arr.split("&");for(l=0;l<vars_arr.length;l++){vars_arr[l]=vars_arr[l].split("=");vars_obj[vars_arr[l][0]]=vars_arr[l][1]}toTest_str=toTest_str.substring(0,toTest_str.indexOf("?"))}switch(toTest_str){case"network-map.php":container_nod.attr("id","nm_swf");var j=siteRoot_str+"swf/network_map.swf";var h=vars_obj;var k={menu:"false"};
var i={};swfobject.embedSWF(j,"nm_swf","811","520","9.0.0","swf/expressInstall.swf",h,k,i)}target_nod.modal({onOpen:modalOpen,onClose:modalClose,close:false});return false});switch(pageID_str){case"aaa":imgReplace($("#tertiary-content h3"));
var a={};
var f={menu:"false",wmode:"transparent"};var b={};if($.cookies.get("clarkfirm_visited")!="true"){$.cookies.set("clarkfirm_visited","true")}else{a.targFrame="end"}swfobject.embedSWF("swf/home_main.swf","primary-content","330","960","9.0.0","swf/expressInstall.swf",a,f,b);break;case"about":break;case"contact":$("#submit.btn").click(function(){var h=validForm();if(h!==true){return false}});break;case"supportticket":$("#submitsupport.btn").click(function(){$("p.alert").remove();var h=validSupportForm();if(h!==true){$("#primary-content").html("<p class='alert'>"+alert_str+"</p>");return false}else{return true}});

$("a.tooltipped").each(function(){$(this).css({position:"relative"});if($(this).children("em").length>0){$(this).children("em").hide();
$(this).children("em").addClass("tooltip");
$(this).hover(function(){$(this).children("em").css({position:"absolute",left:"160px",top:"-7px",opacity:"0"});
$(this).children("em").show().animate({left:"100px",opacity:"1"},250);window.setTimeout(function(){$("a.tooltipped").children("em").stop().hide()},8000)},function(){$(this).children("em").stop().hide()})}});break;case"officers":$("#primary-content").css({position:"relative","z-index":1});innerPageNav("#tertiary-nav a");break;case"advisors":$("#primary-content").css({position:"relative","z-index":1});innerPageNav("#tertiary-nav a");break;case"products":$(window).load(function(){var h={videoURL:siteRoot_str+"media/videos/Products_Overview_5-21-09.f4v",pauseTime:"6.65"};var j={menu:"false",wmode:"transparent"};var i={};swfobject.embedSWF(siteRoot_str+"swf/video_player.swf","vid-container","388","218","9.0.0","swf/expressInstall.swf",h,j,i)});break;case"partnerships":$(window).load(function(){var h={videoURL:siteRoot_str+"media/videos/Product_Solutions_Overview_5-21-09.f4v",pauseTime:"6.94"};var j={menu:"false",wmode:"transparent"};var i={};swfobject.embedSWF(siteRoot_str+"swf/video_player.swf","vid-container","388","218","9.0.0","swf/expressInstall.swf",h,j,i)});break;case"pipe":$(window).load(function(){var h={videoURL:siteRoot_str+"media/videos/Network_Pipe_5-21-09.f4v",pauseTime:"15.88",buffer:"17"};var j={menu:"false",wmode:"transparent"};var i={};swfobject.embedSWF(siteRoot_str+"swf/video_player.swf","vid-container","388","218","9.0.0","swf/expressInstall.swf",h,j,i)});break;case"multipoint":$("#primary-content").css({position:"relative","z-index":1});innerPageNav("#tertiary-nav .self");
$("#default").css({position:"relative",top:0,left:0,width:"415px","z-index":0}).stop().show();break;case"product-manufacturing":$(window).load(function(){var h={videoURL:siteRoot_str+"media/videos/Industries_Product_Manufacturing_5-21-09.mp4",pauseTime:"31.15",buffer:"32"};var j={menu:"false",wmode:"transparent"};var i={};swfobject.embedSWF(siteRoot_str+"swf/video_player.swf","vid-container","388","218","9.0.0","swf/expressInstall.swf",h,j,i)});break;case"industries":$(window).load(function(){var h={videoURL:siteRoot_str+"media/videos/Industries_Overview_5-21-09.f4v",pauseTime:"8.5",buffer:"10"};var j={menu:"false",wmode:"transparent"};var i={};swfobject.embedSWF(siteRoot_str+"swf/video_player.swf","vid-container","388","218","9.0.0","swf/expressInstall.swf",h,j,i)});break;case"media":$(window).load(function(){var h={videoURL:siteRoot_str+"media/videos/Industries_Media_5-21-09.f4v",pauseTime:"12",buffer:"13"};var j={menu:"false",wmode:"transparent"};var i={};swfobject.embedSWF(siteRoot_str+"swf/video_player.swf","vid-container","388","218","9.0.0","swf/expressInstall.swf",h,j,i)});break;case"biosciences":$(window).load(function(){var h={videoURL:siteRoot_str+"media/videos/Industries_Bioscience_5-21-09.f4v",pauseTime:"19.5",buffer:"21"};var j={menu:"false",wmode:"transparent"};var i={};swfobject.embedSWF(siteRoot_str+"swf/video_player.swf","vid-container","388","218","9.0.0","swf/expressInstall.swf",h,j,i)});break;case"history":$(window).load(function(){var h={videoURL:siteRoot_str+"media/videos/Company_History_5-21-09.f4v",pauseTime:"12.1",buffer:"13"};var j={menu:"false",wmode:"transparent"};var i={};swfobject.embedSWF(siteRoot_str+"swf/video_player.swf","vid-container","388","218","9.0.0","swf/expressInstall.swf",h,j,i)});break;case"faq":$("#primary-content").css({position:"relative","z-index":1});innerPageNav("#tertiary-nav a");break;case"pressindex":jQuery("<div id='val-modal'><img src='/images/ajax-loader.gif' /></div>").insertAfter($("#tertiary-nav"));
$("#val-modal").hide();
$("#pressnav a").click(function(){$("#pressnav > a").removeClass("active");
$("#tertiary-nav > *").hide();
$("div#press-content").hide();
$("#tertiary-nav tr").css({background:"none"});
$("#tertiary-nav a").removeClass("current").stop().animate({color:"#eaa61d"});
$(this).addClass("active");
$($(this).attr("href")).show();return false});
$("#pressnav a#link-pr").click(function(){$("div#press-content").show()});
$("#press-titles a").click(function(){$("#val-modal").show();var h=$(this).attr("href");
$("#tertiary-nav tr").css({background:"none"});
$("#tertiary-nav a").removeClass("current").stop().animate({color:"#eaa61d"});
$(this).addClass("current");
$(this).parent().parent().css({background:"#e7e6e2"});
$(this).stop().animate({color:"#333"},500);
$("div#press-content").attr("id","press-container").css("visibility","hidden");
$("div#press-container").load(h+" #press-content",{},function(){$("div#press-container").css("visibility","visible");
$("#val-modal").hide()});return false});break;case"cities":$("#primary-content").wrap("<div id='pc-container'></div>");var c=siteRoot_str+"swf/network_map.swf";var a={init:"tentoforty"};var f={menu:"false",wmode:"transparent"};var b={};swfobject.embedSWF(c,"primary-content","811","520","9.0.0","swf/expressInstall.swf",a,f,b);break;default:}$(".btn").livequery(function(){$(this).each(function(){var i=$(this).text()||$(this).val();var h=$(this);if($(this).is("input")){$(this).wrap('<span class="'+this.className+'w" id="'+this.id+'w"></span>');h=$(this).parent()}h.prepend('<span class="left"></span>').append('<span class="right"></span>')})});
$("#footer-nav").hide();nameBack=$("#sitemap-f > div").attr("id");
$("a.pdf, a.external").livequery(function(){$(this).attr("target","_blank")});var c=siteRoot_str+"swf/ds_researchPartners.swf";var a={};var f={menu:"false"};var b={};if($("#promo").length>0){swfobject.embedSWF(c,"promo","216","131","9.0.0","swf/expressInstall.swf",a,f,b)}try{var d=_gat._getTracker("UA-458");d._trackPageview()}catch(e){}});var dinEng_swf={src:siteRoot_str+"swf/din_eng.swf"};var tradeGothBld_swf={src:siteRoot_str+"swf/trade_gothic_bold.swf"};sIFR.activate(dinEng_swf,tradeGothBld_swf);

$(window).load(function(){sIFR.replace(dinEng_swf,{selector:".interior h1",wmode:"transparent",css:[".sIFR-root { color:#eaa61d; text-transform:uppercase }","a { text-decoration: none; }","a:link { color: #738cad; }","a:hover { color: #43557e; }"],ratios:[8,1.3,11,1.21,12,1.2,14,1.19,21,1.16,28,1.13,38,1.12,61,1.11,94,1.1,95,1.09,103,1.1,107,1.09,110,1.1,119,1.09,120,1.1,1.09]});if(!$("body#pressindex").length>0){sIFR.replace(dinEng_swf,{selector:".home #secondary-content h3, .interior .jsEnabled h2",wmode:"transparent",css:[".sIFR-root { color:#887f6f; text-transform:uppercase }","a { text-decoration: none; }","a:link { color: #738cad; }","a:hover { color: #43557e; }"],ratios:[8,1.3,11,1.21,12,1.2,14,1.19,21,1.16,28,1.13,38,1.12,61,1.11,94,1.1,95,1.09,103,1.1,107,1.09,110,1.1,119,1.09,120,1.1,1.09]})}if($.browser.version<"7"&&$.browser.msie){$(".homelink, #supplementary-content, .btnw").supersleight()}});
$("input[@type=text]").focus(function(){clearValue(this)});
$("input[@type=text]").blur(function(){rePop(this)});


function emailWindow(email) {
	window.open("email-popup.html?email=" + email, "EmailNotice",
				"toolbar=no,location=no,directories=no,status=no,scrollbars=no,menubar=no,resizable=yes,width=450,height=300");	
}

function emailWindow2(email) {
	window.open("email-popup2.html?email=" + email, "EmailNotice",
				"toolbar=no,location=no,directories=no,status=no,scrollbars=no,menubar=no,resizable=yes,width=450,height=300");	
}

function emailWindow3(email) {
	window.open("http://clarkfirm.com/email-popup3.html?email=" + email, "EmailNotice",
				"toolbar=no,location=no,directories=no,status=no,scrollbars=no,menubar=no,resizable=yes,width=450,height=300");	
}
