/* NICOLAS BREAKSPEAR STYLESHEET */
/* CREATED 01.03.05 */
/* MODIFIED 02.03.05 */
/* AUTHOR: ANDY FIELD @ IDNET */

/* IE6 CSS BUG FIXER */

if (document.all && window.attachEvent) window.attachEvent("onload", fixWinIE);
function fixWinIE() {
        if (document.body.scrollHeight < document.all.contentcontainer.offsetheight) {
                document.all.contentcontainer.style.display = 'block';
	}
}

/* DATE CONTROLS **********************************************************/

	function displayDate(){
		var this_day = new Array(7);
		this_day[0]  = "Sunday";
		this_day[1]  = "Monday";
		this_day[2]  = "Tuesday";
		this_day[3]  = "Wednesday";
		this_day[4]  = "Thursday";
		this_day[5]  = "Friday";
		this_day[6]  = "Saturday";
		
		var this_month = new Array(12);
		this_month[0]  = "January";
		this_month[1]  = "February";
		this_month[2]  = "March";
		this_month[3]  = "April";
		this_month[4]  = "May";
		this_month[5]  = "June";
		this_month[6]  = "July";
		this_month[7]  = "August";
		this_month[8]  = "September";
		this_month[9]  = "October";
		this_month[10] = "November";
		this_month[11] = "December";
		var today = new Date();
		var day   = today.getDay();
		var date   = today.getDate();
		var month = today.getMonth();
		var year  = today.getYear();
		if (year < 1900){
		   year += 1900;
		}
		return(this_day[day]+" "+date+" "+this_month[month]+" " +year);
    }
    
/* EXTERNAL LINK CODE - WORK AROUND FOR DEPRECATION OF TARGET LINK */
/* TO WORK NEEDS REL="EXTERNAL" IN THE LINK TAG */

function externalLinks() { 
	if (!document.getElementsByTagName) return; 
	var anchors = document.getElementsByTagName("a"); 
	for (var i=0; i<anchors.length; i++) { 
		var anchor = anchors[i]; 
		if (anchor.getAttribute("href") && 
	anchor.getAttribute("rel") == "external") 
	anchor.target = "_blank"; 
	} 
} 
window.onload = externalLinks;