function alertSize() {
var myWidth = 0, myHeight = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	} else if( document.documentElement &&
		( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
	}
	//window.alert( 'Width = ' + myWidth );
	//window.alert(myHeight);
	document.write( '<img src="images/ws.gif" alt="" width="1" height="' + myHeight + '" border="0">');
}


function opener(url,name) {
	var myURL = url, myName = name;
	
	myWindow = window.open(myURL,myName,'location=0,toolbar=0,menubar=0,directories=0,resizeable=0,status=1,scrollbars=1,width=636,height=300');
  	myWindow.moveTo(50,50);

}

var textwidth = 2250; // braucht man für Explorer
var marqueewidth=325;
var marqueeheight=19;
var marqueespeed=2;
var marqueebgcolor="#FFFFFF";
var pauseit=1;
var marqueecontent = "<span style=\"color: #00347C;\">&lt;FUCHS Stock Ticker&gt;</span> need to get this information   ";

var copyspeed=marqueespeed;
var pausespeed=(pauseit==0)? copyspeed: 0;
var iedom=document.all||document.getElementById;
var actualwidth="";
var obj_text;

function populate(){
	//	document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100;left:-1000; font-family: arial,helvetica,sans-serif; font-size: 11px; text-decoration: none; color: #243A48; white-space: nowrap;"><nobr>'+marqueecontent+'</nobr></span>');
	
	obj_cont = document.getElementById? document.getElementById("cont") : document.all.cont;
	obj_cont.style.visibility = "visible";
	obj_cont.style.width = marqueewidth;
	obj_cont.style.height = marqueeheight;
	
	obj_text=document.getElementById? document.getElementById("text") : document.all.text;
	obj_text.style.left=marqueewidth+8;
	obj_text.innerHTML = "<nobr>" + marqueecontent + "</nobr>";
	//	actualwidth=document.all? obj_text.offsetWidth : document.getElementById("temp").offsetWidth;
	if(actualwidth==0 || navigator.appName=="Microsoft Internet Explorer")
	actualwidth = textwidth;
	//	alert(actualwidth);
	lefttime=setInterval("scrollmarquee()",20);
}

function scrollmarquee(){
	if (parseInt(obj_text.style.left)>(actualwidth*(-1)+8))
		obj_text.style.left=parseInt(obj_text.style.left)-copyspeed;
	else
		obj_text.style.left=marqueewidth+8;
}

function openPic(url,winName,winParams)	{	//
	var theWindow = window.open(url,winName,winParams);
	if (theWindow) {
		theWindow.focus();
	}
}


