
/****************************************************
*	        DOM Image rollover:
*		by Chris Poole
*		http://chrispoole.com
*               Script featured on http://www.dynamicdrive.com
*		Keep this notice intact to use it :-)
****************************************************/

function onload_init()
{
	init_rollover();
	cell_links();
//alert(typeof(liveclock));
	if(typeof(liveclock)!='undefined')
		show_clock();
}


function init_rollover() 
{
  if (!document.getElementById) return
  var imgOriginSrc;
  var imgTemp = new Array();
  var imgarr = document.getElementsByTagName('img');
  for (var i = 0; i < imgarr.length; i++) {
    if (imgarr[i].getAttribute('hsrc')) {
        imgTemp[i] = new Image();
        imgTemp[i].src = imgarr[i].getAttribute('hsrc');
        imgarr[i].onmouseover = function() {
            imgOriginSrc = this.getAttribute('src');
            this.setAttribute('src',this.getAttribute('hsrc'))
        }
        imgarr[i].onmouseout = function() {
            this.setAttribute('src',imgOriginSrc)
        }
    }
  }
}

onload=onload_init;

function emph(src)
{
  src.style.backgroundColor = "#006CA4";
  src.style.color = "#FFFFFF";
  src.style.cursor = "pointer";
}

function unemph(src)
{
  src.style.backgroundColor = "#FFFFFF";
  src.style.color = "#000000";
}


/****************************************************
*	  DOM table cell hyperlinks:
*		by Neil Watkins
*		Keep this notice intact to use it :-)
****************************************************/

function cell_links()
{
  if (document.getElementById)
  {
		var tdarr = document.getElementsByTagName('td');
	  for (var i = 0; i < tdarr.length; i++) 
	  {
	    if (tdarr[i].getAttribute('lref')) 
	    {
	    		tdarr[i].style.fontWeight = 'normal';
	    		tdarr[i].style.color = '#000088';
					var link = tdarr[i].getAttribute('lref');
	        tdarr[i].onmouseover = function() 
									{
										window.status=this.getAttribute('lref');
										this.style.backgroundColor = "#006CA4";
										this.style.color = "#FFFFFF";
										this.style.cursor = "pointer";
									}
	        tdarr[i].onmouseout = function() 
									{
										window.status='';
										this.style.backgroundColor = "#E0E0FF";
										this.style.color = "#00008B";
									}
	        tdarr[i].onclick = function() 
									{
										document.location=this.getAttribute('lref');
									}
	    }
	    if (tdarr[i].getAttribute('nref')) 
	    {
	    		tdarr[i].style.fontWeight = 'normal';
	    		tdarr[i].style.color = '#000088';
					var link = tdarr[i].getAttribute('lref');
	        tdarr[i].onmouseover = function() 
									{
										window.status=this.getAttribute('nref');
										this.style.backgroundColor = "#006CA4";
										this.style.color = "#FFFFFF";
										this.style.cursor = "pointer";
									}
	        tdarr[i].onmouseout = function() 
									{
										window.status='';
										this.style.backgroundColor = "#E0E0FF";
										this.style.color = "#00008B";
									}
	        tdarr[i].onclick = function() 
									{
										window.open(this.getAttribute('nref'));
									}
	    }
	    if (tdarr[i].getAttribute('mref')) 
	    {
	    		tdarr[i].style.fontWeight = 'normal';
	    		tdarr[i].style.color = '#000088';
				var link = tdarr[i].getAttribute('mref');
	        tdarr[i].onmouseover = function() 
									{
										window.status=this.getAttribute('mref');
										this.style.backgroundColor = "#006CA4";
										this.style.color = "#FFFFFF";
										this.style.cursor = "pointer";
									}
	        tdarr[i].onmouseout = function() 
									{
										window.status='';
										this.style.backgroundColor = "";
										this.style.color = "#000088";
									}
	        tdarr[i].onclick = function() 
									{
										document.location=this.getAttribute('mref');
									}
	    }
	    if (tdarr[i].getAttribute('kref')) 
	    {
	    		tdarr[i].style.fontWeight = 'normal';
	    		tdarr[i].style.color = '#000088';
					var link = tdarr[i].getAttribute('kref');
	        tdarr[i].onmouseover = function() 
									{
										window.status=this.getAttribute('kref');
										this.style.backgroundColor = "#006CA4";
										this.style.color = "#FFFFFF";
										this.style.cursor = "pointer";
									}
	        tdarr[i].onmouseout = function() 
									{
										window.status='';
										this.style.backgroundColor = "#FFFFFF";
										this.style.color = "#00008B";
									}
	        tdarr[i].onclick = function() 
									{
										if(this.getAttribute('kref').indexOf('javascript:')!=-1)
											eval(this.getAttribute('kref'));
										else
											document.location=this.getAttribute('kref');
									}
	    }
	    if (tdarr[i].getAttribute('jref')) 
	    {
	    		tdarr[i].style.fontWeight = 'normal';
	    		tdarr[i].style.color = '#000088';
				var link = tdarr[i].getAttribute('jref');
	        tdarr[i].onmouseover = function() 
									{
										window.status=this.getAttribute('jref');
										this.style.backgroundColor = "#A40000";
										this.style.color = "#FFFFFF";
										this.style.cursor = "pointer";
									}
	        tdarr[i].onmouseout = function() 
									{
										window.status='';
										this.style.backgroundColor = "#E0E0FF";
										this.style.color = "#00008B";
									}
	        tdarr[i].onclick = function() 
									{
										if(confirm("DELETE: Are you sure?"))
											document.location=this.getAttribute('jref');
									}
	    }
	  }
	}
}
