// <!-- Version=2.00 Date=11/22/02 Name=Config.html -->
// <!-- Copyright RuMe Interactive Inc. 2002 -------------->

// 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://90.0.0.90/campusV2";			// address of the Toronto Host
// hostloc="http://10.0.0.12/campus";			// OLD address of the RuMe 	// address of the RuMe Development Host
// hostloc="http://www.learnitcampus.com";		// Master host site
// hostloc="http://www.lpuniversity.com/campus";	// LP University host site
// hostloc="http://10.0.0.26:1010/campus";		// Saks
   hostloc="http://www.learnitcampus.com/V2";		// Version 1.5 host site


// 1=yes 0=no
var cLP		=1;	// Loss Prevention
var cI		=1;	// Investigations
var cSRM	=1;	// Safety & Risk Management
var cHR		=1;	// Human Resources
var cO		=1;	// Operations
var cCS		=1;	// Customer Service
var cG		=1;	// Government
var cOTDSC	=1;	// Online Transportation & Driver Safety Courses
var cACP	=1;	// Additional Courses & Products



// 2. Set up the address of the administration host
//secureloc="http://90.0.0.90/secure.campusV2";		  // address of the Toronto Secure Host
// secureloc="http://10.0.0.12/secure.campus";		  // OLD address of the RuMe 
// secureloc="https://secure.learnitcampus.com";          // Master host site
// secureloc="http://www.lpuniversity.com/secure.campus"; // LP University host site
// secureloc="http://10.0.0.26:1010/secure.campus1";      // Saks
   secureloc="http://secure.learnitcampus.com/V2";          // Version 1.5 host site


// 3. Set up the name to appear in the title bar
var sitename="Learn It Campus";				// Name of the site for the title

// 4. Set up the trailer for all campus screens
function trailer(){						// write the trailer

  document.write("<P><center><table bgcolor=666666 cellpadding=4 cellspacing=0 border=0>");
  var localaddr=returnlocal("/pix/learnitwords.gif");
  document.write("<TR><TD><img src="+localaddr+" border=0></td>");
  document.write("<TD><font color=ffffff face='Verdana'>");
  document.write("Learnit Solutions<br>");
  document.write("100 Carolyn Blvd. <br>");
  document.write("Farmingdale, NY 11735");
  document.write("</font>");
  document.write("</td>");
  document.write("<TD><font color=ffffff face='Verdana'>");
  document.write("<strong>Phone:</strong>");
  document.write("631-845-7052 <br>");
  document.write("<strong>Fax:</strong> 631-845-7053 <br>");
  document.write("<strong>Email:</strong> <a href=mailto:info@learnitcampus.com><font color=ffffff face='Verdana' >info@learnitcampus.com</font></a>");
  document.write("</td></tr>");
  document.write("<TR><TD colspan=3 align=center>");
  document.write("<a href='javascript:gohome();'><font color=white face='arial, helvetica, sans-serif;'>Home</font></a>");
  document.write("</font>");
  document.write("</td></tr>");
  document.write("</table>");
  document.write("</center>");

}

// 5. Set up the header for all campus screens
function header(headtitle){						// write the header

  document.write('<center><table width=620 bgcolor="666666" cellpadding=4 cellspacing=0 border=0>');
  var localaddr=returnlocal("/pix/campuslogo2.jpg");
  document.write('<tr><td width=310><img border="0" src='+localaddr+'></td>');
  document.write('<td align=center><font size="+3" color="white" face="Verdana">'+headtitle);
  document.write('</font></td></tr></table></center><P>');
}

// 6. Set up the body statement for all campus screens
function bodyst(loadparm){						// write the header
  if (loadparm==null) {
//    document.write('<body bgcolor="#ffffff" link="2E160C" vlink="2E160C" alink="2E160C">');
    document.write('<body bgcolor="#ffffff">');
  } else {
    document.write('<body bgcolor="#ffffff" onload='+loadparm+'>');
//    document.write('<body bgcolor="#ffffff" link="2E160C" vlink="2E160C" alink="2E160C" onload='+loadparm+'>');
  }
}

// 7. Set up the marquee text and links
function InsertMarqueeText(){	
  var spacer = '<br><br><br><br>'
  document.write('Welcome to Learn it Campus! Delivering courses for <a style="color:#A6E4F2" href=http://www.learnitsolutions.com target=_blank>Learn it Solutions</a> interactive scenario-based training.');
  document.write(spacer);
  document.write('New transportation courses are now available - check out our course catalog or <a style="color:#A6E4F2" href=http://fliCampus.com target=_blank>FLICampus.com</a>!');  
  document.write(spacer);
  document.write('Learn It Solutions Loss Prevention curriculum is now in use in a major retailer near you!');
  document.write(spacer);  
  document.write('Did you know that our Campus can be customized to your corporate culture and colors? <a style="color:#A6E4F2" href=contactus.html target=_blank>Contact us</a> for more information!');
  document.write(spacer);  
  document.write('Scenario-based learning appeals to all learning styles. Students learn by visual example, they see it, hear it and read it!');
}

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;
  }
}
