
function startseite()
{
	homepageurl='http://www.stada.de/inc/scripts.js.asp';
	hpstyle.style.behavior='url(#default#homepage)';
	hpstyle.setHomePage(homepageurl);
}

function bookmark(t) {
	var bookmarkwin=window.open(t,"bookmark","dependent=yes,screenX=50,screenY=50,toolbar=no,width=640,height=400,directories=no,status=no,scrollbars=yes,resizable=no,menubar=no");
	bookmarkwin.focus();
}


function SuchCleaner(FeldId)
{
	if (FeldId.value == 'Suchbegriff eingeben') {
		FeldId.value='';
	}
}

function SuchCleanerEng(FeldId)
{
	if (FeldId.value == 'Enter query') {
		FeldId.value='';
	}
}


function turnOff(dname) {
	document.getElementById(dname).style.display = 'none';
	document.getElementById(dname+'b').style.display = 'none';
}

function turnOn(dname) {
	document.getElementById(dname).style.display = 'block';
	document.getElementById(dname+'b').style.display = 'block';	
}

function Zoomer(t,w,h)
{
	var target = t;

	//----> Fenster Zentrieren
	toppos	= Math.round((screen.height-h)/2);
	leftpos	= Math.round((screen.width-w)/2);
	
	//----> Fenster Aufrufen
	var paras = "screenx=0,screeny=0,top="+ toppos +",left="+ leftpos +",dependent=yes,toolbar=no,width=" + w + ",height=" + h + ",directories=no,status=no,scrollbars=yes,resizable=yes,menubar=no";
	winInfo=window.open(target,"PopupStart",paras);
	//----> Fensterfocus setzten
	winInfo.focus();
};

flash = false;
if ((navigator.plugins) && (navigator.plugins.length > 0))
{
	for (a = 0; a < navigator.plugins.length; a++) 
	{
      if ((navigator.plugins[a].name.indexOf('Flash') != -1) &&
          (parseInt(navigator.plugins[a].name) >= 4)) 
      {
         flash = true;
         break;
      }
	}
}
if ((navigator.mimeTypes) && (navigator.mimeTypes.length > 0)) 
{
	for (a = 0; a < navigator.mimeTypes.length; a++) 
	{	
	  if (navigator.mimeTypes[a].type.indexOf("application/x-shockwave-flash")>= 0) 
	  {	
         flash = true;
	  }	
	}
}



var TimeToFade = 1000.0;

function fade(eid)
{
  var element = document.getElementById(eid);
  if(element == null)
    return;
   
  if(element.FadeState == null)
  {
    if(element.style.opacity == null
        || element.style.opacity == ''
        || element.style.opacity == '1')
    {
      element.FadeState = 2;
    }
    else
    {
      element.FadeState = -2;
    }
  }
   
  if(element.FadeState == 1 || element.FadeState == -1)
  {
    element.FadeState = element.FadeState == 1 ? -1 : 1;
    element.FadeTimeLeft = TimeToFade - element.FadeTimeLeft;
  }
  else
  {
    element.FadeState = element.FadeState == 2 ? -1 : 1;
    element.FadeTimeLeft = TimeToFade;
    setTimeout("animateFade(" + new Date().getTime() + ",'" + eid + "')", 33);
  }  
}

function animateFade(lastTick, eid)
{  
  var curTick = new Date().getTime();
  var elapsedTicks = curTick - lastTick;
 
  var element = document.getElementById(eid);
 
  if(element.FadeTimeLeft <= elapsedTicks)
  {
    element.style.opacity = element.FadeState == 1 ? '1' : '0';
    element.style.filter = 'alpha(opacity = '
        + (element.FadeState == 1 ? '100' : '0') + ')';
    element.FadeState = element.FadeState == 1 ? 2 : -2;
    return;
  }
 
  element.FadeTimeLeft -= elapsedTicks;
  var newOpVal = element.FadeTimeLeft/TimeToFade;
  if(element.FadeState == 1)
    newOpVal = 1 - newOpVal;

  element.style.opacity = newOpVal;
  element.style.filter = 'alpha(opacity = ' + (newOpVal*100) + ')';
 
  setTimeout("animateFade(" + curTick + ",'" + eid + "')", 33);
}

 function CreateBookmarkLink() {

 title = "Hemofarm koncern"; 
  // Blogger - Replace with <$BlogItemTitle$> 
  // MovableType - Replace with <$MTEntryTitle$>

 url = "http://www.hemofarm.com";
  // Blogger - Replace with <$BlogItemPermalinkURL$> 
  // MovableType - Replace with <$MTEntryPermalink$>
  // WordPress - <?php bloginfo('url'); ?>

	if (window.sidebar) { // Mozilla Firefox Bookmark
		window.sidebar.addPanel(title, url,"");
	} else if( window.external ) { // IE Favorite
		window.external.AddFavorite( url, title); }
	else if(window.opera && window.print) { // Opera Hotlist
		return true; }
 }

 

