/* USE WORDWRAP AND MAXIMIZE THE WINDOW TO SEE THIS FILE
========================================
V-NewsTicker v2.1
License : Freeware (Enjoy it!)
(c)2003 VASIL DINKOV- PLOVDIV, BULGARIA
========================================
For IE4+, NS4+ & Opera5+
========================================
Get the NewsTicker script at:
http://www.smartmenus.org/other.php
and don't wait to get the Great SmartMenus 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...
v2_font='verdana,arial,sans-serif';
v2_fontSize='10px';
v2_fontSizeNS4='10px';
v2_fontWeight='normal';
v2_fontColor='#000000';
v2_textDecoration='none';
v2_fontColorHover='#ff0000';// | won't work
v2_textDecorationHover='none';// | in Netscape4
v2_bgColor='#FFFFFF'//'url(bg.jpg)';
// set [='transparent'] for transparent
// set [='url(image_source)'] for image
v2_top=0;// |
v2_left=0;// | defining
v2_width=120;// | the box
v2_height=160;// |
v2_paddingTop=2;
v2_paddingLeft=2;
v2_position='relative';//absolute or relative
v2_timeout=2500;//1000 = 1 second
v2_slideSpeed=30;
v2_slideDirection=0;//0=down-up;1=up-down
v2_pauseOnMouseOver=true;
/*
// === 2 === THE CONTENT - ['href','text','target']
// Use '' for href to have no link item
v2_content=[
['http://www.smartmenus.org/other.php','','_blank'],
['','
Featuring: support for the most popular browsers, easy setup, small size, pausing, sliding up or down...','_blank'],
['http://www.smartmenus.org/','
Don\'t wait and also get the most advanced navigation system for your site- the SmartMenus DHTML menu.','_blank']
];
*/
// THE SERIOUS SCRIPT - PLEASE DO NOT TOUCH
v2_ua=navigator.userAgent;
v2_nS4=document.layers?1:0;
v2_iE=document.all&&!window.innerWidth&&v2_ua.indexOf("MSIE")!=-1?1:0;
v2_oP=v2_ua.indexOf("Opera")!=-1&&document.clear?1:0;
v2_oP4=v2_ua.indexOf("Opera")!=-1&&!document.clear;
v2_kN=v2_ua.indexOf("Konqueror")!=-1&&parseFloat(v2_ua.substring(v2_ua.indexOf("Konqueror/")+10))<3.1?1:0;v2_count=v2_content.length;
v2_s1=1;
v2_cur=1;
v2_cl=0;
v2_d=v2_slideDirection?-1:1;
v2_TIM=0;
v2_fontSize2=v2_nS4&&navigator.platform.toLowerCase().indexOf("win")!=-1?v2_fontSizeNS4:v2_fontSize;v2_canPause=0;
function v2_getOS(a){
return v2_iE?document.all[a].style:v2_nS4?document.layers['v2_container'].document.layers[a]:document.getElementById(a).style
};
function v2_start(){
var o=v2_getOS('v2_1');
var px=v2_nS4?0:'px';
if(v2_iE||v2_oP){
if(o.pixelTop==v2_paddingTop){
v2_canPause=1;if(v2_count>1)v2_TIM=setTimeout("v2_canPause=0;v2_slide()",v2_timeout);
return
};
o.pixelTop-=v2_d;if(v2_oP&&o.visibility.toLowerCase()!='visible')o.visibility='visible';setTimeout("v2_start()",v2_slideSpeed);
return
};
if(parseInt(o.top)==v2_paddingTop){
v2_canPause=1;
if(v2_count>1)v2_TIM=setTimeout("v2_canPause=0;v2_slide()",v2_timeout);
return
};
o.top=parseInt(o.top)-v2_d+px;
setTimeout("v2_start()",v2_slideSpeed)};
function v2_slide(){
var o=v2_getOS('v2_'+v2_cur);
var o2=v2_getOS('v2_'+(v2_cur.vnewsticker,a.vnewsticker{font-family:'+v2_font+';font-size:'+v2_fontSize2+';color:'+v2_fontColor+';text-decoration:'+v2_textDecoration+';font-weight:'+v2_fontWeight+'}a.vnewsticker:hover{font-family:'+v2_font+';font-size:'+v2_fontSize2+';color:'+v2_fontColorHover+';text-decoration:'+v2_textDecorationHover+'}');v2_temp='';v2_temp+='';
document.write(v2_temp);
setTimeout("v2_start()",1000);
if(v2_nS4)onresize=function(){
location.reload()
}
}