
/* * */
document.domain = "maxblue.de";


var MB_DOMAIN   = "www.maxblue.de";   // www.maxblue.de
var MB_HTTP_DOMAIN = "http://"+MB_DOMAIN;  // http://www.maxblue.de
var newWin;      // variable for popup-functions
var newBrowser;      // varaible for new browser-window

var sessionId = "";
var applicationId = "";
var dbsId ="";
var appIds = "";

var isMBLotseActive = false;
var MBCLIPPING = true;
var UMFRAGE_AKTIV = false;
var FEEDBACK = true;
var FRAMELOADER = true;
var AUTOLOGIN = false;
var NEW_TRACKING = true;
// env check vars
 
var marked = (typeof marked == 'undefined')?('home'):(marked);

/***/
var fbpCounter = 0;
var feedBackPages = new Array();
var feedBackIds = new Array();
feedBackPages[fbpCounter] = 'mkt_maerkteuebersicht.html';
feedBackIds[fbpCounter++] = '00021';
feedBackPages[fbpCounter] = 'mkt_akt_aktien.html';
feedBackIds[fbpCounter++] = '00022';
feedBackPages[fbpCounter] = 'mkt_anl_anleihen.html';
feedBackIds[fbpCounter++] = '00023';
feedBackPages[fbpCounter] = 'mkt_opt_optionsscheincenter.html';
feedBackIds[fbpCounter++] = '00024';
feedBackPages[fbpCounter] = 'mkt_fon_fonds.html';
feedBackIds[fbpCounter++] = '00025';
feedBackPages[fbpCounter] = 'mkt_zer_zertifikate.html';
feedBackIds[fbpCounter++] = '00026';
feedBackPages[fbpCounter] = 'mkt_nws_news.html';
feedBackIds[fbpCounter++] = '00027';
feedBackPages[fbpCounter] = 'ana_analyse.html';
feedBackIds[fbpCounter++] = '00028';
feedBackPages[fbpCounter] = 'pro_produkte.html';
feedBackIds[fbpCounter++] = '00029';
feedBackPages[fbpCounter] = 'sud_serviceunddialog.html';
feedBackIds[fbpCounter++] = '00030';
feedBackPages[fbpCounter] = 'mkt_vid_depot_';
feedBackIds[fbpCounter++] = '00031';
feedBackPages[fbpCounter] = 'myx_personalstartpage.html';
feedBackIds[fbpCounter++] = '00032';
feedBackPages[fbpCounter] = 'sud_sic_sicherheit.html';
feedBackIds[fbpCounter++] = '00048';
feedBackPages[fbpCounter] = 'sud_faq_faqs.html';
feedBackIds[fbpCounter++] = '00049';
feedBackPages[fbpCounter] = 'home_suchergebnis';
feedBackIds[fbpCounter++] = '00050';
feedBackPages[fbpCounter] = 'home_jahresausblick2010_dreiexperten';
feedBackIds[fbpCounter++] = '00114';


var arrayMouseMoveHandlers = new Array();
function registerMouseMoveHandler(func)
{
 arrayMouseMoveHandlers[arrayMouseMoveHandlers.length] = func;
}
function mouseMove(e)
{
 if (arrayMouseMoveHandlers.length > 0)
 {
  for (var i=0; i<arrayMouseMoveHandlers.length; i++)
  {
   arrayMouseMoveHandlers[i](e);
  }
 }
}
var isIE = (document.all)?(true):(false);
var isNS = (document.layers)?(true):(false);
var isW3C = (document.getElementById && !isIE)?(true):(false);
var isMac = (navigator.userAgent.indexOf("Mac") != -1)?(true):(false);
if (isIE || isW3C) document.onmousemove = mouseMove;
else if (isNS)
{
 document.captureEvents(Event.MOUSEMOVE);
 document.onmousemove = mouseMove;
}

var LibraryLoader = {
 Version: '0.1',
 require: function(libraryName) {
  // inserting via DOM fails in Safari 2.0, so brute force approach
  document.write('<script type="text/javascript" src="'+libraryName+'"></script>');
 },
 load: function(libs) {
  var path = '/rd/scripts/';
  for (var j=0;j<libs.length;j++) this.require(path + libs[j]);
 }
}

if (!is_https())
{
    if (FRAMELOADER && (top.frames.length == 0) && (self.location.href.indexOf('noframe') == -1) && (typeof this.noframeload == 'undefined'))
    {
        NEW_TRACKING = false;
        top.location.href = MB_HTTP_DOMAIN + '/?directJump=' + self.location.href;
    }
}



if (self.location.protocol.indexOf("https") == -1)
{
 applicationId =  top.appId;
 dbsId = top.dbsappId;
 sessionId =  top.sessionId;
 if( top.sessionId ) appIds = top.sessionId.substring(6, top.sessionId.indexOf("_"));
  if( top.sessionId && appIds.indexOf('m') != -1 && self.location.href.indexOf("/wo/") == -1 && self.location.href.indexOf("/wa/") == -1)
 {
  sessionId = top.sessionId;
  var sessionPixel = new Image();
  var zufall = '&random=X' + Math.round(Math.random()*1000000000);
  // ### Herausnahme APP und SESSION-Id ### var spUrl = MB_HTTP_DOMAIN + applicationId + '/wa/pixel?' + sessionId + zufall;
  var spUrl = MB_HTTP_DOMAIN + '/wa/pixel?' + zufall;
  sessionPixel.src = spUrl; 
 }
 if( top.sessionId && appIds.indexOf('d') != -1 && self.location.href.indexOf("/dbs/") == -1)
 {
  sessionId = top.sessionId;
  var sessionPixel = new Image();
  var zufall = '&random=X' + Math.round(Math.random()*1000000000);
  // ### Herausnahme APP und SESSION-Id ### var spUrl = MB_HTTP_DOMAIN + dbsId + '/dbs/pixel?' + sessionId + zufall;
  var spUrl = MB_HTTP_DOMAIN + '/dbs/pixel?' + zufall;
  sessionPixel.src = spUrl; 
 }
}

/***/
function druckmal()
{
 var URL = MB_HTTP_DOMAIN + "/noprinter.html";
 var URL2 = MB_HTTP_DOMAIN + "/druckhinweis.html";
 if (window.print)
 {
  if (typeof this.pageName != 'undefined' && (document.cookie.indexOf('druckhinweis=zeigen')!=-1 || document.cookie.indexOf('druckhinweis')==-1) ) openWin(URL2,310,300);
     else window.print();
  }
  else openWin(URL,310,232);
}
function druckEs(which)
{
 var URL = MB_HTTP_DOMAIN + "/noprinter.html";
 if (window.print) 
 {
  if (navigator.appName.indexOf('Internet Explorer')!=-1) which.focus();
  which.print();    
 }
 else openWin(URL,310,232);
}


