var ticker_user_id = '';
var ticker_frame_name = 'ticker_frame' + Math.floor(Math.random()*9999999);
var ticker_type = 1;
var ticker_id = 1;
var ticker_settings = 2;
var ticker_baseURI = '';
function loadTicker() {
	iframeurl = 'http://www.rotohog.com/sm/ticker/ticker.php?user_id=' + ticker_user_id + '&t=' + ticker_type + '&tid=' + ticker_id + '&showsettings=' + ticker_settings + '&baseURI=' + ticker_baseURI;
	//iframeurl = 'http://webapps2.rotohog.com/qa/ticker/ticker.php?user_id=' + ticker_user_id + '&t=' + ticker_type + '&tid=' + ticker_id + '&showsettings=' + ticker_settings + '&baseURI=' + ticker_baseURI;
	if(ticker_type == 1) {
		iframewidth = 955;
		iframeheight = 61;
	}
	else if(ticker_type == 2) {
		iframewidth = 280;
		iframeheight = 245;
	}
	else if(ticker_type == 3) {
		iframewidth = 915;
		iframeheight = 60;
	}
	else if(ticker_type == 4) {
		iframewidth = 180;
		iframeheight = 400;
	}
	else if(ticker_type == 5) {
		iframewidth = 300;
		iframeheight = 250;
	}
	else if(ticker_type == 6) {
		iframewidth = 728;
		iframeheight = 90;
	}
	else if(ticker_type == 7) {
		iframewidth = 200;
		iframeheight = 90;
	}
	else if(ticker_type == 8) {
		iframewidth = 955;
		iframeheight = 61;
	}
	else {
		alert('Invalid ticker type!');
		return false;
	}
	document.write('<iframe name="' + ticker_frame_name + '" src="' + iframeurl + '" width="' + iframewidth + 'px" height="' + iframeheight + 'px" frameborder="0" scrolling="no"></iframe>');
}
function iframecheckMouseEnter(a,b) {
	return frames[ticker_frame_name].checkMouseEnter(a,b);
}
function iframecheckMouseLeave(a,b) {
	return frames[ticker_frame_name].checkMouseLeave(a,b);
}
function iframepauseAnimate() {
	return frames[ticker_frame_name].pauseAnimate();
}
function iframestartAnimate() {
	return frames[ticker_frame_name].startAnimate();
}