
/////////////////////////////////////////////////////////////
////  WINOPEN
/////////////////////////////////////////////////////////////

function winopen(WinName,url,x,y) 
{
   var param='"toolbar=no,menubar=no,scrollbars=yes,resizable=yes,width='+x+',height='+y+'"';
   msg=open(url,WinName,param);
}



/////////////////////////////////////////////////////////////
////  FLASHDETECT
/////////////////////////////////////////////////////////////



// Flash Version Detector  v1.2.1
// documentation: http://www.dithered.com/javascript/flash_detect/index.html
// license: http://creativecommons.org/licenses/by/1.0/
// code by Chris Nott (chris[at]dithered[dot]com)
// with VBScript code from Alastair Hamilton (now somewhat modified)


function isDefined(property) 
{
  return (typeof property != 'undefined');
}

var flashVersion = 0;
function getFlashVersion() 
{
   var latestFlashVersion = 8;
   var agent = navigator.userAgent.toLowerCase(); 
   
   // NS3 needs flashVersion to be a local variable
   if (agent.indexOf("mozilla/3") != -1 && agent.indexOf("msie") == -1) 
   {
      flashVersion = 0;
   }
   
   // NS3+, Opera3+, IE5+ Mac (support plugin array):  check for Flash plugin in plugin array
   if (navigator.plugins != null && navigator.plugins.length > 0) 
   {
      var flashPlugin = navigator.plugins['Shockwave Flash'];
      if (typeof flashPlugin == 'object') 
	  { 
         for (var i = latestFlashVersion; i >= 3; i--) 
		 {
            if (flashPlugin.description.indexOf(i + '.') != -1) 
			{
               flashVersion = i;
               break;
            }
         }
      }
   }

   // IE4+ Win32:  attempt to create an ActiveX object using VBScript
   else if (agent.indexOf("msie") != -1 && parseInt(navigator.appVersion) >= 4 && agent.indexOf("win")!=-1 && agent.indexOf("16bit")==-1) 
   {
      var doc = '<scr' + 'ipt language="VBScript"\> \n';
      doc += 'On Error Resume Next \n';
      doc += 'Dim obFlash \n';
      doc += 'For i = ' + latestFlashVersion + ' To 3 Step -1 \n';
      doc += '   Set obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash." & i) \n';
      doc += '   If IsObject(obFlash) Then \n';
      doc += '      flashVersion = i \n';
      doc += '      Exit For \n';
      doc += '   End If \n';
      doc += 'Next \n';
      doc += '</scr' + 'ipt\> \n';
      document.write(doc);
   }
      
   // WebTV 2.5 supports flash 3
   else if (agent.indexOf("webtv/2.5") != -1) flashVersion = 3;

   // older WebTV supports flash 2
   else if (agent.indexOf("webtv") != -1) flashVersion = 2;

   // Can't detect in all other cases
   else 
   {
      flashVersion = flashVersion_DONTKNOW;
   }

   return flashVersion;
}

flashVersion_DONTKNOW = -1;



function footer()
{
   document.writeln('<center><table width="85%" cellspacing="0" cellpadding="0">');
   document.writeln('<tr><td></td><td height="1" background="/connect/en/images/punkte.gif"></td><td></td></tr>');
   document.writeln('<tr>');
   document.writeln('<td></td><td><br>');
   document.writeln('<small><center>&copy;&nbsp;<a href="http://www.thieme.com" class="content" target="_blank">Thieme</a> 2010&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http://www.thieme.com/index.php?option=com_content&view=article&id=200&Itemid=172" class="content">Imprint</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="/connect/en/sitemap.html" class="content">Site Map</a>&nbsp;&nbsp;|&nbsp;&nbsp;All rights reserved</small><br>Technical Comments/Problems: <a href="mailto:webmaster@thieme.de" class="content">webmaster@thieme.de</a>');
   document.writeln('</td><td></td></tr></table><br></center>');
}


///TEXT EIN-UND AUSKLAPPEN//////////////////
	function show_text(id,label) 
	{

		//Minuszeichen vorladen
		imgMinus = new Image();
		imgMinus.src = "images/minus.gif";

		label = document.getElementById(label);
		plus = "images/plus.gif";
		minus = "images/minus.gif";

		if(label.src.match(/minus.gif/)) 
		{
			text = document.getElementById(id);
			text.style.display = "none";
			label.src = plus;
		} 
		else 
		{
			text = document.getElementById(id);
			text.style.display = "";
			label.src = imgMinus.src;
		}
	}
	
	
	//SPRACHAUSWAHL
function surfto(form) 
{
   var myindex = form.language.selectedIndex;
   if (form.language.options[myindex].value != "0") 
   {


		var uOld = window.location;
		s = new String(uOld);
		var uNew = s.replace("/en/","/de/");
		window.location.href =  uNew;
	}
}


function xsearchsurfto(form) 
{
   var myindex = form.language.selectedIndex;
   if (form.language.options[myindex].value != "0") 
   {

		window.location.href =  "http://ebiblio.thieme.de/xsearch/Xsearch?showSearchForm=true&guiLanguage=de&medicine=all&medicine=tc&medicine=ebooks-en&medicine=ebooks-de&chemistry=all&chemistry=tc&chemistry=sos&chemistry=ps&chemistry=roempp&language=all&language=en&language=de";
	}
}