/***/
function setBookmark(which)
{ 
 if (setBookmark.arguments.length != 1) which = marked;
 if (setBookmark.arguments.length == 1)
 {
  if(which.length>=60) which = which.substr(0,59);
 }
 var url = self.location.href;
 url = (url.indexOf('?')!=-1)?(url.substring(0,url.indexOf('?'))):(url);
 var rparams = getParam('recommend');
 url = (rparams != '')?(url+'?'+rparams):(url);
 //### Herausnahme APP und SESSION-Id ### var where = 'http://' + MB_DOMAIN + applicationId + '/wa/AddTool?' + sessionId + '&title=' + escape(which) + '&url=' + escape(unescape(url)) + '&marked=' + marked;
 var where = 'http://' + MB_DOMAIN + '/wa/AddTool?' + '&title=' + escape(which) + '&url=' + escape(unescape(url)) + '&marked=' + marked;
 openWin(where,310,232);
}
function setBookmarkWithURL(URL, which)
{ 
 //### Herausnahme APP und SESSION-Id ### var where = 'http://' + MB_DOMAIN + applicationId + '/wa/AddTool?' + sessionId + '&title=' + escape(which) + '&url=' + escape(URL) + '&marked=' + marked;
 var where = 'http://' + MB_DOMAIN + '/wa/AddTool?' + '&title=' + escape(which) + '&url=' + escape(URL) + '&marked=' + marked;
 openWin(where,310,232);
}
function setBookmarkWO(woSessionID, woURL)
{ 
 //### Herausnahme APP und SESSION-Id ### var where= 'http://' + MB_DOMAIN + applicationId + '/wa/AddTool?' + woSessionID + '&title=' + escape(document.title) + '&url=' + escape(unescape(woURL)) + '&marked=' + marked;
 var where= 'http://' + MB_DOMAIN + '/wa/AddTool?' + '&title=' + escape(document.title) + '&url=' + escape(unescape(woURL)) + '&marked=' + marked;
 openWin(where,310,232);
}


/***/
function getHelp(topic,width,height)
{
    var where;
    width = 492;
    height = 521;
    where = 'http://www.maxblue.de/dboverallsearch/mb/HelpLexiconSearchRH.do?term=' + topic;
    
    openWinHelp(where,width,height)
}
/*
// commented by sus-gra 20050727-1726  
function getHelpSearch(searchString,searchMode,width,height)
{
 var where = 'http://' + MB_DOMAIN + '/wa/BRHPWOHelpAction/help?searchString=' + escape(searchString) + "&searchMode=" + searchMode;
 openWinHelp(where,width,height)
}
*/
// added by sus-gra 20050727-1726
function getHelpSearch(topic,width,height)
{
    var where;
    width = 492;
    height = 521;
    where = 'http://www.maxblue.de/dboverallsearch/mb/HelpLexiconSearchRH.do?term=' + topic + '&searchform=true';
    openWinHelp(where,width,height)
}
function helpStart()
{
 // changed by sus-gra 20050727-1457  
 //var rb = (document.suche.searchMode[0].checked)?'1':'2';
 var str = document.suche.searchString.value;
 // changed by sus-gra 20050727-1457  
 //getHelpSearch(str,rb,300,450);
 getHelpSearch(str,492,521);
 return false;
}
 
var helpWin;
function openWinHelp(where,width,height)
{
 if (helpWin && helpWin.closed!=true) helpWin.close();
 var posx = screen.width/2 - width/2;  
 var posy = screen.height/2 - height/2;
 var propsZ=(document.all)?('top=' + posy + ',left=' + posx):('screenX=' + posx + ',screenY=' + posy);
 props = 'width=' + width + ',height=' + height + ',' + propsZ;
 helpWin = window.open('','helppop',props);
 helpWin.location.href = where;
}


/***/
function openWin(where, width, height, name, resizable, scrollbars){
    //if (newWin && newWin.closed!=true) newWin.close();
    var name = (typeof name == 'undefined') ? ('brpop') : (name);
    var posx = screen.width / 2 - width / 2;
    var posy = screen.height / 2 - height / 2;
    var propsZ = (document.all) ? ('top=' + posy + ',left=' + posx) : ('screenX=' + posx + ',screenY=' + posy);
    props = 'width=' + width + ',height=' + height + ',resizable=' + resizable + ',scrollbars=' + scrollbars + ',' + propsZ;
    newWin = window.open('', name, props);
    if ((self.location.href.indexOf('https') == -1) && (where.indexOf('wosid=') == -1)) {
        if (top.sessionId) {
            //### Herausnahme APP und SESSION-Id ### where += (where.indexOf('?') != -1) ? '&' + top.sessionId : '?' + top.sessionId;
            if (where.indexOf("/wa/") != -1) // if url contains with "/wa/", attach appId
            {
                //### Herausnahme APP und SESSION-Id ### where = where.substring(0, where.indexOf("/wa/")) + applicationId + where.substring(where.indexOf("/wa/"), where.length);
                where = where.substring(0, where.indexOf("/wa/")) + where.substring(where.indexOf("/wa/"), where.length);
            }
            else 
                if (where.indexOf("/dbs/") != -1) // if url contains with "/dbs/", attach dbsId
                {
                    //### Herausnahme APP und SESSION-Id ### where = where.substring(0, where.indexOf("/dbs/")) + dbsId + where.substring(where.indexOf("/dbs/"), where.length);
                    where = where.substring(0, where.indexOf("/dbs/")) + where.substring(where.indexOf("/dbs/"), where.length);
                }
                else 
                    if (where.indexOf("/io/ta/") != -1) // if url contains "/io/", attach mb-appId
                    {
                        //### Herausnahme APP und SESSION-Id ### where = where.substring(0, where.indexOf("/io/ta/")) + applicationId + where.substring(where.indexOf("/io/ta/"), where.length);
                        where = where.substring(0, where.indexOf("/io/ta/")) + where.substring(where.indexOf("/io/ta/"), where.length);
                    }
                    else 
                        if (where.indexOf("/io/pam/") != -1) // if url contains "/io/", attach mb-appId
                        {
                            //### Herausnahme APP und SESSION-Id ### where = where.substring(0, where.indexOf("/io/pam/")) + applicationId + where.substring(where.indexOf("/io/pam/"), where.length);
                            where = where.substring(0, where.indexOf("/io/pam/")) + where.substring(where.indexOf("/io/pam/"), where.length);
                        }
        }
    }
    newWin.location.href = where;
}
function openWinWithName(where,width,height,name)
{
 if (newWin && newWin.closed!=true) newWin.close();
 var posx = screen.width/2 - width/2;  
 var posy = screen.height/2 - height/2;
 var propsZ=(document.all)?('top=' + posy + ',left=' + posx):('screenX=' + posx + ',screenY=' + posy);
 props = 'width=' + width + ',height=' + height + ',' + propsZ;
 newWin = window.open('',name,props);
 newWin.location.href = where;
}
function openWinA(where,width,height)
{
 if (newWin && newWin.closed!=true) newWin.close();
 var posx = screen.width/2 - width/2;  
 var posy = screen.height/2 - height/2;
 var propsZ=(document.all)?('top=' + posy + ',left=' + posx):('screenX=' + posx + ',screenY=' + posy);
 props = 'width=' + width + ',height=' + height + ',' + propsZ;
 newWin = window.open('','mbpop',props);
 newWin.location.href = where;
}
function openBrowser(where,props)
{
 if (newBrowser && newBrowser.closed!=true) newBrowser.close();
 //props = 'toolbar=yes,location=yes,menubar=yes,status=yes,scrollbar=yes,resizable=yes';
 var props = '';
 newBrowser = window.open('','mbbrowser',props);
 newBrowser.location.href = where;
}
//Popup-Funktion für Umfragen
function openUmfrage(url) {
  window.open(url,'maxbluebefragung','width=520,height=640,scrollbars=yes');
}


