﻿var phpAds_campain_big;
var phpAds_campain_sky;
var bli = 0

function up(x) {
document.getElementById('atx').style.visibility = "hidden";
document.getElementById('atx').style.position = "absolute";
document.getElementById('dax').style.visibility = "hidden";
document.getElementById('dax').style.position = "absolute";
document.getElementById('iatx').style.visibility = "hidden";
document.getElementById('iatx').style.position = "absolute";
document.getElementById('bex').style.visibility = "hidden";
document.getElementById('bex').style.position = "absolute";

document.getElementById('oewa_neu').src = "http://stats.boerse-express.com/cgi-bin/ivw/CP/RedCont/tickertausch/"+x;
document.getElementById('oewa_neu').src = "http://wiblatt.oewabox.at/cgi-bin/ivw/CP/RedCont/tickertausch/"+x+"/boerse-express.com/";

document.getElementById(x).style.visibility = "visible";
document.getElementById(x).style.position = "static";

}


function up2(x) {
document.getElementById('atx').style.visibility = "hidden";
document.getElementById('atx').style.position = "absolute";
document.getElementById('dax').style.visibility = "hidden";
document.getElementById('dax').style.position = "absolute";
document.getElementById('ifg').style.visibility = "hidden";
document.getElementById('ifg').style.position = "absolute";
document.getElementById('tecdax').style.visibility = "hidden";
document.getElementById('tecdax').style.position = "absolute";

document.getElementById(x).style.visibility = "visible";
document.getElementById(x).style.position = "static";

}


function up3(x) {
document.getElementById('matrix_1').style.visibility = "hidden";
document.getElementById('matrix_1').style.position = "absolute";
document.getElementById('matrix_2').style.visibility = "hidden";
document.getElementById('matrix_2').style.position = "absolute";


document.getElementById(x).style.visibility = "visible";
document.getElementById(x).style.position = "static";

}

function popUpWindow(URL, Name, width, height, resizable, scrollbars) 
{
	popUp = window.open (URL, Name, 'toolbar=0,location=no,directories=0,status=0,menubar=0,resizable='+ resizable +',scrollbars='+ scrollbars +',width='+ width +',height='+ height);
}
      
function ChartDetail(SymbolName) {
        w = 500
	h = (navigator.appName != "Netscape")? 500 : 530
	/* popUpWindow('http://www.teletrader.com/_markets/chart_detail.asp?SymbolName='+ SymbolName, 'ChartDetail', w, h, 'no', 'no') */
	popUpWindow('/cgi-bin/charting/detail.pl?id='+ SymbolName, 'ChartDetail', w, h, 'no', 'no')
}
        
function popUpWin(Newlocation,name,w,h,s,resizable)
{
	width=w;
	if(s==0)
		var scrollbars="yes";
	if(s==1)
		var scrollbars="no";
		popUpWindow=window.open(Newlocation,name,'toolbar=0,location=no,directories=0,status=0,menubar=0,scrollbars='+scrollbars+',resizable='+resizable+',width='+w+',height='+h);
	if (popUpWindow.opener==null) popUpWindow.opener=self;
	if (window.focus) popUpWindow.focus();
}


function jTrader(SymbolName,linksPrefix) {
	var path = 'http://boerse-express.ttweb.net/JavaTrader/'
	if(linksPrefix!=null) path = linksPrefix;
	w = 620
	h = (navigator.appName != "Netscape")? 465 : 515
	resizable = (navigator.appName != 'Netscape')? 'yes' : 'no'
	popUpWindow(path + 'default.asp?SymbolName=' + SymbolName + '', 'jTrader', w, h, resizable,'no')
}

function banner()
{
        document.getElementById("frame1").src = "/advertorial/full_home.html";
}

function blinzel_alt()
{
	if (document.getElementById('related').style.visibility == "hidden")
	{
		document.getElementById('related').style.position = "relative";
		document.getElementById('related').style.visibility = "visible"; }
	else {
		document.getElementById('related').style.position = "absolute";
		document.getElementById('related').style.visibility = "hidden";
	}
}

function blinzel()
{

	if (document.getElementById('related').style.visibility == "hidden") {
		document.getElementById('related').style.position = "relative";
		document.getElementById('related').style.visibility = "visible";
		bli++;
		document.getElementById('oewa_own').src = "http://stats.boerse-express.com/cgi-bin/ivw/CP/RedCont/RelatedStories/activated"+bli;
		document.getElementById('oewa_own').src = "http://wiblatt.oewabox.at/cgi-bin/ivw/CP/RedCont/RelatedStories/activated"+bli+"/boerse-express.com/";
	}
	else {
		document.getElementById('related').style.position = "absolute";
		document.getElementById('related').style.visibility = "hidden";
        bli++;
        document.getElementById('oewa_own').src = "http://stats.boerse-express.com/cgi-bin/ivw/CP/RedCont/RelatedStories/deactivated"+bli;
        document.getElementById('oewa_own').src = "http://wiblatt.oewabox.at/cgi-bin/ivw/CP/RedCont/RelatedStories/deactivated"+bli+"/boerse-express.com/";
	}
}

