//-------------------------------------------------------------------
// Mouseover code
//-------------------------------------------------------------------
function dncover(path,name,over)
{
	if(window.document.images) 
	{
		if (over)
			window.document.images[name].src = path + "images/" + name + "_hot.gif";
		else
			window.document.images[name].src = path + "images/" + name + ".gif";
	}
}

function captionover(path,name,over)
{
	if(window.document.images) 
	{
		if (over)
			window.document.images[name].src = path + "images/" + name + ".jpg";
}
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}

//-------------------------------------------------------------------
// Popup window 
//-------------------------------------------------------------------
function popup(url)  {
	window.open(url , "_remote_control", "toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,height=550,width=730");
}

function popup2(url)  {
	window.open(url , "_remote_control", "toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,height=400,width=730");
}

function popup3(url)  {
	window.open(url , "_remote_control", "toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,height=500,width=860");
}
function popUpTour(url)  {
	window.open( url, "_remote_control", "toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=710,height=500");
}

//-------------------------------------------------------------------
// loginCheck(value)
//   Returns true if value contains correctly formated email address
//-------------------------------------------------------------------
function loginCheck(value)
{

	if (value.length == 0 )
	{
		alert('Please enter your login id.');
		return false;
	}

	return true;
}

//-------------------------------------------------------------------
// Sets the Form action="" tag to the another processing page.
//-------------------------------------------------------------------
function setAction()
{
	var loginID = document.forms[0].email.value;
	document.forms[0].action = home + "ForgotMyPassword.asp?LoginID=" + (loginID);
	document.forms[0].submit();
}

// Image rotation script
// ==============================
// Set the following variables...
// ==============================

// Set the slideshow speed (in milliseconds)
var SlideShowSpeed = 7000;

// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 3;

var Picture = new Array(); // don't change this

Picture[1]  = 'images/05_qc_slide1.jpg';
Picture[2]  = 'images/05_qc_slide2.jpg';

// =====================================
// Do not edit anything below this line!
// =====================================

var tss;
var iss;
var jss = 1;
var pss = Picture.length-1;
var x1;

var preLoad = new Array();
for (iss = 1; iss < pss+1; iss++){
preLoad[iss] = new Image();
preLoad[iss].src = Picture[iss];

function runSlideShow(){

if (document.all){
document.images.PictureBox.style.filter="blendTrans(duration=2)";
document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox.filters.blendTrans.Apply();}
document.images.PictureBox.src = preLoad[jss].src;

if (document.all) document.images.PictureBox.filters.blendTrans.Play();
jss = jss + 1;
if (jss > (pss)) jss=1;
tss = setTimeout('runSlideShow()', SlideShowSpeed);
}
}

// Finish Rotating Script

// Text rotation script 2
// Set the slideshow speed (in milliseconds)
var SlideShowSpeed2 = 7000;

// Set the duration of crossfade (in seconds)
var CrossFadeDuration2 = 3;


var Text = new Array(); // don't change this

Text[1]  = '/images/05_slide1.jpg';
Text[2]  = '/images/05_slide2.jpg';

var tss2;
var iss2;
var jss2 = 1;
var pss2 = Text.length-1;

var preLoadText = new Array();
for (iss2 = 1; iss2 < pss2+1; iss2++){
preLoadText[iss2] = new Image();
preLoadText[iss2].src = Text[iss2];}

function runSlideShow2(){

if (document.all){
document.images.TextBox.style.filter="blendTrans(duration=2)";
document.images.TextBox.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.TextBox.filters.blendTrans.Apply();}
document.images.TextBox.src = preLoadText[jss2].src;

if (document.all) document.images.TextBox.filters.blendTrans.Play();
jss2 = jss2 + 1;
if (jss2 > (pss2)) jss2=1;
tss2 = setTimeout('runSlideShow2()', SlideShowSpeed2);
}

// Finish Rotating Script


function selectTab(n) {
  var panelID = "p1"
  var numDiv = 4

  // iterate all tab-panel pairs
  for(var i=0; i < numDiv; i++) {
    var panelDiv = window.document.getElementById(panelID+"panel"+i)
    var tabDiv = document.getElementById(panelID+"tab"+i)
	
     z = panelDiv.style.zIndex
     
     // if this is the one clicked and it isn't in front, move it to the front
     if (z != numDiv && i == n) { 
        z = numDiv 
     }
     // in all other cases move it to the original position
     else { 
	z = (numDiv-i) 
     }
    
    panelDiv.style.zIndex = z;
    tabDiv.style.zIndex = z;
  }
}

//-------------------------------------------------------------------
<!-- [client side code for collapsing and unfolding branches] -->
//-------------------------------------------------------------------

function Toggle(node)
{
	// Unfold the branch if it isn't visible
	if (node.nextSibling.style.display == 'none')
	{
		node.nextSibling.style.display = '';
	}
	// Collapse the branch if it IS visible
	else
	{
		node.nextSibling.style.display = 'none';
	}

}