/***/
function neuOrdnung(nr)
{
 var starter = eval('document.lesezeichen.'+nr).selectedIndex;
 for(i=0;i<sel.length;i++)
 {
  if(sel[i].selectedIndex==starter && sel[i].name!=nr)
  {
   if(starter+1 < sel.length) sel[i].options[starter+1].selected  = true;
   else sel[i].options[0].selected  = true;
   neuOrdnung(sel[i].name);
  }
 }
}



/*### Herausnahme APP und SESSION-Id ###
function wosidAttach(woran)
{
 if (top.sessionId)
 {
  woran += (woran.indexOf('?')!=-1) ? '&' + top.sessionId : '?' + top.sessionId;
  if ( woran.indexOf("/wa/") != -1) // if url contains with "/wa/", attach appId
  {
   woran = woran.substring(0, woran.indexOf("/wa/")) + applicationId + woran.substring(woran.indexOf("/wa/"),woran.length);
  }
  else if ( woran.indexOf("/dbs/") != -1) // if url contains with "/dbs/", attach dbsId
  {
   woran = woran.substring(0, woran.indexOf("/dbs/")) + dbsId + woran.substring(woran.indexOf("/dbs/"),woran.length);
  }
  else if ( woran.indexOf("/io/") != -1) // if url contains "/io/", attach mb-appId
  {
   woran = woran.substring(0, woran.indexOf("/io/")) + applicationId + woran.substring(woran.indexOf("/io/"),woran.length);
  }
 }
 (woran == 'http://www.teledata.maxblue.de/teledata/mape108.html')?top.speicher2.location.href = woran :top.action.inhalt.location.href = woran;
}
*/
function wosidAttach(woran)
{
 if (top.sessionId && (woran.indexOf('mare') != -1))
 { 
    woran += (woran.indexOf('?') != -1)? ("&" + top.sessionId) : ("?" + top.sessionId); 
 }
 
 // Bei jedem Aufruf zu setzen
 top.action.inhalt.location.href = woran;
}



function is_https()
{
 return (self.location.href.indexOf("https://")!=-1)?(true):(false);
}

/***/
function checkFeedback()
{
 if (FEEDBACK == false || (typeof this.eCrmPageId == 'undefined')) return false;
 else
 {
  for (i=0;i<feedBackPages.length;i++)
  {
   if (this.eCrmPageId.indexOf(feedBackPages[i]) != -1 ) return true;
  }
  return false;
 }
}
function getFeedBackId()
{
 for (i=0;i<feedBackPages.length;i++)
 {
  if (this.eCrmPageId.indexOf(feedBackPages[i]) != -1 ) return feedBackIds[i];
 }
 return 0;
}
function checkFooterToolBoxOptions()
{
 if ( (self.location.href.indexOf('/wa/') == true) || (self.location.href.indexOf('/cgi-bin/') == true) ) return (typeof recommendUrl  != 'undefined');
 else return (typeof norecommend == 'undefined');
}
var writeFooterToolBox = checkFooterToolBoxOptions();
function writeFooter(which)
{
 var _FOOTER_START = '<br clear="all"><table border="0" cellpadding="0" cellspacing="0"><tr><td><div id="footer">';
 var _FOOTER_END = '</div></td></tr></table>';
 var _FOOTER = '';
 var _CLIPICON = '';
 var _RECOMMEND = '<p class="adr">';
 var prot = (is_https())?("https"):("http");
 /* show the clipping button */
 // Wenn Seite nicht auf https
 if (!is_https())
 {
  /* Wenn News in Cliiping-Array oder wir auf einer der News-Seiten sind */
  if (top.newsIds.length > 1 || marked.indexOf('news') != -1 && marked.indexOf('newsletter') == -1 )
  {
   /* Wenn wir nicht in den Foren oder auf der Homnepage sind und Clipping ist aktiv */
   if ( (marked != 'home') && (marked.indexOf('comm_board') == -1) && MBCLIPPING)
   {
    /* dann schreibe den Button */
    _CLIPICON = '<span id=\"clipicon\" class=\"clipiconcss\"><a href=\"javascript:showClippings();\"><img src=\"http://www.maxblue.de/images/icon_clipping.gif\" alt=\"News-Clippings\" width=\"17\" height=\"17\" border=\"0\"></a></span>\n';
   }
  }
 } 
 if (writeFooterToolBox || checkFeedback())
 {
  if (writeFooterToolBox)
  {
   _RECOMMEND += '<a href="javascript:recommend();"><img src="'+prot+'://'+MB_DOMAIN+'/images/icon_recommend.gif" width="17" height="17" border="0"></a>&nbsp;&nbsp;<a href="javascript:recommend();">Diese Seite weiterempfehlen</a>&nbsp;&nbsp;&nbsp;&nbsp;';
  }
  if (checkFeedback())
  {
   _RECOMMEND += '<a href="javascript:openWin(\'https://secure.deutsche-bank.de/feedbackmanager/?id='+getFeedBackId()+'&decorator=maxblue\',650,410);"><img src="'+prot+'://'+MB_DOMAIN+'/images/icon_feedback.gif" width="17" height="17" border="0"></a>&nbsp;&nbsp;<a href="javascript:openWin(\'https://secure.deutsche-bank.de/feedbackmanager/?id='+getFeedBackId()+'&decorator=maxblue\',650,410);">Diesen Bereich bewerten</a>';
  }
  _RECOMMEND += '</p>';
 } 
 _FOOTER += '<p class="footernav"><a href="http://'+MB_DOMAIN+'/sitemap.html?eCrmLink=int;from-%FROM%-F-footer-MBde;to-%TO%">Site Map</a> | <a href="http://'+MB_DOMAIN+'/io/intern/mari0266.html?eCrmLink=int;from-%FROM%-F-footer-MBde;to-%TO%">AGBs</a> | <a href="http://'+MB_DOMAIN+'/io/service/mari0220.html?eCrmLink=int;from-%FROM%-F-footer-MBde;to-%TO%">Presse</a> | <a href="http://'+MB_DOMAIN+'/io/intern/mari0295.html?eCrmLink=int;from-%FROM%-F-footer-MBde;to-%TO%">Disclaimer</a> | <a href="http://'+MB_DOMAIN+'/io/intern/mari0296.html?eCrmLink=int;from-%FROM%-F-footer-MBde;to-%TO%">Impressum</a>  | <a href="http://'+MB_DOMAIN+'/io/service/mari0156.html?eCrmLink=int;from-%FROM%-F-footer-MBde;to-%TO%">FAQ</a> | <a href="http://'+MB_DOMAIN+'/io/service/mari0144.html?eCrmLink=int;from-%FROM%-F-footer-MBde;to-%TO%">Kontakt</a></p>';
 // _FOOTER += '<p>*maxblue feiert Geburtstag - feiern Sie mit! Bis 30. September 2006 zahlen Sie nur 5 Euro Transaktionspreis je Online-Order bis zu 2.500 Euro an deutschen Börsen, über Xetra oder im außerbörslichen Handel (Direct Trade und db PIP-Service). Bei börslicher Ausführung zuzüglich fremder Spesen. Bei Teilausführungen wird für die Berechnung des Transaktionspreises der Gesamtwert der Order zu Grunde gelegt. Weitere interessante Angebote zum Geburtstag finden Sie unter: <a href="http://www.maxblue.de/geburtstag" target="_top">www.maxblue.de/geburtstag</a></p>';
 _FOOTER += '<p>&copy; 2001 - 2010 | Deutsche Bank Privat- und Gesch&auml;ftskunden AG | Theodor-Heuss-Allee 72 | 60486 Frankfurt am Main </p>';
 document.write(_FOOTER_START);
 if (writeFooterToolBox || checkFeedback()) document.write(_RECOMMEND);
 document.write(_CLIPICON + _FOOTER + _FOOTER_END);
}


