

// universal js

if (_tickJSVersion<=1.1) {
  var tickerSiteWindowLocation=this.location; 
}
else{
  var tickerSiteDocUrl=Document.URL;
}

var settableTicker=0;
// parse browser mac and java

if((parseInt(navigator.appVersion)>=4)&&
  (navigator.appVersion.indexOf("mac"||"MAC")<0)&&  
  (navigator.javaEnabled())
  );{
  settableTicker=1;
  tickerSetMeUp();
  }
  //else {
  //settableTicker=2
  // document.writeln('<img src=http://image.newstick.com/images/pixel.gif width=200 height=199>
  //}
  
//
// set up applet

//--------------------------------------------------------------------------//
function openNews(sUrl,sWinName,sParams)
{
  var sParams='location=no, status=no,toolbar=no,scrollbars=yes,resizable=yes,width=400,height=400, left=200, top=100';
  window.open(sUrl,sWinName,sParams );
}
//--------------------------------------------------------------------------//
function openDoc(sUrl,sWinName,sParams,sOption)
{
 if (sOption=='Ticker in new window') {
    var sParams='location=no, status=no,toolbar=no,scrollbars=no,resizable=yes,width=250,height=250, left=200, top=200';
 }
 else if (sOption=='Live Coverage') {
    var sParams='location=no, status=no,toolbar=no,scrollbars=no,resizable=yes,width=300,height=290, left=290, top=200';
 }
 else if (sOption=='Live Scores') {
    var sParams='location=no, status=no,toolbar=no,scrollbars=yes,resizable=yes,width=650,height=400, left=10, top=10';
 }
 else if (sOption=='Statistics') {
    var sParams='location=no, status=no,toolbar=no,scrollbars=yes,resizable=yes,width=650,height=400, left=10, top=10';
 }
 else if (sOption=='Message Boards') {
    var sParams='location=no, status=no,toolbar=no,scrollbars=yes,resizable=yes,width=700,height=400, left=10, top=10';
 }
 else if (sOption=='League Tables') {
    var sParams='location=no, status=no,toolbar=no,scrollbars=yes,resizable=yes,width=650,height=450, left=10, top=10';
 }
 else if (sOption=='Fixtures') {
    var sParams='location=no, status=no,toolbar=no,scrollbars=yes,resizable=yes,width=650,height=400, left=10, top=10';
 }
 else {
    var sParams='menubar=yes,location=yes, status=yes,toolbar=yes,scrollbars=yes,resizable=yes,width=780,height=500, left=0, top=0';
 }
 window.open(sUrl,sWinName,sParams );
}
//--------------------------------------------------------------------------//

function tickerSetMeUp(){
//document.writeln('<script src="http://www.newstick.com/ticker/ticker.js"></script>');
document.writeln('<APPLET code=WldNewsTick.class name=AppletTyper');
document.writeln('archive=Typer.zip');
document.writeln('codebase=http://www.newstick.com/ticker/code/tickerID/10034/');
document.writeln('height=199 width=200 MAYSCRIPT>');
document.write('<PARAM NAME="ContentUrl" VALUE="http://www.newstick.com/ticker/content/">');
document.write('<PARAM NAME="StartOption" VALUE="newsheadlines">');
document.write('');
document.write('<PARAM NAME="Font" VALUE="Arial,plain,11">');
document.write('<PARAM NAME="TitleFont" VALUE=" Arial,bold,12">');
document.write('<PARAM NAME="BackColor" VALUE="#8CB9B9">');
document.write('<PARAM NAME="ForeColor" VALUE="#666666">');
document.write('<PARAM NAME="HighliteForeColor" VALUE="#333333">');
document.write('<PARAM NAME="TitleColor" VALUE="#333333">');
document.write('<PARAM NAME="HighliteTitleColor" VALUE="#333333">');
document.write('<PARAM NAME="OutlineColor" VALUE="">');
document.write('<PARAM NAME="BackTyperColor" VALUE="#D7E6E6">');
document.write('');
document.write('<PARAM NAME="TyperStart" VALUE="bottom">');
document.write('<PARAM NAME="Typer3DArea" VALUE="">');
document.write('');
document.write('<PARAM NAME="TyperTop" VALUE="15">');
document.write('<PARAM NAME="TyperLeft" VALUE="10">');
document.write('<PARAM NAME="TyperRight" VALUE="10">');
document.write('<PARAM NAME="TyperBottom" VALUE="10">');
document.write('<PARAM NAME="TextHorizMargin" VALUE="">');
document.write('<PARAM NAME="TextVertMargin" VALUE="">');
document.write('');
document.write('<PARAM NAME="TyperLineSpace" VALUE="">');
document.write('<PARAM NAME="TyperCharSpace" VALUE="">');
document.write('<PARAM NAME="TyperLineSpeed" VALUE="">');
document.write('<PARAM NAME="TyperCharSpeed" VALUE="45">');
document.write('<PARAM NAME="TyperScrollSpeed" VALUE="35">');
document.write('');
document.write('<PARAM NAME="AfterTitleSpace" VALUE="5">');
document.write('<PARAM NAME="AfterTextSpace" VALUE="5">');
document.write('');
document.write('<PARAM NAME="OpenDocumentMethod" VALUE="openDoc">');
document.write('<PARAM NAME="OpenNewsMethod" VALUE="openNews">');
document.write('');
document.write('<PARAM NAME="MenuItemsUrl" VALUE="http://www.newstick.com/ticker/menu/">');
document.write('');
document.write('<PARAM NAME="MenuShow" VALUE="yes">');
document.write('<PARAM NAME="MenuDisplay" VALUE="MENU">');
document.write('<PARAM NAME="MenuFont" VALUE="Arial,plain,10">');
document.write('<PARAM NAME="MenuAlignment" VALUE="right">');
document.write('');
document.write('<PARAM NAME="MenuBackColor" VALUE="#8CB9B9">');
document.write('<PARAM NAME="MenuForeColor" VALUE="#333333">');
document.write('<PARAM NAME="MenuOutlineColor" VALUE="#666666">');
document.write('<PARAM NAME="MenuHighliteBackColor" VALUE="#8CB9B9">');
document.write('<PARAM NAME="MenuHighliteForeColor" VALUE="#666666">');
document.write('</APPLET>');
}
