var tpWidth='300px';                  // width (in pixels)
var tpHeight='75px';                  // height (in pixels)
var tpcolour='#ffffff';               // background colour:
var mopStop=false;                     // pause on mouseover (true or false)
var fontfamilyp = 'arial,sans-serif'; // font for content
var tpSpeed=1;                        // scroll speed (1 = slow, 5 = fast)

var contentphotos='<a title="Click to view the gallery" href="building-works.php"><img src="images\/banner\/1.JPG" width="100" height="75" border="0" alt="Builders Alicante Spain" \/><img src="images\/banner\/2.JPG" width="56" height="75" border="0" alt="Bathrooms" \/><img src="images\/banner\/3.JPG" width="100" height="75" border="0" alt="General builders alicante spain" \/><img src="images\/banner\/4.JPG" width="100" height="75" border="0" alt="External builders alicante spain" \/><img src="images\/banner\/5.JPG" width="100" height="75" border="0" alt="Porches and Pergolas" \/><img src="images\/banner\/6.JPG" width="100" height="75" border="0" alt="Kitchen fitters alicante spain" \/><img src="images\/banner\/7.JPG" width="60" height="75" border="0" alt="Kitchens" \/><img src="images\/banner\/8.JPG" width="60" height="75" border="0" alt="Swimming pools and surrounds" \/><img src="images\/banner\/9.JPG" width="100" height="75" border="0" alt="Glazing and Metalwork" \/><\/a>';

var cpsphoto=tpSpeed; 
var awp, wqp; 
var fszphotos = parseInt(tpHeight) - 0; 

// normal ticker
var tWidth='600px';                  // width (in pixels)
var tHeight='25px';                  // height (in pixels)
var tcolour='#ffffff';               // background colour:
var moStop=false;                     // pause on mouseover (true or false)
var fontfamily = 'arial,sans-serif'; // font for content
var tSpeed=2;                        // scroll speed (1 = slow, 5 = fast)

var content='Legal and Spanish Registered....';

var cps=tSpeed; 
var aw, mq; 
var fsz = parseInt(tHeight) - 4; 


function starttickerp()
{
	if (document.getElementById) { var tickp = '<div style="position:relative;width:'+tpWidth+';height:'+tpHeight+';overflow:hidden;background-color:'+tpcolour+'"'; if (mopStop) tickp += ' onmouseover="cpsphoto=0" onmouseout="cpsphoto=tpSpeed"';
tickp +='><div id="wqp" style="position:absolute;left:0px;top:0px;font-family:'+fontfamilyp+';font-size:'+fszphotos+'px;white-space:nowrap;"><\/div><\/div>'; document.getElementById('photos').innerHTML = tickp; wqp = document.getElementById("wqp"); wqp.style.left=(parseInt(tpWidth)+10)+"px"; wqp.innerHTML='<span id="txphotos">'+contentphotos+'<\/span>'; awp = document.getElementById("txphotos").offsetWidth; lefttimep=setInterval("scrolltickerp()",50);}
	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 scrolltickerp() {wqp.style.left = (parseInt(wqp.style.left)>(1 - awp)) ?parseInt(wqp.style.left)-cpsphoto+"px" : parseInt(tpWidth)+1+"px";} 

function startticker(){} function scrollticker(){mq.style.left = (parseInt(mq.style.left)>(-10 - aw)) ?parseInt(mq.style.left)-cps+"px" : parseInt(tWidth)+10+"px";} 

window.onload=starttickerp;
