/**
 * Area to define constants of Global Scope
 *
 * @author Paul Reed - NetCall Telecom 
**/

//XML namespace of data/upload documents
var XMLNAMESPACE = "urn:HyperPhoneLink"; 

// host address of NetCall Engine.
var NC_ROOT = window.location.host; 
var NC_PROTO = window.location.protocol; 
if(NC_PROTO=='') NC_PROTO='http:';

//Base directory of Netcall engine site.
u = window.location.href;
sp = u.indexOf("/NetCallWebInterface/");
ep = u.indexOf("/Engine");
var NC_BRAND = u.substring(sp+21, ep);

var NC_BRANDNAME = (NC_BRAND.toLowerCase()=='netcall') ? 'QueueBuster' : NC_BRAND;
var NC_BRANDNAME = (NC_BRANDNAME.toLowerCase()=='cablewireless') ? 'Cable&Wireless' : NC_BRANDNAME;

var NC_BASE = NC_PROTO+"//" + NC_ROOT + "/NetCallWebInterface/" + NC_BRAND + "/Engine";

//Style sheet used for the display of errors etc.  
var ERRORSTYLES = NC_BASE + "/styles/errors.css";    

var NC_SERVICENAME = "DataService"; 
//URL to the NetCall web service.
var NC_WEBSERVICE     = NC_PROTO+"//" + NC_ROOT + "/NetCallWebInterface/" + NC_BRAND + "/DataPortal/" + NC_SERVICENAME + ".asmx";

//URL to the Hyperphonelink service.  
var NC_HYPERPHONELINK = "https://www.hyperphonelink.com/hpl/hyperphone.asp";  

 
var ENGINE_VERSION      = "3.0." + ('$Revision: 27 $').split(' ')[1];     
/* TO UPDATE VERSION INFORMATION YOU SHOULD MAKE A CHANGE TO  THIS FILE HERE >> */  
var ENGINE_VERSION_DATED = "2003-11-11 15:30";
 
 
function _unavailable() { return; }

function _ncOnError(msg) { alert(msg); }

