	 var http_request = false;
	 var rss;
	 var rssnode;
	 var rssarticle = -1;
	 var nodes;
	 op = 100;





	 if  (  (typeof(window.XMLHttpRequest) == 'function') || (typeof(window.XMLHttpRequest) == 'object') ) 
	 { // Mozilla, Safari, ...
		http_request = new XMLHttpRequest();
	 }
	 else if (window.ActiveXObject)
	 { // IE
			try {
				http_request = new ActiveXObject("Msxml2.XMLHTTP");
			} catch (e) {
				try {
					http_request = new ActiveXObject("Microsoft.XMLHTTP");
				} catch (e) {}
			}
	 }

	 if (!http_request) {
	 	alert('Giving up :( Cannot create an XMLHTTP instance');
	 }


	http_request.onreadystatechange = rssfeed;
	//http_request.open("GET", "http://blog.01.com/?feed=rss2", true );
	http_request.open("GET", "get.php", true );
	
	
	http_request.send("");

	function LinkToCurrentNews()
	{
		url = nodes[rssarticle].getElementsByTagName("link")[0].firstChild.nodeValue;
		alert(url);
	}

	function PopupNews()
	{
		url = nodes[rssarticle].getElementsByTagName("link")[0].firstChild.nodeValue;
		window.open(url,"newswindow","status=false;toolbar=0;menubar=0;directories=0")
	}


	function ShowNextNews()
	{

  		rssarticle += 1;

  		if (rssarticle > 5)
  			{ rssarticle = 0 }

		txt = nodes[rssarticle].getElementsByTagName("title")[0].firstChild.nodeValue;
		url = nodes[rssarticle].getElementsByTagName("link")[0].firstChild.nodeValue;

  		document.getElementById('hotnews').innerHTML = "<a color=\"#000000\" href=\"javascript:PopupNews();\">" + txt + "</a>"
		document.getElementById('hotnews').style.cssText = "filter:alpha(opacity=" + op + ");opacity:" + op/100 + ";-moz-opacity: " + op/100;

	}


	function fadeout()
	{
		op -= 10;
		document.getElementById('hotnews').style.cssText = "filter:alpha(opacity=" + op + ");opacity:" + op/100 + ";-moz-opacity: " + op/100;
		if (op > 0 )
		{
			setTimeout(fadeout,100);
		}
		else
		{
			ShowNextNews();
			fadein();
		}

	}

	function fadein()
	{
		op += 10;
		document.getElementById('hotnews').style.cssText = "filter:alpha(opacity=" + op + ");opacity:" + op/100 + ";-moz-opacity: " + op/100;
		if (op < 100 )
		{
			setTimeout(fadein,100);
		}
		else
		{
			setTimeout(fadeout,3500);
		}
	}


	function rssfeed()
	{

		
		if (http_request.readyState == 4)
		{
			if (http_request.status == 200)
			{
				
				  rss = http_request.responseXML;
				  nodes = rss.getElementsByTagName("item")
				  ShowNextNews();
		    }
		}
    }


	setTimeout(fadeout,3500);
