/* 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/
 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...
y_font='verdana,arial,sans-serif';
y_fontSize='10px';
y_fontSizeNS4='11px';
y_fontWeight='normal';
y_fontColor='#4A49A8';
y_textDecoration='none';
y_fontColorHover='#ff0000';//		| won't work
y_textDecorationHover='underline';//	| in Netscape4
y_bgColor='#fff5c6';
// set [='transparent'] for transparent
// set [='url(image_source)'] for image
y_top=0;//	|
y_left=0;//	| defining
y_width=120;//	| the box
y_height=120;//	|
y_paddingTop=0;
y_paddingLeft=0;
y_position='relative';// absolute/relative
y_timeout=6500;//1000 = 1 second
y_slideSpeed=1;//20 orig
y_slideDirection=1;//0=down-up;1=up-down
y_pauseOnMouseOver=true;
// v2.2+ new below
y_slideStep=120;//pixels (3pixels orig)
y_textAlign='left';// left/center/right
y_textVAlign='middle';// top/middle/bottom - won't work in Netscape4

// === 2 === THE CONTENT - ['href','text','target']
// Use '' for href to have no link item
y_content=[
['http://www.tyremall.com/stats/advertise.asp','<img src=http://www.tyremall.com/stats/images/advert/ad3.jpg height=120 border=0>','_blank'],
['http://www.tyremall.com/stats/wholesaler_reg.asp','<img src=http://www.tyremall.com/stats/images/advert/ad4.jpg height=120 border=0>','_blank'],
['http://www.tyremall.com/stats/advertise.asp','<img src=http://www.tyremall.com/stats/images/advert/ad1.jpg height=120 border=0>','_blank'],
['http://www.tyremall.com/stats/advertise.asp','<img src=http://www.tyremall.com/stats/images/advert/ad2.jpg height=120 border=0>','_blank']
];

y_ua=navigator.userAgent;y_nS4=document.layers?1:0;y_iE=document.all&&!window.innerWidth&&y_ua.indexOf("MSIE")!=-1?1:0;y_oP=y_ua.indexOf("Opera")!=-1&&document.clear?1:0;y_oP7=y_oP&&document.appendChild?1:0;y_oP4=y_ua.indexOf("Opera")!=-1&&!document.clear;y_kN=y_ua.indexOf("Konqueror")!=-1&&parseFloat(y_ua.substring(y_ua.indexOf("Konqueror/")+10))<3.1?1:0;y_count=y_content.length;y_cur=1;y_cl=0;y_d=y_slideDirection?-1:1;y_TIM=0;y_fontSize2=y_nS4&&navigator.platform.toLowerCase().indexOf("win")!=-1?y_fontSizeNS4:y_fontSize;y_canPause=0;function y_getOS(a){return y_iE?document.all[a].style:y_nS4?document.layers["y_container"].document.layers[a]:document.getElementById(a).style};function y_start(){var o,px;o=y_getOS("y_1");px=y_oP&&!y_oP7||y_nS4?0:"px";if(parseInt(o.top)==y_paddingTop){y_canPause=1;if(y_count>1)y_TIM=setTimeout("y_canPause=0;y_slide()",y_timeout);return}o.top=(parseInt(o.top)-y_slideStep*y_d)*y_d>y_paddingTop*y_d?parseInt(o.top)-y_slideStep*y_d+px:y_paddingTop+px;if(y_oP&&o.visibility.toLowerCase()!="visible")o.visibility="visible";setTimeout("y_start()",y_slideSpeed)};function y_slide(){var o,o2,px;o=y_getOS("y_"+y_cur);o2=y_getOS("y_"+(y_cur<y_count?y_cur+1:1));px=y_oP&&!y_oP7||y_nS4?0:"px";if(parseInt(o2.top)==y_paddingTop){if(y_oP)o.visibility="hidden";o.top=y_height*y_d+px;y_cur=y_cur<y_count?y_cur+1:1;y_canPause=1;y_TIM=setTimeout("y_canPause=0;y_slide()",y_timeout);return}if(y_oP&&o2.visibility.toLowerCase()!="visible")o2.visibility="visible";if((parseInt(o2.top)-y_slideStep*y_d)*y_d>y_paddingTop*y_d){o.top=parseInt(o.top)-y_slideStep*y_d+px;o2.top=parseInt(o2.top)-y_slideStep*y_d+px}else{o.top=-y_height*y_d+px;o2.top=y_paddingTop+px}setTimeout("y_slide()",y_slideSpeed)};if(y_nS4||y_iE||y_oP||document.getElementById&&!y_kN&&!y_oP4){
document.write("<style>.vnewsticker,a.vnewsticker{font-family:"+y_font+";font-size:"+y_fontSize2+";color:"+y_fontColor+";text-decoration:"+y_textDecoration+";font-weight:"+y_fontWeight+"}a.vnewsticker:hover{font-family:"+y_font+";font-size:"+y_fontSize2+";color:"+y_fontColorHover+";text-decoration:"+y_textDecorationHover+"}</style>");y_temp="<div "+(y_nS4?"name":"id")+"=y_container style='position:"+y_position+";top:"+y_top+"px;left:"+y_left+"px;width:"+y_width+"px;height:"+y_height+"px;background:"+y_bgColor+";layer-background"+(y_bgColor.indexOf("url(")==0?"-image":"-color")+":"+y_bgColor+";clip:rect(0,"+y_width+","+y_height+",0);overflow:hidden'>"+(y_iE?"<div style='position:absolute;top:0px;left:0px;width:100%;height:100%;clip:rect(0,"+y_width+","+y_height+",0)'>":"");for(y_i=0;y_i<y_count;y_i++)
y_temp+="<div "+(y_nS4?"name":"id")+"=y_"+(y_i+1)+" style='position:absolute;top:"+(y_height*y_d)+"px;left:"+y_paddingLeft+"px;width:"+(y_width-y_paddingLeft*2)+"px;height:"+(y_height-y_paddingTop*2)+"px;clip:rect(0,"+(y_width-y_paddingLeft*2)+","+(y_height-y_paddingTop*2)+",0);overflow:hidden"+(y_oP?";visibility:hidden":"")+";text-align:"+y_textAlign+"' class=vnewsticker>"+(!y_nS4?"<table width="+(y_width-y_paddingLeft*2)+" height="+(y_height-y_paddingTop*2)+" cellpadding=0 cellspacing=0 border=0><tr><td width="+(y_width-y_paddingLeft*2)+" height="+(y_height-y_paddingTop*2)+" align="+y_textAlign+" valign="+y_textVAlign+" class=vnewsticker>":"")+(y_content[y_i][0]!=""?"<a href='"+y_content[y_i][0]+"' target='"+y_content[y_i][2]+"' class=vnewsticker"+(y_pauseOnMouseOver?" onmouseover='if(y_canPause&&y_count>1){clearTimeout(y_TIM);y_cl=1}' onmouseout='if(y_canPause&&y_count>1&&y_cl)y_TIM=setTimeout(\"y_canPause=0;y_slide();y_cl=0\","+y_timeout+")'":"")+">":"<span"+(y_pauseOnMouseOver?" onmouseover='if(y_canPause&&y_count>1){clearTimeout(y_TIM);y_cl=1}' onmouseout='if(y_canPause&&y_count>1&&y_cl)y_TIM=setTimeout(\"y_canPause=0;y_slide();y_cl=0\","+y_timeout+")'":"")+">")+y_content[y_i][1]+(y_content[y_i][0]!=""?"</a>":"</span>")+(!y_nS4?"</td></tr></table>":"")+"</div>";y_temp+=(y_iE?"</div>":"")+"</div>";document.write(y_temp);setTimeout("y_start()",1000);if(y_nS4)onresize=function(){location.reload()}}
