﻿// === 1 === FONT, COLORS, EXTRAS...
english_font='verdana,arial,helvetica,sans-serif';
english_fontSize='10px';
english_fontSizeNS4='10px';
english_fontWeight='regular';
english_fontColor='white';
english_textDecoration='none';
english_fontColorHover='#ff0000';//       | won't work
english_textDecorationHover='underline';//    | in Netscape4
//english_bgColor='blue';
english_bgColor='transparent';
// set [='url(imagenglish_source)'] for image
english_top=2;//  |
english_left=10;// | defining
english_width=230;//  | the box
english_height=40;//  |
english_paddingTop=2;
english_paddingLeft=0;
english_position='relative';// absolute/relative
english_timeout=4000;//1000 = 1 second
english_slideSpeed=200;
english_slideDirection=0;//0=down-up;1=up-down
english_pauseOnMouseOver=true;
// v2.2+ new below
english_slideStep=5;//pixels
english_textAlign='left';// left/center/right
english_textVAlign='top';// top/middle/bottom - won't work in Netscape4

// === 2 === THE CONTENT - ['href','text','target']
// Use '' for href to have no link item
english_content=
[   
    ['','<B><font style="color:yellow;">Next show</font></B><BR>December 12 at Gan Shmuel','_blank'],    
    ['','<B><font style="color:yellow;">New LIVE video</font></B><BR>They believe we exist<br>','_blank']    
];

english_ua=navigator.userAgent;
english_nS4=document.layers?1:0;
english_iE=document.all&&!window.innerWidth&&english_ua.indexOf("MSIE")!=-1?1:0;
english_oP=english_ua.indexOf("Opera")!=-1&&document.clear?1:0;
english_oP7=english_oP&&document.appendChild?1:0;
english_oP4=english_ua.indexOf("Opera")!=-1&&!document.clear;
english_kN=english_ua.indexOf("Konqueror")!=-1&&parseFloat(english_ua.substring(english_ua.indexOf("Konqueror/")+10))<3.1?1:0;
english_count=english_content.length;
english_cur=1;
english_cl=0;
english_d=english_slideDirection?-1:1;
english_TIM=0;
english_fontSize2=english_nS4&&navigator.platform.toLowerCase().indexOf("win")!=-1?english_fontSizeNS4:english_fontSize;
english_canPause=0;

function english_getOS(a)
{
    return english_iE?document.all[a].style:english_nS4?document.layers["english_container"].document.layers[a]:document.getElementById(a).style
};

function english_start()
{
    var o,px;
    o=english_getOS("english_1");
    px=english_oP&&!english_oP7||english_nS4?0:"px";
    if(parseInt(o.top)==english_paddingTop)
    {   
        english_canPause=1;
        if(english_count>1)english_TIM=setTimeout("english_canPause=0;english_slide()",english_timeout);
        return
    }
    o.top=(parseInt(o.top)-english_slideStep*english_d)*english_d>english_paddingTop*english_d?parseInt(o.top)-english_slideStep*english_d+px:english_paddingTop+px;
    if(english_oP&&o.visibility.toLowerCase()!="visible")o.visibility="visible";
    setTimeout("english_start()",english_slideSpeed)
};
    
function english_slide()
{
    var o,o2,px;
    o=english_getOS("english_"+english_cur);
    o2=english_getOS("english_"+(english_cur<english_count?english_cur+1:1));
    px=english_oP&&!english_oP7||english_nS4?0:"px";
    if(parseInt(o2.top)==english_paddingTop)
    {
        if(english_oP)o.visibility="hidden";
        o.top=english_height*english_d+px;
        english_cur=english_cur<english_count?english_cur+1:1;
        english_canPause=1;
        english_TIM=setTimeout("english_canPause=0;english_slide()",english_timeout);
        return
    }
    if(english_oP&&o2.visibility.toLowerCase()!="visible")o2.visibility="visible";
    if((parseInt(o2.top)-english_slideStep*english_d)*english_d>english_paddingTop*english_d)
    {
        o.top=parseInt(o.top)-english_slideStep*english_d+px;
        o2.top=parseInt(o2.top)-english_slideStep*english_d+px
    }
    else
    {
        o.top=-english_height*english_d+px;
        o2.top=english_paddingTop+px
    }
    setTimeout("english_slide()",english_slideSpeed)
};

if(english_nS4||english_iE||english_oP||document.getElementById&&!english_kN&&!english_oP4)
{
    document.write("<style>.vnewsticker,a.vnewsticker{font-family:"+english_font+";font-size:"+english_fontSize2+";color:"+english_fontColor+";text-decoration:"+english_textDecoration+";font-weight:"+english_fontWeight+"}a.vnewsticker:hover{font-family:"+english_font+";font-size:"+english_fontSize2+";color:"+english_fontColorHover+";text-decoration:"+english_textDecorationHover+"}</style>");
    english_temp="<div "+(english_nS4?"name":"id")+"=english_container style='position:"+english_position+";top:"+english_top+"px;left:"+english_left+"px;width:"+english_width+"px;height:"+english_height+"px;background:"+english_bgColor+";layer-background"+(english_bgColor.indexOf("url(")==0?"-image":"-color")+":"+english_bgColor+";clip:rect(0,"+english_width+","+english_height+",0);overflow:hidden'>"+(english_iE?"<div style='position:absolute;top:0px;left:0px;width:100%;height:100%;clip:rect(0,"+english_width+","+english_height+",0)'>":"");
    for(english_i=0;english_i<english_count;english_i++)    
    english_temp+="<div "+(english_nS4?"name":"id")+"=english_"+(english_i+1)+" style='position:absolute;top:"+(english_height*english_d)+"px;left:"+english_paddingLeft+"px;width:"+(english_width-english_paddingLeft*2)+"px;height:"+(english_height-english_paddingTop*2)+"px;clip:rect(0,"+(english_width-english_paddingLeft*2)+","+(english_height-english_paddingTop*2)+",0);overflow:hidden"+(english_oP?";visibility:hidden":"")+";text-align:"+english_textAlign+"' class=vnewsticker>"+(!english_nS4?"<table width="+(english_width-english_paddingLeft*2)+" height="+(english_height-english_paddingTop*2)+" cellpadding=0 cellspacing=0 border=0><tr><td width="+(english_width-english_paddingLeft*2)+" height="+(english_height-english_paddingTop*2)+" align="+english_textAlign+" valign="+english_textVAlign+" class=vnewsticker>":"")+(english_content[english_i][0]!=""?"<a href='"+english_content[english_i][0]+"' target='"+english_content[english_i][2]+"' class=vnewsticker"+(english_pauseOnMouseOver?" onmouseover='if(english_canPause&&english_count>1){clearTimeout(english_TIM);english_cl=1}' onmouseout='if(english_canPause&&english_count>1&&english_cl)english_TIM=setTimeout(\"english_canPause=0;english_slide();english_cl=0\","+english_timeout+")'":"")+">":"<span"+(english_pauseOnMouseOver?" onmouseover='if(english_canPause&&english_count>1){clearTimeout(english_TIM);english_cl=1}' onmouseout='if(english_canPause&&english_count>1&&english_cl)english_TIM=setTimeout(\"english_canPause=0;english_slide();english_cl=0\","+english_timeout+")'":"")+">")+english_content[english_i][1]+(english_content[english_i][0]!=""?"</a>":"</span>")+(!english_nS4?"</td></tr></table>":"")+"</div>";english_temp+=(english_iE?"</div>":"")+"</div>";
    document.write(english_temp);
    setTimeout("english_start()",1000);
    if(english_nS4)onresize=function()
    {
        location.reload()
    }
}
