
/*01-jquery.preload-1.0.8.min.js*/
/**
 * jQuery.Preload - Multifunctional preloader
 */
;(function($){var h=$.preload=function(c,d){if(c.split)c=$(c);d=$.extend({},h.defaults,d);var f=$.map(c,function(a){if(!a)return;if(a.split)return d.base+a+d.ext;var b=a.src||a.href;if(typeof d.placeholder=='string'&&a.src)a.src=d.placeholder;if(b&&d.find)b=b.replace(d.find,d.replace);return b||null}),data={loaded:0,failed:0,next:0,done:0,total:f.length};if(!data.total)return finish();var g=$(Array(d.threshold+1).join('<img/>')).load(handler).error(handler).bind('abort',handler).each(fetch);function handler(e){data.element=this;data.found=e.type=='load';data.image=this.src;data.index=this.index;var a=data.original=c[this.index];data[data.found?'loaded':'failed']++;data.done++;if(d.enforceCache)h.cache.push($('<img/>').attr('src',data.image)[0]);if(d.placeholder&&a.src)a.src=data.found?data.image:d.notFound||a.src;if(d.onComplete)d.onComplete(data);if(data.done<data.total)fetch(0,this);else{if(g&&g.unbind)g.unbind('load').unbind('error').unbind('abort');g=null;finish()}};function fetch(i,a,b){if(a.attachEvent&&data.next&&data.next%h.gap==0&&!b){setTimeout(function(){fetch(i,a,1)},0);return!1}if(data.next==data.total)return!1;a.index=data.next;a.src=f[data.next++];if(d.onRequest){data.index=a.index;data.element=a;data.image=a.src;data.original=c[data.next-1];d.onRequest(data)}};function finish(){if(d.onFinish)d.onFinish(data)}};h.gap=14;h.cache=[];h.defaults={threshold:2,base:'',ext:'',replace:''};$.fn.preload=function(a){h(this,a);return this}})(jQuery);
/*12-vTicker.min.js*/
/*
* vertical news ticker
* Tadas Juozapaitis ( kasp3rito@gmail.com )
* http://plugins.jquery.com/project/vTicker
*/
(function (a) { a.fn.vTicker = function (b) { var c = { speed: 700, pause: 4000, showItems: 3, animation: "", mousePause: true, isPaused: false, direction: "up", height: 0 }; var b = a.extend(c, b); moveUp = function (g, d, e) { if (e.isPaused) { return } var f = g.children("ul"); var h = f.children("li:first").clone(true); if (e.height > 0) { d = f.children("li:first").height() } f.animate({ top: "-=" + d + "px" }, e.speed, function () { a(this).children("li:first").remove(); a(this).css("top", "0px") }); if (e.animation == "fade") { f.children("li:first").fadeOut(e.speed); if (e.height == 0) { f.children("li:eq(" + e.showItems + ")").hide().fadeIn(e.speed) } } h.appendTo(f) }; moveDown = function (g, d, e) { if (e.isPaused) { return } var f = g.children("ul"); var h = f.children("li:last").clone(true); if (e.height > 0) { d = f.children("li:first").height() } f.css("top", "-" + d + "px").prepend(h); f.animate({ top: 0 }, e.speed, function () { a(this).children("li:last").remove() }); if (e.animation == "fade") { if (e.height == 0) { f.children("li:eq(" + e.showItems + ")").fadeOut(e.speed) } f.children("li:first").hide().fadeIn(e.speed) } }; return this.each(function () { var f = a(this); var e = 0; f.css({ overflow: "hidden", position: "relative" }).children("ul").css({ position: "absolute", margin: 0, padding: 0 }).children("li").css({ margin: 0, padding: 0 }); if (b.height == 0) { f.children("ul").children("li").each(function () { if (a(this).height() > e) { e = a(this).height() } }); f.children("ul").children("li").each(function () { a(this).height(e) }); f.height(e * b.showItems) } else { f.height(b.height) } var d = setInterval(function () { if (b.direction == "up") { moveUp(f, e, b) } else { moveDown(f, e, b) } }, b.pause); if (b.mousePause) { f.bind("mouseenter", function () { b.isPaused = true }).bind("mouseleave", function () { b.isPaused = false }) } }) } })(jQuery);

