/* 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...
v2_font='verdana,arial,sans-serif';
v2_fontSize='14px';
v2_fontSizeNS4='17px';
v2_fontWeight='normal';
v2_fontColor='#000000';
v2_textDecoration='none';
v2_fontColorHover='#ff0000';//			| won't work
v2_textDecorationHover='none';//'underline';//	| in Netscape4
v2_bgColor= '#ffffff';//'url(bg.jpg)';
// set [='transparent'] for transparent
// set [='url(image_source)'] for image
v2_top=0;//	|
v2_left=0;//	| defining
v2_width=480;//	| the box
v2_height=70;//	|
v2_paddingTop=2;
v2_paddingLeft=2;
v2_position='relative';// absolute/relative
v2_timeout=5000;//2500;//1000 = 1 second
v2_slideSpeed=2;
v2_slideDirection=0;//0=down-up;1=up-down
v2_pauseOnMouseOver=true;
// v2.2+ new below
v2_slideStep=15;//pixels
v2_textAlign='center';// left/center/right
v2_textVAlign='middle';// top/middle/bottom - won't work in Netscape4

//start
v2_content=[
['http://www.comparecarehomes.com/','<img src="http://www.pirnet.co.uk/uploads/banners/compare-care-homes.jpg" border="0" />','_blank'],
['http://www.bathpaq.co.uk','<img src="http://www.pirnet.co.uk/uploads/banners/BP-banner.jpg" border="0" />','_blank'],
['http://www.pirnet.co.uk/PIR_on-line_ads.php','<img src="http://www.pirnet.co.uk/uploads/banners/ch1banner.png" border="0" />','_blank'],
['http://www.pirnet.co.uk/PIR_on-line_ads.php','<img src="http://www.pirnet.co.uk/uploads/banners/ch2banner.png" border="0" />','_blank']
];
//end
// ===
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_oP7=v2_oP&&document.appendChild?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_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,px;o=v2_getOS("v2_1");px=v2_oP&&!v2_oP7||v2_nS4?0:"px";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_slideStep*v2_d)*v2_d>v2_paddingTop*v2_d?parseInt(o.top)-v2_slideStep*v2_d+px:v2_paddingTop+px;if(v2_oP&&o.visibility.toLowerCase()!="visible")o.visibility="visible";setTimeout("v2_start()",v2_slideSpeed)};function v2_slide(){var o,o2,px;o=v2_getOS("v2_"+v2_cur);o2=v2_getOS("v2_"+(v2_cur<v2_count?v2_cur+1:1));px=v2_oP&&!v2_oP7||v2_nS4?0:"px";if(parseInt(o2.top)==v2_paddingTop){if(v2_oP)o.visibility="hidden";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}if(v2_oP&&o2.visibility.toLowerCase()!="visible")o2.visibility="visible";if((parseInt(o2.top)-v2_slideStep*v2_d)*v2_d>v2_paddingTop*v2_d){o.top=parseInt(o.top)-v2_slideStep*v2_d+px;o2.top=parseInt(o2.top)-v2_slideStep*v2_d+px}else{o.top=-v2_height*v2_d+px;o2.top=v2_paddingTop+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'>"+(v2_iE?"<div style='position:absolute;top:0px;left:0px;width:100%;height:100%;clip:rect(0,"+v2_width+","+v2_height+",0)'>":"");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":"")+";text-align:"+v2_textAlign+"' class=vnewsticker>"+(!v2_nS4?"<table width="+(v2_width-v2_paddingLeft*2)+" height="+(v2_height-v2_paddingTop*2)+" cellpadding=0 cellspacing=0 border=0><tr><td width="+(v2_width-v2_paddingLeft*2)+" height="+(v2_height-v2_paddingTop*2)+" align="+v2_textAlign+" valign="+v2_textVAlign+" class=vnewsticker>":"")+(v2_content[v2_i][0]!=""?"<a rel='nofollow' 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>")+(!v2_nS4?"</td></tr></table>":"")+"</div>";v2_temp+=(v2_iE?"</div>":"")+"</div>";document.write(v2_temp);setTimeout("v2_start()",1000);if(v2_nS4)onresize=function(){location.reload()}}
