//scroller width
var swidth=150;

//scroller height
var sheight=50;

//background color
var sbcolor=''

//scroller's speed
var sspeed=1

var url = "http://www.smythtradecredit.com/"
var arrowImgUrl = "<img src=" + url + "images/arrow.gif border=0>"
var creditImgUrl = "<img src=" + url + "images/creditProtection.gif border=0 width=150>"
var creditPageUrl = "mailto:mwagman@smythtradecredit.com"
var bankruptcyImgUrl = "<img src=" + url + "images/bankruptcyClaim.gif border=0 width=150>"
var bankruptcyPageUrl = "mailto:mwagman@smythsolutions.com"

var msg = '<table width=90%><tr><td style="font-size:11px;font-family:arial">' +
arrowImgUrl + ' A&P<br>'+ 
arrowImgUrl + ' Air Canada<br>'+ 
arrowImgUrl + ' Air Jamaica<br>'+ 
arrowImgUrl + ' Blockbuster<br>'+ 
arrowImgUrl + ' Bombardier<br>'+ 
arrowImgUrl + ' Calpine<br>'+
arrowImgUrl + ' C&S Wholesale<br>'+
arrowImgUrl + ' CompUSA<br>'+ 
arrowImgUrl + ' Continental Airlines<br>'+ 
arrowImgUrl + ' Dana Corp.<br>'+ 
arrowImgUrl + ' Delta Airlines<br>'+ 
arrowImgUrl + ' Duane Reade<br>'+ 
arrowImgUrl + ' Gander Mountain<br>'+ 
arrowImgUrl + ' Gateway<br>'+ 
arrowImgUrl + ' GM<br>'+ 
arrowImgUrl + ' Hayes Lemmerz<br>'+ 
arrowImgUrl + ' HHGregg Appliance<br>'+ 
arrowImgUrl + ' Hudson\'s Bay/Zellers<br>'+
arrowImgUrl + ' Interstate Bakeries<br>'+ 
arrowImgUrl + ' Jo-Ann Stores, Inc<br>'+ 
arrowImgUrl + ' Lear Corp.<br>'+ 
arrowImgUrl + ' Linens & Things<br>'+ 
arrowImgUrl + ' Movie Gallery<br>'+ 
arrowImgUrl + ' Northwest Airlines<br>'+ 
arrowImgUrl + ' NRG Energy<br>'+ 
arrowImgUrl + ' Pathmark<br>'+ 
arrowImgUrl + ' Pep Boys<br>'+ 
arrowImgUrl + ' Retail Ventures<br>'+ 
arrowImgUrl + ' Revlon<br>'+
arrowImgUrl + ' Rite Aid<br>'+ 
arrowImgUrl + ' Sharper Image<br>'+ 
arrowImgUrl + ' Toys "R" Us<br>'+
arrowImgUrl + ' Tweeter<br>'+ 
arrowImgUrl + ' United Airlines<br>'+ 
arrowImgUrl + ' Visteon<br>'+ 
arrowImgUrl + ' Wet Seal<br>'+ 
arrowImgUrl + ' Winn-Dixie<br>'+ 
'</td></tr></table>'

var resumesspeed=sspeed

function start(){    
    if (document.all) iemarquee(slider);
    else if (document.getElementById)
    ns6marquee(document.getElementById('slider'));
    else if(document.layers)
    ns4marquee(document.slider1.document.slider2);
}

function iemarquee(whichdiv){
    iediv=eval(whichdiv)
    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 ns4marquee(whichlayer){
    ns4layer=eval(whichlayer)
    ns4layer.top=sheight
    ns4layer.document.write(msg)
    ns4layer.document.close()
    sizeup=ns4layer.document.height
    ns4slide()
}

function ns4slide(){
    if (ns4layer.top>=sizeup*(-1)){
        ns4layer.top-=sspeed
        setTimeout("ns4slide()",100)
    } else{
        ns4layer.top=sheight
        ns4slide()
    }
}

function ns6marquee(whichdiv){
    ns6div=eval(whichdiv)
    ns6div.style.top=sheight
    ns6div.innerHTML=msg
    sizeup=ns6div.offsetHeight
    ns6slide()
}

function ns6slide(){
    if (parseInt(ns6div.style.top)>=sizeup*(-1)){
        ns6div.style.top=parseInt(ns6div.style.top)-sspeed
        setTimeout("ns6slide()",100)
    } else{
        ns6div.style.top=sheight
        ns6slide()
    }
}

var output = '<table cellpadding=0 cellspacing=0 width=150>' +
	'<tr>' +
		'<td valign=top align=right style="border:solid #333333 1px">' +
			'<table cellpadding=0 cellspacing=0>' +
				'<tr><td align=center><a style="color:black;" class=normal href="' + creditPageUrl + '" title="">' + creditImgUrl + '</a><br></td></tr>' +
				'<tr><td height=23 style="font-size:10px;font-family:tahoma;" align=center>Shortlist of Available Coverage</td></tr>' +
				'<tr>' +
					'<td align=center>' +
						'<ilayer width=&{swidth}; height=&{sheight}; name="slider1" bgcolor=&{sbcolor};>' +
							'<layer name="slider2" width=&{swidth}; onMouseover="sspeed=0;" onMouseout="sspeed=resumesspeed"></layer>' +
						'</ilayer>'
						
						document.write(output);
						
						if (document.getElementById || document.all || navigator.userAgent.indexOf("Firefox") != -1){
							document.write('<span style="background-color: #ffffff;	margin: 0px; padding: 0px;height:'+sheight+';">')
							document.write('<div style="position:relative;overflow:hidden;width:'+swidth+';height:'+sheight+';clip:rect(0 '+swidth+' '+sheight+' 0);background-color:'+sbcolor+';" onMouseover="sspeed=0;" onMouseout="sspeed=resumesspeed">')
							document.write('<div id="slider" style="position:relative;width:'+swidth+';height:'+sheight+';">')
							document.write('</div></div></span>')
						}
						
var output1 = 		'</td>' +
				'</tr>' +
				'<tr><td align=center><a style="color:black;" class=normal href="' + bankruptcyPageUrl + '" title="">' + bankruptcyImgUrl + '</a><br></td></tr>' +					
			'</table>' +	
		'</td>' +
	'</tr>' +
'</table>'
						document.write(output1);