
/////////////////////////////////////////////////////////////
////  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);

}

function winopen_cntr(WinName,url,breite,hoehe) {
	var l = (screen.availWidth - breite) / 2;
	var t = (screen.availHeight - hoehe) / 2;
	//var url = "";
	NF = window.open(url,"mainwindow","resizable=yes,scrolling=yes,width="+breite+",height=" +hoehe+",left="+l+",top="+t+";");
	NF.focus; 
}


/////////////////////////////////////////////////////////////
////  SELECTBOXES
/////////////////////////////////////////////////////////////
//STUDIENORTE
function surfto(form) {
var myindex=form.ort.selectedIndex;
if (form.ort.options[myindex].value != "0") {
window.location="/viamedici/studienort_"+form.ort.options[myindex].value+"/index.html";}
}

//LÄNDER
function surfto2(form) {
var myindex=form.land.selectedIndex;
if (form.land.options[myindex].value != "0") {
window.location="/viamedici/laender/"+form.land.options[myindex].value+"/index.html";}
}


//REZENSIONEN
function surfto3(form) {
var myindex=form.kategorie.selectedIndex;
if (form.kategorie.options[myindex].value != "0") {
window.location="/viamedici/rezensionen/__"+form.kategorie.options[myindex].value+".html";}
}


/////////////////////////////////////////////////////////////
////  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;



/////////////////////////////////////////////////////////////
////  N A V I G A T I O N
/////////////////////////////////////////////////////////////

document.writeln ('<style type="text/css">');
//document.writeln ('#divCont {position:absolute; z-index:1; left:10px; top:245px; height:600px; width:170px; visibility:hidden;}');
//document.writeln ('.clTop {position:absolute; z-index:1; width:170px; line-height:6px;}');
//document.writeln ('.clSub {position:absolute; z-index:1; left:10px; top:15px; width:120px; line-height:9px;}');

document.writeln ('#divCont {position:absolute; z-index:1; left:10px; top:275px; height:600px; width:111px; visibility:hidden; }');
document.writeln ('.clTop {position:absolute; z-index:1; width:111px; line-height:6px;}');
document.writeln ('.clSub {position:absolute; z-index:1; left:10px; top:15px; width:101px; line-height:9px;}');






/*** This sets the style for the links inside the menu. ***/
document.writeln ('#divCont .clTop a {color:#000066; font-family:verdana,arial,helvetica,sans-serif; font-size:8pt; text-decoration:none;}');
document.writeln ('#divCont .clTop {color:#000066; font-family:verdana,arial,helvetica,sans-serif; font-size:8pt; text-decoration:none;}');
document.writeln ('#divCont .clTop a:hover {color:#000066; text-decoration: underline;}');
document.writeln ('#divCont .clTop .clSub a {color:#000066; font-family:verdana,arial,helvetica,sans-serif; font-size:7pt; font-weight:normal; text-decoration:none;}');
document.writeln ('#divCont .clTop .clSub a:hover {color:#ff0000;text-decoration:none;}');
document.writeln ('</style>');


/**********************************************************************************   
FoldoutMenu 
*   Copyright (C) 2001 Thomas Brattli
*   This script was released at DHTMLCentral.com
*   Visit for more great scripts!
*   This may be used and changed freely as long as this msg is intact!
*   We will also appreciate any links you could give us.
*
*   Made by Thomas Brattli
*
*   Script date: 09/04/2001 (keep this date to check versions) 
*********************************************************************************/
function lib_bwcheck(){ //Browsercheck (needed)
	this.ver=navigator.appVersion
	this.agent=navigator.userAgent
	this.dom=document.getElementById?1:0
	this.opera5=(navigator.userAgent.indexOf("Opera")>-1 && document.getElementById)?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0; 
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
	this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6
	this.mac=this.agent.indexOf("Mac")>-1
	this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5)
	return this
}
var bw=lib_bwcheck()

