// Flash-Detection
var requiredVersion = 5;
var flash2Installed = false;
var flash3Installed = false;
var flash4Installed = false;
var flash5Installed = false;
var flash6Installed = false;
var flash7Installed = false;
var maxVersion = 7;
var actualVersion = 0;
var hasRightVersion = false;
var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.indexOf("Windows") != -1) ? true : false;
if(isIE && isWin){
document.write('");
}
// ende Flash-Detection
function followPopUpLink(pUrl, pAddress, paktPath) {
if (self != top)
{
control = 1;
// Pfad der aktuell links gesetzt ist
path = "";
if (document.images)
path = top.opener.parent.frames.toc.navPath;
else
path = top.opener.parent.navPath;
// wenn andere linke Navigation aktualisiere linke Navigation
if (!(paktPath == path)) {
control = 0;
Address = pAddress;
if (document.images)
top.opener.parent.frames.toc.location.replace(Address);
else
top.opener.parent.location.href=Address;
}
// btobody aktualisieren
top.opener.parent.btobody.location.href = pUrl;
}
}
function followTocLink(pUrl, pAddress, paktPath) {
if (self != top) {
control=1;
var path = top.toc.navPath;
if (!(paktPath == path)) {
control = 0;
Address = pAddress;
if(document.images) top.frames.toc.location.replace(Address);
else top.location.href=Address;
}
}
parent.btobody.location.href = pUrl;
}
function followExternalLink(pUrl, pAddress, paktPath, pCounter)
{
loadRedirectPixel(pCounter);
if (self.name == "btobody")
{
// Link aus dem btobody-frame moeglicherweise andere Domain, muss security beachten
// gilt auch fuer ersatzbild regul im nc4
self.location.href = pUrl;
}
else if (self.name == "OASregul")
{
// fuer ie ersatzbild regul
parent.location.href = pUrl;
}
else if (self.name == "toc")
{
// eigenes Frameset und identische Domain
followTocLink(pUrl, pAddress, paktPath);
}
else
{
// zugriff auf frameset ueber top.opener ist immer eigene Domain
followPopUpLink(pUrl, pAddress, paktPath);
}
}
function followLink (pUrl, pTarget, pCounter)
{
loadRedirectPixel(pCounter);
if (pTarget == "btobody")
setBtobody(pUrl);
else
window.open(pUrl, "_blank");
}
function setBtobody (pUrl)
{
if (top.opener == null)
{
if (parent.btobody == null)
location.href = pUrl;
else
parent.btobody.location.href = pUrl;
}
else
{
if (top.opener.parent.btobody == null) {
if (parent.btobody == null) {
location.href = pUrl;
}
else {
parent.btobody.location.href = pUrl;
}
}
else {
top.opener.parent.btobody.location.href = pUrl;
}
}
}
function loadRedirectPixel (pCounter)
{
if ((pCounter == null) || (pCounter.length == 0))
return;
pixel = new Image();
pixel.src = "http://bild.ivwbox.de/cgi-bin/ivw/LP/weiterleitung;/" + pCounter;
pixel.seconds = 5;
pixel.wait = waitForPixel;
pixel.interval = setInterval("pixel.wait()", 1000);
pixel.wait();
pixel = new Image();
pixel.src = "http://dyn.bild.t-online.de/toolkit/ClientServlet.jsp?komponenten_id=5&server_action=0&pixel=" + pCounter;
pixel.seconds = 5;
pixel.wait = waitForPixel;
pixel.interval = setInterval("pixel.wait()", 1000);
pixel.wait();
}
function waitForPixel ()
{
this.seconds--;
if (document.layers || this.complete || (this.seconds <= 0))
clearInterval(this.interval);
}
function openWindowAndCount (pLink, pName, pSize, pCounter)
{
loadRedirectPixel(pCounter);
window.open(pLink, pName, pSize);
}
// News-Ticker ----------------------------------------------
function Fensterweite()
{
if (window.innerWidth)
{
return window.innerWidth;
}
else
{
if (document.body && document.body.offsetWidth)
return document.body.offsetWidth;
else
return 0;
}
}
function regenerate()
{
window.location.reload();
}
//nn-Version
function regenerate2()
{
if (document.layers)
{
setTimeout("window.onresize=regenerate",450);
intializemarquee();
}
}
function intializemarquee()
{
document.cmarquee01.document.cmarquee02.document.write('