function mapopenit(url,target)
{ var x = window.open(url,target,'width=520,height=350,toolbar=no,scrollbars=yes,status=yes,resizable=yes,menubar=no,top=150,left=150'); x.focus(); return false;}
function getFile(n,id){ document.getElementById(id).innerHTML="Loading..."; var file; if(n==''||n==self.location)return []; switch(typeof ActiveXObject){ case 'function':
file=new ActiveXObject('Microsoft.XMLHTTP'); break; default:
file=new XMLHttpRequest; file.overrideMimeType("text/xml");}
try{ file.open('GET',n,false); file.send('')
}catch(e){ }
document.getElementById(id).innerHTML=file.responseText;}
function editCSS(a ,o , c1, c2) { switch (a) { case 'swap':
o.className=!jscss('check', o, c1) ? o.className.replace(c2, c1) : o.className.replace(c1, c2); return 1; break; case 'add':
if(!editCSS('check', o, c1)) { o.className+=o.className?' '+c1:c1;}
return 1; break; case 'remove':
var rep=o.className.match(' '+c1) ? ' ' + c1:c1; o.className=o.className.replace(rep,''); return 1; break; case 'check':
return new RegExp('\\b'+c1+'\\b').test(o.className); return 1; break;}
return 0;}
function getElementsByClassName(o, cls, tag) { if (! tag) tag = '*'; var elements = o.getElementsByTagName(tag); var found = new Array(); var numElements = elements.length; for (var i=0; i < numElements; i++) { if (editCSS('check', elements[i], cls)) { found[found.length] = elements[i];}
}
return found;}
function openSection(num, aSection, bSection, cSection) { show_section('m_segment_' + num); show_section('plus' + num); show_section('minus' + num); if ('none' == document.getElementById('m_segment_' + num).style.display) { var anchors = { o: sections[num], a: 0, b: 0
}; setLocationAnchors(anchors); return;}
if (sectionLinks[num]) { getFile(sectionLinks[num],'container_' + num);}
else { var pageName = sections[num]; getFile(pageName + '/index.html','container_' + num);}
var toHide = getElementsByClassName(document.getElementById('container_' + num), 'secondary_landing_content'); for (i=0; i < toHide.length; i++) { if (! ((toHide[i].id == 'm_segment_' + aSection) || (toHide[i].id == 'm_segment_' + bSection))) { toHide[i].style.display = 'none';}
}
var toToggle = getElementsByClassName(document.getElementById('container_' + num), 'secondary_landing_link'); if(! aSection) aSection = ''; if(! bSection) bSection = ''; var aKey = aSection.substr(4, aSection.length - 1); var bKey = bSection.substr(4, bSection.length - 1); for (var i=0; i < toToggle.length; i++) { if (editCSS('check', toToggle[i], 'plus_link')) { if (! ((toToggle[i].id == 'SLO_' + aKey + '_plus') || (toToggle[i].id == 'SLO_' + bKey + '_plus'))) { toToggle[i].style.display = 'block';}
}
else if (editCSS('check', toToggle[i], 'minus_link')) { if (! ((toToggle[i].id == 'SLO_' + aKey + '_minus') || (toToggle[i].id == 'SLO_' + bKey + '_minus'))) { toToggle[i].style.display = 'none';}
}
}
var anchors = { o: sections[num], a: (typeof aSection == 'undefined') ? 0 : aSection, b: (typeof bSection == 'undefined') ? 0 : bSection
}; setLocationAnchors(anchors); refreshIFrames(); if (cSection != '') {var anchor_node = document.getElementById(cSection); window.scrollTo(0, anchor_node.offsetTop);}
else {}}
function refreshIFrames() { var frames = document.getElementsByTagName('iframe'); for (i=0; i < frames.length; i++) { var srcBak = frames[i].src; frames[i].src = ''; frames[i].src = srcBak;}
}
function setLocationAnchors(components) { if (! window.anchorComponents) { window.anchorComponents = { o: 0, a: 0, b: 0
};}
if (typeof components.o != 'undefined') window.anchorComponents.o = components.o; if (typeof components.a != 'undefined') window.anchorComponents.a = components.a; if (typeof components.b != 'undefined') window.anchorComponents.b = components.b; var anchorPieces = new Array(); if (window.anchorComponents.o) anchorPieces.push(window.anchorComponents.o); if (window.anchorComponents.a) anchorPieces.push(window.anchorComponents.a); if (window.anchorComponents.b) anchorPieces.push(window.anchorComponents.b); window.location = document.URL.substring(0, document.URL.indexOf('#')) + "#" + anchorPieces.join('/');}
function sectionToId(sect) { for(id in sections) { if (sect == sections[id]) { return id;}
}
return 0;}
function jumpToAnchorSection() { var anchorIndex = document.URL.indexOf('#'); if (-1 != anchorIndex) { var anchors = document.URL.substr(anchorIndex+1).split('/'); var aSection = anchors[1] ? anchors[1] : ''; var bSection = anchors[2] ? anchors[2] : ''; var cSection = anchors[3] ? anchors[3] : ''; openSection(sectionToId(anchors[0]), aSection, bSection, cSection);}
else { }
}
function climbDOM(e, target) { while (e.nodeName.toLowerCase() != target && e.nodeName.toLowerCase() != 'html') { e = e.parentNode;}
return (e.nodeName.toLowerCase() == 'html') ? null : e;}
function addEvent(elm, evType, fn, useCapture) { if (elm.addEventListener) { elm.addEventListener(evType, fn, useCapture); return true;}
else if (elm.attachEvent) { var r = elm.attachEvent('on' + evType, fn);}
else { elm['on' + evType] = fn;}
return 1;}
/***********************************************
* window opener by jen
***********************************************/
function opener(theURL) { windowHandle = window.open(theURL, 'new', 'toolbar=no,location=yes,status=no,menubar=no,scrollbars=no,resizable=yes,width=500,height=350,top=150,left=150'); if (!windowHandle) { windowHandle.opener = self;}
windowHandle.focus();}
function openit(url,target)
{ var w = window.open(url,target,'width=500,height=350,toolbar=no,scrollbars=no,status=yes,resizable=yes,menubar=no,top=150,left=150'); w.focus(); return false;}
function openit_variablesize(url,target,width,height)
{ var w = window.open(url,target,'width='+width+',height='+height+',toolbar=no,scrollbars=no,status=yes,resizable=yes,menubar=no,top=150,left=150'); w.focus(); return false;}
function openit_width(url,target)
{ var w = window.open(url,target,'width=624,toolbar=no,scrollbars=no,status=yes,resizable=yes,menubar=no,top=150,left=150'); w.focus(); return false;}
function weather(url,target)
{ var w = window.open(url,target,'width=320,height=280,toolbar=no,scrollbars=no,status=yes,resizable=yes,menubar=no,top=150,left=150'); w.focus(); return false;}
function openit_search(url,target)
{ var w = window.open(url,target,'width=624,toolbar=no,scrollbars=yes,status=yes,resizable=yes,menubar=no,location=yes,top=150,left=150'); w.focus(); return false;}
function MM_openBrWindow(theURL,winName,features) { var width = 535; var height = 680; var left = parseInt((screen.availWidth/2) - (width/2)); var top = parseInt((screen.availHeight/2) - (height/2)); var windowFeatures = "width="+width+",height="+height+",left="+left+",top="+top+",screenX="+left+",screenY="+top+",scrollbars=no,toolbar=no,status=no,resizable=yes"; window.open(theURL,'artwork',windowFeatures);}


