/* 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...
v1_font='verdana,arial,sans-serif';
v1_fontSize='10px';
v1_fontSizeNS4='11px';
v1_fontWeight='normal';
v1_fontColor='#333333';
v1_textDecoration='none';
v1_fontColorHover='#ff0000';//		| won't work
v1_textDecorationHover='underline';//	| in Netscape4
//v1_bgColor='url(bg.jpg)';
v1_bgColor='transparent';
// set [='transparent'] for transparent
// set [='url(image_source)'] for image
v1_top=0;//	|
v1_left=0;//	| defining
v1_width=650;//	| the box
v1_height=80;//	|
v1_paddingTop=2;
v1_paddingLeft=2;
v1_position='relative';//absolute or relative
v1_timeout=2500;//1000 = 1 second
v1_slideSpeed=25;
v1_slideDirection=0;//0=down-up;1=up-down
v1_pauseOnMouseOver=true;

// === 2 === THE CONTENT - ['href','text','target']
// Use '' for href to have no link item
//v1_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
v1_ua=navigator.userAgent;
v1_nS4=document.layers?1:0;
v1_iE=document.all&&!window.innerWidth&&v1_ua.indexOf("MSIE")!=-1?1:0;
v1_oP=v1_ua.indexOf("Opera")!=-1&&document.clear?1:0;
v1_oP4=v1_ua.indexOf("Opera")!=-1&&!document.clear;
v1_kN=v1_ua.indexOf("Konqueror")!=-1&&parseFloat(v1_ua.substring(v1_ua.indexOf("Konqueror/")+10))<3.1?1:0;
v1_count=v1_content.length;
v1_s1=1;
v1_cur=1;
v1_cl=0;
v1_d=v1_slideDirection?-1:1;
v1_TIM=0;
v1_fontSize2=v1_nS4&&navigator.platform.toLowerCase().indexOf("win")!=-1?v1_fontSizeNS4:v1_fontSize;
v1_canPause=0;
function v1_getOS(a){return v1_iE?document.all[a].style:v1_nS4?document.layers['v1_container'].document.layers[a]:document.getElementById(a).style};function v1_start(){var o=v1_getOS('v1_1');var px=v1_nS4?0:'px';if(v1_iE||v1_oP){if(o.pixelTop==v1_paddingTop){v1_canPause=1;if(v1_count>1)v1_TIM=setTimeout("v1_canPause=0;v1_slide()",v1_timeout);return};o.pixelTop-=v1_d;if(v1_oP&&o.visibility.toLowerCase()!='visible')o.visibility='visible';setTimeout("v1_start()",v1_slideSpeed);return};if(parseInt(o.top)==v1_paddingTop){v1_canPause=1;if(v1_count>1)v1_TIM=setTimeout("v1_canPause=0;v1_slide()",v1_timeout);return};o.top=parseInt(o.top)-v1_d+px;setTimeout("v1_start()",v1_slideSpeed)};function v1_slide(){var o=v1_getOS('v1_'+v1_cur);var o2=v1_getOS('v1_'+(v1_cur<v1_count?v1_cur+1:1));var px=v1_nS4?0:'px';if(v1_iE||v1_oP){if(o.pixelTop==v1_paddingTop*2-v1_height*v1_d){if(v1_oP)o.visibility='hidden';o.pixelTop=v1_height*v1_d;v1_cur=v1_cur<v1_count?v1_cur+1:1;v1_canPause=1;v1_TIM=setTimeout("v1_canPause=0;v1_slide()",v1_timeout);return};o.pixelTop-=v1_d;if(v1_oP&&o2.visibility.toLowerCase()!='visible')o2.visibility='visible';o2.pixelTop-=v1_d;setTimeout("v1_slide()",v1_slideSpeed);return};if(parseInt(o.top)==v1_paddingTop*2-v1_height*v1_d){o.top=v1_height*v1_d+px;v1_cur=v1_cur<v1_count?v1_cur+1:1;v1_canPause=1;v1_TIM=setTimeout("v1_canPause=0;v1_slide()",v1_timeout);return};o.top=parseInt(o.top)-v1_d+px;o2.top=parseInt(o2.top)-v1_d+px;setTimeout("v1_slide()",v1_slideSpeed)};if(v1_nS4||v1_iE||v1_oP||document.getElementById&&!v1_kN&&!v1_oP4){document.write('<style>.vnewsticker,a.vnewsticker{font-family:'+v1_font+';font-size:'+v1_fontSize2+';color:'+v1_fontColor+';text-decoration:'+v1_textDecoration+';font-weight:'+v1_fontWeight+'}a.vnewsticker:hover{font-family:'+v1_font+';font-size:'+v1_fontSize2+';color:'+v1_fontColorHover+';text-decoration:'+v1_textDecorationHover+'}</style>');v1_temp='<div '+(v1_nS4?"name":"id")+'=v1_container style="position:'+v1_position+';top:'+v1_top+'px;left:'+v1_left+'px;width:'+v1_width+'px;height:'+v1_height+'px;background:'+v1_bgColor+';layer-background'+(v1_bgColor.indexOf("url(")==0?"-image":"-color")+':'+v1_bgColor+';clip:rect(0,'+v1_width+','+v1_height+',0);overflow:hidden">';for(v1_i=0;v1_i<v1_count;v1_i++)v1_temp+='<div '+(v1_nS4?"name":"id")+'=v1_'+(v1_i+1)+' style="position:absolute;top:'+(v1_height*v1_d)+'px;left:'+v1_paddingLeft+'px;width:'+(v1_width-v1_paddingLeft*2)+'px;height:'+(v1_height-v1_paddingTop*2)+'px;clip:rect(0,'+(v1_width-v1_paddingLeft*2)+','+(v1_height-v1_paddingTop*2)+',0);overflow:hidden'+(v1_oP?";visibility:hidden":"")+'" class=vnewsticker>'+(v1_content[v1_i][0]!=''?'<a href="'+v1_content[v1_i][0]+'" target="'+v1_content[v1_i][2]+'" class=vnewsticker'+(v1_pauseOnMouseOver?" onmouseover=\'if(v1_canPause&&v1_count>1){clearTimeout(v1_TIM);v1_cl=1}\' onmouseout=\'if(v1_canPause&&v1_count>1&&v1_cl)v1_TIM=setTimeout(\"v1_canPause=0;v1_slide();v1_cl=0\","+v1_timeout+")\'":"")+'>':'<span'+(v1_pauseOnMouseOver?" onmouseover=\'if(v1_canPause&&v1_count>1){clearTimeout(v1_TIM);v1_cl=1}\' onmouseout=\'if(v1_canPause&&v1_count>1&&v1_cl)v1_TIM=setTimeout(\"v1_canPause=0;v1_slide();v1_cl=0\","+v1_timeout+")\'":"")+'>')+v1_content[v1_i][1]+(v1_content[v1_i][0]!=''?'</a>':'</span>')+'</div>';v1_temp+='</div>';document.write(v1_temp);setTimeout("v1_start()",1000);if(v1_nS4)onresize=function(){location.reload()}}