// Title: CTY Ajax
// URL: http://www.cty.ca
// Version: 2007.1
// Date: 2/14/2008
// Note: This script is not free
//Ajax Code Here
function GetXmlHttpObject()
{
  var xmlHttp=null;
  try
    {
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
    }
  catch (e)
    {
    // Internet Explorer
    try
      {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      }
    catch (e)
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    }
  return xmlHttp;
}


function showHint(){
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null){
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url="ecty_cartajax.asp?sid=" + Math.random();
xmlHttp.onreadystatechange=function() { 
if (xmlHttp.readyState==4){ 
	document.getElementById("cartinfo").innerHTML=xmlHttp.responseText;
}
}
	xmlHttp.open("get",url,true);
	xmlHttp.send(null);

}
function showHintSign(){
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null){
  alert ("Your browser does not support AJAX!");
  return;
  }
var url="ecty_ajaxsignin.asp?sid=" + Math.random();
xmlHttp.onreadystatechange=function() { 
if (xmlHttp.readyState==4){ 
	document.getElementById("signinfo").innerHTML=xmlHttp.responseText;
}
}
	xmlHttp.open("get",url,true);
	xmlHttp.send(null);

}
function showHintSignout(){
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null){
  alert ("Your browser does not support AJAX!");
  return;
  }
var url="ecty_ajaxsignin.asp?sign=logout&sid=" + Math.random();
xmlHttp.onreadystatechange=function() { 
if (xmlHttp.readyState==4){ 
	document.getElementById("signinfo").innerHTML=xmlHttp.responseText;
}
}
	xmlHttp.open("get",url,true);
	xmlHttp.send(null);

}

function showHintSignSubmit(){
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null){
  alert ("Your browser does not support AJAX!");
  return;
  } 
var email2=document.signin.email.value;
var psd2=document.signin.psd.value;
var url="ecty_ajaxsignin.asp?"
	url=url+"email1="+email2;
	url=url+"&psd1="+psd2;
	url=url+"&sid=" + Math.random()
	
xmlHttp.onreadystatechange=function(){ 
if (xmlHttp.readyState==4){ 
	document.getElementById("signinfo").innerHTML=xmlHttp.responseText;
}
}
	xmlHttp.open("get",url,true);
	xmlHttp.send(null);
}


var HINTS_CFG = {
	'wise'       : false, // don't go off screen, don't overlap the object in the document
	'margin'     : 50, // minimum allowed distance between the hint and the window edge (negative values accepted)
	'gap'        : 0, // minimum allowed distance between the hint and the origin (negative values accepted)
	'align'      : 'trbr', // align of the hint and the origin (by first letters origin's top|middle|bottom left|center|right to hint's top|middle|bottom left|center|right)
	'css'        : 'hintsClass1', // a style class name for all hints, applied to DIV element (see style section in the header of the document)
	'show_delay' : 50, // a delay between initiating event (mouseover for example) and hint appearing
	'hide_delay' : 0, // a delay between closing event (mouseout for example) and hint disappearing
	'follow'     : false, // hint follows the mouse as it moves
	'z-index'    : 100, // a z-index for all hint layers
	'IEfix'      : false, // fix IE problem with windowed controls visible through hints (activate if select boxes are visible through the hints)
	'IEtrans'    : ['blendTrans(DURATION=.3)', 'blendTrans(DURATION=.3)'], // [show transition, hide transition] - transition effects, only work in IE5+
	'opacity'    : 50 // opacity of the hint in %%

};

var myHint = new THints (null, HINTS_CFG);

