// JavaScript Document Main Functions
<!-- Hide from browsers that do not understand Javascript 


//Checks domain and changes title and window status message to correct domain's title
function settitle() {
var a = "Welcome to TCPath.com: TCP/Protocol is a technology resource recruiting firm that places technologists globally with Fortune 500 firms.";
var b = "Welcome to CallSheryl.com: CallSheryl is a team of technology experts that designs, plans, and implements projects for small, start-ups and home based business.";
var c = "Welcome to TCPath.com: TCP/Protocol is a technology resource recruiting firm that places technologists globally with Fortune 500 firms.";
var d = "Welcome to CallSheryl.com: CallSheryl is a team of technology experts that designs, plans, and implements projects for small, start-ups and home based business.";
var e = "Welcome to CallSheryl.com: CallSheryl is a team of technology experts that designs, plans, and implements projects for small, start-ups and home based business.";
var f = "Welcome to CallSheryl.com: CallSheryl is a team of technology experts that designs, plans, and implements projects for small, start-ups and home based business.";
var g = "Welcome to TCPath.com: TCP/Protocol is a technology resource recruiting firm that places technologists globally with Fortune 500 firms.";
var h = "Welcome to TCPath.com: TCP/Protocol is a technology resource recruiting firm that places technologists globally with Fortune 500 firms.";
var i = "Welcome to CallSheryl.com: CallSheryl is a team of technology experts that designs, plans, and implements projects for small, start-ups and home based business.";
var j = "Welcome to CallSheryl.com: CallSheryl is a team of technology experts that designs, plans, and implements projects for small, start-ups and home based business.";
var k = "Welcome to CallSheryl.com: CallSheryl is a team of technology experts that designs, plans, and implements projects for small, start-ups and home based business.";
var l = "Welcome to CallSheryl.com: CallSheryl is a team of technology experts that designs, plans, and implements projects for small, start-ups and home based business.";
var m = "Bienvenido a Llama Sheryl.com:  Llama Sheryl son expertos de la tecnología que diseña, planear, implementar proyectos para los arranques de los hogares y pequeña empresa.";
var n = "Bienvenido a Llama Sheryl.com:  Llama Sheryl son expertos de la tecnología que diseña, planear, implementar proyectos para los arranques de los hogares y pequeña empresa.";
var o = "Bienvenido a Llama Sheryl.com:  Llama Sheryl son expertos de la tecnología que diseña, planear, implementar proyectos para los arranques de los hogares y pequeña empresa.";

var a1 = "Welcome to TCPath.com";
var b1 = "Welcome to Call Sheryl.com";
var c1 = "Welcome to TCPath.com";
var d1 = "Welcome to Call Sheryl.com";
var e1 = "Welcome to Call Sheryl.com";
var f1 = "Welcome to Call Sheryl.com";
var g1 = "Welcome to TCPath.com";
var h1 = "Welcome to TCPath.com";
var i1 = "Welcome to Call Sheryl.com";
var j1 = "Welcome to Call Sheryl.com";
var k1 = "Welcome to Call Sheryl.com";
var l1 = "Welcome to Call Sheryl.com";
var m1 = "Bienvenido a Llama Sheryl.com";
var n1 = "Bienvenido a Llama Sheryl.com";
var o1 = "Bienvenido a Llama Sheryl.com";

var domain = location.hostname;

	   if (domain == 'www.tcpath.com') {
      document.title = a; window.status = a1; }
      else if (domain == 'www.callsheryl.com') {
      document.title = b; window.status = b1;}
	  else if (domain == 'www.protocolconnection.com') {
      document.title = c; window.status = c1;}
	  else if (domain == 'www.callsheryl.us') {
      document.title = d; window.status = d1; }
	  else if (domain == 'www.callsheryl.co.uk') {
      document.title = e; window.status = e1; }
	  else if (domain == 'www.callcheryl.co.uk') {
      document.title = f; window.status = f1; }
	  else if (domain == 'www.tcpinc.co.uk') {
      document.title = g; window.status = g1;}
	  else if (domain == 'www.protocolconnection.co.uk') {
      document.title = h; window.status = h1;}
	  else if (domain == 'www.callsheryl.net') {
      document.title = i; window.status = i1; }
	  else if (domain == 'www.callcheryl.net') {
      document.title = j; window.status = j1; }
	  else if (domain == 'www.callcheryl.us') {
      document.title = k; window.status = k1; }
	  else if (domain == 'www.callcheryl.net') {
      document.title = l; window.status = l1; }
	  else if (domain == 'www.llamasheryl.us') {
      document.title = m; window.status = m1; }
	  else if (domain == 'www.llamasheryl.net') {
      document.title = n; window.status = n1; }
	  else if (domain == 'www.llamasheryl.com') {
      document.title = o; window.status = o1;}
	  
	   }


