var font = 'Angelina';
var colour = '#000000';
var timeout = '';

function timer() {
	clearTimeout(timeout);
	timeout = setTimeout('do_sIFR()', 1000);	
}

function do_sIFR() { 
    var face = "includes/flash/" + font + ".swf";
	document.getElementById('font').className = "page "+font;
    if ( typeof sIFR == 'function' ) {
		for (var i=1; i<sifrCount+1; i++) {
			sIFR.rollback('#sifr'+i);
			if (document.getElementById('input'+i)) {
				document.getElementById('sifr'+i).innerHTML = document.getElementById('input'+i).value;
			}
			sIFR.replaceElement("#sifr"+i, named({sFlashSrc: face, sColor: colour, sFlashVars:"textalign=center", sWmode:"transparent"}));
		}
    }
}

function txtcontent(clickblur, value, id) {
	if (clickblur == "click") {
		if (document.getElementById(id).value == value) {
			document.getElementById(id).value = "";
		}
	}
	if (clickblur == "blur") {
		if (document.getElementById(id).value == "") {
			document.getElementById(id).value = value;
		}
	}
}

function setHeaderText(p_id, p_font, p_colour) {
    if ( typeof sIFR == 'function' ) {
		sIFR.replaceElement("#"+p_id, named({sFlashSrc: p_font, sColor: "#"+p_colour, sFlashVars:"textalign=left", sWmode:"transparent"}));
    }
}