//-------------------------------------------------------------------------
// Vertical Scrolling News Ticker
//-------------------------------------------------------------------------
	
	//scroller width
var swidth=250;

//scroller height
var sheight=100;

//background color 
var sbcolor="#FFFFFF";

//scroller's speed
var sspeed=2;

var msg='';

//Your messages go below:

				
msg=	'<ul><li><a href="index.html" target="_self" title="Welcome to 2Comm">Welcome to 2Comm</a></li>'+
		'<li>Texting is now commonplace in youth culture today and is rapidly being taken on board by businesses needing to communicate with their clients.</li>'+
		'<li>&nbsp;</li></ul>'+
//MSG 2
'<ul><li><li>We have over half a million opted in users in the United Kingdom, Ireland, Australia and South Africa as well as globally around the world.<br/></li></ul>' +
'<li>&nbsp;</li></ul>'+

'<ul><li><li>The main aspect of our business is the marketing of applications to opted in users. We market for brands as well as customised content worldwide.</li></ul>' +
'<li>&nbsp;</li></ul>'+

'<ul><li><a href="bulksmsdelivery.html" target="_self" title="Bulk SMS">Bulk SMS</a></li>'+
'<li>We have various partners that you can connect through for bulk sms. <br><br>Try our under 3p UK route.<br><br>Please contact us for more details</li></ul>' +
'<li>&nbsp;</li></ul>'+

'<ul><li><a href="contentmanagement.html" target="_self" title="Manage your own content">Manage your own content</a></li>'+
'<li>We dont supply our own content but using our platform will enable you to push your content to your customers.<br><br>Please contact us for more details and rates.</li></ul>' ;

//End of your messages


var resumesspeed=sspeed
function start() {
	if (document.all) iemarquee(ticker);
	else if (document.getElementById)
		ns6marquee(document.getElementById('ticker'));
}

function iemarquee(whichdiv){
	iediv=eval(whichdiv)
	sheight += 50;
	iediv.style.pixelTop=sheight
	iediv.innerHTML=msg 
	sizeup=iediv.offsetHeight
	ieslide()
}

function ieslide(){
	if (iediv.style.pixelTop>=sizeup*(-1)){
		iediv.style.pixelTop-=sspeed
		setTimeout("ieslide()",100)
	}
	else{
		iediv.style.pixelTop=sheight
		ieslide()
	}
}

function ns6marquee(whichdiv){
	ns6div=eval(whichdiv)
	sheight += 50;
	ns6div.style.top=sheight + "px";
	ns6div.innerHTML=msg
	sizeup=ns6div.offsetHeight
	ns6slide()
}
function ns6slide(){
	if (parseInt(ns6div.style.top)>=sizeup*(-1)){
		theTop = parseInt(ns6div.style.top)-sspeed
		ns6div.style.top = theTop + "px";
		setTimeout("ns6slide()",100)
	}
	else {
		ns6div.style.top = sheight + "px";
		ns6slide()
	}
}
