var tWidth='768px';                  // width (in pixels)
var tHeight='21px';                  // height (in pixels)
var tcolour='#ffffcc';               // background colour:
var moStop=false;                     // pause on mouseover (true or false)
var fontfamily = 'arial,sans-serif'; // font for content
var tSpeed=4;                        // scroll speed (1 = slow, 5 = fast)

// enter your ticker content here (use \/ and \' in place of / and ' respectively)
//var content='Are you looking for loads of useful information <a href="http:\/\/javascript.about.com\/">About Javascript<\/a>? Well now you\'ve found it.';
//var content = '<span style="background-color:#001B8E;"><font color="#FFFFFF">&nbsp;2008 Year end value Mei Moses&reg; All Art Index:&nbsp;</font></span><b> 267.1 </b> &nbsp; &nbsp; <span style="background-color:#001B8E;"><font color="#FFFFFF">&nbsp;2009 Mid Year Tracking Report:&nbsp;</font></span><b> All Art Index down 31% </b>'
var content;
content = '<b>';
content += '<font color="#001B8E">2010 Mid Year Tracking Indexes Year To Date Results:</font>';
content += ' &nbsp; &nbsp; ';
content += '<font color="#001B8E">All Art Index:</font>';
content += ' <font color="#008000">Up 13.39%</font>';
content += ' &nbsp; &nbsp; ';
content += '<font color="#001B8E">Latin America Index:</font>';
content += ' <font color="#FF0000">Down 2.45%</font>';
content += ' &nbsp; &nbsp; ';
content += '<font color="#001B8E">American Before 1950 Index:</font>';
content += ' <font color="#008000">Up 15.79%</font>';
content += ' &nbsp; &nbsp; ';
content += '<font color="#001B8E">Impressionist and Modern Index:</font>';
content += ' <font color="#008000">Up 17.66%</font>';
content += ' &nbsp; &nbsp; ';
content += '<font color="#001B8E">Old Master and 19th Century Index:</font>';
content += ' <font color="#FF0000">Down 0.83%</font>';
content += ' &nbsp; &nbsp; ';
content += '<font color="#001B8E">Post War and Comtemporary Index:</font>';
content += ' <font color="#008000">Up 35.08%</font>';
content += ' &nbsp; &nbsp; ';

content += '<font color="#001B8E">2010 End of May Tracking Indexes Year To Date Results:</font>';
content += ' &nbsp; &nbsp; ';
content += '<font color="#001B8E">Impressionist and Modern Index:</font>';
content += ' <font color="#008000">Up 17.7%</font>';
content += ' &nbsp; &nbsp; ';
content += '<font color="#001B8E">Old Master and 19th Century Index:</font>';
content += ' <font color="#008000">Up 18%</font>';
content += ' &nbsp; &nbsp; ';
content += '<font color="#001B8E">Post War and Comtemporary Index:</font>';
content += ' <font color="#008000">Up 30%</font>';
content += ' &nbsp; &nbsp; ';

content += '<font color="#001B8E">2010 First Quarter Tracking Result Percentage Change from Year End 2009 Values of Mei Moses&reg; All Art Index:</font>';
content += ' <font color="#FF0000">Down 4.80%</font>';
content += ' &nbsp; &nbsp; ';
content += '<font color="#001B8E">American Before 1950 Index:</font>';
content += ' <font color="#FF0000">Down 32.54%</font>';
content += ' &nbsp; &nbsp; ';
content += '<font color="#001B8E">Impressionist and Modern Index:</font>';
content += ' <font color="#008000">Up 4.47%</font>';
content += ' &nbsp; &nbsp; ';
content += '<font color="#001B8E">Old Master and 19th Century Index:</font>';
content += ' <font color="#008000">Up 16.81%</font>';
content += ' &nbsp; &nbsp; ';
content += '<font color="#001B8E">Post War and Comtemporary Index:</font>';
content += ' <font color="#008000">Up 19.03%</font>';
content += '</b>'

// Simple Marquee / Ticker Script
// copyright 3rd January 2006, Stephen Chapman
// permission to use this Javascript on your web page is granted
// provided that all of the below code in this script (including this
// comment) is used without any alteration
var cps=tSpeed;
var aw, mq;
var fsz = parseInt(tHeight) - 3;

function startticker() {
	if (document.getElementById) {
		var tick = '<div style="position:relative;width:'+tWidth+';height:'+tHeight+';overflow:hidden;background-color:'+tcolour+'"';
		if (moStop)
			tick += ' onmouseover="cps=0" onmouseout="cps=tSpeed"';
		tick +='><div id="mq" style="position:absolute;left:0px;top:0px;font-family:'+fontfamily+';font-size:'+fsz+'px;white-space:nowrap;"><\/div><\/div>';
		document.getElementById('ticker').innerHTML = tick;
		mq = document.getElementById("mq");
		mq.style.left=(parseInt(tWidth)+10)+"px";
		mq.innerHTML='<span id="tx">'+content+'<\/span>';
		aw = document.getElementById("tx").offsetWidth; lefttime=setInterval("scrollticker()",50);
	}
}

function scrollticker() {
	mq.style.left = (parseInt(mq.style.left)>(-10 - aw)) ? parseInt(mq.style.left)-cps+"px" : parseInt(tWidth)+10+"px";
}

window.onload=startticker;
                  