var strDomain;
strDomain = '';

if (IsHttps()) {
	strDomain = 'http://qbstrainingonline.com';
} else {
	strDomain = '';
}

function IsHttps() {
	if (document.location.href.search(/https:/i) == -1) {
		return false;
	} else {
		return true;
	}
}


//---------------------------------------------------------------------------------------
//---------------------------------------------------------------------------------------



function ChangeImages() {
	if (document.images) {
		for (var i=0; i<ChangeImages.arguments.length; i+=2) {
			document[ChangeImages.arguments[i]].src = eval(ChangeImages.arguments[i+1] + ".src");
		}
	}
}





// DETERMINES BROWSER TYPE

// Show/Hide functions for non-pointer layer/objects
		
ns4 = (document.layers)? true:false
ie4 = (document.all)? true:false
// ie5+ & n6+ = ??? = DOM
			
function Show(id) {
	if (ns4) document.layers[id].visibility = "show"
	else if (ie4) document.all[id].style.visibility = "visible"
	else document.getElementById(id).style.visibility='visible'; // DOM
}

function Hide(id) {
	if (ns4) document.layers[id].visibility = "hide"
	else if (ie4) document.all[id].style.visibility = "hidden"
	else document.getElementById(id).style.visibility='hidden'; // DOM
}




/******************************************************
 Main Menu
******************************************************/		
		

// What Button
//==================================================
function WhatOn() {
	document.getElementById('MenuWhat').style.backgroundImage = 'url(/qbs/images/signup/menu02_what.jpg)';
	document.getElementById('WhatLink').style.color = "#ffffff";
}	
function WhatOff() {
	document.getElementById('MenuWhat').style.backgroundImage = 'url(/qbs/images/signup/menu_white.gif)';
	document.getElementById('WhatLink').style.color = "#bfbfbf";
}		
function WhatClick() {
	document.location.href='/qbs/myinfo/registration/qbswhat.asp';
}		
		
// Course Content
//==================================================
function CourseOn() {
	document.getElementById('MenuCourse').style.backgroundImage = 'url(/qbs/images/signup/menu02_what.jpg)';
	document.getElementById('CourseLink').style.color = "#ffffff";
}	
function CourseOff() {
	document.getElementById('MenuCourse').style.backgroundImage = 'url(/qbs/images/signup/menu_white.gif)';
	document.getElementById('CourseLink').style.color = "#bfbfbf";
}		
function CourseClick() {
	document.location.href='/qbs/myinfo/registration/qbscourse.asp';
}		
		
		
// How Button
//==================================================
function HowOn() {
	document.getElementById('MenuHow').style.backgroundImage = 'url(/qbs/images/signup/menu03_how.jpg)';
	document.getElementById('HowLink').style.color = "#ffffff";
}		
function HowOff() {
	document.getElementById('MenuHow').style.backgroundImage = 'url(/qbs/images/signup/menu_white.gif)';
	document.getElementById('HowLink').style.color = "#bfbfbf";
}		
function HowClick() {
	document.location.href='/qbs/myinfo/registration/qbshow.asp';
}		
		
		
// Why Button
//==================================================
function WhyOn() {
	document.getElementById('MenuWhy').style.backgroundImage = 'url(/qbs/images/signup/menu04_why.jpg)';
	document.getElementById('WhyLink').style.color = "#ffffff";
}		
function WhyOff() {
	document.getElementById('MenuWhy').style.backgroundImage = 'url(/qbs/images/signup/menu_white.gif)';
	document.getElementById('WhyLink').style.color = "#bfbfbf";
}		
function WhyClick() {
	document.location.href='/qbs/myinfo/registration/qbswhy.asp';
}		
		
		
// Your Button
//==================================================
function YourOn() {
	document.getElementById('MenuYour').style.backgroundImage = 'url(/qbs/images/signup/menu05_your.jpg)';
	document.getElementById('YourLink').style.color = "#ffffff";
}		
function YourOff() {
	document.getElementById('MenuYour').style.backgroundImage = 'url(/qbs/images/signup/menu_white.gif)';
	document.getElementById('YourLink').style.color = "#bfbfbf";
}		
function YourClick() {
	document.location.href='/qbs/myinfo/registration/qbsyour.asp';
}		
		
		
// Signup Button
//==================================================
function SignupOn() {
	document.getElementById('MenuSignup').style.backgroundImage = 'url(/qbs/images/signup/menu06_signup.jpg)';
	document.getElementById('SignupLink').style.color = "#ffffff";
}		
function SignupOff() {
	document.getElementById('MenuSignup').style.backgroundImage = 'url(/qbs/images/signup/menu_white.gif)';
	document.getElementById('SignupLink').style.color = "#bfbfbf";
}		
function SignupClick() {
	document.location.href='/qbs/myinfo/registration/qbssignup.asp';
}