// JavaScript Document include.js

var red2 = "#cc0000";


function externalLinks() {
 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   if (anchor.getAttribute("href") &&
       anchor.getAttribute("rel") == "external")
     anchor.target = "_blank";
 }
} 
window.onload = externalLinks;

var ASCLD_url = "http://www.ascld-lab.org/dual/indexdual.html";


function MM_swapImgRestore() { 
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { 
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImage() { 
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_findObj(n, d) { 
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}



function logo () {
document.write('<div class="logo"><a href="index.html"><img src="graphics/logo_w100.gif" width="100" height="72" alt="Serological Research Institute" /></a></div>');
}




function bottom_mini_nav() {

    document.write ('<div class="bottom_mini_link" style="margin-top:25px;margin-bottom:25px;">' +
    '<a href="index.html" class="bottom_mini_link" id="bothomelink">Home</a>&nbsp;<span class="tinynavdividers">|</span>&nbsp;' +
    '<a href="corpprofile.html" class="bottom_mini_link" id="botcorpprofilelink">Corporate Profile</a>&nbsp;<span class="tinynavdividers">|</span>&nbsp;' +
    '<a href="profservices.html" class="bottom_mini_link" id="botprofserviceslink">Professional Services</a>&nbsp;<span class="tinynavdividers">|</span>&nbsp;' +
    '<a href="proficiency.html" class="bottom_mini_link" id="botproficiencylink">Proficiency Testing</a>&nbsp;<span class="tinynavdividers">|</span>&nbsp;' +
    '<a href="products.html" class="bottom_mini_link" id="botproductslink">Products</a>&nbsp;<span class="tinynavdividers">|</span>&nbsp;' +
    '<a href="contact.html" class="bottom_mini_link" id="botcontactlink">Contact</a>&nbsp;<span class="tinynavdividers">|</span>&nbsp;' +
	'<a href="staff.html" class="bottom_mini_link" id="botstafflink">Staff</a>&nbsp;<span class="tinynavdividers">|</span>&nbsp;' +
    '<a href="www/web/onlinestore.cfm" class="bottom_mini_link" id="botonlinestorelink">Online Catalog</a>&nbsp;<span class="tinynavdividers">|</span>&nbsp;' +
    '<a href="casestudies.html" class="bottom_mini_link" id="botcasestudieslink">Case Studies</a>' +
    '<br /><a href="newsevents.html" class="bottom_mini_link" id="botnewseventslink">News &amp; Events</a>&nbsp;<span class="tinynavdividers">|</span>&nbsp;' +
	'<a href="sitemap.html" class="bottom_mini_link" id="botsitemaplink">Site Map</a>' +
    '</div>');
    
    var sPath = window.location.pathname;
    var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
	//alert(sPage);
    switch(sPage) {
          case 'index.html': {document.getElementById("bothomelink").style.color=red2; break;}
          case 'proficiency.html': {document.getElementById("botproficiencylink").style.color=red2; break;}
		  case 'corpprofile.html': {document.getElementById("botcorpprofilelink").style.color=red2; break;}
		  case 'newsevents.html': {document.getElementById("botnewseventslink").style.color=red2; break;}
		  case 'casestudies.html': {document.getElementById("botcasestudieslink").style.color=red2; break;}
		  case 'products.html': {document.getElementById("botproductslink").style.color=red2; break;}
		  case 'profservices.html': {document.getElementById("botprofserviceslink").style.color=red2; break;}
		  case 'www/web/onlinestore.cfm': {document.getElementById("botonlinestorelink").style.color=red2; break;}
		  case 'contact.html': {document.getElementById("botcontactlink").style.color=red2; break;}
		  case 'staff.html': {document.getElementById("botstafflink").style.color=red2; break;}
		  case 'casestudies.html': {document.getElementById("botcasestudieslink").style.color=red2; break;}
		  case 'sitemap.html': {document.getElementById("botsitemaplink").style.color=red2; break;}
          default: break;         
    }
    
}



function top_nav() {
    	
	var homelinkfile = 'graphics/link_home.jpg';
	var proficiencylinkfile = 'graphics/link_proficiency.jpg';
	var corpprofilelinkfile = 'graphics/link_corpprofile.jpg';
	var profserviceslinkfile = 'graphics/link_profservices.jpg';
	var productslinkfile = 'graphics/link_products.jpg';
	var contactlinkfile = 'graphics/link_contact.jpg';
	
    var sPath = window.location.pathname;
    var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
    switch(sPage) {
          case 'index.html': {homelinkfile = 'graphics/link_home_currpg.jpg'; break;}
		  case 'corpprofile.html': {corpprofilelinkfile = 'graphics/link_corpprofile_currpg.jpg'; break;}
		  case 'proficiency.html': {proficiencylinkfile = 'graphics/link_proficiency_currpg.jpg'; break;}
		  case 'profservices.html': {profserviceslinkfile = 'graphics/link_profservices_currpg.jpg'; break;}
		  case 'products.html': {productslinkfile = 'graphics/link_products_currpg.jpg'; break;}
		  case 'contact.html': {contactlinkfile = 'graphics/link_contact_currpg.jpg'; break;}
          default:  break;         
    }	
	
    document.write ('<div>' +
    '<a href="index.html" onmouseout="MM_swapImgRestore()" onclick="MM_swapImgRestore()" onmouseover="MM_swapImage(\'tophomelink\',\'\',\'graphics/link_home_over.jpg\',1)"><img src="' + homelinkfile +  '" alt="Home" id="tophomelink" /></a>&nbsp;<span class="tinynavdividers">|</span>&nbsp;' +
    '<a href="corpprofile.html" onmouseout="MM_swapImgRestore()" onclick="MM_swapImgRestore()" onmouseover="MM_swapImage(\'topcorpprofilelink\',\'\',\'graphics/link_corpprofile_over.jpg\',1)"><img src="' + corpprofilelinkfile +  '" alt="Corporate Profile" id="topcorpprofilelink" /></a>&nbsp;<span class="tinynavdividers">|</span>&nbsp;' +
    '<a href="profservices.html" onmouseout="MM_swapImgRestore()" onclick="MM_swapImgRestore()" onmouseover="MM_swapImage(\'topprofserviceslink\',\'\',\'graphics/link_profservices_over.jpg\',1)"><img src="' + profserviceslinkfile +  '" alt="Professional Services" id="topprofserviceslink" /></a>&nbsp;<span class="tinynavdividers">|</span>&nbsp;' +
    '<a href="proficiency.html" onmouseout="MM_swapImgRestore()" onclick="MM_swapImgRestore()" onmouseover="MM_swapImage(\'topproficiencylink\',\'\',\'graphics/link_proficiency_over.jpg\',1)"><img src="' + proficiencylinkfile +  '" alt="Proficiency Testing" id="topproficiencylink" /></a>&nbsp;<span class="tinynavdividers">|</span>&nbsp;' +
    '<a href="products.html" onmouseout="MM_swapImgRestore()" onclick="MM_swapImgRestore()" onmouseover="MM_swapImage(\'topproductslink\',\'\',\'graphics/link_products_over.jpg\',1)"><img src="' + productslinkfile +  '" alt="Products" id="topproductslink" /></a>&nbsp;<span class="tinynavdividers">|</span>&nbsp;' +
    '<a href="contact.html" onmouseout="MM_swapImgRestore()" onclick="MM_swapImgRestore()" onmouseover="MM_swapImage(\'topcontactlink\',\'\',\'graphics/link_contact_over.jpg\',1)"><img src="' + contactlinkfile +  '" alt="Contact Us" id="topcontactlink" /></a>' +
    '</div>');		
    
}


function right_nav() {

	var profserviceslinkfile = 'graphics/rightlinks/link_profservices_red2.jpg';
	var onlinestorelinkfile = 'graphics/rightlinks/link_onlinestore_red2.jpg';
	var casestudieslinkfile = 'graphics/rightlinks/link_casestudies_red2.jpg';
	var newseventslinkfile = 'graphics/rightlinks/link_newsevents_red2.jpg';
	
    var sPath = window.location.pathname;
    var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
    switch(sPage) {
		  case 'profservices.html': {profserviceslinkfile = 'graphics/rightlinks/link_profservices_black.jpg'; break;}
		  case 'www/web/onlinestore.cfm': {onlinestorelinkfile = 'graphics/rightlinks/link_onlinestore_black.jpg'; break;}
		  case 'casestudies.html': {casestudieslinkfile = 'graphics/rightlinks/link_casestudies_black.jpg'; break;}
		  case 'newsevents.html': {newseventslinkfile = 'graphics/rightlinks/link_newsevents_black.jpg'; break;}
          default:  break;         
    }	

    displayASCLDsymbol();
	
    document.write ('<br /><br />' + 	
	'<div class="highlightedfeatures">' +
	'<a href="profservices.html" onmouseout="MM_swapImgRestore()" onclick="MM_swapImgRestore()" onmouseover="MM_swapImage(\'rightprofserviceslink\',\'\',\'graphics/rightlinks/link_profservices_red.jpg\',1)"><img src="' + profserviceslinkfile +  '" alt="Professional Services" id="rightprofserviceslink" /></a>' +
	'</div>' +
    '<div class="right_link">' +
	'<a class="right_link" href="profservices.html#profconsultation">Professional Consultation</a>' +
	'<br /><a class="right_link" href="profservices.html#evidence">Case Evidence Analysis</a>' +
    '<br /><a class="right_link" href="profservices.html#expert">Expert Testimony</a>' +
	'<br /><a class="right_link" href="staff.html">Staff CVs</a>' +
    '<br /><a class="right_link" href="http://www.serological.com/pdfs/attachments/schedservices.pdf" target="self">Schedule of Services</a>' +
 	'<br /><a class="right_link" href="http://www.serological.com/pdfs/attachments/FEES_2010.pdf" target="self">Schedule of Fees</a>' +
	'<br /><a class="right_link" href="http://www.serological.com/pdfs/attachments/SERI_Case_Submission_Form.doc" target="self">Case Submission Form</a>' +
	'</div>' +
	'<br />' +
	'<div class="highlightedfeatures">' + 
	'<a href="www/web/onlinestore.cfm" onmouseout="MM_swapImgRestore()" onclick="MM_swapImgRestore()" onmouseover="MM_swapImage(\'rightonlinestorelink\',\'\',\'graphics/rightlinks/link_onlinestore_red.jpg\',1)"><img src="' + onlinestorelinkfile +  '"" alt="Online Catalog" id="rightonlinestorelink" /></a>' +
    //'<br /><span style="margin-left:1px;">SERI Spotlight</span>' +
	'</div>' +
	'<div class="right_link">' +
	//'<a href="pdfs/ATTACHMENTS/PSA SEMIQUANT LINKS.pdf" rel="external">Seratec PSA Semiquant</a>' +
    //'<br /><a class="right_link" href="pdfs/ATTACHMENTS/HEMDIRECT LINKS.pdf" rel="external">Seratec HemDirect</a>' +
    '<a class="right_link" href="products.html">Product Information</a>' +
	'<br /><a class="right_link" href="pdfs/attachments/SalesOrderForm.pdf" target="self">Sales Order Form (PDF)</a>' +
	'<br /><a class="right_link" href="pdfs/attachments/pricelist.pdf" target="self">Price List (PDF)</a>' +
    //'<br /><a class="right_link" href="onlinestore.cfm">e-Catalog</a>' +
	'</div>' +
    '<br />' +
	'<div class="highlightedfeatures" style="margin-left:-1px;">' +
	'<a href="casestudies.html" onmouseout="MM_swapImgRestore()" onclick="MM_swapImgRestore()" onmouseover="MM_swapImage(\'rightcasestudieslink\',\'\',\'graphics/rightlinks/link_casestudies_red.jpg\',1)"><img src="' + casestudieslinkfile +  '" alt="Online Store" id="rightcasestudieslink" /></a>' +
	'</div>' +
	'<div class="right_link">' +
	'<br /><a class="right_link" href="casestudies.html#pendleton">Marlon Pendleton Exonerated</a>' +
	'<br /><a class="right_link" href="casestudies.html#rosling">Rosling Guilty of Deliberate<br />Homicide</a>' +
	'<br /><a class="right_link" href="casestudies.html">Read More...</a>' +
	'</div>' +
    '<br />' +
	'<div class="highlightedfeatures">' +
	'<a href="newsevents.html" onmouseout="MM_swapImgRestore()" onclick="MM_swapImgRestore()" onmouseover="MM_swapImage(\'rightnewseventslink\',\'\',\'graphics/rightlinks/link_newsevents_red.jpg\',1)"><img src="' + newseventslinkfile +  '" alt="Online Store" id="rightnewseventslink" /></a>' +
	'</div>' +
	'<div class="right_link">' +
	'<a class="right_link" href="newsevents.html#off_the_shelf">Off-the-Shelf Proficiency Program</a>' +
	'<br /><a class="right_link" href="newsevents.html#seri_in_media">SERI Cases In The Media</a>' +
	'<br /><a class="right_link" href="newsevents.html#employment">Employment Opportunities</a>' +
    '<br /><a class="right_link" href="newsevents.html#training">Training Courses</a>' +
    '</div>');

}


function searchForm () {
document.write('<form name="search" method="post" action="search.cfm">' +
	  '<input name="searchtext" id="searchtext" value="" style="width:100px;" type="text" class="button">&nbsp;&nbsp;' +
	  '<input value="search" type="submit" style="width:40px;" id="submit" class="button" onmouseover="this.style.color=\'#ff0000\'" onmouseout="this.style.color=\'#000000\'">' +
	  '</form>');
}


function copyrightNotice () {
//document.write('<a href="sitemap.html" class="bottom_mini_link">site map</a>');
var thisdate = new Date();
thisyr = thisdate.getFullYear();
document.write('<div class="copy">&copy; ' + thisyr +  ' Serological Research Institute All Rights Reserved</div>');

}


function displayASCLDsymbol () {
	document.write('<a href="' + ASCLD_url + '" rel="external"><img src="graphics/ascld_symbol.jpg" alt="ASCLD/LAB Accredited" /></a>');
}