function toggle_chartware()
{

	if (document.getElementById('chartware').style.visibility == "hidden") {
		document.getElementById('chartware').style.position = "relative";
		document.getElementById('chartware').style.visibility = "visible";
		bli++;
		document.getElementById('oewa_own').src = "http://stats.boerse-express.com/cgi-bin/ivw/CP/RedCont/ChartWare/activated"+bli;
		document.getElementById('oewa_own').src = "http://wiblatt.oewabox.at/cgi-bin/ivw/CP/RedCont/Chartware/activated"+bli+"/boerse-express.com/";
	}
	else {
		document.getElementById('chartware').style.position = "absolute";
		document.getElementById('chartware').style.visibility = "hidden";
        bli++;
        document.getElementById('oewa_own').src = "http://stats.boerse-express.com/cgi-bin/ivw/CP/RedCont/ChartWare/deactivated"+bli;
        document.getElementById('oewa_own').src = "http://wiblatt.oewabox.at/cgi-bin/ivw/CP/RedCont/Chartware/deactivated"+bli+"/boerse-express.com/";
	}
}


function matrix_week()
{
    if (document.getElementById('matrix_week').style.visibility == "hidden") {
        document.getElementById('matrix_week').style.position = "relative";
        document.getElementById('matrix_week').style.visibility = "visible";
    }
    else {
        document.getElementById('matrix_week').style.position = "absolute";
        document.getElementById('matrix_week').style.visibility = "hidden";
    }
}

function einblend()
{
	var hoehe = document.getElementById('zelle').offsetHeight;
	if (Number(hoehe) <= 120) {
		document.getElementById('spacer').style.height = hoehe; }
}
function tools() {
if(document.getElementById("tools").style.position == "absolute") {
document.getElementById("tools").style.position="relative";
document.getElementById("tools").style.visibility="visible"; }
else {
document.getElementById("tools").style.position="absolute";
document.getElementById("tools").style.visibility="hidden"; }
}
//v1.0
//Copyright 2006 Adobe Systems, Inc. All rights reserved.
function AC_AddExtension(src, ext)
{
  if (src.indexOf('?') != -1)
    return src.replace(/\?/, ext+'?'); 
  else
    return src + ext;
}

function AC_Generateobj(objAttrs, params, embedAttrs) 
{ 
  var str = '<object ';
  for (var i in objAttrs)
    str += i + '="' + objAttrs[i] + '" ';
  str += '>';
  for (var i in params)
    str += '<param name="' + i + '" value="' + params[i] + '" /> ';
  str += '<embed ';
  for (var i in embedAttrs)
    str += i + '="' + embedAttrs[i] + '" ';
  str += ' ></embed></object>';

  document.write(str);
}

function AC_FL_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
     , "application/x-shockwave-flash"
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_SW_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
     , null
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
  var ret = new Object();
  ret.embedAttrs = new Object();
  ret.params = new Object();
  ret.objAttrs = new Object();
  for (var i=0; i < args.length; i=i+2){
    var currArg = args[i].toLowerCase();    

    switch (currArg){   
      case "classid":
        break;
      case "pluginspage":
        ret.embedAttrs[args[i]] = args[i+1];
        break;
      case "src":
      case "movie": 
        args[i+1] = AC_AddExtension(args[i+1], ext);
        ret.embedAttrs["src"] = args[i+1];
        ret.params[srcParamName] = args[i+1];
        break;
      case "onafterupdate":
      case "onbeforeupdate":
      case "onblur":
      case "oncellchange":
      case "onclick":
      case "ondblClick":
      case "ondrag":
      case "ondragend":
      case "ondragenter":
      case "ondragleave":
      case "ondragover":
      case "ondrop":
      case "onfinish":
      case "onfocus":
      case "onhelp":
      case "onmousedown":
      case "onmouseup":
      case "onmouseover":
      case "onmousemove":
      case "onmouseout":
      case "onkeypress":
      case "onkeydown":
      case "onkeyup":
      case "onload":
      case "onlosecapture":
      case "onpropertychange":
      case "onreadystatechange":
      case "onrowsdelete":
      case "onrowenter":
      case "onrowexit":
      case "onrowsinserted":
      case "onstart":
      case "onscroll":
      case "onbeforeeditfocus":
      case "onactivate":
      case "onbeforedeactivate":
      case "ondeactivate":
      case "type":
      case "codebase":
        ret.objAttrs[args[i]] = args[i+1];
        break;
      case "width":
      case "height":
      case "align":
      case "vspace": 
      case "hspace":
      case "class":
      case "title":
      case "accesskey":
      case "name":
      case "id":
      case "tabindex":
        ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
        break;
      default:
        ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
    }
  }
  ret.objAttrs["classid"] = classid;
  if (mimeType) ret.embedAttrs["type"] = mimeType;
  return ret;
}

