
var actionStrings = new Array();
actionStrings['scitation'] = '<span class="top"><strong>Scitation Is</strong><a class=\"btn_close\" onclick=\"return hideNoActionPopup()\" href=\"javascript:hideNoActionPopup()\"><img src=\"/jhtml/scitation/homePage/images/btn_close.gif\" width=\"13\" height=\"11\" border=\"0\"></a></span><ul><li>Nearly two million records from 30 scholarly publishers</li><li>Hundreds of journals, thousands of conference proceedings, as well as books, standards, patents, dictionaries, databases, and magazines</li><li>A quarter of a million records added annually</li><li><a class="cov" href="http://scitation.aip.org/labs/">Innovation </a></li><li><a class="cov" href="http://link.aip.org/links/showjournal.jsp?meta=all">Scitation Publication Coverage</a></li></ul><span class="bottom"><a href="/jhtml/scitation/coverage.jsp"><img src=\"/jhtml/scitation/homePage/images/btn_minfo.gif\" width=\"55\" height=\"11\" border=\"0\" alt="more info"></a></span>';
actionStrings['spin'] = '<span class="top"><strong>The SPIN Database Is</strong><a class=\"btn_close\" onclick=\"return hideNoActionPopup()\" href=\"javascript:hideNoActionPopup()\"><img src=\"/jhtml/scitation/homePage/images/btn_close.gif\" width=\"13\" height=\"11\" border=\"0\"></a></span><ul><li>2.25 million article abstracts from leading physics publications including publications hosted on or off the Scitation platform</li><li>SPIN database searching requires a subscription to a Scitation-hosted publication</li><li>Scitation-hosted full text is available to publication subscribers or via online purchase with inks to source journals for off-platform articles</li><li><a class="cov" href="/jhtml/scitation/spincodens.jsp">SPIN Publication Coverage</a></li></ul><span class="bottom"><a href="/jhtml/scitation/coverage.jsp"><img src=\"/jhtml/scitation/homePage/images/btn_minfo.gif\" width=\"55\" height=\"11\" border=\"0\" alt="more info"></a></span>';
actionStrings['pubmed'] = '<span class="top"><strong>Searching PubMed&reg;/MEDLINE&reg;</strong><a class=\"btn_close\" onclick=\"return hideNoActionPopup()\" href=\"javascript:hideNoActionPopup()\"><img src=\"/jhtml/scitation/homePage/images/btn_close.gif\" width=\"13\" height=\"11\" border=\"0\"></a></span><ul><li>PubMed comprises more than 19 million citations for biomedical articles from MEDLINE and life science journals. Citations may include links to full-text articles from PubMed Central or publisher web sites.</li><li>PubMed/MEDLINE searches link directly to the PubMed website. Search results pages on the PubMed site are displayed in a new browser window.</li></ul>';
actionStrings['scitopia'] = '<span class="top"><strong>Searching Scitopia</strong><a class=\"btn_close\" onclick=\"return hideNoActionPopup()\" href=\"javascript:hideNoActionPopup()\"><img src=\"/jhtml/scitation/homePage/images/btn_close.gif\" width=\"13\" height=\"11\" border=\"0\"></a></span><ul><li> Scitopia (<a href="http://www.scitopia.org/" target="_blank">http://www.scitopia.org</a>) is a vertical search portal designed to give you access to the most trusted sources in science and engineering, including peer-reviewed journal articles, proceedings papers, standards, patents, and government reports. You can search more than 3.5 million documents (spanning 350 years!) from 21 publishers. New content is added daily.</li></ul>';


actionStrings['rss'] = '<span class="top"><a class=\"btn_close\" onclick=\"return hideNoActionPopup()\" href=\"javascript:hideNoActionPopup()\"><img src=\"/jhtml/scitation/homePage/images/btn_close.gif\" width=\"13\" height=\"11\" border=\"0\"></a></span>To save any search query as a dynamic RSS feed, right-click the RSS button, copy the URL, and add it to your feedreader or RSS-aware browser. As new articles are published that meet your search criteria, you will be automatically alerted via your reader or browser.';

actionStrings['rsssearch'] = '<span class="top"><strong>Create Your Own Dynamic RSS Feed</strong><a class=\"btn_close\" onclick=\"return hideNoActionPopup()\" href=\"javascript:hideNoActionPopup()\"><img src=\"/jhtml/scitation/homePage/images/btn_close.gif\" width=\"13\" height=\"11\" border=\"0\"></a></span><ul><li>To save any search query as a dynamic RSS feed, perform your search, then on the results page right-click the RSS button, copy the URL, and add it to your feedreader or RSS-aware browser. As new articles are published that meet your search criteria, you will be automatically alerted via your reader or browser.</li></ul>';
  
function showNoActionPopup(x,src) {
    var container = document.getElementById('noactions');
    
	if (!container) {
      container = document.createElement('DIV');
      innercontainer = document.createElement('DIV');
      container.className = 'popupwrap';
      container.id = 'noactions';      
      container.appendChild(innercontainer);
      document.body.appendChild(container);
    }

    //innercontainer.innerHTML = actionStrings[x]  + '<span class="bottom"><a class="more-info" href="/jhtml/scitation/coverage.jsp">more info</a><a href="/jhtml/scitation/comparison.pdf" target="_blank"><img src=\"/jhtml/scitation/homePage/images/btn_ccomparison.gif\" width=\"111\" height=\"11\" border=\"0\" alt="coverage comparison"></a></span>';
    innercontainer.innerHTML = actionStrings[x]  + '';
	var width = container.offsetWidth;
	
	var l = '35px';
	var t = '90px';
	
	/*search page position*/	
	if (src == 'sp') {
		l = '150px';
		t = '1px';
	}
	
	/*rss page position*/	
	if (src == 'rss') {
		l = '350px';
		t = '75px';
	}
	
	/*rss search popup position*/	
	if (src == 'rsssearch') {
		l = '400px';
		t = '100px';
	}

	container.style.left = l;
    container.style.top = t;
    container.style.visibility = 'visible';
	return false;

}

function hideNoActionPopup() {
  var container = document.getElementById('noactions');
  container.style.left = '-9000px';
}

sfHover = function() {
	var sfEls = document.getElementById("tab-nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

