function initTabs(){
var sets = document.getElementsByTagName("div");
for (var i = 0; i < sets.length; i++){
if (sets[i].className.indexOf("tabset") != -1){
var tabs = [];
var links = sets[i].getElementsByTagName("a");
for (var j = 0; j < links.length; j++){
if (links[j].className.indexOf("tab") != -1){
tabs.push(links[j]);
links[j].tabs = tabs;
var c = document.getElementById(links[j].href.substr(links[j].href.indexOf("#") + 1));
//reset all tabs on start
//if (c) if (links[j].className.indexOf("active") != -1) c.style.display = "block";
//else c.style.display = "none";
links[j].onclick = function (){
var c = document.getElementById(this.href.substr(this.href.indexOf("#") + 1));
if (c){
//reset all tabs before change
for (var i = 0; i < this.tabs.length; i++){
var tab = document.getElementById(this.tabs[i].href.substr(this.tabs[i].href.indexOf("#") + 1));
if (tab){ tab.style.display = "none"; }
this.tabs[i].className = this.tabs[i].className.replace("active", ""); }
this.className += " active";
c.style.display = "block";
return false;
}}}}}}}
if (window.addEventListener)
window.addEventListener("load", initTabs, false);
else if (window.attachEvent && !window.opera)
window.attachEvent("onload", initTabs);
eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('9 t(a,b){g(3 u a){k c=[],e=[],p=[],d=[],5=[],l=[];8(a[3].6(\'.\')!=-1||a[3].6(\'#\')==-1){8(a[3].6(\'>\')!=-1){c[3]=a[3].f(a[3].6(\'>\')+2);a[3]=a[3].f(0,a[3].6(\'>\')-1)}8(a[3].6(\'.\')!=-1){e[3]=a[3].f(a[3].6(\'.\')+1);a[3]=a[3].f(0,a[3].6(\'.\'))}p[3]=a[3];8(!e[3])e[3]=\'\';8(c[3]){l[3]=r.q(p[3]);g(k j=0;j<l[3].o;j++){8(l[3][j].4.6(e[3])!=-1){5[3]=l[3][j].q(c[3]);g(k i=0;i<5[3].o;i++){5[3][i].n=9(){7.4+=\' \'+b};5[3][i].m=9(){7.4=7.4.h(b,\'\')}}}}}s{5[3]=r.q(p[3]);g(k i=0;i<5[3].o;i++){8(5[3][i].4.6(e[3])!=-1){5[3][i].n=9(){7.4+=\' \'+b};5[3][i].m=9(){7.4=7.4.h(b,\'\')}}}}}s 8(a[3].6(\'#\')!=-1){8(a[3].6(\'>\')!=-1){c[3]=a[3].f(a[3].6(\'>\')+2);a[3]=a[3].f(0,a[3].6(\'>\')-1)}a[3]=a[3].h(\'#\',\'\');d[3]=r.v(a[3]);8(d[3]){8(c[3]){5[3]=d[3].q(c[3]);g(k i=0;i<5[3].o;i++){5[3][i].n=9(){7.4+=\' \'+b};5[3][i].m=9(){7.4=7.4.h(b,\'\')}}}s{d[3].n=9(){7.4+=\' \'+b};d[3].m=9(){7.4=7.4.h(b,\'\')}}}}}}',32,32,'|||_el|className|_hoverElement|indexOf|this|if|function||||_id|_class|substr|for|replace|||var|_parent|onmouseout|onmouseover|length|_tag|getElementsByTagName|document|else|hoverForIE6|in|getElementById'.split('|'),0,{}))
function ieHover() { hoverForIE6(['#nav > li'], 'hover');}
if (window.attachEvent && !window.opera){window.attachEvent("onload", ieHover);}

/***********************************************
* DHTML Billboard script- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//List of transitional effects to be randomly applied to billboard:
var billboardeffects=["GradientWipe(GradientSize=1.0 Duration=0.7)", "Inset", "Iris", "Pixelate(MaxSquare=5 enabled=false)", "RadialWipe", "RandomBars", "Slide(slideStyle='push')", "Spiral", "Stretch", "Strips", "Wheel", "ZigZag"]

//var billboardeffects=["Iris"] //Uncomment this line and input one of the effects above (ie: "Iris") for single effect.

var tickspeed=12000 //ticker speed in miliseconds (2000=2 seconds)
var effectduration=500 //Transitional effect duration in miliseconds
var hidecontent_from_legacy=1 //Should content be hidden in legacy browsers- IE4/NS4 (0=no, 1=yes).

var filterid=Math.floor(Math.random()*billboardeffects.length)

document.write('<style type="text/css">\n')
if (document.getElementById)
document.write('.billcontent{display:none;\n'+'filter:progid:DXImageTransform.Microsoft.'+billboardeffects[filterid]+'}\n')
else if (hidecontent_from_legacy)
document.write('#contentwrapper{display:none;}')
document.write('</style>\n')

var selectedDiv=0
var totalDivs=0

function contractboard(){
var inc=0
var o=document.getElementById("billboard"+inc); 
if(o) 
{ 
while (document.getElementById("billboard"+inc)){
document.getElementById("billboard"+inc).style.display="none"
inc++
}
}
}
function expandboard(){
var selectedDivObj=document.getElementById("billboard"+selectedDiv)
contractboard()
if (selectedDivObj.filters){
if (billboardeffects.length>1){
filterid=Math.floor(Math.random()*billboardeffects.length)
selectedDivObj.style.filter="progid:DXImageTransform.Microsoft."+billboardeffects[filterid]
}
selectedDivObj.filters[0].duration=effectduration/1000
selectedDivObj.filters[0].Apply()
}
selectedDivObj.style.display="block"
if (selectedDivObj.filters)
selectedDivObj.filters[0].Play()
selectedDiv=(selectedDiv<totalDivs-1)? selectedDiv+1 : 0
setTimeout("expandboard()",tickspeed)
}

function startbill(){
	var o=document.getElementById("billboard0"); 
if(o) 
{ 
while (document.getElementById("billboard"+totalDivs)!=null)
totalDivs++
if (document.getElementById("billboard0").filters)
tickspeed+=effectduration
expandboard()
}}

if (window.addEventListener)
window.addEventListener("load", startbill, false)
else if (window.attachEvent)
window.attachEvent("onload", startbill)
else if (document.getElementById)
window.onload=startbill


