var vLoc=location.href
var vArr=vLoc.split("/")
var vPrefix="/"+vArr[3]

// To make menu links work on CMS    Pages - remove "//" from the beginning of the line below
// To make menu links work on Staged Pages - put    "//" at   the beginning of the line below
// var vPrefix=""

// To hide "Switch to Edit Site" - remove "//" from the beginning of the lines below
// To show "Switch to Edit Site" - put    "//" at   the beginning of the lines below
//var vTo   = document.getElementById("cmsMainTable")
//if (vTo != null) {vTo.style.display = "none"}


function MT(one,two)
	{
		s = "m" + "a" + "i" + "l" + "t" + "o" + ":" + one + "@" + two
		location.href = s
	}

function MT2(one,two,subj,body)
	{	location.href = "mai"+"lto"+":"+one+"@"+two+"?sub"+"ject="+subj+"&bo"+"dy="+body
	}

function MTCC(one,two,three,four)
	{
		s = "m" + "a" + "i" + "l" + "t" + "o" + ":" + one + "@" + two + "?cc=" + three + "@" + four 
		location.href = s
	}

// development only - show mouse position
if (vPrefix == "") {x()}
function x () {
		if (! document.all) {document.captureEvents(Event.MOUSEMOVE)}
		document.onmousemove = y
	}
function y (evt) {
	if (document.all) {
		window.status="x="+window.event.clientX+",y="+window.event.clientY }
	else {
		window.status="x="+evt.pageX+",y="+evt.pageY }
}


//##### NAVs #######################################################
sfHover = function() {
	oNav = document.getElementById("nav")
	if (oNav != null) {
//		var sfEls = oNav.children ;
		for (var i=0; i<oNav.childNodes.length; i++) {
			oNav.childNodes[i].onmouseover=function() {
				var xx = document.getElementById("nav") ;
				for (var j=0; j<xx.childNodes.length; j++) {
					if (xx.childNodes[j].className != null) {	
						xx.childNodes[j].className=xx.childNodes[j].className.replace(new RegExp("sfhover\\b"), "");
					}
				}
				this.className+=" sfhover";
			} // function
			oNav.childNodes[i].onmouseout=function() {
				if (this.className.indexOf(" sfhover") == -1) {
					this.className=this.className.replace(new RegExp("sfhover\\b"), "");
				} else {
					this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
				} // if
			} // function
		} // for
	} // if
} // function

if (window.attachEvent) {
	window.attachEvent("onload", sfHover);
}
else {
	if (window.addEventListener) {
		window.addEventListener("load", sfHover, false);
	}
}
//##### NAVs #######################################################

// Start of DoubleClick Floodlight Tag: Please do not remove
// Activity name of this tag: IP90359 ChallengerAg
// URL of the webpage where the tag is expected to be placed: http://www.challenger-ag.com
/// This tag must be placed between the <body> and </body> tags, as close as possible to the opening tag.
// Creation Date: 11/19/2009

var axel = Math.random() + "";
var a = axel * 10000000000000;
document.write("<div style='position absolute;top:0;left:0;'>");
document.write('<iframe src="http://fls.doubleclick.net/activityi;src=2484695;type=ip903649;cat=ip903568;ord=1;num=' + a + '?" width="1" height="1" frameborder="0"></iframe>');
document.write("</div>");

// End of DoubleClick Floodlight Tag: Please do not remove