/*** variables you can configure ***/

FoldNumber = 18	//How many toplinks do you have?
var stayFolded = false			//Stay open when you click a new toplink?
foldImg = 1						//Do you want images (if not set to 0 and remove the images from the body)?
mainOffsetY = 1					//Vertical space adjustment between the main items, in pixels.

//This is the default image.
//Remember to change the actual images in the page as well, but remember to keep the name of the image.
var unImg=new Image();
unImg.src='/viamedici/images/pfeil.gif'

var exImg=new Image();					//Making an image variable...
exImg.src='/viamedici/images/pfeil_runter.gif'	//...this is the source of the image that it changes to when the menu expands.

// NOTE: if you change the position of divCont from absolute to relative, you can put the foldoutmenu in a table.
// HOWEVER it will no longer work in netscape 4. If you wish to support netscape 4, you have to use absolute positioning.

/*** There should be no need to change anything beyond this. ***/

// A unit of measure that will be added when setting the position of a layer.
var px = bw.ns4||window.opera?"":"px";

if(navigator.userAgent.indexOf('Opera')>-1 && document.getElementById){ //Opera 5 resize fix.
	scrX= innerWidth; scrY= innerHeight;
	document.onmousemove= function(){
		if(scrX<innerWidth-10 || scrY<innerHeight-10 || scrX>innerWidth+10 || scrY>innerHeight+10){
			scrX = innerWidth;
			scrY = innerHeight;
			initFoldout();
		}
	};
}

//object constructor...
function makeMenu(obj,nest){
	nest= (!nest)?"":'document.'+nest+'.';
	this.el= bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):document.getElementById(obj);	
   	this.css= bw.ns4?this.el:this.el.style;
	this.ref= bw.ns4?this.el.document:document;		
	this.x= (bw.ns4||bw.opera5)?this.css.left:this.el.offsetLeft;
	this.y= (bw.ns4||bw.opera5)?this.css.top:this.el.offsetTop;
	//this.h= (bw.ie||bw.ns6)?this.el.offsetHeight:bw.ns4?this.ref.height:bw.opera5?this.css.pixelHeight:0;
	this.h= (bw.ie||bw.ns6||bw.opera5)?this.el.offsetHeight:bw.ns4?this.ref.height:0;
    this.vis= b_vis;
	this.hideIt= b_hideIt;
    this.showIt= b_showIt;
    this.moveIt= b_moveIt;
	return this
}
//object methods...
function b_showIt(){this.css.visibility='visible'}
function b_hideIt(){this.css.visibility='hidden'}
function b_vis(){if(this.css.visibility=='hidden' || this.css.visibility=='HIDDEN' || this.css.visibility=='hide') return true;}
function b_moveIt(x,y){this.x=x; this.y=y; this.css.left=this.x+px; this.css.top=this.y+px}

/************************************************************************************
This is the function that changes the sub menus to folded or unfolded state.
************************************************************************************/
function menu(num){
	if(bw.bw){
		if (!stayFolded){
			for (var i=0; i<oSub.length; i++){
				if (i!=num){
					oSub[i].hideIt()
					if (foldImg)oTop[i].ref["imgA"+i].src = unImg.src
				}
			}
			for(var i=1; i<oTop.length; i++){
				oTop[i].moveIt(0,oTop[i-1].y+oTop[i-1].h)
			}
		}
		if (oSub[num].vis()){
			oSub[num].showIt()
			if (foldImg)oTop[num].ref["imgA"+num].src = exImg.src
		}else{
			oSub[num].hideIt()
			if(foldImg)oTop[num].ref["imgA"+num].src = unImg.src
		}
		for(var i=1; i<oTop.length; i++){ 
			if (!oSub[i-1].vis()) oTop[i].moveIt(0,oTop[i-1].y+oTop[i-1].h+oSub[i-1].h+mainOffsetY) 
			else oTop[i].moveIt(0,oTop[i-1].y+oTop[i-1].h+mainOffsetY)
		}
	}
}

