function saveDocument(url)
{
	document.getElementById("save").value = "Save";
	document.getElementById("frmSaveDoc").action = url;
	document.getElementById("frmSaveDoc").submit();
}

function printDocument(app_path,did,rdoDoc)
{
	window.open(app_path + "savedocument/did-"+did+"/rdoDoc-"+rdoDoc,"","toolbar=no,scrollbars=yes");
}

function LoadCitation(CitationID)
{
	window.open('/viewcitation/citationid-'+CitationID, 'citation','width=800;toolbar=no,scrollbars=yes');
}

function saveDocument(url)
{
	document.getElementById("frmSaveDoc").action = url;
	document.getElementById("frmSaveDoc").submit();
}

function printDocument(app_path,did,rdoDoc)
{
	window.open(app_path + "savedocument/did-"+did+"/rdoDoc-"+rdoDoc,"","toolbar=no,scrollbars=yes");
}

// Rotating Banner for Client Logos
$(function()
{
    $('#banners').cycle();
	$('#banners').css("display", "block");

    // For firefox 3.0
	if ($.browser.mozilla && $.browser.version.substr(0, 5)=="1.9.0")
	{
		$("#docViewTitleRight").css("margin-top", "-20px");
	}
});
$.fn.cycle.defaults.speed   = 900;
$.fn.cycle.defaults.timeout = 4000;
