function hide(spanId) {

	var item = document.getElementById(spanId);
	
	if (item) {
	
		item.style.display = "none";
	}
}

//**************************************************
// ANYLINK - Sub Navigation
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var enableanchorlink=0 //Enable or disable the anchor link when clicked on? (1=e, 0=d)
var hidemenu_onclick=1 //hide menu when user clicks within menu? (1=yes, 0=no)

/////No further editting needed

var ie5=document.all
var ns6=document.getElementById&&!document.all

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}

function showhide(obj, e, visible, hidden){
if (ie5||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie5 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie5 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie5 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function dropdownmenu(obj, e, dropmenuID){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
if (typeof dropmenuobj!="undefined") //hide previous menu
dropmenuobj.style.visibility="hidden"
clearhidemenu()
if (ie5||ns6){
obj.onmouseout=delayhidemenu
dropmenuobj=document.getElementById(dropmenuID)
if (hidemenu_onclick) dropmenuobj.onclick=function(){dropmenuobj.style.visibility='hidden'}
dropmenuobj.onmouseover=clearhidemenu
dropmenuobj.onmouseout=ie5? function(){ dynamichide(event)} : function(event){ dynamichide(event)}
showhide(dropmenuobj.style, e, "visible", "hidden")
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}
return clickreturnvalue()
}

function clickreturnvalue(){
if ((ie5||ns6) && !enableanchorlink) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie5&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function delayhidemenu(){
delayhide=setTimeout("dropmenuobj.style.visibility='hidden'",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}
//
//**************************************************

if (document.images) 

{

   img1 = new Image();

   img2 = new Image();

   img1.src = "../images/bullet.gif";

   img2.src = "../images/bullet_drk.gif"

}



function openwin(url){

window.open(url,"XTF","toolbar=yes,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=750,height=500,left=0,top=0");

}


function alertWin(){ //Define arbitrary function to run desired DHTML Window widget codes
window.alert("You are now leaving the Smart Portfolios website. Smart Portfolios is not responsible for the accuracy of information provided on any other websites. ")
}

//**************************************************
//
//  Deluxe Tabs (c) 2006 - 2008, by Deluxe-Tabs.com
//  version 3.2.9
//  http://deluxe-tabs.com
//  E-mail:  support@deluxe-menu.com
//
//  ------
//  Obfuscated by Javascript Obfuscator
//  http://javascript-source.com

//
//**************************************************


var Lb0=0;var JL1=0;var b0b=0;var J0=0;var LL0=0;var TbT=0;var b1b=0;var bJ=0;var TLL=0;var JJ0=0;var JT1=0;var LJ=0;var L0=[];var T1L=false;var b0J=0;var Jbb=null;var s="";var TT0="";var TLJ=2000;var JTb;L0JT();function L0JT(){var a=navigator.userAgent;var n=navigator.appName;var v=navigator.appVersion;JJ0=v.indexOf("Mac")>=0;TLL=document.getElementById?1:0;if(RegExp(" AppleWebKit/").test(navigator.userAgent)){b0b=1;bJ=6;return;}if(n.toLowerCase()=="konqueror"){b1b=1;bJ=1.6;return;}if(a.indexOf("Opera")>=0){LL0=1;bJ=parseFloat(a.substring(a.indexOf("Opera")+6,a.length));}else if(n.toLowerCase()=="netscape"){if(a.indexOf("rv:")!=-1&&a.indexOf("Gecko")!=-1&&a.indexOf("Netscape")==-1){b1b=1;bJ=parseFloat(a.substring(a.indexOf("rv:")+3,a.length));}else{b0b=1;if(a.indexOf("Gecko")!=-1&&a.indexOf("Netscape")>a.indexOf("Gecko")){if(a.indexOf("Netscape6")>-1)bJ=parseFloat(a.substring(a.indexOf("Netscape")+10,a.length));else if(a.indexOf("Netscape")>-1)bJ=parseFloat(a.substring(a.indexOf("Netscape")+9,a.length));}else bJ=parseFloat(v);}}else if(document.all?1:0){Lb0=1;bJ=parseFloat(a.substring(a.indexOf("MSIE ")+5,a.length));}J0=b0b&&bJ<6;JL1=Lb0&&bJ>=5;TbT=LL0&&bJ>=7;JT1=Lb0||TbT;}var _dtab_nos=0;function LJ0T(){var LbL=JT1?JTb.scrollLeft:pageXOffset;var L0L=JT1?JTb.scrollTop:pageYOffset;return[LbL,L0L]}function LT0T(TL){with(TL)return[(J0)?left:parseInt(style.left),(J0)?top:parseInt(style.top)];}function LL0J(TL,J1J,J0J){with(TL){if(J0){left=J1J;top=J0J;}else{style.left=J1J;style.top=J0J;}}}function LTJ0(){if(T1L)return;for(var j=0;j<L0.length;++j)if(L0[j].JbT&&L0[j].LbJ){var T1b=LL01("dtabs_b"+j+"div");var L10=LT10(T1b);var bJJ=LJ0T();var l=bJJ[0]+parseInt(L0[j].left);var Jb=bJJ[1]+parseInt(L0[j].top);if(L10[0]!=l||L10[1]!=Jb){var LT0=(l-L10[0])/L0[j].J1T;var bb0=(Jb-L10[1])/L0[j].J1T;if(LT0>-1&&LT0<0)LT0=-1;else if(LT0>0&&LT0<1)LT0=1;if(bb0>-1&&bb0<0)bb0=-1;else if(bb0>0&&bb0<1)bb0=1;LL0J(T1b,L10[0]+((L10[0]!=l)?LT0:0),L10[1]+((L10[1]!=Jb)?bb0:0));var smLeft=L10[0]+((L10[0]!=l)?LT0:0),smTop=L10[1]+((L10[1]!=Jb)?bb0:0)+parseInt(L0[j].height);for(var Tb=0;Tb<L0[j].LT.length;Tb++){var smObj=LL01("dtabs_b"+j+"i"+Tb+"LT1");if(smObj)LL0J(smObj,smLeft,smTop);}}}}function Lb10(){JTb=(document.compatMode=="CSS1Compat"&&!b1b)?document.documentElement:document.body;if(!J0&&!(LL0&&bJ<6))for(var j=0;j<L0.length;++j)if(L0[j].JbT&&L0[j].LbJ){window.setInterval("LTJ0()",20);break;}for(var i=0;i<L0.length;i++){for(var j=0;j<L0[i].LT.length;j++){var act=dtabs_parseAction(L0[i].LT[j],(L0[i].tabType?'link:':'object:'));if(act.bGh='object:'){var TL=LL01(act.action);L0T1(TL,(L0[i].b1==j),false);if(L0[i].b1==j)L0[i].visibleObj=TL;}}if(JL1&&!JJ0){for(var j=0;j<L0[i].LT.length;j++)if(L0[i].Jb0!=-1&&L0[i].J01>0){var TL=LL01(L0[i].LT[j].link);if(TL)TL.style.filter=L0bJ(L0[i]);}}}b0J=1;if(Jbb)Jbb();}function LJ10(){if(window.attachEvent)window.attachEvent("onload",Lb10);else{Jbb=(typeof(onload)=='function')?onload:null;onload=Lb10;}}function LT01(TT1,JJL){return(typeof(TT1)!="undefined"&&TT1)?TT1:JJL;}function LJJ0(){JJJ=(babsolute)?"absolute":"static";if(typeof(bmenuHeight)=="undefined")bmenuHeight=0;if(typeof(bseparatorWidth)=="undefined")bseparatorWidth=10;if(bselectedItem<0)bselectedItem=0;if(typeof(btransition)=="undefined")btransition=-1;if(typeof(btransDuration)=="undefined")btransDuration=0;if(typeof(btransOptions)=="undefined")btransOptions="";}function dtabs_init(){if(!LJ){LJ10();}LJJ0();L0[LJ]={tabType:(tabMode!=0),LT:[],id:"dtabs_b"+LJ,left:bleft,top:btop,JbT:bfloatable,LbJ:babsolute,J1T:(bfloatIterations<=0)?6:bfloatIterations,width:bmenuWidth,height:bmenuHeight,TJ0:bmenuBorderWidth,T0:bmenuBorderStyle,T1:bmenuBorderColor,JT:bmenuBackColor,JJ:bmenuBackImage,b01:biconAlign,LJ1:bbeforeItemSpace,bb1:bafterItemSpace,bbJ:browSpace,b1:bselectedItem,J01:btransDuration,Jb0:btransition,JT0:bselectedSmItem,bbT:bsmBackColor,LJb:bsmBorderColor,TLT:bsmBorderStyle,T0T:bsmBorderWidth,L00J:bsmItemSpacing,L00b:bsmItemPadding,visibleObj:0};var Tb1=L0[LJ];var L1;var L001="";var cl;var bJT,TTJ,JTT,bTT,TLb,Tbb,JLT,J0T,b0T,LTT;var bLL=[bfontColor[0],LT01(bfontColor[1],""),LT01(bfontColor[2],"")];var bbL=[LT01(bfontDecoration[0],"none"),LT01(bfontDecoration[1],"none"),LT01(bfontDecoration[2],"none")];var b0L=[bitemBackColor[0],LT01(bitemBackColor[1],""),LT01(bitemBackColor[2],"")];var bTL=bitemBorderWidth;var LTL=[bitemBorderColor[0],LT01(bitemBorderColor[1],""),LT01(bitemBorderColor[2],"")];var b1L=[bitemBorderStyle[0],LT01(bitemBorderStyle[1],""),LT01(bitemBorderStyle[2],"")];var LJL=[bitemBackImage[0],LT01(bitemBackImage[1],""),LT01(bitemBackImage[2],"")];var LJ00=biconWidth;var bJL=biconHeight;var LLT;var TTb,JLJ,TJJ;var Lbb;var LTJ=0;var L1b=0;var Jb1=-1;var Lb1="_self";for(var i=0;(i<bmenuItems.length&&typeof(bmenuItems[i])!="undefined");i++){cl=0;if(bmenuItems[i][0].charAt(0)=="$"){bmenuItems[i][0]=bmenuItems[i][0].substring(1,bmenuItems[i][0].length);LTJ++;}while(bmenuItems[i][0].charAt(cl)=="|")cl++;L1b=cl;if(cl>0){bmenuItems[i][0]=bmenuItems[i][0].substring(cl,bmenuItems[i][0].length);Jb1=i-1;}else Jb1=-1;JJ1=Tb1.LT.length;Lbb=LT01(bmenuItems[i][6],"");J1=(Lbb)?parseInt(Lbb):-1;TTJ=L011("bfontStyle",J1,bfontStyle);bJT=L011("bfontColor",J1,bLL);JTT=L011("bfontDecoration",J1,bbL);bTT=L011("bitemBackColor",J1,b0L);TLb=L011("bitemBorderColor",J1,LTL);Tbb=L011("bitemBorderWidth",J1,bTL);JLT=L011("bitemBorderStyle",J1,b1L);TTL=L011("bitemBackImage",J1,LJL);LLT=L011("bitemWidth",J1,"");b0T=L011("biconW",J1,LJ00);LTT=L011("biconH",J1,bJL);TTb=L011("bbeforeItemImage",J1,bbeforeItemImage);JLJ=L011("bafterItemImage",J1,bafterItemImage);TJJ=L011("bitemBackImageSpec",J1,"");J0T=LT01(bmenuItems[i][0],"");Lb1=bitemTarget;Tb1.LT[JJ1]={T11:LTJ,L11:L1b,id:Tb1.id+"i"+JJ1,oi:LJ,Tb:JJ1,L0b0:Jb1,text:J0T,link:LT01(bmenuItems[i][1],""),target:Lb1,T0b:LT01(bmenuItems[i][5],""),align:L1b?bsmItemAlign:bitemAlign,valign:"middle",cursor:bitemCursor,bJ1:bJT,font:TTJ,bT1:JTT,JT:bTT,JJ:TTL,LJ01:["",""],T00:[LT01(bmenuItems[i][2],""),LT01(bmenuItems[i][3],""),LT01(bmenuItems[i][4],"")],Tb0:b0T,T10:LTT,bL1:TTb,L0J:bbeforeItemImageW,LJJ:bbeforeItemImageH,LL1:JLJ,LJT:bafterItemImageW,bLT:bafterItemImageH,T1:TLb,TJ0:Tbb,T0:JLT,JJT:bitemSpacing,bTJ:bitemPadding,width:LLT,visible:"visible",L00T:"",L00:TJJ,Tb1:Tb1};}with(L0[LJ]){s="<DIV ID='dtabs_b"+LJ+"div'"+(width?" width="+width:"");if(!L0[LJ].tabType){s+=" STYLE='position:"+JJJ+";";s+="left: "+left+";top: "+top+";z-index:"+TLJ+";'>";s+="<TABLE BORDER=0 CELLPADDING=0 CELLSPACING="+bbJ+(width?" width="+width:"");s+=" STYLE='"+(JT?"background-color:"+JT:"")+";margin:0px;"+(JJ?"background-image:url("+JJ+");":"");s+=(T0?"border-style:"+T0:'')+";border-width:"+TJ0+"px;"+(T1?"border-color:"+T1:"")+";'>";}else{s+=" STYLE='position:"+JJJ+";";s+="left: "+left+";top: "+top+";z-index:"+TLJ+"'>";s+="<TABLE BORDER=0 CELLPADDING=0 CELLSPACING="+bbJ+(width?" width="+width:"");s+=" STYLE='"+"background-color:"+JT+";margin:0px;"+(JJ?"background-image:url("+JJ+");":"");s+="border-style:"+T0+";border-width:"+TJ0+"px;border-color:"+T1+";'>";}}var L1,J11,JL,J10;var L1J=true;var L101="";var L010="";var b0=0;var LL00=0;function Lb0T(img,L01,bT,h){if(!img)return"";var q="";q+="<TD "+JL+L01+"td' width="+bT+" height"+h+" NOWRAP STYLE='padding:0px'>";q+="<img "+JL+L01+"' src='"+img+"' width="+bT+" height="+h+" style='display:block'></TD>";return q;}function L10J(img,L01,bT,h){if(!img)return"";var q="";q+="<TD "+JL+L01+"td' NOWRAP STYLE='padding:0px; width:"+bT+"px; height:"+h+"px; background-repeat: no-repeat; background-Image:url("+img+")'>";q+="<img "+JL+L01+"blank' src='"+bblankImage+"' width="+bT+" height="+h+" style='display:block'></TD>";return q;}function L0J1(bT,h){with(L1){if(!T00[0])return"";var q="";var Lb01=(b0?1:0);q+=Lb0T((b0?T00[1]:T00[0]),'T00',bT,h);}return q;}function L0b1(bT){if(!bT)return"";return"<TD width="+bT+" NOWRAP STYLE='padding:0px; font-size:1px;'>&nbsp;</TD>";}function Lb0b(){with(L1){var q="";q+="<TD "+JL+"text' width=100% NOWRAP ALIGN="+align+" VALIGN=MIDDLE >";q+="<FONT "+JL+"font' STYLE='color:"+bJ1[b0]+";font:"+(font[b0]?font[b0]:font[0])+";text-decoration:"+bT1[b0]+"'>";q+=((J0&&link)?"<a href='"+link+"'>"+text+"</a>":text)+"</FONT></TD>";}return q;}function L01b(bT,h){return"<img src='"+bblankImage+"' width="+bT+" height="+h+" style='display:block'>";}function Lb0J(id,J00){var displ=((LL0&&bJ<7)?"":"display:"+(J00?"":"none;"));var LT=L0[LJ];return"<div "+id+" style='"+(LT.LbJ?'position:absolute;left:'+LT.left+';top:'+(parseInt(LT.top)+parseInt(LT.height))+'px;':'')+displ+" visibility:"+(J00?"visible":"hidden")+";'><TABLE BORDER=0 width="+bmenuWidth+" height="+bsmHeight+" CELLPADDING="+bsmItemPadding+" CELLSPACING="+bsmItemSpacing+" STYLE='margin:0px; border:"+bsmBorderStyle+" "+bsmBorderWidth+"px "+bsmBorderColor+"; border-top:none 0px;"+(!bsmBorderBottomDraw?"border-bottom:none 0px;":"")+" background-color:"+bsmBackColor+";'><TR>";}function LJT0(){return"</TR></TABLE></div>";}function LJ0b(it){var q="";if(it.text=="-"){if(!it.L00)q+="<TD "+JL+"' width="+bseparatorWidth+" style='margin:0px;'>"+(it.Tb1.tabType?"&nbsp;":L01b(bseparatorWidth,1))+"</TD>";else q+="<TD "+JL+"' width="+it.width+" style='margin:0px; background-image:url("+it.L00[L01T(LJ,bL,0)]+");background-color:"+it.JT[0]+";'>"+L01b(it.width,1)+"</TD>";}else{with(it){var h=(b10?bsmHeight:L0[LJ].height);q+="<TD "+JL+"' TITLE='"+T0b+"' "+(text?(width?"width="+width+"px":""):"width=1")+(text&&Tb1.tabType?(h?"height="+h+"px":""):"");q+=" STYLE='";q+="cursor:"+cursor+"; "+(JJ[b0]?"background-Image:url("+JJ[b0]+");background-repeat:repeat-x;":"");q+="border-style:"+T0[b0]+";border-width:"+TJ0+"px;"+(!L11&&Tb1.tabType?"border-bottom: "+TJ0+"px none":"")+";margin:0px; border-color:"+T1[b0]+";background-color:"+JT[b0]+(J0?";'":";display:"+J11+";'");q+="onMouseOver='L10T(this,"+J10+",1)' onMouseOut='L10T(this,"+J10+",0)' onClick='dtabs_itemClick("+LJ+","+bL+")'>";}with(L0[LJ]){q+="<TABLE CELLPADDING="+it.bTJ+" CELLSPACING="+(tabType?it.JJT:0)+" BORDER=0 width=100% height="+(tabType?"100%":L0[LJ].height)+"><TR>";with(it){if(text){if(L11&&tabType)q+=L0b1(LJ1)+((b01!="right")?L0J1(Tb0,T10)+L0b1(LJ1):"")+Lb0b()+((b01=="right")?L0b1(bb1)+L0J1(Tb0,T10):"")+L0b1(bb1);else q+=L10J(bL1[b0],'bimg',L0J,LJJ)+L0b1(LJ1)+((b01!="right")?L0J1(Tb0,T10)+L0b1(LJ1):"")+Lb0b()+((b01=="right")?L0b1(bb1)+L0J1(Tb0,T10):"")+L0b1(bb1)+L10J(LL1[b0],'aimg',LJT,bLT);}else q+=L0J1(Tb0,T10);}}q+="</TR></TABLE>";q+="</TD>";}return q;}var J1b=-1;var b10=false;var JJb=[];var bJb=-1;var endLineItem=0;for(var bL=0;bL<L0[LJ].LT.length;bL++){L1=L0[LJ].LT[bL];JL="ID='dtabs_b"+LJ+"i"+bL;J10=LJ+","+bL;J11=(L1.visible=="visible"||L1J)?"":"none";if(L1.T11>J1b){s+="<TR><TD><TABLE BORDER=0 CELLPADDING=0 CELLSPACING="+(Tb1.tabType?0:L1.JJT)+" width=100% STYLE='margin:0px;'><TR>";J1b=L1.T11;bJb=-1;JJb=[];}if(L1.L11&&!b10&&Tb1.tabType){b10=true;TT0+=Lb0J("ID='dtabs_b"+LJ+"i"+(bL-1)+"LT1'",(bL-1==L0[LJ].b1));}if(b10){b0=(L0[LJ].JT0==bL)?2:0;TT0+=LJ0b(L1);}else{b0=(L0[LJ].b1==bL)?2:0;s+=LJ0b(L1);bJb++;JJb[bJb]=bL;}with(L0[LJ]){if(b10)if(bL==LT.length-1||LT[bL+1].L11==0){TT0+=LJT0();b10=false;}}if(L0[LJ].LT[bL+1]&&L0[LJ].LT[bL+1].T11>J1b)s+="</TR></TABLE></TD></TR>";}with(L0[LJ]){if(T0T>0&&Tb1.tabType){s+="</TR><TR>";for(var i=0;i<=bJb;i++){var JbL=((JJb[i]==b1)?bbT:LJb);var b1T=TLT+" "+T0T+"px "+LJb;s+="<TD id='dtabs_b"+LJ+"i"+JJb[i]+"TL0' style='padding:0px;font-size:1px;height:"+bsmBorderWidth+"px; border-left:"+b1T+";border-right:"+b1T+";background-color:"+JbL+"'>"+L01b(1,1)+"</TD>";}}}s+="</TR></TABLE></TD></TR>";s+="</TABLE></DIV>";document.write(s+TT0);document.write('<style>.dtabslinks{display:none} #dtabslinks{display:none}</style>');s="";TT0="";for(var i=0;i<L0.length;i++)LJb0(i);LJ++;}var L1T=[];var T01=0;function L10b(LLb,excludeInd){for(var i=0;i<LLb.length;i++)if(i!=excludeInd&&LLb[i]){T01++;L1T[T01]=new Image();L1T[T01].src=LLb[i];}}function LJb0(TL1){var excludeInd=0;for(var i=0;i<L0[TL1].LT.length;i++)with(L0[TL1].LT[i]){if(L0[TL1].b1==i)excludeInd=2;else excludeInd=0;L10b(JJ,excludeInd);L10b(T00,excludeInd);L10b(bL1,excludeInd);L10b(LL1,excludeInd);L10b(L00,excludeInd);}}var J1L=[['Blinds'],['Checkerboard'],['GradientWipe'],['Inset'],['Iris'],['Pixelate'],['RadialWipe'],['RandomBars'],['RandomDissolve'],['Slide'],['Spiral'],['Stretch'],['Strips'],['Wheel'],['Zigzag']];function LL0T(JLL,TbL){if(bJ<5.5)return;var sF="progid:DXImageTransform.Microsoft."+J1L[JLL-25]+'('+btransOptions+',duration='+TbL+')';return sF;}function L0bJ(LJ0){var sF="";if(LJ0.Jb0)if(LJ0.Jb0==24)sF+="blendTrans(Duration="+LJ0.J01/1000+") ";else if(LJ0.Jb0<24)sF+="revealTrans(Transition="+LJ0.Jb0+",Duration="+LJ0.J01/1000+") ";else sF+=LL0T(LJ0.Jb0,LJ0.J01/1000);sF+=";";return sF;}var JTL={"nn":0,"no":1,"ns":2,"on":3,"os":4,"sn":5,"so":6};var bTb=-1;function L01T(LL,bb){var b1J=0;with(L0[LL]){var L100=LT.length;var cL="n",L0T="n";var bT0=(bb-1<0)?-1:bb-1;var bL0=(bb+1>L100-1)?-1:bb+1;if(bT0<0&&bL0<0)return 0;if(bT0>=0)cL=(b1==bT0)?"s":((bTb==bT0)?"o":"n");if(bL0>=0)L0T=(b1==bL0)?"s":((bTb==bL0)?"o":"n");b1J=JTL[cL+L0T];}return b1J;}function L0T1(TL,J00,T0L){if(!TL)return;var fl=null;if(T0L&&J00&&Lb0&&!JJ0)fl=TL.filters[0];with(TL.style){if(fl){if(fl.Status!=0)fl.stop();fl.apply();}visibility=(J00?"visible":"hidden");display=(J00?"":"none");if(fl)fl.play();}}function LbT0(LL,JL0,TT,T1T){with(L0[LL]){if(T1T)JT0=-1;else b1=-1;if(LT[JL0])L10T(LL01(LT[JL0].id),LL,JL0,0);if(T1T)JT0=TT;else b1=TT;if(LT[TT])L10T(LL01(LT[TT].id),LL,TT,2);}}function dtabs_parseAction(item,def){var prefixs=['javascript:','link:','object:'];if(!item)return{bGh:'',action:''};var action=item.link;var bGh=def;for(i=0;i<prefixs.length;i++)if(action.toLowerCase().indexOf(prefixs[i])==0){bGh=prefixs[i];action=action.substring(prefixs[i].length,action.length);break}return{bGh:bGh,action:action}}function LT0b(L1,olditem){var act=dtabs_parseAction(L1,L1.Tb1.tabType?'link:':'object:');var TL;with(L1){if(act.action){if(act.bGh=='javascript:')eval(act.action);else if(act.bGh=='link:')open(act.action,target);else if(act.bGh=='object:'){var TL=LL01(act.action);L0T1(TL,true,true,L1.Tb1);}}if(Tb1.visibleObj&&(!TL||(Tb1.visibleObj.id!=TL.id)))L0T1(Tb1.visibleObj,false,true);Tb1.visibleObj=TL;};}function dtabs_itemClick(LL,bb){with(L0[LL]){var L1=LT[bb];var TJ=!(tabType&&L1.L11)?b1:JT0;if(!L1.L11&&JT0>=0&&L1.link){var bbSL=JT0;JT0=-1;if(LT[bbSL])L10T(LL01(LT[bbSL].id),LL,bbSL,0);}if(TJ!=bb){LbT0(LL,TJ,L1.Tb,tabType&&L1.L11);if(tabType&&!L1.L11)L0bb(LL,TJ,L1.Tb);}LT0b(L1,LT[TJ]);}}function L0bb(LL,JL0,TT){with(L0[LL]){if(JL0!=-1){var LT1=LL01(LT[JL0].id+'LT1');L0T1(LT1,false,false);}if(TT==-1)return;LT1=LL01(LT[TT].id+'LT1');if(!LT1)return;L0T1(LT1,true,false);}}function L0Jb(Lb00,bJ0,Lb){with(Lb00){if(bJ1[Lb]&&bJ0.color!=bJ1[Lb])bJ0.color=bJ1[Lb];if(font[Lb]&&bJ0.font!=font[Lb])bJ0.font=font[Lb];if(bT1[Lb]&&bJ0.textDecoration!=bT1[Lb])bJ0.textDecoration=bT1[Lb];}}function LL0b(T1J,L0b){var img=LL01(T1J+'blank');if(img&&L0b){var T0J=LL01(T1J+'td');if(T0J.style.backgroundImage.indexOf(L0b)<0)T0J.style.backgroundImage="url("+L0b+")";}}function Lbb0(itVart){if(!itVart||!itVart.L00)return;var io=LL01(itVart.id);var TJT=L01T(itVart.oi,itVart.Tb);if(itVart.L00[TJT])io.style.backgroundImage="url("+itVart.L00[TJT]+")";}function L011(bLJ,LbT,JLb){if(LbT==-1)return JLb;var TbJ=[];var b11=bstyles[LbT];for(var j=0;b11[j].indexOf(bLJ)<0&&j<b11.length-1;++j);if(b11[j].indexOf(bLJ)<0)return JLb;var L1L=b11[j];var Jb=L1L.split('=');if(Jb.length<2)return JLb;TbJ=Jb[1].split(',');return TbJ;}function LT10(o){var l=0,Jb=0;if(!o)return[l,Jb];while(o){l+=parseInt(J0?o.pageX:o.offsetLeft);Jb+=parseInt(J0?o.pageY:o.offsetTop);o=o.offsetParent;}return[l,Jb];}function L10T(it,LL,bb,Lb){if(L0[LL].tabType)with(L0[LL]){var L1=LT[bb];if((b1==L1.Tb||JT0==L1.Tb)&&Lb!=2)return;}else{var L1=L0[LL].LT[bb];if(L0[LL].b1==L1.Tb&&Lb!=2)return;}if(L1.text)var LLL=LL01(it.id+"font");with(L1){if(L0[LL].tabType){if(JT[Lb]&&it.style.backgroundColor.indexOf(JT[Lb])<0)it.style.backgroundColor=JT[Lb];if(!L1.L11&&JJ[Lb]&&it.style.backgroundImage.indexOf(JJ[Lb])<0)it.style.backgroundImage="url("+JJ[Lb]+")";if(T1[Lb])it.style.borderColor=T1[Lb];if(T0[Lb])it.style.borderStyle=T0[Lb];if(!L11)it.style.borderBottom='0px none';if(!L1.L11)if(Lb==2){var TL0=LL01(L1.id+'TL0');if(TL0)TL0.style.backgroundColor=L0[LL].bbT;}else{var TL0=LL01(L1.id+'TL0');if(TL0)TL0.style.backgroundColor=L0[LL].LJb;}}else{if(JT[Lb])it.style.backgroundColor=JT[Lb];if(JJ[Lb])it.style.backgroundImage="url("+JJ[Lb]+")";if(T1[Lb])it.style.borderColor=T1[Lb];if(T0[Lb])it.style.borderStyle=T0[Lb];}LL0b(id+'bimg',bL1[Lb]);LL0b(id+'aimg',LL1[Lb]);if(L1.text&&LLL)L0Jb(L1,LLL.style,Lb);JTJ=LL01(it.id+"T00");if(JTJ&&T00[Lb])JTJ.src=T00[Lb];bTb=(Lb==1)?bb:-1;var bT0=L0[LL].LT[bb-1];var bL0=L0[LL].LT[bb+1];Lbb0(bT0);Lbb0(bL0);}}function LL01(id){if(!id)return null;if(J0)return document.layers[id];if(!document.getElementById)return document.all[id];return document.getElementById(id);}function L0Tb(o){var l=0,Jb=0,h=0,bT=0;if(!o)return[l,Jb,bT,h];if(LL0&&bJ<6){h=o.style.pixelHeight;bT=o.style.pixelWidth;}else if(J0){h=o.clip.height;bT=o.clip.width;}else{h=o.offsetHeight;bT=o.offsetWidth;}while(o){l+=parseInt(J0?o.pageX:o.offsetLeft);Jb+=parseInt(J0?o.pageY:o.offsetTop);o=o.offsetParent;}return[l,Jb,bT,h];}



//v1.7

// Flash Player Version Detection

// Detect Client Browser type

// Copyright 2005-2007 Adobe Systems Incorporated.  All rights reserved.

var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;

var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;

var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;



function ControlVersion()

{

	var version;

	var axo;

	var e;



	// NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry



	try {

		// version will be set for 7.X or greater players

		axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");

		version = axo.GetVariable("$version");

	} catch (e) {

	}



	if (!version)

	{

		try {

			// version will be set for 6.X players only

			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");

			

			// installed player is some revision of 6.0

			// GetVariable("$version") crashes for versions 6.0.22 through 6.0.29,

			// so we have to be careful. 

			

			// default to the first public version

			version = "WIN 6,0,21,0";



			// throws if AllowScripAccess does not exist (introduced in 6.0r47)		

			axo.AllowScriptAccess = "always";



			// safe to call for 6.0r47 or greater

			version = axo.GetVariable("$version");



		} catch (e) {

		}

	}



	if (!version)

	{

		try {

			// version will be set for 4.X or 5.X player

			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");

			version = axo.GetVariable("$version");

		} catch (e) {

		}

	}



	if (!version)

	{

		try {

			// version will be set for 3.X player

			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");

			version = "WIN 3,0,18,0";

		} catch (e) {

		}

	}



	if (!version)

	{

		try {

			// version will be set for 2.X player

			axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");

			version = "WIN 2,0,0,11";

		} catch (e) {

			version = -1;

		}

	}

	

	return version;

}



// JavaScript helper required to detect Flash Player PlugIn version information

function GetSwfVer(){

	// NS/Opera version >= 3 check for Flash plugin in plugin array

	var flashVer = -1;

	

	if (navigator.plugins != null && navigator.plugins.length > 0) {

		if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {

			var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";

			var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;

			var descArray = flashDescription.split(" ");

			var tempArrayMajor = descArray[2].split(".");			

			var versionMajor = tempArrayMajor[0];

			var versionMinor = tempArrayMajor[1];

			var versionRevision = descArray[3];

			if (versionRevision == "") {

				versionRevision = descArray[4];

			}

			if (versionRevision[0] == "d") {

				versionRevision = versionRevision.substring(1);

			} else if (versionRevision[0] == "r") {

				versionRevision = versionRevision.substring(1);

				if (versionRevision.indexOf("d") > 0) {

					versionRevision = versionRevision.substring(0, versionRevision.indexOf("d"));

				}

			}

			var flashVer = versionMajor + "." + versionMinor + "." + versionRevision;

		}

	}

	// MSN/WebTV 2.6 supports Flash 4

	else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;

	// WebTV 2.5 supports Flash 3

	else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;

	// older WebTV supports Flash 2

	else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;

	else if ( isIE && isWin && !isOpera ) {

		flashVer = ControlVersion();

	}	

	return flashVer;

}



// When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available

function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision)

{

	versionStr = GetSwfVer();

	if (versionStr == -1 ) {

		return false;

	} else if (versionStr != 0) {

		if(isIE && isWin && !isOpera) {

			// Given "WIN 2,0,0,11"

			tempArray         = versionStr.split(" "); 	// ["WIN", "2,0,0,11"]

			tempString        = tempArray[1];			// "2,0,0,11"

			versionArray      = tempString.split(",");	// ['2', '0', '0', '11']

		} else {

			versionArray      = versionStr.split(".");

		}

		var versionMajor      = versionArray[0];

		var versionMinor      = versionArray[1];

		var versionRevision   = versionArray[2];



        	// is the major.revision >= requested major.revision AND the minor version >= requested minor

		if (versionMajor > parseFloat(reqMajorVer)) {

			return true;

		} else if (versionMajor == parseFloat(reqMajorVer)) {

			if (versionMinor > parseFloat(reqMinorVer))

				return true;

			else if (versionMinor == parseFloat(reqMinorVer)) {

				if (versionRevision >= parseFloat(reqRevision))

					return true;

			}

		}

		return false;

	}

}



function AC_AddExtension(src, ext)

{

  if (src.indexOf('?') != -1)

    return src.replace(/\?/, ext+'?'); 

  else

    return src + ext;

}



function AC_Generateobj(objAttrs, params, embedAttrs) 

{ 

  var str = '';

  if (isIE && isWin && !isOpera)

  {

    str += '<object ';

    for (var i in objAttrs)

    {

      str += i + '="' + objAttrs[i] + '" ';

    }

    str += '>';

    for (var i in params)

    {

      str += '<param name="' + i + '" value="' + params[i] + '" /> ';

    }

    str += '</object>';

  }

  else

  {

    str += '<embed ';

    for (var i in embedAttrs)

    {

      str += i + '="' + embedAttrs[i] + '" ';

    }

    str += '> </embed>';

  }



  document.write(str);

}



function AC_FL_RunContent(){

  var ret = 

    AC_GetArgs

    (  arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"

     , "application/x-shockwave-flash"

    );

  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);

}



function AC_SW_RunContent(){

  var ret = 

    AC_GetArgs

    (  arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"

     , null

    );

  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);

}



function AC_GetArgs(args, ext, srcParamName, classid, mimeType){

  var ret = new Object();

  ret.embedAttrs = new Object();

  ret.params = new Object();

  ret.objAttrs = new Object();

  for (var i=0; i < args.length; i=i+2){

    var currArg = args[i].toLowerCase();    



    switch (currArg){	

      case "classid":

        break;

      case "pluginspage":

        ret.embedAttrs[args[i]] = args[i+1];

        break;

      case "src":

      case "movie":	

        args[i+1] = AC_AddExtension(args[i+1], ext);

        ret.embedAttrs["src"] = args[i+1];

        ret.params[srcParamName] = args[i+1];

        break;

      case "onafterupdate":

      case "onbeforeupdate":

      case "onblur":

      case "oncellchange":

      case "onclick":

      case "ondblClick":

      case "ondrag":

      case "ondragend":

      case "ondragenter":

      case "ondragleave":

      case "ondragover":

      case "ondrop":

      case "onfinish":

      case "onfocus":

      case "onhelp":

      case "onmousedown":

      case "onmouseup":

      case "onmouseover":

      case "onmousemove":

      case "onmouseout":

      case "onkeypress":

      case "onkeydown":

      case "onkeyup":

      case "onload":

      case "onlosecapture":

      case "onpropertychange":

      case "onreadystatechange":

      case "onrowsdelete":

      case "onrowenter":

      case "onrowexit":

      case "onrowsinserted":

      case "onstart":

      case "onscroll":

      case "onbeforeeditfocus":

      case "onactivate":

      case "onbeforedeactivate":


      case "ondeactivate":

      case "type":

      case "codebase":

      case "id":

        ret.objAttrs[args[i]] = args[i+1];

        break;

      case "width":

      case "height":

      case "align":

      case "vspace": 

      case "hspace":

      case "class":

      case "title":

      case "accesskey":

      case "name":

      case "tabindex":

        ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];

        break;

      default:

        ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];

    }

  }

  ret.objAttrs["classid"] = classid;

  if (mimeType) ret.embedAttrs["type"] = mimeType;

  return ret;

}

