// Init Onload //

function Init()
{
ScrollColor();
Sniffer();
Linker();
}


//browser sniffer - popup//

function Sniffer()
{
if (document.getElementById?0:1)
 {
  open("w3c.html", "error", "target=_blank,width=380,height=440,screenX=40,screenY=40"); 
 }
}

function Linker()
{

// make sure ConstDomain is set in an ASP header somewhere //

if ((document.getElementsByTagName))
{
	for(i=0; (as = document.getElementsByTagName("a")[i]); i++) 
		{
			host = as.getAttribute("hostname");
			if (!host.match(ConstDomain))
				{
					as.setAttribute("target","_blank");
				}
		}
}

}

//color scrollbars//
function ScrollColor()
{

if (document.getElementById)
 {
  document.body.style.scrollbarBaseColor = "cc0000";
  document.body.style.scrollbarArrowColor = "cc0000";
  document.body.style.scrollbar3dlightColor = "cc0000";
  document.body.style.scrollbarDarkshadowColor = "cc0000";
  document.body.style.scrollbarTrackColor = "ffffff";
  document.body.style.scrollbarFaceColor = "eeeeee";
  //	for(i=0; (as = document.getElementsByTagName("div")[i]); i++) 
//		{
//			if (as.className=="box")
//				{
//					as.style.filter = "alpha(opacity=80)";
//					as.firstChild.style.filter = "alpha(opacity=80)";
//				}
//		}

}
}

function RandomQuote()
{

if (document.getElementById)
{

q = new Array();
q[0] = "Journalism with a capital 'J'";
q[1] = "Reporting on the reports that matter";
q[2] = "You herd it hear thirst";
q[3] = "Putting the Atlas back on the Map";
q[4] = "Happy or sad, there is news to be had";
q[5] = "Scoops investigated; Issues sourced";
q[6] = "Yesterday's News - Today";
q[7] = "'G' is for Journalism";
q[8] = "Hard-hitting, Back-biting";
q[9] = "The Topical muse of an Information Lute";
q[10] = "What's really happening";
q[11] = "Fill your brain - with some large news";
q[12] = "A big fat webcock spunking up news";
today = new Date(); 
show = Math.floor(Math.random() * (q.length)); 
document.getElementById('tagline').innerHTML = q[show];
}


}