/***/
function getMBCLParams()
{
 var MBCLPARAM = "news_IDs="; //news_IDs=mbcl_30984040,mbcl_49380945
 for (i=0;i<=top.newsIds.length-1;i++)
 {
  if (top.newsIds[i].indexOf('BUGFIX') == -1) MBCLPARAM += top.newsIds[i]+",";
 }
 return MBCLPARAM
}
function showClippings()
{
 var MBCLPARAM = getMBCLParams();
 var MBCLURL = "http://www.maxblue.de/io/root/redirect2url.html?eCrmPageId=http://www.maxblue.de/max/popup/pu_mkt_nws_clippings.html&url=http://www.is-asp.pbc.maxblue.de/is-asp/mare0873.html&NOSETREF=true";
 openWin(MBCLURL+'&'+MBCLPARAM,300,440);
}




/***/
var COOKIEJS = true;
function myCookie(name, life, path, doma)
{
 this.name = arguments[0];
 this.life = arguments[1];
 this.path = arguments[2];
 this.doma = arguments[3];
 this.valu = value();
 this.value = value;
 this.lifetime = lifetime;
 this.destroy = destroy;
 this.update = update;
}

function value(what)
{
 if (arguments.length!=0)
 {
  this.valu = arguments[0];
  this.update();
 }
 else
 {
  var start = document.cookie.indexOf(this.name+"=");
  var len = start+this.name.length+1;
  if ((!start) && (this.name != document.cookie.substring(0,this.name.length))) return null;
  if (start == -1) return null;
  var end = document.cookie.indexOf(";",len);
  if (end == -1) end = document.cookie.length;
  this.valu = unescape(document.cookie.substring(len,end));
  return (this.valu == "undefined")?("[NO COOKIE]"):(this.valu);
 }
}

function lifetime(which)
{
 if (arguments[0])
 {
  this.life = arguments[0];
  this.update();
 }
 else
 {
  return (this.life == "")?("[NO LIFETIME SET]"):(this.life);
 }
}

function destroy()
{
 this.life = 0;
 this.update();
}

function update()
{
 var date = new Date();
 date.setTime(date.getTime()+(this.life*24*60*60*1000));
 var cook = this.name + "=" +escape(this.valu) +
 ( (this.life) ? (";expires=" + date.toGMTString()) : ("") ) +
 ( (this.path) ? (";path=" + this.path) : ("") ) +
 ( (this.doma) ? (";domain=" + this.doma) : ("") );
 document.cookie = cook;
}


/***/
function recommend()
{
 var url = 'http://www.maxblue.de/';
 var popupurl = 'https://secure.deutsche-bank.de/pbc/seiteweiterempfehlen/?decorator=maxblue';
 var loc = self.location.href;
 var result = 0;
 if (loc.indexOf('http://warrants') != -1) result = 1;
 else if (loc.indexOf('http://certificates') != -1) result = 2;
 else if (loc.indexOf('is-asp.pbc.maxblue') != -1) result = 3;
 else if (loc.indexOf('zertifikate-gutschein-aktion.html?noframe') != -1) result = 4;
 switch(result)
 {
  case 1 : url += '?ow='; break;
  case 2 : url += '?oc='; break;
  case 3 : url += '?is='; break;
  case 4 : url = MB_HTTP_DOMAIN + '/rd/'; break;
  default: url += '?directJump='; break;
 }
 var rest = "";
 if (typeof this.recommendUrl == 'undefined')
 {
  var endPos = loc.indexOf('.html')+5;
  if (endPos < 6)
  { 
          if (loc.indexOf('?')>-1) endPos = loc.indexOf('?');
          else endPos = loc.length;
  }
  if (result != 0) var page = loc.substring(loc.lastIndexOf('/')+1, endPos);
  else var page = loc.substring(0, endPos);
  url += page;
  rest = getParam('recommend');
  rest = (rest != '')?('?' + rest):(rest);
 }
 else
 {
  var page = this.recommendUrl;
  if (page.indexOf('http') == -1) url += page;
  else url = page;
 }
 windowurl = popupurl+'&url='+escape(url+rest)+'&referrer='+escape(url+rest);
 var pid = ecrm.eCrmPageId;
 pid = 'http://www.maxblue.de/max/popup/pu_recommend_dateneingabe.html';
 ecrm.setPageId(pid);
 ecrm.setPixel();
 openWin(windowurl, 400, 540);
}