//DD Tab Menu- Script rewritten April 27th, 07: http://www.dynamicdrive.com

//**Updated Feb 23rd, 08): Adds ability for menu to revert back to default selected tab when mouse moves out of menu



//Only 2 configuration variables below:



var ddtabmenu={
	disabletablinks: false, //Disable hyperlinks in 1st level tabs with sub contents (true or false)?
	snap2original: [true, 50], //Should tab revert back to default selected when mouse moves out of menu? ([true/false, delay_millisec]
	currentpageurl: window.location.href.replace("http://"+window.location.hostname, "").replace(/^\//, ""), //get current page url (minus hostname, ie: http://www.dynamicdrive.com/)



definemenu:function(tabid, dselected){
	this[tabid+"-menuitems"]=null
	this[tabid+"-dselected"]=-1
	this.addEvent(window, function(){ddtabmenu.init(tabid, dselected)}, "load")
},



showsubmenu:function(tabid, targetitem){
	var menuitems=this[tabid+"-menuitems"]
	this.clearrevert2default(tabid)
 for (i=0; i<menuitems.length; i++){
		menuitems[i].className=""
		if (typeof menuitems[i].hasSubContent!="undefined")
			document.getElementById(menuitems[i].getAttribute("rel")).style.display="none"
	}

	targetitem.className="current"
	if (typeof targetitem.hasSubContent!="undefined")
		document.getElementById(targetitem.getAttribute("rel")).style.display="block"
},



isSelected:function(menuurl){

	var menuurl=menuurl.replace("http://"+menuurl.hostname, "").replace(/^\//, "")
	return (ddtabmenu.currentpageurl==menuurl)

},



isContained:function(m, e){
	var e=window.event || e
	var c=e.relatedTarget || ((e.type=="mouseover")? e.fromElement : e.toElement)
	while (c && c!=m)try {c=c.parentNode} catch(e){c=m}
	if (c==m)
		return true
	else
		return false
},



revert2default:function(outobj, tabid, e){

	if (!ddtabmenu.isContained(outobj, tabid, e)){

		window["hidetimer_"+tabid]=setTimeout(function(){

			ddtabmenu.showsubmenu(tabid, ddtabmenu[tabid+"-dselected"])

		}, ddtabmenu.snap2original[1])

	}

},



clearrevert2default:function(tabid){

 if (typeof window["hidetimer_"+tabid]!="undefined")

		clearTimeout(window["hidetimer_"+tabid])

},



addEvent:function(target, functionref, tasktype){ //assign a function to execute to an event handler (ie: onunload)

	var tasktype=(window.addEventListener)? tasktype : "on"+tasktype

	if (target.addEventListener)

		target.addEventListener(tasktype, functionref, false)

	else if (target.attachEvent)

		target.attachEvent(tasktype, functionref)

},



init:function(tabid, dselected){

	var menuitems=document.getElementById(tabid).getElementsByTagName("a")

	this[tabid+"-menuitems"]=menuitems

	for (var x=0; x<menuitems.length; x++){

		if (menuitems[x].getAttribute("rel")){

			this[tabid+"-menuitems"][x].hasSubContent=true

			if (ddtabmenu.disabletablinks)

				menuitems[x].onclick=function(){return false}

			if (ddtabmenu.snap2original[0]==true){

				var submenu=document.getElementById(menuitems[x].getAttribute("rel"))

				menuitems[x].onmouseout=function(e){ddtabmenu.revert2default(submenu, tabid, e)}

				submenu.onmouseover=function(){ddtabmenu.clearrevert2default(tabid)}

				submenu.onmouseout=function(e){ddtabmenu.revert2default(this, tabid, e)}

			}

		}

		else //for items without a submenu, add onMouseout effect

			menuitems[x].onmouseout=function(e){this.className=""; if (ddtabmenu.snap2original[0]==true) ddtabmenu.revert2default(this, tabid, e)}

		menuitems[x].onmouseover=function(){ddtabmenu.showsubmenu(tabid, this)}

		if (dselected=="auto" && typeof setalready=="undefined" && this.isSelected(menuitems[x].href)){

			ddtabmenu.showsubmenu(tabid, menuitems[x])

			this[tabid+"-dselected"]=menuitems[x]

			var setalready=true

		}

		else if (parseInt(dselected)==x){

			ddtabmenu.showsubmenu(tabid, menuitems[x])

			this[tabid+"-dselected"]=menuitems[x]

		}

	}

}

}







