<!--

var currentTab = "tabOverview";
var currentContent = "contentOverview";
function showDiv(pageElement) {
  document.getElementById(pageElement).style.visibility = "visible";
  document.getElementById(pageElement).style.display = "block";
}
function hideDiv(pageElement) {
  document.getElementById(pageElement).style.visibility = "hidden";
  document.getElementById(pageElement).style.display = "none";
}
var mainImg = 'mainImg';
function switchTab(newTab,newContent) {
  if (newTab == currentTab) {
    return false;
  } else {
	var divVideoPopup = document.getElementById("videoPopup");
	if(newTab == "tabOverview"){
		if (divVideoPopup != null){
			showDiv('videoPopup');
		}
	}
	else {
		if (divVideoPopup != null){
			hideDiv('videoPopup');
		}
	}
    if (newTab == 'tabFeatures') {
      WM_imageSwap(mainImg,featImgSrc);
      showDiv('calloutsContainer');
      switchCallout('','calloutContentInstructs');
    } else if (currentTab == 'tabFeatures') {
      WM_imageSwap(mainImg,mainImgSrc);
      hideDiv('calloutsContainer');
    }
    document.getElementById(newTab).className = "on";
    if (currentTab != '') {
      document.getElementById(currentTab).className = "";
    }
    if (currentContent != '') {
      hideDiv(currentContent);
    }
    showDiv(newContent);
    currentTab = newTab;
    currentContent = newContent;
    return false;
  }
}
var currentCallout = "";
var currentCalloutContent = "calloutContentInstructs";
function switchCallout(newCallout,newCalloutContent) {
  if (newCallout == currentCallout) {
    return false;
  } else {
    if (newCallout != '') {
      document.getElementById(newCallout).className = "on";
    }
    if (currentCallout != '') {
      document.getElementById(currentCallout).className = "grey";
    }
    if (currentCalloutContent != '') {
      hideDiv(currentCalloutContent);
    }
    showDiv(newCalloutContent);
    currentCallout = newCallout;
    currentCalloutContent = newCalloutContent;
    return false;
  }
}

function showVideoIconDiv(pageElement) {
	var divVideoIcon = document.getElementById(pageElement);
	  if (divVideoIcon != null) {
		  divVideoIcon.style.visibility = "visible";
		  divVideoIcon.style.display = "block";
		}
}
function hideVideoIconDiv(pageElement) {
	var divVideoIcon = document.getElementById(pageElement);
	  if (divVideoIcon != null) {
		  divVideoIcon.style.visibility = "hidden";
		  divVideoIcon.style.display = "none";
		}
}


// -->