function domainRedir(path, force) { 
  if(path != '/') {
    if (location.pathname != '/' || location.hash.length == 0 || force) {
      var href = location.protocol + '//' + location.hostname
      if (!location.port.test("")) { href += ':' + location.port; }
      if (location.pathname == '/' || force) { href += '/#' + path; }
      else { href += '/#' + location.pathname; }
      location.href = href;
    }
  }
}

function setState(url) {
  if(!url.test((/^http(?:s)?:\/\//)) ) {
    SWFAddress._value = null;
    SWFAddress.setValue(url);
    return false;
  } else { return true; }
}

	  
var sa_change = false;
SWFAddress.onChange = function() {  
 if (sa_change) {
  et_pagename = SWFAddress.getValue();
  et_eC_Wrapper("phsyvm", et_pagename, "");
 } else sa_change = true;
}

var toSleep = true; 
  function stopTimer(){
    toSleep=false;
  }
  function clickTracker(LinkName){
    var secureID="phsyvm";
    var redirectUrl="http://www.etracker.de/skin/de.def/img/1px.gif";
    etrackerSink=new Image(1,1);toSleep=true;
    etrackerSink.src="http://www.etracker.de/lnkcnt.php?et="+secureID+"&url="+
    redirectUrl+"&lnkname="+LinkName;
    etrackerSink.onload=stopTimer;
    if(toSleep==true) {
      maxDelay(500);
    }
    return true;
  }
  function maxDelay(gap){
    var then,now;
    then=new Date().getTime();
    now=then; 
    while((toSleep==true) && ((now-then)<gap)) {
      now=new Date().getTime();
    }
  }