// JavaScript Document



var tWidth='949px';                  // width (in pixels)
var tHeight='18px';                  // height (in pixels)
var tcolour='#EFEDEA';               // background colour:
var moStop=true;                     // pause on mouseover (true or false)
var fontfamily = 'arial,sans-serif'; // font for content
var tSpeed=3;                        // scroll speed (1 = slow, 5 = fast)

// enter your ticker content here (use \/ and \' in place of / and ' respectively)
var spacer = '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:#474220;">GO SEE</span>&nbsp;&nbsp;';

var content1='<span style="color:#7B6B52;">Flashback: Bridget Riley&nbsp;,&nbsp;</span><span style="color:#F78C18;">Birmingham Museums &amp; Art Gallery&nbsp;,&nbsp;</span><span style="color:#7B6B52;">6 February - 23 May 2010&nbsp;&nbsp;</span><span style="color:#F78C18;">Norwich Castle Museum and Art Gallery&nbsp;,&nbsp;</span><span style="color:#7B6B52;">5 June - 5 September 2010&nbsp;&nbsp;</span><span style="color:#F78C18;">Southampton City Art Gallery&nbsp;,&nbsp;</span><span style="color:#7B6B52;">17 September - 5 December 2010&nbsp;&nbsp;</span>';


var content2='<span style="color:#7B6B52;">The Gathering: Making the Arts Council Collection&nbsp;,&nbsp;</span><span style="color:#F78C18;">Longside Gallery, Longside&nbsp;,&nbsp;</span><span style="color:#7B6B52;">4 March - 18 April 2010&nbsp;&nbsp;</span>';


var content3='<span style="color:#7B6B52;">Now Showing 2 &nbsp;,&nbsp;</span><span style="color:#F78C18;">Museum and Art Gallery, Derby&nbsp;,&nbsp;</span><span style="color:#7B6B52;">27 March - 9 May 2010&nbsp;&nbsp;</span><span style="color:#F78C18;">Available for tour&nbsp;,&nbsp;</span><span style="color:#7B6B52;">17 July - 29 August 2011&nbsp;&nbsp;</span><span style="color:#F78C18;">OVADA, Oxford&nbsp;,&nbsp;</span><span style="color:#7B6B52;">8 January - 20 February 2011&nbsp;&nbsp;</span><span style="color:#F78C18;">The Brindley, Runcorn&nbsp;,&nbsp;</span><span style="color:#7B6B52;">5 March - 17 April 2011&nbsp;&nbsp;</span><span style="color:#F78C18;">Museum and Art Gallery, Newport&nbsp;,&nbsp;</span><span style="color:#7B6B52;">30 April - 12 June 2011&nbsp;&nbsp;</span><span style="color:#F78C18;">Lightbox, Woking&nbsp;,&nbsp;</span><span style="color:#7B6B52;">25 June - 7 August 2011&nbsp;&nbsp;</span><span style="color:#F78C18;">The Collection, Lincoln&nbsp;,&nbsp;</span><span style="color:#7B6B52;">20 August - 2 October 2011&nbsp;&nbsp;</span><span style="color:#F78C18;">Rhyl Library Art Gallery &nbsp;,&nbsp;</span><span style="color:#7B6B52;">15 October - 27 November 2011&nbsp;&nbsp;</span>';



var content= spacer + content1 + spacer + content2  + spacer +  content3;



// 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


	// Safari
	if (navigator.userAgent.indexOf("Safari")!=-1) {
		var cps=2; var aw, mq; var fsz = parseInt(tHeight) - 4; 
		
//function startticker(){if (document.getElementById) {var tick = '<div style="position:relative;left:-950px;top:4px;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:-950px;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;
	}
	// Firefox
	if (navigator.userAgent.indexOf("Firefox")!=-1) {
		var cps=2; var aw, mq; var fsz = parseInt(tHeight) - 4; 
		
function startticker(){if (document.getElementById) {var tick = '<div style="position:relative;left:-950px;top:4px;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;
	}
	// IE
	if (navigator.userAgent.indexOf("MSIE")!=-1 && navigator.userAgent.indexOf("Opera")==-1) {
		var cps=tSpeed; var aw, mq; var fsz = parseInt(tHeight) - 4; 
		
function startticker(){if (document.getElementById) {var tick = '<div style="position:relative;width:'+tWidth+';height:23px;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;padding-top:3px;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;
	}

                  