/* USE WORDWRAP AND MAXIMIZE THE WINDOW TO SEE THIS FILE
========================================
 V-NewsTicker v2.2
 License : Freeware (Enjoy it!)
 (c)2003 VASIL DINKOV- PLOVDIV, BULGARIA
========================================
 For IE4+, NS4+, Opera5+, Konqueror3.1+
========================================
 Get the NewsTicker script at:
 http://www.smartmenus.org/
 LEAVE THESE NOTES PLEASE - delete the comments if you want */

// BUG in Opera:
// If you want to be able to control the body margins
// put the script right after the BODY tag, not in the HEAD!!!

// === 1 === FONT, COLORS, EXTRAS...
wc01_font='arial,sans-serif';
wc01_fontSize='12px';
wc01_fontSizeNS4='12px';
wc01_fontWeight='normal';
wc01_fontColor='#ffffff';
wc01_textDecoration='none';
wc01_fontColorHover='#e2e2e2';//		| won't work
wc01_textDecorationHover='none';//	| in Netscape4
wc01_bgColor='transparent';
// set [='transparent'] for transparent
// set [='url(image_source)'] for image
wc01_top=0;//	|
wc01_left=0;//	| defining
wc01_width=150;//	| the box
wc01_height=175;//	|
wc01_paddingTop=2;
wc01_paddingLeft=2;
wc01_position='relative';// absolute/relative
wc01_timeout=6500;//1000 = 1 second
wc01_slideSpeed=10;
wc01_slideDirection=0;//0=down-up;1=up-down
wc01_pauseOnMouseOver=true;
// v2.2+ new below
wc01_slideStep=1;//pixels
wc01_textAlign='left';// left/center/right
wc01_textVAlign='top';// top/middle/bottom - won't work in Netscape4

// === 2 === THE CONTENT - ['href','text','target']
// Use '' for href to have no link item


