/*
========================================
 V-NewsTicker v2.2
 License : Freeware (Enjoy it!)
 (c)2003 VASIL DINKOV- PLOVDIV, BULGARIA

 Get the NewsTicker script at:
 http://www.smartmenus.org/
 LEAVE THESE NOTES PLEASE - delete the comments if you want */

v_count=v_content.length-1;
v_cur=1;
v_cl=0;
v_d=v_slideDirection?-1:1;
v_TIM=0;
v_canPause=0;

function v_getOS(a){
return document.getElementById(a).style
};

function v_start(){
var o,px;
o=v_getOS("v_1");
px="px";
if(parseInt(o.top)==v_paddingTop){
v_canPause=1;
if(v_count>1)v_TIM=setTimeout("v_canPause=0;v_slide()",v_timeout);
return
}
o.top=(parseInt(o.top)-v_slideStep*v_d)*v_d>v_paddingTop*v_d?parseInt(o.top)-v_slideStep*v_d+px:v_paddingTop+px;
setTimeout("v_start()",v_slideSpeed)
};

function v_slide(){
var o,o2,px;
o=v_getOS("v_"+v_cur);
o2=v_getOS("v_"+(v_cur<v_count?v_cur+1:1));
px="px";
if(parseInt(o2.top)==v_paddingTop){

  o.top=v_height*v_d+px;
  v_cur=v_cur<v_count?v_cur+1:1;
  v_canPause=1;
  v_TIM=setTimeout("v_canPause=0;v_slide()",v_timeout);return
  }

if((parseInt(o2.top)-v_slideStep*v_d)*v_d>v_paddingTop*v_d){
  o.top=parseInt(o.top)-v_slideStep*v_d+px;o2.top=parseInt(o2.top)-v_slideStep*v_d+px
  }
else{
  o.top=-v_height*v_d+px;
  o2.top=v_paddingTop+px
  }
setTimeout("v_slide()",v_slideSpeed)
};

v_temp="<div id=v_container style='position:"+v_position+";width:100%;height:"+v_height+"px;clip:rect(0,auto,"+v_height+",0);overflow:hidden'>";
v_temp+="<div style='position:absolute;top:0px;left:0px;width:100%;height:100%;clip:rect(0,auto,"+v_height+",0)'>";

for(v_i=0;v_i<v_count;v_i++) {
v_temp+="<div id=v_"+(v_i+1)+" style='text-align:"+v_textAlign+";position:absolute;top:"+(v_height*v_d)+"px;width:100%;height:"+(v_height-v_paddingTop*2)+"px;clip:rect(0,auto,"+(v_height-v_paddingTop*2)+",0);overflow:hidden;'>";

v_temp+=(v_content[v_i][0]!=""?"<a style='text-decoration:"+v_textDecoration+"' href='"+v_content[v_i][0]+"' target='"+v_content[v_i][2]+"'"+(v_pauseOnMouseOver?" onmouseover='if(v_canPause&&v_count>1){clearTimeout(v_TIM);v_cl=1}' onmouseout='if(v_canPause&&v_count>1&&v_cl)v_TIM=setTimeout(\"v_canPause=0;v_slide();v_cl=0\","+v_timeout+")'":"")+">":"<span"+(v_pauseOnMouseOver?" onmouseover='if(v_canPause&&v_count>1){clearTimeout(v_TIM);v_cl=1}' onmouseout='if(v_canPause&&v_count>1&&v_cl)v_TIM=setTimeout(\"v_canPause=0;v_slide();v_cl=0\","+v_timeout+")'":"")+">");

v_temp+=v_content[v_i][1];

v_temp+=(v_content[v_i][0]!=""?"</a>":"</span>");

v_temp+="</div>"; 
}
v_temp+="</div></div>";

document.write(v_temp);
setTimeout("v_start()",1000);