/* opens feedbackmanager-popup if param fbId exists in request */
function openFeedbackByRequestID(opener, fbId)
{
 var popupurl = 'https://secure.deutsche-bank.de/feedbackmanager/';
 var loc = self.location.href;
 if ((loc.indexOf('fbId') != -1) && ((opener == "onload") || (opener == "link"))) {
     var fbId = loc.substring(loc.indexOf('fbId=')+5, loc.indexOf('fbId=')+8);
     windowurl = popupurl+'?id=00'+escape(fbId) +'&decorator=maxblue';
     eCrmLink = 'ext;from-%FROM%-MBde;to-pu_feedbackmanager_id-'+ escape(fbId) +'_dateneingabe.html;'     
     ecrm.request(eCrmLink);
     openWin(windowurl, 650, 410, "feedbackmanager");
 }
 else if ((loc.indexOf('fbId') == -1) && (opener == "link")) {
     opener = fbId;
     windowurl = popupurl+'?id=00'+escape(opener) +'&decorator=maxblue';
     eCrmLink = 'ext;from-%FROM%-MBde;to-pu_feedbackmanager_id-'+ escape(fbId) +'_dateneingabe.html;'     
     ecrm.request(eCrmLink);
     openWin(windowurl, 650, 410, "feedbackmanager");
 }
}/***/
var Class = {
    create: function(){
        return function(){
            this.initialize.apply(this, arguments);
        }
    }
}
var ECRMJS = true;
var eCrmPixel = Class.create();
eCrmPixel.prototype = {
    version: '0.9',
    context: '',
    cookies: new Array(),
    domain: 'maxblue.de',
    ecrmPixelArray: new Array(),
    extras: '',
    id: Math.round(Math.random() * 10000000000),
    isCookie: false,
    link: '',
    pageId: '',
    pixelUrl: 'http://tp.maxblue.de/tracking/maxbluede.gif',
    referrer: document.referrer,
    initialize: function(pU, pD){
        if (typeof COOKIEJS != 'undefined') {
            this.cookies['id'] = new myCookie('eCrmId', 0, '/', this.domain);
            this.cookies['pageid'] = new myCookie('eCrmPageId', 0, '/', this.domain);
            this.cookies['referrer'] = new myCookie('eCrmReferrer', 0, '/', this.domain);
            this.cookies['context'] = new myCookie('eCrmContext', 0, '/', this.domain);
            if (this.cookies['id'] != null) 
                this.isCookie = true;
        }
        if (arguments[2]) 
            this.setId(arguments[2]);
        this.pixelUrl = (pU == '') ? (this.pixelUrl) : (pU);
        this.domain = (pD == '') ? (this.domain) : (pD);
    },
    getContext: function(){
        return this.context;
    },
    getExtras: function(){
        return this.extras;
    },
    getId: function(){
        return this.id;
    },
    getLink: function(){
        return this.link;
    },
    getPageId: function(){
        return this.pageId;
    },
    getRef: function(){
        return this.referrer;
    },
    setContext: function(c){
        this.context = c;
        this.update();
    },
    setExtras: function(e){
        this.extras = e;
    },
    setId: function(i){
        this.id = i;
        this.update();
    },
    setLink: function(l){
        this.link = l;
    },
    setPageId: function(p){
        var fC = p.substr(0, 1);
        if (fC != '/') {
            var tmp = p;
            if (tmp.indexOf('http://') == 0) 
                tmp = tmp.substr(7, tmp.length);
            p = tmp.substr(tmp.indexOf('/'), tmp.length);
        }
        this.pageId = p;
        this.update();
    },
    setPixel: function(ecrmlink){
        this.request(ecrmlink);
    },
    setRef: function(r){
        this.referrer = r;
        this.update();
    },
    getParam: function(paramname){
        var SELF_LOCATION = self.location.href;
        var paramstring = (SELF_LOCATION.indexOf('?') != -1) ? (SELF_LOCATION.substr(SELF_LOCATION.indexOf('?') + 1, SELF_LOCATION.length)) : ('');
        var re = new RegExp('^' + paramname + '=');
        var params = paramstring.split('&');
        for (var param in params) {
            if (re.test(params[param])) {
                return (params[param].split('='))[1];
            }
        }
        return '';
    },
    getValuesFromCookie: function(){
        if (this.isCookie) {
            if (this.cookies['id'].value()) 
                this.id = this.cookies['id'].value();
            if (this.cookies['pageid'].value()) 
                this.pageId = this.cookies['pageid'].value();
            if (this.cookies['referrer'].value()) 
                this.referrer = this.cookies['referrer'].value();
            if (this.cookies['context'].value()) 
                this.context = this.cookies['context'].value();
            return true;
        }
        else {
            return false;
        }
    },
    isTopframe: function(){
        try {
            if (self.location.href.indexOf('https') != -1) {
                return false;
            }
            if (self.location.href.indexOf(this.domain) == -1) {
                return false;
            }
            if (!top.eCrmTopframe) {
                return false;
            }
            else {
                return true;
            }
        } 
        catch (e) {
            return false;
        }
    },
    openLink: function(url, name, width, height){
        var sta = this.pageId.lastIndexOf('/');
        var end = (this.pageId.indexOf('.pdf') != -1) ? (this.pageId.indexOf('.pdf')) : (this.pageId.indexOf('.html'));
        var p = this.pageId.substring(sta + 1, end);
        var url = url.replace(/%PAGEID%/, p);
        var my_pop_up = window.open(url, name, 'width=' + width + ',height=' + height + 'scrollbars=yes,resizable=no');
    },
    update: function(){
        if (this.isCookie) {
            if (this.id) 
                this.cookies['id'].value(this.id);
            if (this.pageId) 
                this.cookies['pageid'].value(this.pageId);
            if (this.referrer) 
                this.cookies['referrer'].value(this.referrer);
            if (this.context) 
                this.cookies['context'].value(this.context);
        }
        if (this.isTopframe()) {
            top.eCrmId = this.id;
            top.eCrmPageId = this.pageId;
            top.eCrmReferrer = this.referrer;
            top.eCrmContext = this.context;
        }
    },
    request: function(ecrmlink){
        var RandomNo = '' + Math.round(Math.random() * 1000000000);
        var diff = 10 - RandomNo.length;
        var fill = '';
        for (j = 0; j < diff; j++) 
            fill += '0';
        RandomNo = fill + RandomNo; // Random immer mindestens 10 Zeichen.
        if (ecrmlink == undefined) {
            this.link = this.getParam('eCrmLink');
        }
        else {
            this.link = ecrmlink;
        }
        var from = (this.referrer != null) ? (this.referrer) : ('');
        var sta = from.lastIndexOf('/') + 1;
        var end = from.length - 5;
        from = from.substring(sta, end);
        var to = this.pageId;
        sta = to.lastIndexOf('/') + 1;
        end = to.length - 5;
        to = to.substring(sta, end);
        
        this.link = unescape(this.link);
        this.link = this.link.replace(/%FROM%/, from);
        this.link = this.link.replace(/%TO%/, to);
        var pkz = (self.eCrmPKZ) ? ('_' + self.eCrmPKZ) : ('');
        this.link = this.link.replace(/%PKZ%/, pkz);
        var myeCrmExtras = (this.link != '') ? ('&eCrmLink=' + this.link) : ('');
        myeCrmExtras += (this.extras) ? ('&' + this.extras) : ('');
        myeCrmExtras += ((this.context != null) && (this.context != 'null') && (this.context != '')) ? ('&eCrmContext=' + this.context) : ('');
        
        this.ecrmPixelArray[this.ecrmPixelArray.length] = new Image();
        var DO = ((this.referrer != null) && (this.referrer.indexOf('http') == -1)) ? ('http://www.' + this.domain) : ('');
        this.ecrmPixelArray[this.ecrmPixelArray.length - 1].src = unescape(this.pixelUrl + '?dbtrck=' + this.id + ';' + this.pageId + ';' + DO + this.referrer + ';' + RandomNo + myeCrmExtras);
        this.extras = '';
        this.link = '';
        this.setRef(this.pageId);
    }
}
function seteCrmPixel(eCrmPageId){
    var ecrm = new eCrmPixel('', '');
    ecrm.getValuesFromCookie();
    ecrm.setPageId(eCrmPageId);
    ecrm.setPixel();
}
/* init Tracking */

