objects = document.getElementsByTagName("object");
for (var i = 0; i < objects.length; i++)
{
    objects[i].outerHTML = objects[i].outerHTML;
}

window.onload = init;

function init() 
{
  if (window.Event) 
  {
    document.captureEvents(Event.MOUSEMOVE);
  }
  document.onmousemove = getXY;
}

function getXY(e) 
{
  x = (window.Event) ? e.pageX : event.clientX;
  y = (window.Event) ? e.pageY : event.clientY;
}

function moveDiv(id) 
{
	obj = document.getElementById('cont'+id);
	
	obj.style.top = x;
	obj.style.left = y;	
}

function tooltip(ctrl,action) 
{	
	obj = document.getElementById(ctrl);
	cont = document.getElementById('cont'+ctrl);
	
	if(action=='show') 
	{
		document.getElementById('Layer'+ctrl).style.visibility="visible";				
	}
	if(action=='hide') 
	{
		document.getElementById('Layer'+ctrl).style.visibility="hidden";		
	}
}

var ns6=document.getElementById&&!document.all
var ie=document.all

function changeto(e,highlightcolor){
source=ie? event.srcElement : e.target
if (source.tagName=="TR"||source.tagName=="TABLE")
return
while(source.tagName!="TD"&&source.tagName!="HTML")
source=ns6? source.parentNode : source.parentElement
if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore")
source.style.backgroundColor=highlightcolor
}

function contains_ns6(master, slave) { 
while (slave.parentNode)
if ((slave = slave.parentNode) == master)
return true;
return false;
}

function changeback(e,originalcolor){
if
(ie&&(event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="ignore")||source.tagName=="TR"||source.tagName=="TABLE")
return
else if (ns6&&(contains_ns6(source, e.relatedTarget)||source.id=="ignore"))
return
if (ie&&event.toElement!=source||ns6&&e.relatedTarget!=source)
source.style.backgroundColor=originalcolor
}
//Basic Ajax Routine- Author: Dynamic Drive (http://www.dynamicdrive.com)
//Last updated: Jan 15th, 06'

function createAjaxObj()
{
    httprequest = false;
    if (window.XMLHttpRequest)
    { // if Mozilla, Safari etc
        httprequest = new XMLHttpRequest();
        if (httprequest.overrideMimeType)
            httprequest.overrideMimeType('text/xml');
    }
    else if (window.ActiveXObject)
    { // if IE
        try
        {
            httprequest = new ActiveXObject("Msxml2.XMLHTTP");
        } 
        catch (e)
        {
            try
            {
                httprequest = new ActiveXObject("Microsoft.XMLHTTP");
            }
            catch (e)
            {
            }
        }
    }
    return httprequest;
}

function ajaxPack()
{
    this.basedomain = "http://" + window.location.hostname;
    this.ajaxobj = createAjaxObj();
    this.getAjaxRequest = getAjaxRequest;
    this.id = '';
    this.flux = '';
    this.index = 0;
    this.retry = 0;
    this.fp = -1;
}

function getAjaxRequest(url, parameters, callbackfunc)
{
    this.ajaxobj = createAjaxObj(); //recreate ajax object to defeat cache problem in IE
    parameters = parameters + "&ajaxcachebust=" + new Date().getTime(); //Further defeat caching problem in IE
    if (this.ajaxobj)
    {
        this.ajaxobj.onreadystatechange = callbackfunc;
        this.ajaxobj.open('GET', url + "?" + parameters, true);
        this.ajaxobj.send(null);
    }
}