//Favorites script
function makeLink() {
var url = this.location;
var who = document.title;

if(document.all)
window.external.AddFavorite(url,who);
}

//Calendar array 
dayName = new Array ("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday")
monName = new Array ("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December")

now = new Date

//pop up window
function newWindow(mypage,myname,w,h,features) {
  if(screen.width){
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  }else{winl = 0;wint =0;}
  if (winl < 0) winl = 0;
  if (wint < 0) wint = 0;
  var settings = 'height=' + h + ',';
  settings += 'width=' + w + ',';
  settings += 'top=' + wint + ',';
  settings += 'left=' + winl + ',';
  settings += features;
  win = window.open(mypage,myname,settings);
  win.window.focus();
}


//Image scripts

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

//Netscape reload script 
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);




//Right Click Script
var ie5=window.createPopup

if (ie5)
document.oncontextmenu=init;
var eyesys="";
var preitem="";
function init(){
mx=event.clientX;
my=event.clientY;
menx=window.screenLeft+mx;
meny=window.screenTop+my;
sysmen=window.createPopup();
sysmen.document.write(eyesys);
sysmen.show(menx,meny,eyesys_width,eyesys_height);
return false
};
function eyesys_init(){
if (ie5){
eyesys+=("<style type='text/css'>.textul{position:absolute;top:20px;color:"+eyesys_titletext+";writing-mode:	tb-rl;padding-top:0px;filter: flipH() flipV() dropShadow( Color=000000,offX=-2,offY=-2,positive=true);z-Index:10;width:130;height:140;font: bold 12px sans-serif}.gradientul{position:relative;top:0px;left:0px;width:100%; background-color:"+eyesys_titlecol2+";height:227;z-Index:9;FILTER: alpha( style=1,opacity=0,finishOpacity=75,startX=75,finishX=75,startY=0,finishY=75)}.contra{background-color:"+eyesys_titlecol1+";border:1px inset "+eyesys_bg+";height:140;width:18px;z-Index:8;top:0px;left:0px;margin:0px;position:absolute;}.men{position:absolute;top:0px;left:0px;padding-left:18px;background-color:"+eyesys_bg+";border:2px outset "+eyesys_bg+";z-Index:1;}.men a{margin:1px;cursor:default;padding-bottom:3px;padding-left:1px;padding-right:1px;padding-top:0px;text-decoration:none;height:1;width:100%;color:"+eyesys_cl+";font:bold 11px arial;}.men a:hover{background:"+eyesys_bgov+";color:"+eyesys_clov+";} BODY{overflow:hidden;border:0px;padding:0px;margin:0px;height:100;}.ico{border:none;float:left;}</style><div class='men' height:'100'>")
}
};

function eyesys_item(txt,ico,lnk){
if (ie5){
if(!ico)ico='images/s.gif';
preitem+=("<a href='#' onmousedown='parent.window.location.href=\""+lnk+"\"'><img src='"+ico+"' width='16' height='16' class='ico'> "+txt+"</a>")
}
};

function eyesys_close(){
if (ie5){
eyesys+=preitem;
eyesys+=("</div><div class='contra' height:120><div class='gradientul' height:120></div><div class='textul' id='titlu' height:120>"+eyesys_title+"</div></div>");
document.write("<div id='men' style='width:"+eyesys_width+" height:120'></div>");
document.getElementById('men').innerHTML=preitem
}
}


function translate() 
{ 
	var FullURL = location.href ;
	var URLa = FullURL.split("/");
	if (URLa[3] == "spanish")
		{ 
		var strFolder = "";
		var strURL = URLa[4];
		}
	else
		{ 
		var strFolder = "spanish/";
		var strURL = URLa[3];
		}
	top.location.href = "http://www.callsheryl.com/" + strFolder + strURL;
}

function translate2() 
{ 
	var FullURL = location.href ;
	var URLa = FullURL.split("/");
	if (URLa[3] == "spanish")
		{ 
		var strFolder = "spanish/";
		var strURL = URLa[4];
		}
	else
		{ 
		var strFolder = "";
		var strURL = URLa[3];
		}
	if (strURL.indexOf("1") == -1)
	// convert to HTML URL by adding the number 1
		{
		var URLb = strURL.split(".");
		strURL = URLb[0]+"1."+URLb[1];
		}
	else
	// convert to FLASH URL by removing the number 1
		{
		var URLb = strURL.split("1");
		strURL = URLb[0]+URLb[1];
		}
	top.location.href = "http://www.callsheryl.com/" + strFolder + strURL;
}
// end hiding script from old browsers --->
