/*printerfriendlyhscheader.js
Author: Kenneth Fly
Created: 9/26/2003
Last Modified: 10/30/2003
Modifications:
10/2/2003- Documentation
10/30/2003- Changed printerFriendlyHSCHeader() to accomdate new layer standardization on templates
Language: Javascript 1.5
Purpose: Be a global Include file for HSC web. Allows to have users to include the HSC print header in all HSC printer
friendly print screens. 
Parameters: None
Browser Compatibility: N6+,IE5+
Dependencies: None
Expected Output: None
Errors and Error Handling: None
*/

/*printerFriendlyHSCHeader();
Author: Kenneth Fly
Created: 9/26/2003
Last Modified: 10/30/2003
Modifications: 
10/2/2003- Documentation
10/30/2003- To resolve a printing issue with HSC templates. The templates were standardized with layernames and purposes
requiring that the function be changed. Also, fixed so no error if layers did not exist.
Language: Javascript 1.5
Purpose: Create String of HTML to be output as print header for all printer friendly screens of HSC web pages. Used
in function call to printerfrinedlywindow() on HSC pages. Creates the header before the body content is output. Gets 
Page Title and Page Qualifiers from HSC Pages
Parameters: None
Browser Compatibility: N6+, IE5+
Dependencies: None
Expected Output: String of HTML that used to be print screen header.
Errors and Error Handling: None
*/
function printerFriendlyHSCHeader(){
var outputstring='';//var to hold string of HTML
var pagetitle;//pointer to Page title element
var pagequalifiers;//pointer to page qualifiers element
pagetitle=document.getElementById("Layer4");
pagequalifiers=document.getElementById('Layer5');
outputstring=outputstring+'<img src=\"http://hsc.usf.edu/nocms/global_files/hsc_horizontal_color_logo.gif\"><br>';//add HSC logo
if(pagetitle!=null){//if there is page title on page
	outputstring=outputstring+'<h1>'+contentsectiontooutput(pagetitle,'n')+'</h1>';//add page title
}
if(pagequalifiers!=null){// if there is page qualifiers output 
	outputstring=outputstring+'<h2>'+contentsectiontooutput(pagequalifiers,'n')+'</h2>';
}
return outputstring;
}