$(document).ready(function() {
	// Add zebra stripes to list tables
//	zebraStripe();
	// Add the print-page link
	$("#printpage").html('<a href="#" onclick="window.print(); return false;">Print this page</a>');
	// Flyout for Agent Ranking & Badge information
	$("a.badge-link").click(function() { showBadgeInfo(this); return false; });	
});
function addShadow(objNode, intShadowWidth, intShadowHeight) {
	if (objNode.length > 0) {
		if (intShadowWidth == undefined) intShadowWidth = $(objNode).children(":first-child").outerWidth();
		if (intShadowHeight == undefined) intShadowHeight = $(objNode).children(":first-child").outerHeight();
		$(objNode).prepend('<div class="shadow-box" style="opacity: .25; filter:Alpha(Opacity=25); width: ' + intShadowWidth + 'px; height: ' + intShadowHeight + 'px;">&nbsp;</div>');
	}
}
function adjustShadowHeight(objNode) {
	$(objNode).children("div.shadow-box").height($(objNode).children("div.inner").outerHeight());
}
function removeShadow(objNode) {
	$(objNode).children("div.shadow-box").remove();
}
// Flyout for Agent Ranking & Badge information
function showBadgeInfo(objNode) {
	var strTitle = $(objNode).parent().next().html();
	$("body").append('<div id="dialog-instructions" class="dialog"></div>');
	$("#dialog-instructions")
		.load($(objNode).attr("href") + " #instructions")
		.dialog({ title: "How is my Rezora Ranking determined?", modal: true, draggable: false, resizable: false, width: 600, height: 400, close: function() { $("#dialog-instructions").remove() }
	});
}