function fnTextSize(textSize) {											
	document.body.className = textSize;			
	var menuLinks = document.getElementById("menu").getElementsByTagName("A");
	for(i=0;i<menuLinks.length;i++) {
		menuLinks[i].href = menuLinks[i].href.split("?")[0]+"?tSize="+textSize;
	}			
} 

function fnPrint() {	
	window.print();			
}

function fnBodyId(newID) {	
	document.body.id = newID;		
}

// Popup
function openWindow(url,width,height) {
x = (640 - width)/2, y = (480 - height)/2;
if (screen) {
y = (screen.availHeight - height)/2;
x = (screen.availWidth - width)/2;
}
window.open (url,'newWin','width='+width+',height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x+',scrollbar=yes');
}

// tedme 24/10/08
var tallestAd = 125;
function ads_equalise() {
	// this allows for a little trickery to make the 3 bottom row boxes the same height ;-)
	$$('div[class^=home_third]').each(function (d) { 
		if (d.getHeight() > tallestAd) tallestAd = d.getHeight();
	});
	var newHeight = tallestAd;
	$$('div[class^=home_third]').each(function (d) {
		newHeight = tallestAd - (parseFloat(d.getStyle('paddingTop')) + parseFloat(d.getStyle('paddingBottom')));
		new Effect.Morph(d, {
			style: { height: newHeight +'px' },
			duration: 0.2
		});
	});
};