// ===
wc01_ua=navigator.userAgent;wc01_nS4=document.layers?1:0;wc01_iE=document.all&&!window.innerWidth&&wc01_ua.indexOf("MSIE")!=-1?1:0;wc01_oP=wc01_ua.indexOf("Opera")!=-1&&document.clear?1:0;wc01_oP7=wc01_oP&&document.appendChild?1:0;wc01_oP4=wc01_ua.indexOf("Opera")!=-1&&!document.clear;wc01_kN=wc01_ua.indexOf("Konqueror")!=-1&&parseFloat(wc01_ua.substring(wc01_ua.indexOf("Konqueror/")+10))<3.1?1:0;wc01_count=wc01_content.length;wc01_cur=1;wc01_cl=0;wc01_d=wc01_slideDirection?-1:1;wc01_TIM=0;wc01_fontSize2=wc01_nS4&&navigator.platform.toLowerCase().indexOf("win")!=-1?wc01_fontSizeNS4:wc01_fontSize;wc01_canPause=0;function wc01_getOS(a){return wc01_iE?document.all[a].style:wc01_nS4?document.layers["wc01_container"].document.layers[a]:document.getElementById(a).style};function wc01_start(){var o,px;o=wc01_getOS("wc01_1");px=wc01_oP&&!wc01_oP7||wc01_nS4?0:"px";if(parseInt(o.top)==wc01_paddingTop){wc01_canPause=1;if(wc01_count>1)wc01_TIM=setTimeout("wc01_canPause=0;wc01_slide()",wc01_timeout);return}o.top=(parseInt(o.top)-wc01_slideStep*wc01_d)*wc01_d>wc01_paddingTop*wc01_d?parseInt(o.top)-wc01_slideStep*wc01_d+px:wc01_paddingTop+px;if(wc01_oP&&o.visibility.toLowerCase()!="visible")o.visibility="visible";setTimeout("wc01_start()",wc01_slideSpeed)};function wc01_slide(){var o,o2,px;o=wc01_getOS("wc01_"+wc01_cur);o2=wc01_getOS("wc01_"+(wc01_cur<wc01_count?wc01_cur+1:1));px=wc01_oP&&!wc01_oP7||wc01_nS4?0:"px";if(parseInt(o2.top)==wc01_paddingTop){if(wc01_oP)o.visibility="hidden";o.top=wc01_height*wc01_d+px;wc01_cur=wc01_cur<wc01_count?wc01_cur+1:1;wc01_canPause=1;wc01_TIM=setTimeout("wc01_canPause=0;wc01_slide()",wc01_timeout);return}if(wc01_oP&&o2.visibility.toLowerCase()!="visible")o2.visibility="visible";if((parseInt(o2.top)-wc01_slideStep*wc01_d)*wc01_d>wc01_paddingTop*wc01_d){o.top=parseInt(o.top)-wc01_slideStep*wc01_d+px;o2.top=parseInt(o2.top)-wc01_slideStep*wc01_d+px}else{o.top=-wc01_height*wc01_d+px;o2.top=wc01_paddingTop+px}setTimeout("wc01_slide()",wc01_slideSpeed)};if(wc01_nS4||wc01_iE||wc01_oP||document.getElementById&&!wc01_kN&&!wc01_oP4){
document.write("<style>.vnewsticker,a.vnewsticker{font-family:"+wc01_font+";font-size:"+wc01_fontSize2+";color:"+wc01_fontColor+";text-decoration:"+wc01_textDecoration+";font-weight:"+wc01_fontWeight+"}a.vnewsticker:hover{font-family:"+wc01_font+";font-size:"+wc01_fontSize2+";color:"+wc01_fontColorHover+";text-decoration:"+wc01_textDecorationHover+"}</style>");wc01_temp="<div "+(wc01_nS4?"name":"id")+"=wc01_container style='position:"+wc01_position+";top:"+wc01_top+"px;left:"+wc01_left+"px;width:"+wc01_width+"px;height:"+wc01_height+"px;background:"+wc01_bgColor+";layer-background"+(wc01_bgColor.indexOf("url(")==0?"-image":"-color")+":"+wc01_bgColor+";clip:rect(0,"+wc01_width+","+wc01_height+",0);overflow:hidden'>"+(wc01_iE?"<div style='position:absolute;top:0px;left:0px;width:100%;height:100%;clip:rect(0,"+wc01_width+","+wc01_height+",0)'>":"");for(wc01_i=0;wc01_i<wc01_count;wc01_i++)
wc01_temp+="<div "+(wc01_nS4?"name":"id")+"=wc01_"+(wc01_i+1)+" style='position:absolute;top:"+(wc01_height*wc01_d)+"px;left:"+wc01_paddingLeft+"px;width:"+(wc01_width-wc01_paddingLeft*2)+"px;height:"+(wc01_height-wc01_paddingTop*2)+"px;clip:rect(0,"+(wc01_width-wc01_paddingLeft*2)+","+(wc01_height-wc01_paddingTop*2)+",0);overflow:hidden"+(wc01_oP?";visibility:hidden":"")+";text-align:"+wc01_textAlign+"' class=vnewsticker>"+(!wc01_nS4?"<table width="+(wc01_width-wc01_paddingLeft*2)+" height="+(wc01_height-wc01_paddingTop*2)+" cellpadding=0 cellspacing=0 border=0><tr><td width="+(wc01_width-wc01_paddingLeft*2)+" height="+(wc01_height-wc01_paddingTop*2)+" align="+wc01_textAlign+" valign="+wc01_textVAlign+" class=vnewsticker>":"")+(wc01_content[wc01_i][0]!=""?"<a href='"+wc01_content[wc01_i][0]+"' target='"+wc01_content[wc01_i][2]+"' class=vnewsticker"+(wc01_pauseOnMouseOver?" onmouseover='if(wc01_canPause&&wc01_count>1){clearTimeout(wc01_TIM);wc01_cl=1}' onmouseout='if(wc01_canPause&&wc01_count>1&&wc01_cl)wc01_TIM=setTimeout(\"wc01_canPause=0;wc01_slide();wc01_cl=0\","+wc01_timeout+")'":"")+">":"<span"+(wc01_pauseOnMouseOver?" onmouseover='if(wc01_canPause&&wc01_count>1){clearTimeout(wc01_TIM);wc01_cl=1}' onmouseout='if(wc01_canPause&&wc01_count>1&&wc01_cl)wc01_TIM=setTimeout(\"wc01_canPause=0;wc01_slide();wc01_cl=0\","+wc01_timeout+")'":"")+">")+wc01_content[wc01_i][1]+(wc01_content[wc01_i][0]!=""?"</a>":"</span>")+(!wc01_nS4?"</td></tr></table>":"")+"</div>";wc01_temp+=(wc01_iE?"</div>":"")+"</div>";document.write(wc01_temp);setTimeout("wc01_start()",1000);if(wc01_nS4)onresize=function(){location.reload()}}