/* 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/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='#666';
v1_textDecoration='none';
v1_fontColorHover='#fe6266';//		| won't work
v1_textDecorationHover='underline';//	| in Netscape4
v1_bgColor='transparent';
// set [='transparent'] for transparent
// set [='url(image_source)'] for image
v1_top=0;//	|
v1_left=0;//	| defining
v1_width=526;//	| the box
v1_height=130;//	|
v1_paddingTop=2;
v1_paddingLeft=2;
v1_position='relative';// absolute/relative
v1_timeout=2500;//1000 = 1 second
v1_slideSpeed=30;
v1_slideDirection=0;//0=down-up;1=up-down
v1_pauseOnMouseOver=true;
// v2.2+ new below
v1_slideStep=1;//pixels
v1_textAlign='left';// left/center/right
v1_textVAlign='middle';// top/middle/bottom - won't work in Netscape4

// === 2 === THE CONTENT - ['href','text','target']
// Use '' for href to have no link item
v1_content=[
['','<img src=strelka.gif align=top width=15 height=20 border=0>' + random_tip(),''],
['','<img src=strelka.gif align=top width=15 height=20 border=0>' + random_tip(),''],
['','<img src=strelka.gif align=top width=15 height=20 border=0>' + random_tip(),''],
['','<img src=strelka.gif align=top width=15 height=20 border=0>' + random_tip(),''],
['','<img src=strelka.gif align=top width=15 height=20 border=0>' + random_tip(),'']
];

// ===
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_oP7=v1_oP&&document.appendChild?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_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,px;o=v1_getOS("v1_1");px=v1_oP&&!v1_oP7||v1_nS4?0:"px";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_slideStep*v1_d)*v1_d>v1_paddingTop*v1_d?parseInt(o.top)-v1_slideStep*v1_d+px:v1_paddingTop+px;if(v1_oP&&o.visibility.toLowerCase()!="visible")o.visibility="visible";setTimeout("v1_start()",v1_slideSpeed)};function v1_slide(){var o,o2,px;o=v1_getOS("v1_"+v1_cur);o2=v1_getOS("v1_"+(v1_cur<v1_count?v1_cur+1:1));px=v1_oP&&!v1_oP7||v1_nS4?0:"px";if(parseInt(o2.top)==v1_paddingTop){if(v1_oP)o.visibility="hidden";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}if(v1_oP&&o2.visibility.toLowerCase()!="visible")o2.visibility="visible";if((parseInt(o2.top)-v1_slideStep*v1_d)*v1_d>v1_paddingTop*v1_d){o.top=parseInt(o.top)-v1_slideStep*v1_d+px;o2.top=parseInt(o2.top)-v1_slideStep*v1_d+px}else{o.top=-v1_height*v1_d+px;o2.top=v1_paddingTop+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'>"+(v1_iE?"<div style='position:absolute;top:0px;left:0px;width:100%;height:100%;clip:rect(0,"+v1_width+","+v1_height+",0)'>":"");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":"")+";text-align:"+v1_textAlign+"' class=vnewsticker>"+(!v1_nS4?"<table width="+(v1_width-v1_paddingLeft*2)+" height="+(v1_height-v1_paddingTop*2)+" cellpadding=0 cellspacing=0 border=0><tr><td width="+(v1_width-v1_paddingLeft*2)+" height="+(v1_height-v1_paddingTop*2)+" align="+v1_textAlign+" valign="+v1_textVAlign+" 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>")+(!v1_nS4?"</td></tr></table>":"")+"</div>";v1_temp+=(v1_iE?"</div>":"")+"</div>";document.write(v1_temp);setTimeout("v1_start()",1000);if(v1_nS4)onresize=function(){location.reload()}}