if (!is_https()) {
    var TOP_LC = top.location.href + '&';
    var eCrmNewsletter = (TOP_LC.indexOf('nl=') != -1)?(TOP_LC.substr(TOP_LC.indexOf('nl=')+3, TOP_LC.substr(TOP_LC.indexOf('nl=')+3, TOP_LC.length).indexOf('&'))):(null);
}
var ecrm;
if (NEW_TRACKING) {
 if (is_https()) {
  ecrm = new eCrmPixel('https://tp.maxblue.de/tracking/maxbluede.gif', '');
 } 
 else {
  ecrm = new eCrmPixel('', '');
 }
 ecrm.getValuesFromCookie();
    var REF;
    if ( self.location.href.indexOf('https') == -1 ) {
        if (top.eCrmNewsletter != null) {
            top.eCrmReferrer = 'http://www.maxblue.de/max/newsletter/' + top.eCrmNewsletter + '.html';
            ecrm.setRef(top.eCrmReferrer);
            var aktion = (this.eCrmPKZ)?(this.eCrmPKZ):('AKTION');
            ecrm.setContext('maxblue_'+top.eCrmNewsletter.replace(/_/g, '')+'_'+aktion);

            //top.eCrmNewsletter = null;
            top.eCrmReferrerExtern = '';
        }
        
        else if (top.eCrmReferrerExtern) {
            top.eCrmReferrer = top.eCrmReferrerExtern;
            ecrm.setRef(top.eCrmReferrer);
            top.eCrmReferrerExtern = '';
        }
        if (top.eCrmSite != null) {
            var siteParam = top.eCrmSite;
            siteParam = siteParam.substr(0,siteParam.lastIndexOf('.'));
            siteParam = siteParam.substr(siteParam.lastIndexOf('.')+1,siteParam.length);
            var aktion = (this.eCrmPKZ)?(this.eCrmPKZ):('AKTION');
            ecrm.setContext('maxblue_'+siteParam.replace(/_/g, '')+'_'+aktion);
            top.eCrmSite = null;
        }
        
        if ((top.document.referrer) && (top.eCrmNewsletter == null)) {
            referrer = top.document.referrer;
            if (referrer.indexOf('://') != -1) {
                 referrer = referrer.substr(referrer.indexOf('/')+2,referrer.length);
                 referrer = referrer.substr(0,referrer.indexOf('/'));
            }
            if (referrer.indexOf('.') != -1) {
                referrer = referrer.substr(0,referrer.lastIndexOf('.'));
                referrer = referrer.substr(referrer.lastIndexOf('.')+1,referrer.length);
            }
                referrer = referrer.replace(/_/g, '');
                ret = 'maxblue_'+referrer+'_xtracker';
                ecrm.setContext(ret);
            }
        
        else {
            top.eCrmNewsletter = null;
        }
        if ((top.document.referrer) && ((top.document.referrer.indexOf('http://www.google.de') != -1) || (top.document.referrer.indexOf('http://google.de') != -1))) {
        if (top.document.referrer.indexOf('?') != -1) {
          qs = top.document.referrer.substr(top.document.referrer.indexOf('?')+1);
          qsa = qs.split('&');
          var ret = '';
          for (i=0;i<qsa.length;i++) {
            qsip = qsa[i].split('=');
            if (qsip.length == 1) continue;
            if (qsip[0] == 'q') {
              words = unescape(qsip[1].replace(/\+/g,' ')).split(/\s+/);
              for (w=0;w<words.length;w++) {
                ret += words[w];
                if (w!=words.length-1) ret += '-'
              }
            }
          }
          if (ret != '') {
            ret = 'maxblue_googlesearch_searchword-'+ret;
            ret = ret.substr(0,100);
            ecrm.setContext(ret);
          }
        }
      }
    }
    var pageid = (this.eCrmPageId)?(this.eCrmPageId):('');
    if (pageid.indexOf('http://') != -1) {
        pageid = pageid.substr(9, pageid.length);
        pageid = pageid.substr(pageid.indexOf('/'), pageid.length);
    }
    ecrm.setPageId(pageid);
    var extras = (this.eCrmExtras)?(this.eCrmExtras):('');
    ecrm.setExtras(extras);
    ecrm.request();
}

function overlib() {
// Diese Funktion wird in der overlib.js implementiert, hier nur deklariert.
} 
function nd() {
// Diese Funktion wird in der overlib.js implementiert, hier nur deklariert.
} 
function getParam(paramname)
{
 var SELF_LOCATION = self.location.href;
 var paramstring = (SELF_LOCATION.indexOf("?") != -1)?(SELF_LOCATION.substr(SELF_LOCATION.indexOf('?')+1,SELF_LOCATION.length)):("");
 var re = new RegExp("^"+paramname+"=");
 var params = paramstring.split("&");
 // variable vordefinieren 
 var restparams="";
 for (var param in params)
 {
  if (re.test(params[param]))
  {
   return (params[param].split("="))[1];
  }
 }
 if (paramname=="rest")
 {
  for (t=0;t<params.length;t++)
  {
   var paramel=(params[t].split("="))[0];
   if (paramel!="eCrmPageId" && paramel!="url")
   {
    restparams = restparams+(params[t]);
    if ( (t)!= (params.length-1) )
    {
     restparams=restparams+"&";
    }
   }
  }
  return restparams;
 }
 if (paramname=="recommend")
 {
  var countRecommendParams = 0;
  for (countRecommendParams=0;countRecommendParams<params.length;countRecommendParams++)
  {
   var paramel=(params[countRecommendParams].split("="))[0];
   if (paramel!="eCrmPageId" && paramel!="eCrmLink" && paramel!="url" && paramel!="wosid" && paramel!="articleId" && paramel!="boardId")
   {
    restparams = restparams+(params[countRecommendParams]);
    if ( (countRecommendParams)!= (params.length-1) )
    {
     restparams=restparams+"&";
    }
   }
  }
  return restparams;
 }
 else return null;
}
function instanceOf(object, constructorFunction) {
 // while object not null do
 while (object != null) {
  // if object == constructorFunction return true
  if (object == constructorFunction.prototype) {
   return true
  }
  // object = master object
  // if no master object exists, object is null
  object = object.__proto__;
 }
 return false;
}
/* special tracking functions */
function callSpecialPage(url) {
 if (!instanceOf(ecrm, eCrmPixel))
  var ecrm = new eCrmPixel('http://tp.maxblue.de/tracking/maxbluede.gif', '');
 var target = ((arguments[1]) && (arguments[1] != ''))?(arguments[1]):('self');
 var pageid = (arguments[2])?(arguments[2]):(null);
 var ref = (arguments[3])?(arguments[3]):(null);
 var ecrmlink = (arguments[4])?(arguments[4]):('NOLINK');
 if (pageid != null) {
  ecrm.getValuesFromCookie();
  ecrm.setPageId(pageid);
  if (ref != null) ecrm.setRef(ref);
  if (ecrmlink != null) ecrm.setLink(ecrmlink);
  ecrm.setPixel(ecrmlink);
 }
 var trg = target;
 if (trg.indexOf('popup') != -1) trg = 'popup';
 switch (trg) {
  case 'self' : self.location.href = url; break;
  case '_self' : self.location.href = url; break;
  case 'blank' : window.open(url); break;
  case '_blank' : window.open(url); break;
  // sus-bas 2009-01-26: extended params for mr.pink (JIRA: MAXMAI-16)
  case 'popup' : openWin(url, target.split("|")[1], target.split("|")[2], '', target.split("|")[4], target.split("|")[5]); break;
  default      : var t=eval(target); t.location.href = url; break;
 }
}
// start loading Libraries
if (AUTOLOGIN) {
    LibraryLoader.load([
        'prototype.js',
        's2i_general.js',
        's2i_ajax.js',
        'autologin.js'
    ]);
    //         'scriptaculous.js',
}
/* www.maxblue.de */
// EOF, do not remove this line!
 