/***********************************************
* dynamicCSS.js v1.0 <http://www.bobbyvandersluis.com/articles/dynamicCSS.php>
* Copyright 2005 Bobby van der Sluis
* This software is licensed under the CC-GNU LGPL <http://creativecommons.org/licenses/LGPL/2.1/>
***********************************************/
function createStyleRule(selector, declaration) { if (!document.getElementsByTagName || !(document.createElement || document.createElementNS)) return; var agt = navigator.userAgent.toLowerCase(); var is_ie = ((agt.indexOf("msie") != -1)&& (agt.indexOf("opera") == -1)); var is_iewin = (is_ie&& (agt.indexOf("win") != -1)); var is_iemac = (is_ie&& (agt.indexOf("mac") != -1)); if (is_iemac) return; var head = document.getElementsByTagName("head")[0]; var style = (typeof document.createElementNS != "undefined") ? document.createElementNS("http://www.w3.org/1999/xhtml", "style") : document.createElement("style"); if (!is_iewin) { var styleRule = document.createTextNode(selector + " {" + declaration + "}"); style.appendChild(styleRule);}
style.setAttribute("type", "text/css"); style.setAttribute("media", "screen"); head.appendChild(style); if (is_iewin&& document.styleSheets&& document.styleSheets.length > 0) { var lastStyle = document.styleSheets[document.styleSheets.length - 1]; if (typeof lastStyle.addRule == "object") { lastStyle.addRule(selector, declaration);}
}
}
function setElementStyleById(id, propertyName, propertyValue) { if (!document.getElementById) return; var el = document.getElementById(id); if (el) el.style[propertyName] = propertyValue;}
function setElementStyle(element, propertyName, propertyValue) { if (!document.getElementsByTagName) return; var el = document.getElementsByTagName(element); for (var i = 0; i < el.length; i++) { el[i].style[propertyName] = propertyValue;}
}
function setElementStyleByClassName(cl, propertyName, propertyValue) { if (!document.getElementsByTagName) return; var re = new RegExp("(^| )" + cl + "( |$)"); var el = document.all ? document.all : document.getElementsByTagName("body")[0].getElementsByTagName("*"); for (var i = 0; i < el.length; i++) { if (el[i].className&& el[i].className.match(re)) { el[i].style[propertyName] = propertyValue;}
}
}

