﻿/* USE WORDWRAP AND MAXIMIZE THE WINDOW TO SEE THIS FILE
========================================
 NewsBar v1.4
 License : Freeware (Enjoy it!)
 (c)2004 VASIL DINKOV- PLOVDIV, BULGARIA
========================================
 For IE4+, NS4+, Opera7+ & Konqueror2+
========================================
 Get the NewsBar script at:
 http://www.smartmenus.org/
 LEAVE THESE NOTES PLEASE - delete the comments if you want

 Mange by PooyaSoft Co. (2008)
*/

// === 1 === Cinfiguration
n_timeOut=3;//seconds
n_pauseOnMouseOver=true;
n_speed=50;//1000 = 1 second
n_leadingSign=' _';
n_alternativeHTML='&nbsp;';

// === 2 === THE CONTENT - ['href','text','target']
//n_content=[];

// THE SERIOUS SCRIPT
n_nS4=document.layers?1:0;n_iE=document.all&&!window.innerWidth&&navigator.userAgent.indexOf("MSIE")!=-1?1:0;n_nSkN=document.getElementById&&(navigator.userAgent.indexOf("Opera")==-1||document.body.innerHTML)&&!n_iE?1:0;n_t=0;n_cur=0;n_l=n_content[0][1].length;n_timeOut*=1000;n_p=n_pauseOnMouseOver?" onmouseover=clearTimeout(n_TIM) onmouseout=n_TIM=setTimeout('n_new()',"+n_timeOut+")>":">";n_k=n_nS4?"":"";
function n_new(){if(!(n_iE||n_nSkN||n_nS4))return;
var O,mes;O=n_iE?document.all['nnewsb']:n_nS4?document.layers['n_container'].document.layers['nnewsb']:document.getElementById('nnewsb');
mes=n_content[n_t][0]!=""?("<a href='"+n_content[n_t][0]+"' target='"+n_content[n_t][2]+"' class='newsBar'"+n_p+n_content[n_t][1].substring(0,n_cur)+n_leadingSign+"</a>"):("<span class=nnewsbar"+n_k+">"+n_content[n_t][1].substring(0,n_cur)+n_leadingSign+"</span>");
if(n_nS4)with(O.document){open();write(mes);close()}else O.innerHTML=mes;
if(n_cur++==n_l){n_cur=0;n_TIM=setTimeout("n_new()",n_timeOut);n_t++;if(n_t==n_content.length)n_t=0;n_l=n_content[n_t][1].length}else{setTimeout("n_new()",n_speed)}};
document.write('<div '+(n_nS4?"name":"id")+'=n_container style=""><div '+(n_nS4?"name":"id")+'=nnewsb style="" class=newsBar>'+n_alternativeHTML+'</div></div>');
if(!n_nS4)setTimeout("n_new()",1000);else window.onload=n_new;if(n_nS4)onresize=function(){location.reload()}
