function gotoContent() {
	
	var oSelect = document.getElementById("cmbAssociatedContent")
	window.location.href = oSelect.value;
	
}

function confirm(input) {
		
	if (input == 'yes') {
		document.frmUser.action = 'register.asp';
		document.frmUser.a.value = 'confirmed';
		document.frmUser.submit();
	} else {
		document.frmUser.action = 'register.asp';
		document.frmUser.a.value = 'register';
		document.frmUser.submit();
	}
}
	
function hideShow() {

	return;

	var oEnquiryRow = document.getElementById("enquiryrow");
	var oRadEnquiry = document.getElementById("radEnquiry");
	if (oRadEnquiry.checked) {
	
	
		for (i=0;i<oEnquiryRow.childNodes.length;i++) {
			if (oEnquiryRow.childNodes[i].nodeType == 1 ) 
				oEnquiryRow.childNodes[i].style.display = 'block';
		}
	} else {
		for (i=0;i<oEnquiryRow.childNodes.length;i++) {
			if (oEnquiryRow.childNodes[i].nodeType == 1 ) 
				oEnquiryRow.childNodes[i].style.display = 'none';
		}
	}
	
	//oEnquiryRow.style.display = (source.checked)? "none":"block";
	return true;

}
function hide() {
	
	return;

	var oEnquiryRow = document.getElementById("enquiryrow")
	
	for (i=0;i<oEnquiryRow.childNodes.length;i++) {
		if (oEnquiryRow.childNodes[i].nodeType == 1 ) 
			oEnquiryRow.childNodes[i].style.display = 'none';
	}
	return true;

}

function showHideDiv(divID) {
	var oDiv = document.getElementById(divID);
	if (oDiv) {
		var sState = oDiv.style.display;
		if (sState == "block") {
			oDiv.style.display = "none";
		} else {
			oDiv.style.display = "block";
		}
	}
}

// news ticker 
var iTickerNum, sFullText, sLink, iNum, sText;
iTickerNum = -1;
/*
//iTickerNum = 0;
function showTicker() {
	// called to start showing a ticker
	if (iTickerNum == ticker.length) {
		// restart at the first item
		iTickerNum = 0;
	}
	sFullText = ticker[iTickerNum][0];
	sLink = ticker[iTickerNum][1];
	iNum = 1;
	updateTicker();
}

function updateTicker() {
	if (iNum > sFullText.length) {
		// finished, so start the next ticker
		iTickerNum++;
		setTimeout("showTicker()", 3000);
	} else {
		// add a character to the text
		sText = sFullText.substr(0, iNum);
		if (sText.length < sFullText.length) {
			sText += "_";
		}
		iNum++;
		// update the text on the page
		document.getElementById("tickerLink").innerHTML = sText;

		if(parseInt(sLink,10)>0)
			document.getElementById("tickerLink").href = "/media/?i=" + sLink + "&p=1";
		else
			document.getElementById("tickerLink").href = "/media/comingsoon/";
		setTimeout("updateTicker()", 50);
	}
}
*/

function showTicker() {
	// called to start showing a ticker
	if (iTickerNum<0) {
		// restart at the last item
		iTickerNum = ticker.length-1;
	}
	sFullText = ticker[iTickerNum][0];
	sLink = ticker[iTickerNum][1];
	iNum = 1;
	updateTicker();
}

function updateTicker() {
	if (iNum > sFullText.length) {
		// finished, so start the next ticker
		iTickerNum=iTickerNum-1;
		setTimeout("showTicker()", 3000);
	} else {
		// add a character to the text
		sText = sFullText.substr(0, iNum);
		if (sText.length < sFullText.length) {
			sText += "_";
		}
		iNum++;
		// update the text on the page
		document.getElementById("tickerLink").innerHTML = sText;

		if(parseInt(sLink,10)>0)
			document.getElementById("tickerLink").href = "/media/?i=" + sLink + "&p=1";
		else
			document.getElementById("tickerLink").href = "/media/comingsoon/";
		setTimeout("updateTicker()", 50);
	}
}