// <!-- Version=3.00 Date=07/17/06 Name=Config.js -->
// <!-- Copyright Learn It Solutions 2006 -------------->

// This is the Javascript Configuration File
// This file is set up ONCE at installation and is usually not changed

// Host addresses
var hostloc;	      // location of host
var secureloc;	      // location of secure host
//var campusversion = 2;	// set version that the campus is running in

//*********************************************************************************		

// 1. Set up the address of the main host
   hostloc="http://www.w-zcampus.com";		// Version 1.5 host site	 

// 2. Set up the address of the administration host
//   secureloc="https://www.w-zcampus.com/campusV2/secure.campus4";          // Version 1.5 host site	 
   secureloc="http://secure.learnitcampus.com/secure.campus_220";          // Version 2 host site	 

// 3. Set up the name to appear in the title bar
     var sitename="W-Z Campus";
	 
// 4. Campus Display URL (to be used in text). NOTE: LEAVE OFF "http://" 
     var campusdisplayURL="www.w-zcampus.com"; 	 	

// 5. Set up the contact phone number
     var contactnumber="631-225-3355";  

// 6. Set up the help desk email
     var helpemail="help@w-zcampus.com"; 

// 7. Set up "Custom Text" section (lower-right hand corner of index.htm), if any
     var customtextsection="Looking for the <b>Interview & Interrogation <br>Post-Seminar Examination?</b><br><br><b><a href='http://www.w-zcampus.com/wzseminar'>Click Here</a></b>";  
     var customtextsection=customtextsection + "<hr><br><a href='http://www.learnitcampus.com/campus300/custom/WZ/CoursePricing.html' style='color:red;'><b>W-Z COURSES & PRICING <br><br>(to PURCHASE <br>W-Z Campus<br> online courses,<br> click here)</b></a><br><br>";

//*********************************************************************************
// COURSE CATALOG 

// a. Show Sections? (1=yes 0=no)

var cLP    =0; // LOSS PREVENTION
var cI     =1; // INVESTIGATIONS
var cSRM   =0; // SAFETY & RISK MANAGEMENT
var cHR    =0; // HUMAN RESOURCES
var cO     =0; // OPERATIONS
var cCS    =0; // CUSTOMER SERVICE		
var cG     =0; // GOVERNMENT
var cSM    =0; // SALES & MARKETING
var cOTDSC =0; // TRANSPORATION SAFETY


// b. Course List - for all courses that will be displayed on this campus,
//		    set them = 1.  The list of courses can be found in MASTERCOURSELIST.JS
//		    in the root of the CONFIGURATION directory.

// INVESTIGATIONS
WZ1  = 1	//Interpretations of Behavior
IN2  = 1	//Interview & Interrogation Techniques Review
PEI  = 1	//Pre-Employment Interviewing
WZTI = 1	//Telephone Interviewing
WZPA = 1	//Preserving the Admission


//************* FUNCTIONS ****************************
function goback() {
  document.write("<center><a href='javascript:document.history(-1);'><font color=0000ff face='arial, helvetica, sans-serif;'>Back</font></a></center>");
}

function goreturn() {
  document.write("<center><a href='javascript:window.close();'><font color=0000ff face='arial, helvetica, sans-serif;'>Return</font></a></center>");
}

// Sub-support functions

function gotosecure(dest) {		// goto dest in secure site
  document.location=secureloc+"/"+dest;
}

function gotounsecure(dest) {		// goto dest in unsecure site
  document.location=hostloc+"/"+dest;
}

function returnsecure(dest) {		// return the address of the secure site destination
  return secureloc+"/"+dest;
}

function returnunsecure(dest) {	// return the address of the unsecure site destination
  return hostloc+"/"+dest;
}

function gohome() {
  gotounsecure("index.html");
}

function returnlocal(dest) {		// return the local address
  var zlocate = document.URL.toString();
  zlocate=zlocate.toLowerCase();
  if (zlocate.indexOf("secure")==-1) {
    return hostloc+dest;
  } else {
    return secureloc+dest;
  }
}