/*03-jquery.url.js*/
jQuery.url=function(){var f={};var a={};var d={url:window.location,strictMode:false,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}};var g=function(){str=decodeURI(d.url);var j=d.parser[d.strictMode?"strict":"loose"].exec(str);var l={};var k=14;while(k--){l[d.key[k]]=j[k]||""}l[d.q.name]={};l[d.key[12]].replace(d.q.parser,function(n,m,i){if(m){l[d.q.name][m]=i}});return l};var c=function(i){if(!a.length){e()}if(i=="base"){if(a.port!==null&&a.port!==""){return a.protocol+"://"+a.host+":"+a.port+"/"}else{return a.protocol+"://"+a.host+"/"}}return(a[i]==="")?null:a[i]};var h=function(i){if(!a.length){e()}return(a.queryKey[i]===null)?null:a.queryKey[i]};var e=function(){a=g();b()};var b=function(){var i=a.path;f=[];f=a.path.length==1?{}:(i.charAt(i.length-1)=="/"?i.substring(1,i.length-1):path=i.substring(1)).split("/")};return{setMode:function(i){strictMode=i=="strict"?true:false;return this},setUrl:function(i){d.url=i===undefined?window.location:i;e();return this},segment:function(i){if(!a.length){e()}if(i===undefined){return f.length}return(f[i]===""||f[i]===undefined)?null:f[i]},attr:c,param:h}}();
/*04-jquery.pngFix.pack.js*/
eval(function(i,d,g,f,h,b){h=function(a){return(a<62?"":h(parseInt(a/62)))+((a=a%62)>35?String.fromCharCode(a+29):a.toString(36))};if("0".replace(0,h)==0){while(g--){b[h(g)]=f[g]}f=[function(a){return b[a]||a}];h=function(){return"([237-9n-zA-Z]|1\\w)"};g=1}while(g--){if(f[g]){i=i.replace(new RegExp("\\b"+h(g)+"\\b","g"),f[g])}}return i}("(s(m){3.fn.pngFix=s(c){c=3.extend({P:'blank.gif'},c);8 e=(o.Q==\"t R S\"&&T(o.u)==4&&o.u.A(\"U 5.5\")!=-1);8 f=(o.Q==\"t R S\"&&T(o.u)==4&&o.u.A(\"U 6.0\")!=-1);p(3.browser.msie&&(e||f)){3(2).B(\"img[n$=.C]\").D(s(){3(2).7('q',3(2).q());3(2).7('r',3(2).r());8 a='';8 b='';8 g=(3(2).7('E'))?'E=\"'+3(2).7('E')+'\" ':'';8 h=(3(2).7('F'))?'F=\"'+3(2).7('F')+'\" ':'';8 i=(3(2).7('G'))?'G=\"'+3(2).7('G')+'\" ':'';8 j=(3(2).7('H'))?'H=\"'+3(2).7('H')+'\" ':'';8 k=(3(2).7('V'))?'float:'+3(2).7('V')+';':'';8 d=(3(2).parent().7('href'))?'cursor:hand;':'';p(2.9.v){a+='v:'+2.9.v+';';2.9.v=''}p(2.9.w){a+='w:'+2.9.w+';';2.9.w=''}p(2.9.x){a+='x:'+2.9.x+';';2.9.x=''}8 l=(2.9.cssText);b+='<y '+g+h+i+j;b+='9=\"W:X;white-space:pre-line;Y:Z-10;I:transparent;'+k+d;b+='q:'+3(2).q()+'z;r:'+3(2).r()+'z;';b+='J:K:L.t.M(n=\\''+3(2).7('n')+'\\', N=\\'O\\');';b+=l+'\"></y>';p(a!=''){b='<y 9=\"W:X;Y:Z-10;'+a+d+'q:'+3(2).q()+'z;r:'+3(2).r()+'z;\">'+b+'</y>'}3(2).hide();3(2).after(b)});3(2).B(\"*\").D(s(){8 a=3(2).11('I-12');p(a.A(\".C\")!=-1){8 b=a.13('url(\"')[1].13('\")')[0];3(2).11('I-12','none');3(2).14(0).15.J=\"K:L.t.M(n='\"+b+\"',N='O')\"}});3(2).B(\"input[n$=.C]\").D(s(){8 a=3(2).7('n');3(2).14(0).15.J='K:L.t.M(n=\\''+a+'\\', N=\\'O\\');';3(2).7('n',c.P)})}return 3}})(3);",[],68,"||this|jQuery||||attr|var|style||||||||||||||src|navigator|if|width|height|function|Microsoft|appVersion|border|padding|margin|span|px|indexOf|find|png|each|id|class|title|alt|background|filter|progid|DXImageTransform|AlphaImageLoader|sizingMethod|scale|blankgif|appName|Internet|Explorer|parseInt|MSIE|align|position|relative|display|inline|block|css|image|split|get|runtimeStyle".split("|"),0,{}));
/*07-jquery.watermarkinput.js*/
(function(a){var b=new Array();a.Watermark={ShowAll:function(){for(var c=0;c<b.length;c++){if(b[c].obj.val()==""){b[c].obj.val(b[c].text);b[c].obj.css("color",b[c].WatermarkColor)}else{b[c].obj.css("color",b[c].DefaultColor)}}},HideAll:function(){for(var c=0;c<b.length;c++){if(b[c].obj.val()==b[c].text){b[c].obj.val("")}}}};a.fn.Watermark=function(d,c){if(!c){c="#000000"}return this.each(function(){var g=a(this);var e=g.css("color");b[b.length]={text:d,obj:g,DefaultColor:e,WatermarkColor:c};function h(){if(g.val()==d){g.val("")}g.css("color",e)}function f(){if(g.val().length==0||g.val()==d){g.val(d);g.css("color",c)}else{g.css("color",e)}}g.focus(h);g.blur(f);g.change(f);f()})}})(jQuery);
/*08-jquery.cluetip.js*/
(function(e){var b,a,c,d,g,h,j;e.fn.cluetip=function(l,k){if(typeof l=="object"){k=l;l=null}return this.each(function(M){var T=e(this);var o=e.extend(false,{},e.fn.cluetip.defaults,k||{},e.metadata?T.metadata():e.meta?T.data():{});var H=false;var v=parseInt(o.cluezIndex,10)-1;var n=false,m=0;if(!e("#cluetip").length){a=e('<div id="cluetip-inner"></div>');d=e('<h3 id="cluetip-title"></h3>');c=e('<div id="cluetip-outer"></div>').append(a).prepend(d);b=e('<div id="cluetip"></div>').css({zIndex:o.cluezIndex}).append(c).append('<div id="cluetip-extra"></div>')[i](f).hide();e('<div id="cluetip-waitimage"></div>').css({position:"absolute",zIndex:v-1}).insertBefore("#cluetip").hide();b.css({position:"absolute",zIndex:v});c.css({position:"relative",zIndex:v+1});g=e('<div id="cluetip-arrows" class="cluetip-arrows"></div>').css({zIndex:v+1}).appendTo("#cluetip")}var A=(o.dropShadow)?+o.dropShadowSteps:0;if(!h){h=e([]);for(var q=0;q<A;q++){h=h.add(e("<div></div>").css({zIndex:v-q-1,opacity:0.1,top:1+q,left:1+q}))}h.css({position:"absolute",backgroundColor:"#000"}).prependTo(b)}var C=T.attr(o.attribute),y=o.cluetipClass;if(!C&&!o.splitTitle&&!l){return true}if(o.local&&o.hideLocal){e(C+":first").hide()}var S=parseInt(o.topOffset,10),x=parseInt(o.leftOffset,10);var t,U;var W=isNaN(parseInt(o.height,10))?"auto":(/\D/g).test(o.height)?o.height:o.height+"px";var p,P,R,L,z,J;var B=isNaN(parseInt(o.width,10))?275:parseInt(o.width,10);var s=B+(parseInt(b.css("paddingLeft"))||0)+(parseInt(b.css("paddingRight"))||0)+A;var D=this.offsetWidth;var F,r,G,O,N;var X;var V=(o.attribute!="title")?T.attr(o.titleAttribute):"";if(o.splitTitle){if(V==undefined){V=""}X=V.split(o.splitTitle);V=X.shift()}var I;var Q=function(aa){if(!o.onActivate(T)){return false}n=true;b.removeClass().css({width:B});if(C==T.attr("href")){T.css("cursor",o.cursor)}T.attr("title","");if(o.hoverClass){T.addClass(o.hoverClass)}P=R=T.offset().top;F=T.offset().left;O=aa.pageX;z=aa.pageY;if(T[0].tagName.toLowerCase()!="area"){p=e(document).scrollTop();N=e(window).width()}if(o.positionBy=="fixed"){r=D+F+x;b.css({left:r})}else{r=(D>F&&F>s)||F+D+s+x>N?F-s-x:D+F+x;if(T[0].tagName.toLowerCase()=="area"||o.positionBy=="mouse"||D+s>N){if(O+20+s>N){b.addClass(" cluetip-"+y);r=(O-s-x)>=0?O-s-x-parseInt(b.css("marginLeft"),10)+parseInt(a.css("marginRight"),10):O-(s/2)}else{r=O+x}}var ac=r<0?aa.pageY+S:aa.pageY;b.css({left:(r>0&&o.positionBy!="bottomTop")?r:(O+(s/2)>N)?N/2-s/2:Math.max(O-(s/2),0)})}U=e(window).height();if(l){a.html(l);u(ac)}else{if(X){var ad=X.length;for(var Z=0;Z<ad;Z++){if(Z==0){a.html(X[Z])}else{a.append('<div class="split-body">'+X[Z]+"</div>")}}u(ac)}else{if(!o.local&&C.indexOf("#")!=0){if(H&&o.ajaxCache){a.html(H);u(ac)}else{var Y=o.ajaxSettings;Y.url=C;Y.beforeSend=function(){c.children().empty();if(o.waitImage){e("#cluetip-waitimage").css({top:z+20,left:O+20}).show()}};Y.error=function(){if(n){a.html("<i>sorry, the contents could not be loaded</i>")}};Y.success=function(af){H=o.ajaxProcess(af);if(n){a.html(H)}};Y.complete=function(){j=e("#cluetip-inner img").length;if(j&&!e.browser.opera){e("#cluetip-inner img").load(function(){j--;if(j<1){e("#cluetip-waitimage").hide();if(n){u(ac)}}})}else{e("#cluetip-waitimage").hide();if(n){u(ac)}}};e.ajax(Y)}}else{if(o.local){var ae=e(C+":first");var ab=e.fn.wrapInner?ae.wrapInner("<div></div>").children().clone(true):ae.html();e.fn.wrapInner?a.empty().append(ab):a.html(ab);u(ac)}}}}};var u=function(Z){b.addClass("cluetip-"+y);if(o.truncate){var ac=a.text().slice(0,o.truncate)+"...";a.html(ac)}function ab(){}V?d.show().html(V):(o.showTitle)?d.show().html("&nbsp;"):d.hide();if(o.sticky){var ad=e('<div id="cluetip-close"><a href="#">'+o.closeText+"</a></div>");(o.closePosition=="bottom")?ad.appendTo(a):(o.closePosition=="title")?ad.prependTo(d):ad.prependTo(a);ad.click(function(){E();return false});if(o.mouseOutClose){if(e.fn.hoverIntent&&o.hoverIntent){b.hoverIntent({over:ab,timeout:o.hoverIntent.timeout,out:function(){ad.trigger("click")}})}else{b.hover(ab,function(){ad.trigger("click")})}}else{b.unbind("mouseout")}}var aa="";c.css({overflow:W=="auto"?"visible":"auto",height:W});t=W=="auto"?Math.max(b.outerHeight(),b.height()):parseInt(W,10);L=R;J=p+U;if(o.positionBy=="fixed"){L=R-o.dropShadowSteps+S}else{if((r<O&&Math.max(r,0)+s>O)||o.positionBy=="bottomTop"){if(R+t+S>J&&z-p>t+S){L=z-t-S;aa="top"}else{L=z+S;aa="bottom"}}else{if(R+t+S>J){L=(t>=U)?p:J-t-S}else{if(T.css("display")=="block"||T[0].tagName.toLowerCase()=="area"||o.positionBy=="mouse"){L=Z-S}else{L=R-o.dropShadowSteps}}}}if(aa==""){r<F?aa="left":aa="right"}b.css({top:L+"px"}).removeClass().addClass("clue-"+aa+"-"+y).addClass(" cluetip-"+y);if(o.arrows){var Y=(R-L-o.dropShadowSteps);g.css({top:(/(left|right)/.test(aa)&&r>=0&&Y>0)?Y+"px":/(left|right)/.test(aa)?0:""}).show()}else{g.hide()}h.hide();b.hide()[o.fx.open](o.fx.open!="show"&&o.fx.openSpeed);if(o.dropShadow){h.css({height:t,width:B}).show()}if(e.fn.bgiframe){b.bgiframe()}if(o.delayedClose>0){m=setTimeout(E,o.delayedClose)}o.onShow(b,a)};var w=function(){n=false;e("#cluetip-waitimage").hide();if(!o.sticky||(/click|toggle/).test(o.activation)){E();clearTimeout(m)}if(o.hoverClass){T.removeClass(o.hoverClass)}e(".cluetip-clicked").removeClass("cluetip-clicked")};var E=function(){c.parent().hide().removeClass().end().children().empty();if(V){T.attr(o.titleAttribute,V)}T.css("cursor","");if(o.arrows){g.css({top:""})}};if((/click|toggle/).test(o.activation)){T.click(function(Y){if(b.is(":hidden")||!T.is(".cluetip-clicked")){Q(Y);e(".cluetip-clicked").removeClass("cluetip-clicked");T.addClass("cluetip-clicked")}else{w(Y)}this.blur();return false})}else{if(o.activation=="focus"){T.focus(function(Y){Q(Y)});T.blur(function(Y){w(Y)})}else{T.click(function(){if(T.attr("href")&&T.attr("href")==C&&!o.clickThrough){return false}});var K=function(Y){if(o.tracking==true){var Z=r-Y.pageX;var aa=L?L-Y.pageY:R-Y.pageY;T.mousemove(function(ab){b.css({left:ab.pageX+Z,top:ab.pageY+aa})})}};if(e.fn.hoverIntent&&o.hoverIntent){T.mouseover(function(){T.attr("title","")}).hoverIntent({sensitivity:o.hoverIntent.sensitivity,interval:o.hoverIntent.interval,over:function(Y){Q(Y);K(Y)},timeout:o.hoverIntent.timeout,out:function(Y){w(Y);T.unbind("mousemove")}})}else{T.hover(function(Y){Q(Y);K(Y)},function(Y){w(Y);T.unbind("mousemove")})}}}})};e.fn.cluetip.defaults={width:275,height:"auto",cluezIndex:97,positionBy:"auto",topOffset:15,leftOffset:15,local:false,hideLocal:true,attribute:"rel",titleAttribute:"title",splitTitle:"",showTitle:true,cluetipClass:"default",hoverClass:"",waitImage:true,cursor:"help",arrows:false,dropShadow:true,dropShadowSteps:6,sticky:false,mouseOutClose:false,activation:"hover",clickThrough:false,tracking:false,delayedClose:0,closePosition:"top",closeText:"Close",truncate:0,fx:{open:"show",openSpeed:""},hoverIntent:{sensitivity:3,interval:50,timeout:0},onActivate:function(k){return true},onShow:function(l,k){},ajaxCache:true,ajaxProcess:function(k){k=k.replace(/<s(cript|tyle)(.|\s)*?\/s(cript|tyle)>/g,"").replace(/<(link|title)(.|\s)*?\/(link|title)>/g,"");return k},ajaxSettings:{dataType:"html"},debug:false};var i="appendTo",f="body";e.cluetip={};e.cluetip.setup=function(k){if(k&&k.insertionType&&(k.insertionType).match(/appendTo|prependTo|insertBefore|insertAfter/)){i=k.insertionType}if(k&&k.insertionElement){f=k.insertionElement}}})(jQuery);
/*10-jquery.fancybox-1.3.0.pack.js*/
(function(aI){function ad(){aA.hide();ax.onerror=ax.onload=null;aq&&aq.abort();aF.empty()}function p(){aI.fancybox('<p id="fancybox_error">The requested content cannot be loaded.<br />Please try again later.</p>',{scrolling:"no",padding:20,transitionIn:"none",transitionOut:"none"})}function am(){ad();var e=aw[ay];aK=aI.extend({},aI.fn.fancybox.defaults,typeof aI(e).data("fancybox")=="undefined"?aK:aI(e).data("fancybox"));var h,i,b=e.title||aI(e).title||aK.title||"";if(e.nodeName&&!aK.orig){aK.orig=aI(e).children("img:first").length?aI(e).children("img:first"):aI(e)}if(b==""&&aK.orig){b=aK.orig.attr("alt")}h=e.nodeName&&/^(?:javascript|#)/i.test(e.href)?aK.href||null:aK.href||e.href||null;if(aK.type){i=aK.type;if(!h){h=aK.content}}else{if(aK.content){i="html"}else{if(h){if(h.match(aO)){i="image"}else{if(h.match(w)){i="swf"}else{if(aI(e).hasClass("iframe")){i="iframe"}else{if(h.match(/#/)){e=h.substr(h.indexOf("#"));i=aI(e).length>0?"inline":"ajax"}else{i="ajax"}}}}}else{i="inline"}}}aK.type=i;aK.href=h;aK.title=b;if(aK.autoDimensions&&aK.type!=="iframe"&&aK.type!=="swf"){aK.width="auto";aK.height="auto"}if(aK.modal){aK.overlayShow=true;aK.hideOnOverlayClick=false;aK.hideOnContentClick=false;aK.enableEscapeButton=false;aK.showCloseButton=false}if(aI.isFunction(aK.onStart)){if(aK.onStart(aw,ay,aK)===false){aB=false;return}}aF.css("padding",az+aK.padding+aK.margin);aI(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){aI(this).replaceWith(aC.children())});switch(i){case"html":aF.html(aK.content);ar();break;case"inline":aI('<div class="fancybox-inline-tmp" />').hide().insertBefore(aI(e)).bind("fancybox-cleanup",function(){aI(this).replaceWith(aC.children())}).bind("fancybox-cancel",function(){aI(this).replaceWith(aF.children())});aI(e).appendTo(aF);ar();break;case"image":aB=false;aI.fancybox.showActivity();ax=new Image;ax.onerror=function(){p()};ax.onload=function(){ax.onerror=null;ax.onload=null;R()};ax.src=h;break;case"swf":var c="",g="";c+='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+aK.width+'" height="'+aK.height+'"><param name="movie" value="'+h+'"></param>';aI.each(aK.swf,function(k,j){c+='<param name="'+k+'" value="'+j+'"></param>';g+=" "+k+'="'+j+'"'});c+='<embed src="'+h+'" type="application/x-shockwave-flash" width="'+aK.width+'" height="'+aK.height+'"'+g+"></embed></object>";aF.html(c);ar();break;case"ajax":e=h.split("#",2);i=aK.ajax.data||{};if(e.length>1){h=e[0];typeof i=="string"?(i+="&selector="+e[1]):(i.selector=e[1])}aB=false;aI.fancybox.showActivity();aq=aI.ajax(aI.extend(aK.ajax,{url:h,data:i,error:p,success:function(j){if(aq.status==200){aF.html(j);ar()}}}));break;case"iframe":aI('<iframe id="fancybox-frame" name="fancybox-frame'+(new Date).getTime()+'" frameborder="0" hspace="0" scrolling="'+aK.scrolling+'" src="'+aK.href+'"></iframe>').appendTo(aF);af();break}}function R(){aB=true;aK.width=ax.width;aK.height=ax.height;aI("<img />").attr({id:"fancybox-img",src:ax.src,alt:aK.title}).appendTo(aF);af()}function ar(){aF.width(aK.width);aF.height(aK.height);if(aK.width=="auto"){aK.width=aF.width()}if(aK.height=="auto"){aK.height=aF.height()}af()}function af(){aA.hide();if(aL.is(":visible")&&aI.isFunction(aJ.onCleanup)){if(aJ.onCleanup(o,aH,aJ)===false){aI.event.trigger("fancybox-cancel");aB=false;return}}o=aw;aH=ay;aJ=aK;aC.get(0).scrollTop=0;aC.get(0).scrollLeft=0;if(aJ.overlayShow){ag&&aI("select:not(#fancybox-tmp select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"});au.css({"background-color":aJ.overlayColor,opacity:aJ.overlayOpacity}).unbind().show()}aG=ab();ac();if(aL.is(":visible")){aI(av.add(an).add(ao)).hide();var b=aL.position();aN={top:b.top,left:b.left,width:aL.width(),height:aL.height()};var c=aN.width==aG.width&&aN.height==aG.height;aC.fadeOut(aJ.changeFade,function(){function e(){aC.html(aF.contents()).fadeIn(aJ.changeFade,ah)}aI.event.trigger("fancybox-change");aC.css({top:aJ.padding,left:aJ.padding,width:Math.max(aN.width-aJ.padding*2,1),height:Math.max(aN.height-aJ.padding*2,1)}).empty().css("overflow","hidden");al.prop=0;aI(al).animate({prop:1},{duration:c?0:aJ.changeSpeed,easing:aJ.easingChange,step:ai,complete:e})})}else{aL.css("opacity",1);if(aJ.transitionIn=="elastic"){aN=u();aC.css({top:aJ.padding,left:aJ.padding,width:Math.max(aN.width-aJ.padding*2,1),height:Math.max(aN.height-aJ.padding*2,1)}).html(aF.contents());aL.css(aN).show();if(aJ.opacity){aG.opacity=0}al.prop=0;aI(al).animate({prop:1},{duration:aJ.speedIn,easing:aJ.easingIn,step:ai,complete:ah})}else{aC.css({top:aJ.padding,left:aJ.padding,width:Math.max(aG.width-aJ.padding*2,1),height:Math.max(aG.height-aJ.padding*2-at,1)}).html(aF.contents());aL.css(aG).fadeIn(aJ.transitionIn=="none"?0:aJ.speedIn,ah)}}}function ai(e){var g=Math.round(aN.width+(aG.width-aN.width)*e),h=Math.round(aN.height+(aG.height-aN.height)*e),b=Math.round(aN.top+(aG.top-aN.top)*e),c=Math.round(aN.left+(aG.left-aN.left)*e);aL.css({width:g+"px",height:h+"px",top:b+"px",left:c+"px"});g=Math.max(g-aJ.padding*2,0);h=Math.max(h-(aJ.padding*2+at*e),0);aC.css({width:g+"px",height:h+"px"});if(typeof aG.opacity!=="undefined"){aL.css("opacity",e<0.5?0.5:e)}}function ah(){aC.css("overflow",overflow=aJ.scrolling=="auto"?aJ.type=="image"||aJ.type=="iframe"||aJ.type=="swf"?"hidden":"auto":aJ.scrolling=="yes"?"auto":"visible");if(!aI.support.opacity){aC.get(0).style.removeAttribute("filter");aL.get(0).style.removeAttribute("filter")}aI("#fancybox-title").show();aJ.hideOnContentClick&&aC.one("click",aI.fancybox.close);aJ.hideOnOverlayClick&&au.one("click",aI.fancybox.close);aJ.showCloseButton&&av.show();a();aI(window).bind("resize.fb",aI.fancybox.center);aJ.centerOnScroll?aI(window).bind("scroll.fb",aI.fancybox.center):aI(window).unbind("scroll.fb");aI.isFunction(aJ.onComplete)&&aJ.onComplete(o,aH,aJ);aB=false;d()}function ab(){var g=aj(),i={},j=aJ.margin,c=aJ.autoScale,e=(az+j)*2,h=(az+j)*2,b=aJ.padding*2;if(aJ.width.toString().indexOf("%")>-1){i.width=g[0]*parseFloat(aJ.width)/100-az*2;c=false}else{i.width=aJ.width+b}if(aJ.height.toString().indexOf("%")>-1){i.height=g[1]*parseFloat(aJ.height)/100-az*2;c=false}else{i.height=aJ.height+b}if(c&&(i.width>g[0]-e||i.height>g[1]-h)){if(aK.type=="image"||aK.type=="swf"){e+=b;h+=b;c=Math.min(Math.min(g[0]-e,aJ.width)/aJ.width,Math.min(g[1]-h,aJ.height)/aJ.height);i.width=Math.round(c*(i.width-b))+b;i.height=Math.round(c*(i.height-b))+b}else{i.width=Math.min(i.width,g[0]-e);i.height=Math.min(i.height,g[1]-h)}}i.top=g[3]+(g[1]-(i.height+az*2))*0.5;i.left=g[2]+(g[0]-(i.width+az*2))*0.5;if(aJ.autoScale==false){i.top=Math.max(g[3]+j,i.top);i.left=Math.max(g[2]+j,i.left)}return i}function u(){var b=aK.orig?aI(aK.orig):false,c={};if(b&&b.length){b=f(b);c={width:b.width+aJ.padding*2,height:b.height+aJ.padding*2,top:b.top-aJ.padding-az,left:b.left-aJ.padding-az}}else{b=aj();c={width:1,height:1,top:b[3]+b[1]*0.5,left:b[2]+b[0]*0.5}}return c}function a(){aI(document).unbind("keydown.fb").bind("keydown.fb",function(b){if(b.keyCode==27&&aJ.enableEscapeButton){b.preventDefault();aI.fancybox.close()}else{if(b.keyCode==37){b.preventDefault();aI.fancybox.prev()}else{if(b.keyCode==39){b.preventDefault();aI.fancybox.next()}}}});if(aI.fn.mousewheel){aL.unbind("mousewheel.fb");o.length>1&&aL.bind("mousewheel.fb",function(b,c){b.preventDefault();aB||c==0||(c>0?aI.fancybox.prev():aI.fancybox.next())})}if(aJ.showNavArrows){if(aJ.cyclic&&o.length>1||aH!=0){an.show()}if(aJ.cyclic&&o.length>1||aH!=o.length-1){ao.show()}}}function d(){if(o.length-1>aH){var b=o[aH+1].href;if(typeof b!=="undefined"&&b.match(aO)){var c=new Image;c.src=b}}if(aH>0){b=o[aH-1].href;if(typeof b!=="undefined"&&b.match(aO)){c=new Image;c.src=b}}}function ae(){if(aA.is(":visible")){aI("div",aA).css("top",ak*-40+"px");ak=(ak+1)%12}else{clearInterval(aM)}}function aj(){return[aI(window).width(),aI(window).height(),aI(document).scrollLeft(),aI(document).scrollTop()]}function f(b){var c=b.offset();c.top+=parseFloat(b.css("paddingTop"))||0;c.left+=parseFloat(b.css("paddingLeft"))||0;c.top+=parseFloat(b.css("border-top-width"))||0;c.left+=parseFloat(b.css("border-left-width"))||0;c.width=b.width();c.height=b.height();return c}function ac(){aI("#fancybox-title").remove();at=0;if(aJ.titleShow!=false){var b=aJ.title;b=aI.isFunction(aJ.titleFormat)?aJ.titleFormat(b,o,aH,aJ):aD(b);if(!(!b||b=="")){var c=aG.width-aJ.padding*2;aI('<div id="fancybox-title" class="'+("fancybox-title-"+aJ.titlePosition)+'" />').css({width:c,paddingLeft:aJ.padding,paddingRight:aJ.padding}).html(b).appendTo("body");switch(aJ.titlePosition){case"inside":at=aI("#fancybox-title").outerHeight(true)-aJ.padding;aG.height+=at;break;case"over":aI("#fancybox-title").css("bottom",aJ.padding);break;default:aI("#fancybox-title").css("bottom",aI("#fancybox-title").outerHeight(true)*-1);break}aI("#fancybox-title").appendTo(ap).hide();ag&&aI("#fancybox-title span").fixPNG()}}}function aD(b){if(b&&b.length){switch(aJ.titlePosition){case"inside":return b;case"over":return'<span id="fancybox-title-over">'+b+"</span>";default:return'<span id="fancybox-title-wrap"><span id="fancybox-title-left"></span><span id="fancybox-title-main">'+b+'</span><span id="fancybox-title-right"></span></span>'}}return false}function aE(){if(!aI("#fancybox-wrap").length){aI("body").append(aF=aI('<div id="fancybox-tmp"></div>'),aA=aI('<div id="fancybox-loading"><div></div></div>'),au=aI('<div id="fancybox-overlay"></div>'),aL=aI('<div id="fancybox-wrap"></div>'));ap=aI('<div id="fancybox-outer"></div>').append('<div class="fancy-bg" id="fancy-bg-n"></div><div class="fancy-bg" id="fancy-bg-ne"></div><div class="fancy-bg" id="fancy-bg-e"></div><div class="fancy-bg" id="fancy-bg-se"></div><div class="fancy-bg" id="fancy-bg-s"></div><div class="fancy-bg" id="fancy-bg-sw"></div><div class="fancy-bg" id="fancy-bg-w"></div><div class="fancy-bg" id="fancy-bg-nw"></div>').appendTo(aL);ap.append(aC=aI('<div id="fancybox-inner"></div>'),av=aI('<a id="fancybox-close"></a>'),an=aI('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),ao=aI('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>'));av.click(aI.fancybox.close);aA.click(aI.fancybox.cancel);an.click(function(b){b.preventDefault();aI.fancybox.prev()});ao.click(function(b){b.preventDefault();aI.fancybox.next()});aI.support.opacity||ap.find(".fancy-bg").fixPNG();if(ag){aI(av.add(".fancy-ico").add("div",aA)).fixPNG();au.get(0).style.setExpression("height","document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px'");aA.get(0).style.setExpression("top","(-20 + (document.documentElement.clientHeight ? document.documentElement.clientHeight/2 : document.body.clientHeight/2 ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop )) + 'px'");ap.prepend('<iframe id="fancybox-hide-sel-frame" src="javascript:\'\';" scrolling="no" frameborder="0" ></iframe>')}}}var aF,aA,au,aL,ap,aC,av,an,ao,ay=0,aK={},aw=[],aH=0,aJ={},o=[],aq=null,ax=new Image,aO=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,w=/[^\.]\.(swf)\s*$/i,aM,ak=1,aN,aG,aB=false,az=20,al=aI.extend(aI("<div/>")[0],{prop:0}),at=0,ag=!aI.support.opacity&&!window.XMLHttpRequest;aI.fn.fixPNG=function(){return this.each(function(){var b=aI(this).css("backgroundImage");if(b.match(/^url\(["']?(.*\.png)["']?\)$/i)){b=RegExp.$1;aI(this).css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod="+(aI(this).css("backgroundRepeat")=="no-repeat"?"crop":"scale")+", src='"+b+"')"}).each(function(){var c=aI(this).css("position");c!="absolute"&&c!="relative"&&aI(this).css("position","relative")}).css("zoom",1)}})};aI.fn.fancybox=function(b){aI(this).data("fancybox",aI.extend({},b));aI(this).unbind("click.fb").bind("click.fb",function(c){c.preventDefault();if(!aB){aB=true;aI(this).blur();aw=[];ay=0;c=aI(this).attr("rel")||"";if(!c||c==""||c==="nofollow"){aw.push(this)}else{aw=aI("a[rel="+c+"], area[rel="+c+"]");ay=aw.index(this)}am();return false}});return this};aI.fancybox=function(c,e){if(!aB){aB=true;aw=[];ay=0;if(aI.isArray(c)){for(var g=0,b=c.length;g<b;g++){if(typeof c[g]=="object"){aI(c[g]).data("fancybox",aI.extend({},e,c[g]))}else{c[g]=aI({}).data("fancybox",aI.extend({content:c[g]},e))}}aw=jQuery.merge(aw,c)}else{if(typeof c=="object"){aI(c).data("fancybox",aI.extend({},e,c))}else{c=aI({}).data("fancybox",aI.extend({content:c},e))}aw.push(c)}am()}};aI.fancybox.showActivity=function(){clearInterval(aM);aA.show();aM=setInterval(ae,66)};aI.fancybox.hideActivity=function(){aA.hide()};aI.fancybox.next=function(){return aI.fancybox.pos(aH+1)};aI.fancybox.prev=function(){return aI.fancybox.pos(aH-1)};aI.fancybox.pos=function(b){if(!aB){b=parseInt(b);if(b>-1&&o.length>b){ay=b;am()}if(aJ.cyclic&&o.length>1&&b<0){ay=o.length-1;am()}if(aJ.cyclic&&o.length>1&&b>=o.length){ay=0;am()}}};aI.fancybox.cancel=function(){if(!aB){aB=true;aI.event.trigger("fancybox-cancel");ad();aK&&aI.isFunction(aK.onCancel)&&aK.onCancel(aw,ay,aK);aB=false}};aI.fancybox.close=function(){function b(){au.fadeOut("fast");aL.hide();aI.event.trigger("fancybox-cleanup");aC.empty();aI.isFunction(aJ.onClosed)&&aJ.onClosed(o,aH,aJ);o=aK=[];aH=ay=0;aJ=aK={};aB=false}if(!(aB||aL.is(":hidden"))){aB=true;if(aJ&&aI.isFunction(aJ.onCleanup)){if(aJ.onCleanup(o,aH,aJ)===false){aB=false;return}}ad();aI(av.add(an).add(ao)).hide();aI("#fancybox-title").remove();aL.add(aC).add(au).unbind();aI(window).unbind("resize.fb scroll.fb");aI(document).unbind("keydown.fb");aC.css("overflow","hidden");if(aJ.transitionOut=="elastic"){aN=u();var c=aL.position();aG={top:c.top,left:c.left,width:aL.width(),height:aL.height()};if(aJ.opacity){aG.opacity=1}al.prop=1;aI(al).animate({prop:0},{duration:aJ.speedOut,easing:aJ.easingOut,step:ai,complete:b})}else{aL.fadeOut(aJ.transitionOut=="none"?0:aJ.speedOut,b)}}};aI.fancybox.resize=function(){if(!(aB||aL.is(":hidden"))){aB=true;var b=aC.wrapInner("<div style='overflow:auto'></div>").children(),c=b.height();aL.css({height:c+aJ.padding*2+at});aC.css({height:c});b.replaceWith(b.children());aI.fancybox.center()}};aI.fancybox.center=function(){aB=true;var b=aj(),c=aJ.margin,e={};e.top=b[3]+(b[1]-(aL.height()-at+az*2))*0.5;e.left=b[2]+(b[0]-(aL.width()+az*2))*0.5;e.top=Math.max(b[3]+c,e.top);e.left=Math.max(b[2]+c,e.left);aL.css(e);aB=false};aI.fn.fancybox.defaults={padding:10,margin:20,opacity:false,modal:false,cyclic:false,scrolling:"auto",width:560,height:340,autoScale:true,autoDimensions:true,centerOnScroll:false,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:true,hideOnContentClick:false,overlayShow:true,overlayOpacity:0.3,overlayColor:"#666",titleShow:true,titlePosition:"outside",titleFormat:null,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",easingOut:"swing",showCloseButton:true,showNavArrows:true,enableEscapeButton:true,onStart:null,onCancel:null,onComplete:null,onCleanup:null,onClosed:null};aI(document).ready(function(){aE()})})(jQuery);
/*99-global.js*/
$(document).ready(function(){$(document).pngFix();$("#e").Watermark("Email Sign Up","#666666");if(typeof(section)!="undefined"){try{var a=$("#mainnav img[alt='"+section+"']");a.addClass("on");SetImage(a,a.attr("src").replace(".jpg","_f3.jpg"))}catch(b){}}Menu.Init();$("#go").click(function(){$("#ea").val($("#e").val());$("#ccoptin").submit()});$("a.tips").cluetip({local:true,hideLocal:false,arrows:true,cursor:"pointer"});$("#tabs li").hide();$("#tab a img").click(function(){$("#tabs li").hide();$("#"+$(this).parent().attr("rel")).show();$("#tab img").each(function(d){SetImage($(this),$(this).attr("src").replace("_f2.jpg",".jpg"))});SetImage($(this),$(this).attr("src").replace(".jpg","_f2.jpg"))});$("#Balsam").show();$("#aboutusnav li").click(function(){$("#aboutusnav li").removeClass("selected");$(this).addClass("selected");var d=$(this).prevAll().length+1;$("#principals li.principal").hide();$("#principals li:nth-child("+d+")").show()});if(jQuery.url.attr("anchor")!=null&&$("a[href='#"+jQuery.url.attr("anchor")+"']").length==1){var c=$("a[href='#"+jQuery.url.attr("anchor")+"']").parent().prevAll().length;c++;$("#principals li:nth-child("+c+")").show();$("#aboutusnav li").removeClass("selected");$("a[href='#"+jQuery.url.attr("anchor")+"']").parent().addClass("selected")}else{$("#principals li:nth-child(1)").show()}$("#research li").click(function(){$("#research li").removeClass("selected");$(this).addClass("selected");var d=$(this).prevAll().length+2;$("#researchcontents li.researchcontent").hide();$("#researchcontents li:nth-child("+d+")").show();$("#sidenav li").removeClass("selected");if($(this).attr("id")=="researchwhitepapers"){$("#viewrw").addClass("selected")}else{$("#sidenav li").removeClass("selected")}return false});$("#researchcontents li:nth-child(1)").show();$(".editable").hover(function(){$(this).addClass("editback");$(this).attr("title","Double Click to edit this content.")},function(){$(this).removeClass("editback")});$(".editable").bind("dblclick",function(){$.fancybox(root+"admin/editcontent.aspx?ID="+$(this).attr("rel"),{autoDimensions:false,margin:0,width:"100%",height:"100%",type:"iframe"});return false})});Menu={ImageBase:root,Init:function(){$(".nav img").preload({find:".jpg",replace:"_f2.jpg"});$(".nav img").hover(function(){Menu.Over(this)},function(){Menu.Out(this)})},Over:function(a){if(!$(a).hasClass("on")){SetImage(a,$(a).attr("src").replace(".jpg","_f2.jpg"))}},Out:function(a){if(!$(a).hasClass("on")){SetImage(a,$(a).attr("src").replace("_f2",""))}}};function SetImage(a,b){$(a).attr("src",b)}function GotoValidationSummary(){if(typeof(ValidatorOnSubmit)=="function"){var a=ValidatorOnSubmit();if(!a){var b=$(".validationsummary").show().position();window.scrollTo(b.left,b.top);return false}return true}}function RefreshContent(b,a){$("[rel="+b+"]").html(a)};
