function ChangeFontSize(id, size) {
    	document.getElementById(id).style.fontSize = size + "px";
}
function setBGColor(id,color) {
	document.getElementById(id).style.backgroundColor = color;
}

function setFontColor(id,color) {
	
	
	 document.getElementById(id).fgColor='#FFFF00';
	
}

function ResetIt(id,color,size,fcolor) {
document.getElementById(id).style.backgroundColor = color;
document.getElementById(id).style.fontSize = size + "px";
document.getElementById(id).style.fgColor = '#000000';
}

/*typewriter ticker*/
var plink = "<a href='news.asp' class='nobg'style='display: inline;'>read more</a>"
var content = "Her Royal Highness the Countess of Wessex' opens the newly refurbished residential accommodation …"+plink;

function typeDisplaytype() {typeDisplay('type',content,0);}
loaded('type',typeDisplaytype);

var brk = '~'; // character to use for line break
var resetTime = 4; // set to 0 to not reset or seconds to delay before reset

function typeDisplay(id,content,num) {
var delay = 75; if (num <= content.length)  
	{var txt = content.substr(0,num); document.getElementById(id).innerHTML = txt.replace(RegExp(brk,'g'),'<br \/>'); num++; 
		if (num > content.length) delay = resetTime * 1000;} 
else {document.getElementById(id).innerHTML = ''; num = 0;} 
if (delay > 0) setTimeout('typeDisplay("'+id+'","'+content+'","'+num+'")',delay);} 
var pageLoaded = 0; window.onload = function() {pageLoaded = 1;}; 

function loaded(i,f) {if (document.getElementById && document.getElementById(i) != null) f(); 
else if (!pageLoaded) setTimeout('loaded(\''+i+'\','+f+')',75); }



//pop up windows
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=425,left = 455,top = 209');");
}


//big pop up windows
function bigpopUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=750,height=425,left = 355,top = 109');");
}
