var flashinglinks={pause:1000,targetlinks:[],changecolor:function(){for(var b=0;b<this.targetlinks.length;b++){var a=this.targetlinks[b];var c=(a.colorsetting.type=="flashfg")?"color":"backgroundColor";a.style[c]=(a.style[c]!=a.colorsetting.ncolor)?a.colorsetting.ncolor:a.colorsetting.ocolor;a.colorsetting.ccolor=a.style[c]}},fetchcssvalue:function(a,b){return(a.style[b])?a.style[b]:(a.currentStyle)?a.currentStyle[b]:(document.defaultView.getComputedStyle)?document.defaultView.getComputedStyle(a,"").getPropertyValue(b):""},addEvent:function(a,d,b){if(a.length>0){var c=a.shift();if(c.addEventListener){c.addEventListener(b,d,false)}else{if(c.attachEvent){c.attachEvent("on"+b,function(){return d.call(c,window.event)})}}this.addEvent(a,d,b)}},init:function(){var b=document.getElementsByTagName("a");for(var a=0;a<b.length;a++){if(b[a].getAttribute("rel")&&/(flash[bf]g)\[(.+)\]/i.test(b[a].getAttribute("rel"))){b[a].colorsetting={ocolor:this.fetchcssvalue(b[a],RegExp.$1=="flashfg"?"color":"backgroundColor"),ncolor:RegExp.$2,type:RegExp.$1};this.targetlinks.push(b[a])}}if(this.targetlinks.length>0){setInterval(function(){flashinglinks.changecolor()},this.pause)}}};flashinglinks.addEvent([window],function(){flashinglinks.init()},"load");function MM_preloadImages(){var d=document;if(d.images){if(!d.MM_p){d.MM_p=new Array}var g,h=d.MM_p.length,a=MM_preloadImages.arguments;for(g=0;g<a.length;g++){if(a[g].indexOf("#")!=0){d.MM_p[h]=new Image;d.MM_p[h++].src=a[g]}}}}function MM_swapImgRestore(){var e,a,f=document.MM_sr;for(e=0;f&&e<f.length&&(a=f[e])&&a.oSrc;e++){a.src=a.oSrc}}function MM_findObj(h,i){var j,d,g;if(!i){i=document}if((j=h.indexOf("?"))>0&&parent.frames.length){i=parent.frames[h.substring(j+1)].document;h=h.substring(0,j)}if(!(g=i[h])&&i.all){g=i.all[h]}for(d=0;!g&&d<i.forms.length;d++){g=i.forms[d][h]}for(d=0;!g&&i.layers&&d<i.layers.length;d++){g=MM_findObj(h,i.layers[d].document)}if(!g&&i.getElementById){g=i.getElementById(h)}return g}function MM_swapImage(){var f,g=0,a,h=MM_swapImage.arguments;document.MM_sr=new Array;for(f=0;f<h.length-2;f+=3){if((a=MM_findObj(h[f]))!=null){document.MM_sr[g++]=a;if(!a.oSrc){a.oSrc=a.src}a.src=h[f+2]}}}function popUp(URL){day=new Date;id=day.getTime();eval("page"+id+" = window.open(URL, '"+id+"', 'toolbar=0,scrollbars=2,location=0,statusbar=1,menubar=0,resizable=0,width=750,height=525,left = 100,top = 134');")}function popUpSmall(URL){day=new Date;id=day.getTime();eval("page"+id+" = window.open(URL, '"+id+"', 'toolbar=0,scrollbars=2,location=0,statusbar=1,menubar=0,resizable=0,width=200,height=150,left = 100,top = 134');")}_editor_url="";var win_ie_ver=parseFloat(navigator.appVersion.split("MSIE")[1]);if(navigator.userAgent.indexOf("Mac")>=0){win_ie_ver=0}if(navigator.userAgent.indexOf("Windows CE")>=0){win_ie_ver=0}if(navigator.userAgent.indexOf("Opera")>=0){win_ie_ver=0}if(win_ie_ver>=5.5){document.write('<script src="'+_editor_url+'editor.js"');document.write(' language="Javascript1.2"><\/script>')}else{document.write("<script>function editor_generate() { return false; }<\/script>")}browserName=navigator.appName;browserVer=parseInt(navigator.appVersion);ns3up=browserName=="Netscape"&&browserVer>=3;ie4up=browserName.indexOf("Microsoft")>=0&&browserVer>=4;function doPic(b){if(ns3up||ie4up){imgOn=""+b;document.main_ad_image.src=imgOn}}function doMedia(b){if(ns3up||ie4up){mediaOn=""+b;document.main_ad_media.src=mediaOn}}var Spry;if(!Spry){Spry={}}if(!Spry.Widget){Spry.Widget={}}Spry.Widget.TabbedPanels=function(e,f){this.element=this.getElement(e);this.defaultTab=0;this.bindings=[];this.tabSelectedClass="TabbedPanelsTabSelected";this.tabHoverClass="TabbedPanelsTabHover";this.tabFocusedClass="TabbedPanelsTabFocused";this.panelVisibleClass="TabbedPanelsContentVisible";this.focusElement=null;this.hasFocus=false;this.currentTabIndex=0;this.enableKeyboardNavigation=true;Spry.Widget.TabbedPanels.setOptions(this,f);if(typeof this.defaultTab=="number"){if(this.defaultTab<0){this.defaultTab=0}else{var d=this.getTabbedPanelCount();if(this.defaultTab>=d){this.defaultTab=d>1?d-1:0}}this.defaultTab=this.getTabs()[this.defaultTab]}if(this.defaultTab){this.defaultTab=this.getElement(this.defaultTab)}this.attachBehaviors()};Spry.Widget.TabbedPanels.prototype.getElement=function(b){if(b&&typeof b=="string"){return document.getElementById(b)}return b};Spry.Widget.TabbedPanels.prototype.getElementChildren=function(d){var e=[];var f=d.firstChild;while(f){if(f.nodeType==1){e.push(f)}f=f.nextSibling}return e};Spry.Widget.TabbedPanels.prototype.addClassName=function(c,d){if(!c||!d||c.className&&c.className.search(new RegExp("\\b"+d+"\\b"))!=-1){return}c.className+=(c.className?" ":"")+d};Spry.Widget.TabbedPanels.prototype.removeClassName=function(c,d){if(!c||!d||c.className&&c.className.search(new RegExp("\\b"+d+"\\b"))==-1){return}c.className=c.className.replace(new RegExp("\\s*\\b"+d+"\\b","g"),"")};Spry.Widget.TabbedPanels.setOptions=function(g,h,f){if(!h){return}for(var e in h){if(f&&h[e]==undefined){continue}g[e]=h[e]}};Spry.Widget.TabbedPanels.prototype.getTabGroup=function(){if(this.element){var b=this.getElementChildren(this.element);if(b.length){return b[0]}}return null};Spry.Widget.TabbedPanels.prototype.getTabs=function(){var d=[];var c=this.getTabGroup();if(c){d=this.getElementChildren(c)}return d};Spry.Widget.TabbedPanels.prototype.getContentPanelGroup=function(){if(this.element){var b=this.getElementChildren(this.element);if(b.length>1){return b[1]}}return null};Spry.Widget.TabbedPanels.prototype.getContentPanels=function(){var d=[];var c=this.getContentPanelGroup();if(c){d=this.getElementChildren(c)}return d};Spry.Widget.TabbedPanels.prototype.getIndex=function(f,e){f=this.getElement(f);if(f&&e&&e.length){for(var d=0;d<e.length;d++){if(f==e[d]){return d}}}return -1};Spry.Widget.TabbedPanels.prototype.getTabIndex=function(c){var d=this.getIndex(c,this.getTabs());if(d<0){d=this.getIndex(c,this.getContentPanels())}return d};Spry.Widget.TabbedPanels.prototype.getCurrentTabIndex=function(){return this.currentTabIndex};Spry.Widget.TabbedPanels.prototype.getTabbedPanelCount=function(b){return Math.min(this.getTabs().length,this.getContentPanels().length)};Spry.Widget.TabbedPanels.addEventListener=function(j,e,i,g){try{if(j.addEventListener){j.addEventListener(e,i,g)}else{if(j.attachEvent){j.attachEvent("on"+e,i)}}}catch(h){}};Spry.Widget.TabbedPanels.prototype.onTabClick=function(c,d){this.showPanel(d)};Spry.Widget.TabbedPanels.prototype.onTabMouseOver=function(c,d){this.addClassName(d,this.tabHoverClass)};Spry.Widget.TabbedPanels.prototype.onTabMouseOut=function(c,d){this.removeClassName(d,this.tabHoverClass)};Spry.Widget.TabbedPanels.prototype.onTabFocus=function(c,d){this.hasFocus=true;this.addClassName(this.element,this.tabFocusedClass)};Spry.Widget.TabbedPanels.prototype.onTabBlur=function(c,d){this.hasFocus=false;this.removeClassName(this.element,this.tabFocusedClass)};Spry.Widget.TabbedPanels.ENTER_KEY=13;Spry.Widget.TabbedPanels.SPACE_KEY=32;Spry.Widget.TabbedPanels.prototype.onTabKeyDown=function(f,d){var e=f.keyCode;if(!this.hasFocus||e!=Spry.Widget.TabbedPanels.ENTER_KEY&&e!=Spry.Widget.TabbedPanels.SPACE_KEY){return true}this.showPanel(d);if(f.stopPropagation){f.stopPropagation()}if(f.preventDefault){f.preventDefault()}return false};Spry.Widget.TabbedPanels.prototype.preorderTraversal=function(g,e){var i=false;if(g){i=e(g);if(g.hasChildNodes()){var h=g.firstChild;while(!i&&h){i=this.preorderTraversal(h,e);try{h=h.nextSibling}catch(j){h=null}}}}return i};Spry.Widget.TabbedPanels.prototype.addPanelEventListeners=function(i,f){var j=this;Spry.Widget.TabbedPanels.addEventListener(i,"click",function(a){return j.onTabClick(a,i)},false);Spry.Widget.TabbedPanels.addEventListener(i,"mouseover",function(a){return j.onTabMouseOver(a,i)},false);Spry.Widget.TabbedPanels.addEventListener(i,"mouseout",function(a){return j.onTabMouseOut(a,i)},false);if(this.enableKeyboardNavigation){var h=null;var g=null;this.preorderTraversal(i,function(b){if(b.nodeType==1){var a=i.attributes.getNamedItem("tabindex");if(a){h=b;return true}if(!g&&b.nodeName.toLowerCase()=="a"){g=b}}return false});if(h){this.focusElement=h}else{if(g){this.focusElement=g}}if(this.focusElement){Spry.Widget.TabbedPanels.addEventListener(this.focusElement,"focus",function(a){return j.onTabFocus(a,i)},false);Spry.Widget.TabbedPanels.addEventListener(this.focusElement,"blur",function(a){return j.onTabBlur(a,i)},false);Spry.Widget.TabbedPanels.addEventListener(this.focusElement,"keydown",function(a){return j.onTabKeyDown(a,i)},false)}}};Spry.Widget.TabbedPanels.prototype.showPanel=function(g){var i=-1;if(typeof g=="number"){i=g}else{i=this.getTabIndex(g)}if(!i<0||i>=this.getTabbedPanelCount()){return}var j=this.getTabs();var l=this.getContentPanels();var h=Math.max(j.length,l.length);for(var k=0;k<h;k++){if(k!=i){if(j[k]){this.removeClassName(j[k],this.tabSelectedClass)}if(l[k]){this.removeClassName(l[k],this.panelVisibleClass);l[k].style.display="none"}}}this.addClassName(j[i],this.tabSelectedClass);this.addClassName(l[i],this.panelVisibleClass);l[i].style.display="block";this.currentTabIndex=i};Spry.Widget.TabbedPanels.prototype.attachBehaviors=function(i){var j=this.getTabs();var g=this.getContentPanels();var h=this.getTabbedPanelCount();for(var f=0;f<h;f++){this.addPanelEventListeners(j[f],g[f])}this.showPanel(this.defaultTab)};var Spry;if(!Spry){Spry={}}if(!Spry.Widget){Spry.Widget={}}Spry.Widget.MenuBar=function(d,c){this.init(d,c)};Spry.Widget.MenuBar.prototype.init=function(n,l){this.element=this.getElement(n);this.currMenu=null;var o=typeof document.all!="undefined"&&typeof window.opera=="undefined"&&navigator.vendor!="KDE";if(typeof document.getElementById=="undefined"||navigator.vendor=="Apple Computer, Inc."&&typeof window.XMLHttpRequest=="undefined"||o&&typeof document.uniqueID=="undefined"){return}if(l){for(var i in l){var m=new Image;m.src=l[i]}}if(this.element){this.currMenu=this.element;var j=this.element.getElementsByTagName("li");for(var p=0;p<j.length;p++){this.initialize(j[p],n,o);if(o){this.addClassName(j[p],"MenuBarItemIE");j[p].style.position="static"}}if(o){if(this.hasClassName(this.element,"MenuBarVertical")){this.element.style.position="relative"}var k=this.element.getElementsByTagName("a");for(var p=0;p<k.length;p++){k[p].style.position="relative"}}}};Spry.Widget.MenuBar.prototype.getElement=function(b){if(b&&typeof b=="string"){return document.getElementById(b)}return b};Spry.Widget.MenuBar.prototype.hasClassName=function(c,d){if(!c||!d||!c.className||c.className.search(new RegExp("\\b"+d+"\\b"))==-1){return false}return true};Spry.Widget.MenuBar.prototype.addClassName=function(c,d){if(!c||!d||this.hasClassName(c,d)){return}c.className+=(c.className?" ":"")+d};Spry.Widget.MenuBar.prototype.removeClassName=function(c,d){if(!c||!d||!this.hasClassName(c,d)){return}c.className=c.className.replace(new RegExp("\\s*\\b"+d+"\\b","g"),"")};Spry.Widget.MenuBar.prototype.addEventListener=function(j,e,i,g){try{if(j.addEventListener){j.addEventListener(e,i,g)}else{if(j.attachEvent){j.attachEvent("on"+e,i)}}}catch(h){}};Spry.Widget.MenuBar.prototype.createIframeLayer=function(c){var d=document.createElement("iframe");d.tabIndex="-1";d.src="javascript:false;";c.parentNode.appendChild(d);d.style.left=c.offsetLeft+"px";d.style.top=c.offsetTop+"px";d.style.width=c.offsetWidth+"px";d.style.height=c.offsetHeight+"px"};Spry.Widget.MenuBar.prototype.removeIframeLayer=function(c){var d=c.parentNode.getElementsByTagName("iframe");while(d.length>0){d[0].parentNode.removeChild(d[0])}};Spry.Widget.MenuBar.prototype.clearMenus=function(e){var f=e.getElementsByTagName("ul");for(var d=0;d<f.length;d++){this.hideSubmenu(f[d])}this.removeClassName(this.element,"MenuBarActive")};Spry.Widget.MenuBar.prototype.bubbledTextEvent=function(){return navigator.vendor=="Apple Computer, Inc."&&(event.target==event.relatedTarget.parentNode||event.eventPhase==3&&event.target.parentNode==event.relatedTarget)};Spry.Widget.MenuBar.prototype.showSubmenu=function(b){if(this.currMenu){this.clearMenus(this.currMenu);this.currMenu=null}if(b){this.addClassName(b,"MenuBarSubmenuVisible");if(typeof document.all!="undefined"&&typeof window.opera=="undefined"&&navigator.vendor!="KDE"){if(!this.hasClassName(this.element,"MenuBarHorizontal")||b.parentNode.parentNode!=this.element){b.style.top=b.parentNode.offsetTop+"px"}}if(typeof document.uniqueID!="undefined"){this.createIframeLayer(b)}}this.addClassName(this.element,"MenuBarActive")};Spry.Widget.MenuBar.prototype.hideSubmenu=function(b){if(b){this.removeClassName(b,"MenuBarSubmenuVisible");if(typeof document.all!="undefined"&&typeof window.opera=="undefined"&&navigator.vendor!="KDE"){b.style.top="";b.style.left=""}this.removeIframeLayer(b)}};Spry.Widget.MenuBar.prototype.initialize=function(n,o,m){var p,r;var l=n.getElementsByTagName("a")[0];var q=n.getElementsByTagName("ul");var s=q.length>0?q[0]:null;var t=false;if(s){this.addClassName(l,"MenuBarItemSubmenu");t=true}if(!m){n.contains=function(a){if(a==null){return false}if(a==this){return true}else{return this.contains(a.parentNode)}}}var k=this;this.addEventListener(n,"mouseover",function(a){if(k.bubbledTextEvent()){return}clearTimeout(r);if(k.currMenu==n){k.currMenu=null}k.addClassName(l,t?"MenuBarItemSubmenuHover":"MenuBarItemHover");if(s&&!k.hasClassName(s,"MenuBarSubmenuVisible")){p=window.setTimeout(function(){k.showSubmenu(s)},250)}},false);this.addEventListener(n,"mouseout",function(a){if(k.bubbledTextEvent()){return}var b=typeof a.relatedTarget!="undefined"?a.relatedTarget:a.toElement;if(!n.contains(b)){clearTimeout(p);k.currMenu=n;k.removeClassName(l,t?"MenuBarItemSubmenuHover":"MenuBarItemHover");if(s){r=window.setTimeout(function(){k.hideSubmenu(s)},600)}}},false)};