document.write('<link rel="STYLESHEET" type="text/css" href="style.css">');



function showElement(eName) {
	if(document.getElementById) document.getElementById(eName).style.visibility = 'visible';
	else if(document.all) document.all[eName].style.visibility = "visible";
	else if(document.layers) document[eName].visibility = "show";
}


function hideElement(eName) {
	if(document.getElementById) document.getElementById(eName).style.visibility = 'hidden';
	else if(document.all) document.all[eName].style.visibility = "hidden";
	else if(document.layers) document[eName].visibility = "hide";
}

var isDOM = (document.getElementById) ? true : false;
var isNS4 = (document.layers) ? true : false;
var isIE = (document.all) ? true : false;
var isMac = (navigator.appVersion.indexOf("Mac") != -1);
var isOpera = (navigator.userAgent.indexOf("Opera")!=-1);

//Searh Form

function selectCollection(Collection) {}
sTxt = '<form id="SearchForm" method="GET" name="Search" action="search.php">';
sTxt += '<input type="hidden" name="opt" value="site"><table border="0" cellpadding="0" cellspacing="0" bordercolor="#111111" width="190">';
sTxt += '<tr><td colspan="3">';
sTxt += '<table border="0" cellpadding="0" cellspacing="0" bordercolor="#111111" width="100%">';
sTxt += '<tr><td width="56%">&nbsp;</td><td width="44%" bgcolor="#2E3436">';
sTxt += '<p align="right"><a href="#" onclick="hideElement(\'SearchPopup\'); return false;"><img border="0" src="images/n_head_search_on.gif" width="77" height="20"></a></td>';
sTxt += '</tr></table></td></tr><tr>';
sTxt += '<td width="173" bgcolor="#016766" height="19">&nbsp;<span style="font-weight: 700">';
sTxt += '<font face="Arial" style="font-size: 9pt" color="#FFFFFF" align="center">Site Search</font></span></td>';
sTxt += '<td width="17" bgcolor="#016766" height="19" colspan="2"><a href="#" onclick="hideElement(\'SearchPopup\'); return false;"><img border="0" src="images/close.jpg" width="10" height="10"></a>&nbsp;&nbsp; </td>';
sTxt += '</tr><tr><td width="190" bgcolor="#016766" colspan="3" height="19">&nbsp;';
sTxt += '<input type="text" size="24" name="str" value="" style="color: #016766; font-family: Arial; font-size: 8pt; border: 1px solid #FFFFFF; background-color: #FFCC00"></td>';
sTxt += '</tr><tr><td width="173" bgcolor="#6A8C95" height="27"><p align="right">';
sTxt += '<input type="image" border="0" src="images/submit.gif" width="132" height="27"></td>';
sTxt += '<td width="17" bgcolor="#6A8C95" height="27" colspan="2">&nbsp;</td></tr><tr>';
sTxt += '<td width="182" bgcolor="#016766" height="21" colspan="2"><img alt src="images/line.gif" width="190" height="1"><br>&nbsp;<font color="#FFFFFF">';
sTxt += '<font face="Arial" style="font-size: 9pt; font-weight:700">Quick CAT Search</font><br></font>';
sTxt += '<img alt src="images/line.gif" width="190" height="1"></td><td width="8" bgcolor="#6A8C95" >&nbsp;</td></tr></form><form method="GET" name="searchcat" action="temp.php"><tr>';
sTxt += '<td width="182" bgcolor="#016766" colspan="2">';
sTxt += '</td>';
sTxt += '<td width="8" bgcolor="#6A8C95" rowspan="2">&nbsp;</td></tr><tr>';
sTxt += '<td width="182" bgcolor="#016766" colspan="2" class="textw9">&nbsp;<input type="hidden" name="fid" value="cats"><input type="hidden" name="categcatsid" value="$categcatsid"><input type="text" size="24" name="string" value="" style="color: #016766; font-family: Arial; font-size: 8pt; border: 1px solid #FFFFFF; background-color: #FFCC00"><br>';
sTxt += '<input type="checkbox" name="fields[]" value="clinicalquestion" checked>Clinical Question<br>';
sTxt += '<input type="checkbox" name="fields[]" value="citation">Citation<br>';
sTxt += '<input type="checkbox" name="fields[]" value="a1">Patients Include<br>';
sTxt += '<input type="checkbox" name="fields[]" value="a2">Interventions Compared<br>';
sTxt += '<input type="checkbox" name="fields[]" value="a3">Outcomes Monitored<br><input type="submit" name="submit" value="Submit Search"></td></tr><tr>';
sTxt += '<td width="190" bgcolor="#016766" colspan="3" height="1" class="textw">';
sTxt += '<img alt src="images/line.gif" width="190" height="1"></td></tr><tr>';
sTxt += '<td width="190" bgcolor="#016766" colspan="3" height="5"></td></tr></form></table>';

(document.layers) ? document.write('<layer id="SearchPopup" top="42" left="582" width="190" z-index="100" visibility="hide">' + sTxt + '</layer>') : document.write('<div id="SearchPopup" style="position:absolute; top:134px; left:570px; width:190px; z-index:100; visibility:hidden">' + sTxt + '</div>');

document.write('\<a href="#" onclick="showElement(\'SearchPopup\'); return false;"><img src="images/n_head_search.gif" width="77" height="20" border="0" alt="search"></a>');
document.write("<div id=\"hdrNavMenus\"></div>");

if(typeof hasHdrNav != 'undefined' && hasHdrNav) createHdrNav();