var mTags = document.getElementsByTagName('meta');
var mcId = null;
var mcWp = null;
// Prio III - Meta-Tag
// disabled by sus-gra (Issue:SIPMXHP-19) 
// for (var i=0;i<mTags.length;i++) {
//     if (mTags[i].getAttribute('name') == 'WT.mc_id') mcId = mTags[i].getAttribute('content');
//     if (mTags[i].getAttribute('name') == 'DCSext.mc_wp') mcWp = mTags[i].getAttribute('content');
// }
// Prio II - URL-Param
if (getParam('WT.mc_id') != null) mcId = getParam('WT.mc_id');
if (getParam('mc_wp') != null) mcWp = getParam('mc_wp');
// Prio I - Cookie
var promotionIdCookie = new myCookie('promotionId', 0, '/', 'maxblue.de');
if (!promotionIdCookie.value()) {
    if (mcWp == null) mcWp = '10';
    if ((mcId != null) && (mcWp != null))
        promotionIdCookie.value(trimStr(mcId, 6) + trimStr(mcWp, 2));
}
function trimStr(str, len) {
    var tmp = str;
    if (tmp.length == len) return tmp;
    if (tmp.length > len) return tmp.substr(tmp.length-len, len);
    if (tmp.length < len) {
        var fill = len-tmp.length;
        for (var i=0;i<fill;i++)
            tmp = '0' + tmp;
        return tmp;
    }
}

if ( (self.location.href.indexOf("survey")) != -1 ){
    openWin('https://secure.deutsche-bank.de/mb/onlinepanel/index.jsp', 875, 600, 'Fragebogen', 1, 1);
}




