//-------------------------------------------------------------------------------------------------
//
// Filename	: header_generic.js
// <a href="C:\Documents and Settings\EZ7EZDH\Desktop\detect.htm"></a>
// Function	: Generic Header which is included in most sites via an include file. The code 
//		  checks for frames, and if encountered closes the table row. If no frames exist
// 		  relies on Footer_Generic.js to close off.
//
// Example	  : The example below shows the inclusion of the header_generic.js within code:
//		    <script src="http://centoff-apps6/det/detlibrary/header_generic.js"></script>
//
//-------------------------------------------------------------------------------------------------

//-------------------------------------------------------------------------------------------------
// The <form> tag below cannot be moved to another location as doing this will 
// have a direct impact on the header image alignment
//-------------------------------------------------------------------------------------------------
document.write ("<form method=get action='http://www.eddept.wa.edu.au/SearchResults.asp' target='_parent' id=form2 name=form2>")

function MM_reloadPage(init) {  
	//reloads the window if Nav4 resized
	if (init==true) with (navigator) {
		if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
			document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; 
			self.scrollbars.visible=true;
		}
	}	
	else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

//-------------------------------------------------------------------------------------------------
//
//
//-------------------------------------------------------------------------------------------------
document.write ("<STYLE>")
document.write (".footer { font : 10px Verdana;color : #000000;background-color : #f6f4ed; border-style : none none none none; }")
document.write (".footer link { color : #000000 }")
document.write (".footer visited { color : #000000 }")
document.write (".footer Hover { text-decoration: underline;color: #32CD32 }")
document.write (".footer button {border : none;background : #5F5F5F;color : #FFFFFF;background-color : #ffffff;border-style : none none none none;} ")

document.write (".zheader { position : absolute ; left : 0px ; top : 0px;}")
document.write ("</STYLE>")

//-------------------------------------------------------------------------------------------------
// Check if site uses frames is performed here. ADD MORE DESCRIPTION HERE!!!!!!!!
//
//-------------------------------------------------------------------------------------------------
if (self.parent.frames.length == 0) {
	if ((navigator.appName=="Netscape")&&(parseInt(navigator.appVersion)==4)) {
		document.write ("<TABLE  cellSpacing='0' cellPadding='0' border='0' width='100%'>")
	} else {
		document.write ("<TABLE class='zheader'  cellSpacing='0' cellPadding='0' border='0' width='100%'>")
	}
	document.write ("<TR>")
	document.write ("<td>")
}
document.write ("<table width='100%' border='0' cellSpacing='0' cellPadding='0' bgcolor='F6F4ED'>")
document.write ("	<TR>")
document.write ("		<TD> <a href='http://www.det.wa.edu.au/' target='_top'><img src='http://www.eddept.wa.edu.au/edlibrary/Library/images_header/det_header_small.gif' height='75' alt='department of education and training banner' border='0'></a></TD>")
document.write ("	</TR>")
document.write ("	</table>")

document.write ("<table width='100%' border='0' cellSpacing='0' cellPadding='0'>")

document.write ("  <tr> ")
document.write ("    <td>")

document.write ("<TABLE WIDTH='100%' BORDER='0' CELLPADDING='0' CELLSPACING='0' height='24'>")

document.write ("	<TR >")
document.write ("		<TD align='left' background='http://www.eddept.wa.edu.au/edlibrary/Library/images_header/BannerLinks_1.gif'>")

document.write ("          <a style='text-decoration : none;font : 9px verdana;color : #ffffff' href='http://www.eddept.wa.edu.au' target='_top'>&nbsp;Home | </a>")
//document.write ("          <a style='text-decoration : none;font : 9px verdana;color : #ffffff' href='http://www.eddept.wa.edu.au/whatsnew.htm' target='_top'>Whats New | </a>")
document.write ("          <a style='text-decoration : none;font : 9px verdana;color : #ffffff' href='http://www.det.wa.edu.au/whatsnew.htm' target='_top'>Whats New | </a>")
//document.write ("          <a style='text-decoration : none;font : 9px verdana;color : #ffffff' href='http://www.eddept.wa.edu.au/search.asp' target='_top'>Search | </a>")
document.write ("          <a style='text-decoration : none;font : 9px verdana;color : #ffffff' href='http://www.eddept.wa.edu.au/ednaonline.asp' target='_top'>Search | </a>")
document.write ("          <a style='text-decoration : none;font : 9px verdana;color : #ffffff' href='http://www.eddept.wa.edu.au/contact_us.asp' target='_top'>Contact Us | </a>")

document.write ("           <a href='#' onClick=window.open('http://www.eddept.wa.edu.au/edlibrary/library/docs/sitemap.asp','win1','location=0,statusbar=0,menubar=0,resizable=0,scrollbars=1,width=650,height=500') style='font : 10px Verdana;color : #ffffff;text-decoration : none;'>Site Map </a>")

document.write ("		</TD>")
document.write ("		<TD  align='right' style='font : 11px verdana;color : #1c2c8a;' background='http://www.eddept.wa.edu.au/edlibrary/Library/images_header/BannerSearchBkgrd_1.gif'>")
document.write ("					")
document.write ("				Search")

document.write ("				<input type='hidden' name='ct' value='InternetFiles'>")

document.write ("				<input style='height:18px' type='Text' name='q1' value='' size='20' ID='Text1'>")
document.write ("				<input type='submit' value='Go' style='height:18px;font : 10px verdana;' >&nbsp;&nbsp;&nbsp;")

document.write ("				<a href='#' onClick=javascript:popUp('http://www.eddept.wa.edu.au/edlibrary/Library/docs/searchtips.html','win1',650,500,1)")
document.write ("					onMouseOver=this.style.color='#d7671d'")
document.write ("					onMouseOut=this.style.color='#1c2c8a'")
document.write ("					style='font : 11px Verdana;color : #1c2c8a;text-decoration : underline;'>Tips</a>&nbsp;")
document.write ("		</TD>")
document.write ("	</TR>")
document.write ("</TABLE>")
	
document.write ("    </td>")
document.write ("  </tr>")
document.write ("</table>")

//-------------------------------------------------------------------------------------------------
// Check if site uses frames is performed here. ADD MORE DESCRIPTION HERE!!!!!!!!
//
//-------------------------------------------------------------------------------------------------

if (self.parent.frames.length == 0) {
	document.write ("</td>")
	document.write ("</tr>")
	document.write ("<TR><TD width='100%' valign'top'>")
}

//-------------------------------------------------------------------------------------------------
// The </form> close tag below cannot be moved to another location as doing this will 
// have a direct impact on the header image alignment
//-------------------------------------------------------------------------------------------------
document.write ("</form>")	