/***********************************************
* Utilities
***********************************************/
function displayImages()
{ var Nodes = document.getElementsByTagName("div")
var max = Nodes.length
for(var i = 0;i < max;i++) { var nodeObj = Nodes.item(i)
var str = nodeObj.id
if (str.match("thumbnail")) { nodeObj.style.display = 'block';}
}
}
function show_section(e) { if (document.getElementById(e).style.display == 'none') { document.getElementById(e).style.display = 'block';} else { document.getElementById(e).style.display = 'none';}
}
function show_section(obj) { var el = document.getElementById(obj); if ( el.style.display != "none" ) { el.style.display = 'none';} else { el.style.display = 'block'; displayImages();}
}

function anchor_section(e) { document.getElementById(e).style.display = 'block';}
function expand()
{ var Nodes = document.getElementsByTagName("div")
var max = Nodes.length
for(var i = 0;i < max;i++) { var nodeObj = Nodes.item(i)
var str = nodeObj.id
if (str.match("section")) { nodeObj.style.display = 'block';}
}
}
function hideall()
{ var Nodes = document.getElementsByTagName("div")
var max = Nodes.length
for(var i = 0;i < max;i++) { var nodeObj = Nodes.item(i)
var str = nodeObj.id
if (str.match("m_segment")) { nodeObj.style.display = 'none';}
}
}
function hideallmenu()
{ var Nodes = document.getElementsByTagName("ul")
var max = Nodes.length
for(var i = 0;i < max;i++) { var nodeObj = Nodes.item(i)
var str = nodeObj.id
if (str.match("nav_menu")) { nodeObj.style.display = 'none';}
}
}
function calliframe(name,url) { window.frames[name].location = url;}
function collapseAll(objs) { var i; for (i=0;i<objs.length;i++ ) { objs[i].style.display = 'none';}
}
function toggle(id) { if(document.getElementById(id).style.display == "none") { document.getElementById(id).style.display = "block";}
else if(document.getElementById(id).style.display == "block") { document.getElementById(id).style.display = "none";}
}