/*    SWFObject v2.0 <http://code.google.com/p/swfobject/>
    Copyright (c) 2007 Geoff Stearns, Michael Williams, and Bobby van der Sluis
    This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
*/
var swfobject=function(){var Z="undefined",P="object",B="Shockwave Flash",h="ShockwaveFlash.ShockwaveFlash",W="application/x-shockwave-flash",K="SWFObjectExprInst",G=window,g=document,N=navigator,f=[],H=[],Q=null,L=null,T=null,S=false,C=false;var a=function(){var l=typeof g.getElementById!=Z&&typeof g.getElementsByTagName!=Z&&typeof g.createElement!=Z&&typeof g.appendChild!=Z&&typeof g.replaceChild!=Z&&typeof g.removeChild!=Z&&typeof g.cloneNode!=Z,t=[0,0,0],n=null;if(typeof N.plugins!=Z&&typeof N.plugins[B]==P){n=N.plugins[B].description;if(n){n=n.replace(/^.*\s+(\S+\s+\S+$)/,"$1");t[0]=parseInt(n.replace(/^(.*)\..*$/,"$1"),10);t[1]=parseInt(n.replace(/^.*\.(.*)\s.*$/,"$1"),10);t[2]=/r/.test(n)?parseInt(n.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof G.ActiveXObject!=Z){var o=null,s=false;try{o=new ActiveXObject(h+".7")}catch(k){try{o=new ActiveXObject(h+".6");t=[6,0,21];o.AllowScriptAccess="always"}catch(k){if(t[0]==6){s=true}}if(!s){try{o=new ActiveXObject(h)}catch(k){}}}if(!s&&o){try{n=o.GetVariable("$version");if(n){n=n.split(" ")[1].split(",");t=[parseInt(n[0],10),parseInt(n[1],10),parseInt(n[2],10)]}}catch(k){}}}}var v=N.userAgent.toLowerCase(),j=N.platform.toLowerCase(),r=/webkit/.test(v)?parseFloat(v.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,i=false,q=j?/win/.test(j):/win/.test(v),m=j?/mac/.test(j):/mac/.test(v);/*@cc_on i=true;@if(@_win32)q=true;@elif(@_mac)m=true;@end@*/return{w3cdom:l,pv:t,webkit:r,ie:i,win:q,mac:m}}();var e=function(){if(!a.w3cdom){return }J(I);if(a.ie&&a.win){try{g.write("<script id=__ie_ondomload defer=true src=//:><\/script>");var i=c("__ie_ondomload");if(i){i.onreadystatechange=function(){if(this.readyState=="complete"){this.parentNode.removeChild(this);V()}}}}catch(j){}}if(a.webkit&&typeof g.readyState!=Z){Q=setInterval(function(){if(/loaded|complete/.test(g.readyState)){V()}},10)}if(typeof g.addEventListener!=Z){g.addEventListener("DOMContentLoaded",V,null)}M(V)}();function V(){if(S){return }if(a.ie&&a.win){var m=Y("span");try{var l=g.getElementsByTagName("body")[0].appendChild(m);l.parentNode.removeChild(l)}catch(n){return }}S=true;if(Q){clearInterval(Q);Q=null}var j=f.length;for(var k=0;k<j;k++){f[k]()}}function J(i){if(S){i()}else{f[f.length]=i}}function M(j){if(typeof G.addEventListener!=Z){G.addEventListener("load",j,false)}else{if(typeof g.addEventListener!=Z){g.addEventListener("load",j,false)}else{if(typeof G.attachEvent!=Z){G.attachEvent("onload",j)}else{if(typeof G.onload=="function"){var i=G.onload;G.onload=function(){i();j()}}else{G.onload=j}}}}}function I(){var l=H.length;for(var j=0;j<l;j++){var m=H[j].id;if(a.pv[0]>0){var k=c(m);if(k){H[j].width=k.getAttribute("width")?k.getAttribute("width"):"0";H[j].height=k.getAttribute("height")?k.getAttribute("height"):"0";if(O(H[j].swfVersion)){if(a.webkit&&a.webkit<312){U(k)}X(m,true)}else{if(H[j].expressInstall&&!C&&O("6.0.65")&&(a.win||a.mac)){D(H[j])}else{d(k)}}}}else{X(m,true)}}}function U(m){var k=m.getElementsByTagName(P)[0];if(k){var p=Y("embed"),r=k.attributes;if(r){var o=r.length;for(var n=0;n<o;n++){if(r[n].nodeName.toLowerCase()=="data"){p.setAttribute("src",r[n].nodeValue)}else{p.setAttribute(r[n].nodeName,r[n].nodeValue)}}}var q=k.childNodes;if(q){var s=q.length;for(var l=0;l<s;l++){if(q[l].nodeType==1&&q[l].nodeName.toLowerCase()=="param"){p.setAttribute(q[l].getAttribute("name"),q[l].getAttribute("value"))}}}m.parentNode.replaceChild(p,m)}}function F(i){if(a.ie&&a.win&&O("8.0.0")){G.attachEvent("onunload",function(){var k=c(i);if(k){for(var j in k){if(typeof k[j]=="function"){k[j]=function(){}}}k.parentNode.removeChild(k)}})}}function D(j){C=true;var o=c(j.id);if(o){if(j.altContentId){var l=c(j.altContentId);if(l){L=l;T=j.altContentId}}else{L=b(o)}if(!(/%$/.test(j.width))&&parseInt(j.width,10)<310){j.width="310"}if(!(/%$/.test(j.height))&&parseInt(j.height,10)<137){j.height="137"}g.title=g.title.slice(0,47)+" - Flash Player Installation";var n=a.ie&&a.win?"ActiveX":"PlugIn",k=g.title,m="MMredirectURL="+G.location+"&MMplayerType="+n+"&MMdoctitle="+k,p=j.id;if(a.ie&&a.win&&o.readyState!=4){var i=Y("div");p+="SWFObjectNew";i.setAttribute("id",p);o.parentNode.insertBefore(i,o);o.style.display="none";G.attachEvent("onload",function(){o.parentNode.removeChild(o)})}R({data:j.expressInstall,id:K,width:j.width,height:j.height},{flashvars:m},p)}}function d(j){if(a.ie&&a.win&&j.readyState!=4){var i=Y("div");j.parentNode.insertBefore(i,j);i.parentNode.replaceChild(b(j),i);j.style.display="none";G.attachEvent("onload",function(){j.parentNode.removeChild(j)})}else{j.parentNode.replaceChild(b(j),j)}}function b(n){var m=Y("div");if(a.win&&a.ie){m.innerHTML=n.innerHTML}else{var k=n.getElementsByTagName(P)[0];if(k){var o=k.childNodes;if(o){var j=o.length;for(var l=0;l<j;l++){if(!(o[l].nodeType==1&&o[l].nodeName.toLowerCase()=="param")&&!(o[l].nodeType==8)){m.appendChild(o[l].cloneNode(true))}}}}}return m}function R(AE,AC,q){var p,t=c(q);if(typeof AE.id==Z){AE.id=q}if(a.ie&&a.win){var AD="";for(var z in AE){if(AE[z]!=Object.prototype[z]){if(z=="data"){AC.movie=AE[z]}else{if(z.toLowerCase()=="styleclass"){AD+=' class="'+AE[z]+'"'}else{if(z!="classid"){AD+=" "+z+'="'+AE[z]+'"'}}}}}var AB="";for(var y in AC){if(AC[y]!=Object.prototype[y]){AB+='<param name="'+y+'" value="'+AC[y]+'" />'}}t.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AD+">"+AB+"</object>";F(AE.id);p=c(AE.id)}else{if(a.webkit&&a.webkit<312){var AA=Y("embed");AA.setAttribute("type",W);for(var x in AE){if(AE[x]!=Object.prototype[x]){if(x=="data"){AA.setAttribute("src",AE[x])}else{if(x.toLowerCase()=="styleclass"){AA.setAttribute("class",AE[x])}else{if(x!="classid"){AA.setAttribute(x,AE[x])}}}}}for(var w in AC){if(AC[w]!=Object.prototype[w]){if(w!="movie"){AA.setAttribute(w,AC[w])}}}t.parentNode.replaceChild(AA,t);p=AA}else{var s=Y(P);s.setAttribute("type",W);for(var v in AE){if(AE[v]!=Object.prototype[v]){if(v.toLowerCase()=="styleclass"){s.setAttribute("class",AE[v])}else{if(v!="classid"){s.setAttribute(v,AE[v])}}}}for(var u in AC){if(AC[u]!=Object.prototype[u]&&u!="movie"){E(s,u,AC[u])}}t.parentNode.replaceChild(s,t);p=s}}return p}function E(k,i,j){var l=Y("param");l.setAttribute("name",i);l.setAttribute("value",j);k.appendChild(l)}function c(i){return g.getElementById(i)}function Y(i){return g.createElement(i)}function O(k){var j=a.pv,i=k.split(".");i[0]=parseInt(i[0],10);i[1]=parseInt(i[1],10);i[2]=parseInt(i[2],10);return(j[0]>i[0]||(j[0]==i[0]&&j[1]>i[1])||(j[0]==i[0]&&j[1]==i[1]&&j[2]>=i[2]))?true:false}function A(m,j){if(a.ie&&a.mac){return }var l=g.getElementsByTagName("head")[0],k=Y("style");k.setAttribute("type","text/css");k.setAttribute("media","screen");if(!(a.ie&&a.win)&&typeof g.createTextNode!=Z){k.appendChild(g.createTextNode(m+" {"+j+"}"))}l.appendChild(k);if(a.ie&&a.win&&typeof g.styleSheets!=Z&&g.styleSheets.length>0){var i=g.styleSheets[g.styleSheets.length-1];if(typeof i.addRule==P){i.addRule(m,j)}}}function X(k,i){var j=i?"visible":"hidden";if(S){c(k).style.visibility=j}else{A("#"+k,"visibility:"+j)}}return{registerObject:function(l,i,k){if(!a.w3cdom||!l||!i){return }var j={};j.id=l;j.swfVersion=i;j.expressInstall=k?k:false;H[H.length]=j;X(l,false)},getObjectById:function(l){var i=null;if(a.w3cdom&&S){var j=c(l);if(j){var k=j.getElementsByTagName(P)[0];if(!k||(k&&typeof j.SetVariable!=Z)){i=j}else{if(typeof k.SetVariable!=Z){i=k}}}}return i},embedSWF:function(n,u,r,t,j,m,k,p,s){if(!a.w3cdom||!n||!u||!r||!t||!j){return }r+="";t+="";if(O(j)){X(u,false);var q=(typeof s==P)?s:{};q.data=n;q.width=r;q.height=t;var o=(typeof p==P)?p:{};if(typeof k==P){for(var l in k){if(k[l]!=Object.prototype[l]){if(typeof o.flashvars!=Z){o.flashvars+="&"+l+"="+k[l]}else{o.flashvars=l+"="+k[l]}}}}J(function(){R(q,o,u);if(q.id==u){X(u,true)}})}else{if(m&&!C&&O("6.0.65")&&(a.win||a.mac)){X(u,false);J(function(){var i={};i.id=i.altContentId=u;i.width=r;i.height=t;i.expressInstall=m;D(i)})}}},getFlashPlayerVersion:function(){return{major:a.pv[0],minor:a.pv[1],release:a.pv[2]}},hasFlashPlayerVersion:O,createSWF:function(k,j,i){if(a.w3cdom&&S){return R(k,j,i)}else{return undefined}},createCSS:function(j,i){if(a.w3cdom){A(j,i)}},addDomLoadEvent:J,addLoadEvent:M,getQueryParamValue:function(m){var l=g.location.search||g.location.hash;if(m==null){return l}if(l){var k=l.substring(1).split("&");for(var j=0;j<k.length;j++){if(k[j].substring(0,k[j].indexOf("="))==m){return k[j].substring((k[j].indexOf("=")+1))}}}return""},expressInstallCallback:function(){if(C&&L){var i=c(K);if(i){i.parentNode.replaceChild(L,i);if(T){X(T,true);if(a.ie&&a.win){L.style.display="block"}}L=null;T=null;C=false}}}}}();