// sc
var timerId = -1;

function doInitHelp() {
	// IE Fix - document.ready() called too soon. Timer to check for slickbox
	if(!$('#footer') || $('#footer').width() <= 0) {
		if(timerId >= 0) return;
		timerId = setTimeout("doInitHelp()",500)
		//alert("startTimer: "+timerId);
		return;
	} else if(timerId >= 0) {
		//alert("clearTimer: "+timerId);
		clearTimeout(timerId)
	}

	initDocumentReady();
}

function initDocumentReady() {
	// init code
}

function showSponsoredHelp(helpDiv) {
	$('#'+helpDiv).width($('#'+helpDiv).parents().width());
	$('#'+helpDiv).height($('#'+helpDiv).parents().height());

	$('#'+helpDiv).show();
	return false;
}

function hideSponsoredHelp(helpDiv) {
	$('#'+helpDiv).hide();
	return false;
}

function toggleSponsoredHelp(helpDiv) {
	$('#'+helpDiv).toggle(400);
	return false;
}

$(document).ready(doInitHelp);