var link = "http://www.akzent-invest.de";
// protokoll + host wenn moeglich dynamisch ermitteln
if (window.location.protocol != null && window.location.host != null) {
    link = window.location.protocol + "//" + window.location.host;
}
var url = new String(window.location);
if (url != null) {
    // wo fängt die session id an?
    var suchstring = "jsessionid=";
    var startpos = url.indexOf(suchstring);
    var endpos = url.indexOf("?");
    // wenn "jsessionid=" gesetzt ist
    if (startpos != -1) {
      // wenn "?" gesetzt ist, sonst geht session-id bis zum Ende der Url
      if (endpos != -1) {
            var sessionid = url.substring(startpos+suchstring.length,endpos); 
      } else {
            var sessionid = url.substring(startpos+suchstring.length,url.length); 
      }
      link = link + "/ainvest/index.jsp;jsessionid=" + sessionid;
    }
}

 // <![CDATA[
 var props = new Object();
        props.swf = "/repository/1/akzentinvest/_home/_imagesDynamo/logoFlash.swf?clickTag="+link+"&clickTarget=_self";
        props.id = "fma";
        props.w = "186";
        props.h = "76";
        props.c = "#fff";
 var fo = new SWFObject( props );
 registerSWFObject( fo,"fma-swf");
 // ]]>