(function($){if(typeof $.fn.menu==="undefined"){$.fn.extend({menu:function(options){return this.each(function(){var tabs,tab,className,doMouseEnter,doMouseLeave,i,u;if(typeof options==="undefined"){options={};}
className=options.className||'hover';doMouseEnter=function(event){var tab=$(this);if(!tab.hasClass(className)){tab.addClass(className);}};doMouseLeave=function(event){var tab=$(this);if(tab.hasClass(className)){tab.removeClass(className);}};tabs=$(this).find("> ul > li");for(i=0,u=tabs.length;i<u;i+=1){tab=$(tabs[i]);$(tab).mouseenter(doMouseEnter);$(tab).mouseleave(doMouseLeave);}});}});}}(jQuery));;(function($){var TabSet,Tab,Page;TabSet=function(elem,options){var domTabs,domPage,domTab,tab,i,u;this.options=$.extend({},TabSet.defaultOptions,options);this.selected=this.options.selected;this.tabs=[];elem.data('TabSet',this);domTabs=elem.find("a[href^=#]");for(i=0,u=domTabs.length;i<u;i+=1){domTab=$(domTabs[i]);domPage=$(domTab.attr("href"));if(domPage.length===1){domPage.hide();tab=new Tab(domTab,domPage,this);this.tabs.push(tab);}}
this.tabs[this.selected].select();};TabSet.prototype={select:function(index){if(typeof index==="object"){index=this.getIndex(index);}
if(index<0||index>this.tabs.length){return false;}
if(index===this.selected){return false;}
this.tabs[index].select();this.tabs[this.selected].deselect();this.selected=index;return true;},getIndex:function(tab){var i,u;for(i=0,u=this.tabs.length;i<u;i+=1){if(this.tabs[i]===tab){return i;}}
return-1;}};TabSet.defaultOptions={selected:0,cssSelected:'selected',showPage:function(elem){elem.show();},hidePage:function(elem){elem.hide();}};Tab=function(domTab,domPage,tabSet){this.domTab=domTab;this.tabSet=tabSet;domTab.data('Tab',this);domTab.click(Tab.handleClick);this.page=new Page(domPage,this);};Tab.prototype={select:function(){var cls=this.tabSet.options.cssSelected;if(!this.domTab.hasClass(cls)){this.domTab.addClass(cls);}
this.page.show();},deselect:function(){var cls=this.tabSet.options.cssSelected;if(this.domTab.hasClass(cls)){this.domTab.removeClass(cls);}
this.page.hide();}};Tab.handleClick=function(event){var tab=$(event.target).data('Tab');tab.tabSet.select(tab);return false;};Page=function(domPage,tab){this.domPage=domPage;this.tab=tab;domPage.data('Page',this);};Page.prototype={show:function(){if(this.domPage.is(":hidden")){this.tab.tabSet.options.showPage(this.domPage);}},hide:function(){if(this.domPage.is(":visible")){this.tab.tabSet.options.hidePage(this.domPage);}}};$.fn.extend({tabs:function(options){return this.each(function(){var ts=new TabSet($(this),options);});}});}(jQuery));;(function($){var
transparent,agent,isIE6,isPNG,pngfix,pngfixImg,pngfixCssSimple,pngfixCssOffset;transparent="/images/transparent.gif";agent=navigator.userAgent.toLowerCase();isIE6=(agent.indexOf("mac")===-1&&agent.indexOf("msie 6")!==-1);isPNG=function(url){var ext;if(typeof url==="string"){url=url.split(".");ext=url[url.length-1];return ext.toLowerCase()==="png";}
return false;};if(isIE6){pngfixImg=function(elem){var filter;filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(';filter+='src="'+elem.attr("src")+'",';filter+='sizingMethod="scale")';elem.get(0).runtimeStyle.filter=filter;elem.attr("src",transparent);};pngfixCssSimple=function(elem,bgImg){var alphaImgSrc,filter;alphaImgSrc=bgImg.slice(5,bgImg.length-2);filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(';filter+='src="'+alphaImgSrc+'",';filter+='sizingMethod="crop")';elem.get(0).runtimeStyle.filter=filter;elem.css("background-image","url("+transparent+")");};pngfixCssOffset=function(elem,bgImg,bgPosX,bgPosY){var alphaImgSrc,child,width,height;alphaImgSrc=bgImg.slice(5,bgImg.length-2);if(elem.css("position")==="static"){elem.css("position","relative");}
elem.css("overflow","hidden");elem.css("background-image","url("+transparent+")");child=document.createElement('img');child.src=alphaImgSrc;width=child.width;height=child.height;child=$(child);child.css("width",width+"px");child.css("height",height+"px");child.css("position","absolute");if(bgPosX==="right"){child.css("right",0);}
else{child.css("left",bgPosX);}
if(bgPosY==="bottom"){child.css("bottom",0);}
else{child.css("top",bgPosY);}
pngfixImg(child);child.click(function(event){$(this).parent().click();});elem.append(child);};pngfix=function(elem){var tagName,bgImg,bgPosX,bgPosY;elem=$(elem);tagName=elem.get(0).tagName;if(tagName==="IMG"&&isPNG(elem.attr("src"))){pngfixImg(elem);}
else{bgImg=elem.css("background-image");if(bgImg.toLowerCase().indexOf(".png")!==-1){bgPosX=elem.css("background-position-x");bgPosY=elem.css("background-position-y");if(bgPosX==="0px"&&bgPosY==="0px"){pngfixCssSimple(elem,bgImg);}
else{pngfixCssOffset(elem,bgImg,bgPosX,bgPosY);}}}};}
else{pngfix=function(elem){};}
if(typeof $.fn.pngfix==="undefined"){$.fn.extend({pngfix:function(){return this.each(function(){pngfix(this);});}});}}(jQuery));;$(document).ready(function(){$("#GlobalNav").menu();$(".tabs").tabs();$(".pngfix").pngfix();$("a.link-external, a.link-pdf").click(function(){window.open(this.href);return false;});});