/*********************************************************************
The init function... there should be no need to change anything here.
*********************************************************************/
function initFoldout(){
	//Fixing the browsercheck for opera... this can be removed if the browsercheck has been updated!!
	bw.opera5 = (navigator.userAgent.indexOf("Opera")>-1 && document.getElementById)?true:false
	if (bw.opera5) bw.ns6 = 0

	oTop = new Array()
	oSub = new Array()
	//Making the objects and hiding the subs...
	for (var i=0; i<FoldNumber; i++){
		oTop[i] = new makeMenu('divTop'+i,'divCont')
		oSub[i] = new makeMenu('divSub'+i,'divCont.document.divTop'+i)
		oSub[i].hideIt()
	}
	
	//Positioning the top objects...
	oTop[0].moveIt(0,0)
	for (var i=1; i<oTop.length; i++){
		oTop[i].moveIt(0, oTop[i-1].y+oTop[i-1].h+mainOffsetY)
	}
	
	//Making the containing menu object and showing it...
	oCont = new makeMenu('divCont')
	oCont.showIt()
}

// If the browser is ok, the script is started onload...
if(bw.bw) onload = initFoldout;


function footer(){
document.writeln('<table width="750">');
document.writeln('<tr>');
document.writeln('<!--SPACE-->');
document.writeln('<td width="130" class="druck">&nbsp;</td>');
document.writeln('<!--END SPACE-->');
document.writeln('<td>');
document.writeln('<HR><div class=small><center><a href="javascript:print();">Druckversion</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a class="small" href="/viamedici/static/formulare/kommentar.html" target="_blank">Kommentar zu diesem Artikel schreiben</a><br><br>&copy;&nbsp;<a class="small" href="/index.html">Georg Thieme Verlag</a> 2010&nbsp;&nbsp;|&nbsp;&nbsp;<a class="small" href="/viamedici/impressum/georg_thieme_verlag/via_medici.html">Impressum</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a class="small" href="/service/datenschutz.html">Datenschutz</a><BR>Bei technischen Problemen bitte Nachricht an <a class="small"s href="mailto:webmaster@thieme.de">webmaster@thieme.de</a></center></small></center>');
document.writeln('</div></td></tr></table><br><br>');

//INTERNES POPUP SEITENABHÄNGIG
onerror = Fehler;function Fehler(){return true;}
function popup(url)
{
if (window.name != "KeinPopupZeigen")
	{
	window.name = "KeinPopupZeigen";
	var breite ="396";
	var hoehe="331";
	var l = (screen.availWidth - breite) / 2;
	var t = (screen.availHeight - hoehe) / 2;
	//var url = "";
	NF = window.open(url,"mainwindow","resizable=no,scrolling=yes,width="+breite+",height=" +hoehe+",left="+l+",top="+t+";");
	NF.focus; 
	}
} 

//if (self.location.href.indexOf('/viamedici/index.html')!= -1)
	//{
	//popup("/viamedici/static/popups/popup1.html");
	//}

//ENDE INTERNES POPUP SEITENABHÄNGIG


//Falk-Tag für Popup überall ausser im Exklusivbereich 
if (self.location.href.indexOf('/viamedici/exklusiv/')== -1)
	{
document.write('<!-- BEGIN ADITIONTAG Website-Tag Für Website: viamedici, Werbeplatz: Layer, Typ: poplayer, Größe: pop/layer --><script type="text/javascript" src="http://imagesrv.adition.com/js/adition.js"></script><script type="text/javascript" src="http://adfarm1.adition.com/js?wp_id=3775"></script><!-- END ADITIONTAG -->');
	}

}

function WriteTopOfPage()
	{
	
	}

//Workaround lädt browserobject nach, für Navigation unter IE7 und Opera
document.write('<script language="JavaScript" src="/viamedici/js/all_ie7.js"></script>')








