/* 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='11px';
v2_fontWeight='normal';
v2_fontColor='#333333';
v2_textDecoration='none';
v2_fontColorHover='#ff0000';//		| won't work
v2_textDecorationHover='underline';//	| in Netscape4
//v2_bgColor='url(bg.jpg)';
v2_bgColor='transparent';
// set [='transparent'] for transparent
// set [='url(image_source)'] for image
v2_top=0;//	|
v2_left=0;//	| defining
v2_width=650;//	| the box
v2_height=80;//	|
v2_paddingTop=2;
v2_paddingLeft=2;
v2_position='relative';//absolute or relative
v2_timeout=2500;//1000 = 1 second
v2_slideSpeed=25;
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','<img src=strelka.gif align=top width=20 height=11 border=0>Welcome to the V-NewsTicker example page! Presenting the best FREE vertical news scroller ever written.','_blank'],
//['','<img src=strelka.gif align=top width=20 height=11 border=0>Featuring: support for the most popular browsers, easy setup, small size, pausing, sliding up or down...','_blank'],
//['http://www.smartmenus.org/','<img src=strelka.gif align=top width=20 height=11 border=0>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<v2_count?v2_cur+1:1));var px=v2_nS4?0:'px';if(v2_iE||v2_oP){if(o.pixelTop==v2_paddingTop*2-v2_height*v2_d){if(v2_oP)o.visibility='hidden';o.pixelTop=v2_height*v2_d;v2_cur=v2_cur<v2_count?v2_cur+1:1;v2_canPause=1;v2_TIM=setTimeout("v2_canPause=0;v2_slide()",v2_timeout);return};o.pixelTop-=v2_d;if(v2_oP&&o2.visibility.toLowerCase()!='visible')o2.visibility='visible';o2.pixelTop-=v2_d;setTimeout("v2_slide()",v2_slideSpeed);return};if(parseInt(o.top)==v2_paddingTop*2-v2_height*v2_d){o.top=v2_height*v2_d+px;v2_cur=v2_cur<v2_count?v2_cur+1:1;v2_canPause=1;v2_TIM=setTimeout("v2_canPause=0;v2_slide()",v2_timeout);return};o.top=parseInt(o.top)-v2_d+px;o2.top=parseInt(o2.top)-v2_d+px;setTimeout("v2_slide()",v2_slideSpeed)};if(v2_nS4||v2_iE||v2_oP||document.getElementById&&!v2_kN&&!v2_oP4){document.write('<style>.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+'}</style>');v2_temp='<div '+(v2_nS4?"name":"id")+'=v2_container style="position:'+v2_position+';top:'+v2_top+'px;left:'+v2_left+'px;width:'+v2_width+'px;height:'+v2_height+'px;background:'+v2_bgColor+';layer-background'+(v2_bgColor.indexOf("url(")==0?"-image":"-color")+':'+v2_bgColor+';clip:rect(0,'+v2_width+','+v2_height+',0);overflow:hidden">';for(v2_i=0;v2_i<v2_count;v2_i++)v2_temp+='<div '+(v2_nS4?"name":"id")+'=v2_'+(v2_i+1)+' style="position:absolute;top:'+(v2_height*v2_d)+'px;left:'+v2_paddingLeft+'px;width:'+(v2_width-v2_paddingLeft*2)+'px;height:'+(v2_height-v2_paddingTop*2)+'px;clip:rect(0,'+(v2_width-v2_paddingLeft*2)+','+(v2_height-v2_paddingTop*2)+',0);overflow:hidden'+(v2_oP?";visibility:hidden":"")+'" class=vnewsticker>'+(v2_content[v2_i][0]!=''?'<a href="'+v2_content[v2_i][0]+'" target="'+v2_content[v2_i][2]+'" class=vnewsticker'+(v2_pauseOnMouseOver?" onmouseover=\'if(v2_canPause&&v2_count>1){clearTimeout(v2_TIM);v2_cl=1}\' onmouseout=\'if(v2_canPause&&v2_count>1&&v2_cl)v2_TIM=setTimeout(\"v2_canPause=0;v2_slide();v2_cl=0\","+v2_timeout+")\'":"")+'>':'<span'+(v2_pauseOnMouseOver?" onmouseover=\'if(v2_canPause&&v2_count>1){clearTimeout(v2_TIM);v2_cl=1}\' onmouseout=\'if(v2_canPause&&v2_count>1&&v2_cl)v2_TIM=setTimeout(\"v2_canPause=0;v2_slide();v2_cl=0\","+v2_timeout+")\'":"")+'>')+v2_content[v2_i][1]+(v2_content[v2_i][0]!=''?'</a>':'</span>')+'</div>';v2_temp+='</div>';document.write(v2_temp);setTimeout("v2_start()",1000);if(v2_nS4)onresize=function(){location.reload()}}