<!--
	var delay = 8000; //set delay between message change (in miliseconds)
	var index = -1;
	var content_count = 0;

	var fLink = new Array();
	var fImage = new Array();
	var fCaption01 = new Array();
	var fCaption02 = new Array();

	// =============================================================

	function addcontent(service, imageURL, caption01, caption02) 
	{
		fLink[content_count] = service;
		fImage[content_count] = imageURL;
		fCaption01[content_count] = caption01;
		fCaption02[content_count] = caption02;	
		content_count++;
	}

	// =============================================================

	function addcaption(caption01, caption02) 
	{
		fCaption01[content_count] = caption01;
		fCaption02[content_count] = caption02;	
		content_count++;
	}

	// =============================================================

	function changecontent()
	{
		var strCaption;
		
		if (content_count > 0)
		{			
			fadeIn("text_caption",99);			
			index++;
			setTimeout("changecontent()", delay);	
		}
	}

	// =============================================================

	function changecaption()
	{
		var strCaption;
		
		if (content_count > 0)
		{			
			fadeInCaption("index_caption",99);			
			index++;
			setTimeout("changecaption()", delay);	
		}
	}
	
	// =============================================================

	//set the opacity of an element to a specified value
	function setOpacity(id, opacity) {
	  var object = document.getElementById(id).style; 
		object.opacity = (opacity / 100);
		object.MozOpacity = (opacity / 100);
		object.KhtmlOpacity = (opacity / 100);
		object.filter = 'alpha(opacity=' + opacity + ')';
	}

	// =============================================================

	function fadeOut(id, opacity) {
		if(opacity < 98) {
			setOpacity(id, opacity);
			opacity = opacity + 3;
			setTimeout("fadeOut('" + id + "'," + opacity + ")", 10);
		} 
	}	

	// =============================================================

	function fadeIn(id, opacity) {
		if(opacity > 0) {
			setOpacity(id, opacity);
			opacity = opacity - 3;
			setTimeout("fadeIn('" + id + "'," + opacity + ")", 30);
		} 
		else { 		
			if (index >= content_count) index = 0;

			strCaption = "" + fCaption01[index] + " <strong>" + fCaption02[index] + "</strong><br/><a href='" + fLink[index] + "'>Read more &raquo;</a>";
			document.getElementById(id).innerHTML = strCaption;
			//document.getElementById("heading_bg").style.background = "url('images/site/" + fImage[index] + "')";

			fadeOut(id,0);
		}
	}	

	// =============================================================

	function fadeInCaption(id, opacity) {
		if(opacity > 0) {
			setOpacity(id, opacity);
			opacity = opacity - 3;
			setTimeout("fadeInCaption('" + id + "'," + opacity + ")", 30);
		} 
		else { 		
			if (index >= content_count) index = 0;

			strCaption = "<span style='color:#ccffff;'>" + fCaption01[index] + "</span><br/>" + fCaption02[index];
			document.getElementById(id).innerHTML = strCaption;
			//document.getElementById("heading_bg").style.background = "url('images/site/" + fImage[index] + "')";

			fadeOut(id,0);
		}
	}	

	// =============================================================

	function confirmAct(item)
	{
		if (confirm("Are you sure you want to activate " + item + "?"))
		{
			return true;
		}
		else
		{
			return false;
		}
	}

	// =============================================================

	function confirmDel()
	{
		if (confirm("Are you sure you want to delete this record?"))
		{
			return true;
		}
		else
		{
			return false;
		}
	}
	
	// =============================================================

	function toggleVisible( whichLayer )
	{
		var elem, vis;
		
		if( document.getElementById ) // this is the way the standards work
			elem = document.getElementById( whichLayer );
		else if( document.all ) // this is the way old msie versions work
			elem = document.all[whichLayer];
		else if( document.layers ) // this is the way nn4 works
			elem = document.layers[whichLayer];
		
		vis = elem.style;
		// if the style.display value is blank we try to figure it out here
		if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
			vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
		
		vis.display = (vis.display==''||vis.display=='block')?'none':'block';
	}		
//-->
