/* 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 */

// 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...
n_font='verdana,arial,sans-serif';
n_fontSize='12px';
n_fontSizeNS4='13px';
n_fontWeight='bold';
n_fontColor='#eb5599';
n_textDecoration='none';
n_fontColorHover='#eb5599';//		| won't work
n_textDecorationHover='underline';//	| in Netscape4
n_bgColor='transparent';//set [='transparent'] for transparent
n_top=8;//	|
n_left=8;//	| defining
n_width=860;//	| the box
n_height=30;//	|
n_position='relative';// absolute/relative
n_timeOut=3;//seconds
n_pauseOnMouseOver=true;
n_speed=15;//1000 = 1 second
n_leadingSign='...';
n_alternativeHTML='News headlines...';
// for not supported browsers like Opera<7 - usually
// you may want to put a link to your news page 

// === 2 === THE CONTENT - ['href','text','target']
n_content=[
['store/product_info.php?products_id=3563','Try our new Crystalight Tealights! Pack of 20 assorted colours – clear cup allows tealight to glow!','_blank'],
['store/index.php?cPath=1_497','New OPULENCE - our most luxurious candle collection ever! Available at selected dusk stores and online today','_blank'],
['store/product_info.php?products_id=3552','SPECIAL OFFER! New dusk Vacuum Flask only $8 with any purchase of $40 or more. Last few remaining!','_blank'],
['http://media.smh.com.au/lifestyle/city-life/cosy-fragrances-for-the-home-1707774.html','Check out our Bondi store featured on The Sydney Morning Herald website! Click to watch video','_blank'],
['mood_flame.html','Be mesmerised by dusk MoodFlame available in stores and online today!','_self'],
['mood_flame.html','We regret to advise dusk EcoFuel for Moodflame is not available online due to delivery restrictions','_self'],
['store/advanced_search_result.php?keywords=electric+oil+burner&x=0&y=0&search_in_description=1','Special Offer! Electric Oil Burner + any pack of 10 melts for $45 – SAVE $9.98','_self'],
['store/product_info.php?products_id=3419','dusk Enviro Bag – Only $5 each or FREE with every purchase of $100 or more!','_self'],
['store/index.php?cPath=22_35_241','Test drive our active-air Car Fresheners today!','_self'],
['store/index.php?manufacturers_id=11','Buy any 10 Votives and SAVE 25% - Pick and mix your favourites! Available in stores and online','_self'],
['store/index.php?cPath=1_413','Buy any 5 melts for $15 – Pick & Mix your favourites!  Available in stores and Online.  Click for details','_self'],
['store/product_info.php?products_id=2972','dusk Turbo Lighter only $9 with the purchase of any candle or Aromatics product','_self'],
['store/product_info.php?products_id=1489',' Great value! Candle Care Kit only $12 with the purchase of any candle - Save 40%','_self'],
['store/login.php','New customer? Get 10% off your first order - Click here for details','_self'],

['store/index.php?cPath=436','Shop for clearance bargains at dusk Online now – Click here','_self']
];

// THE SERIOUS SCRIPT - PLEASE DO NOT TOUCH
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_fontSize2=n_nS4&&navigator.platform.toLowerCase().indexOf("win")!=-1?n_fontSizeNS4:n_fontSize;document.write('<style>.nnewsbar,a.nnewsbar,a.nnewsbar:visited,a.nnewsbar:active{font-family:'+n_font+';font-size:'+n_fontSize2+';color:'+n_fontColor+';text-decoration:'+n_textDecoration+';font-weight:'+n_fontWeight+'}a.nnewsbar:hover{color:'+n_fontColorHover+';text-decoration:'+n_textDecorationHover+'}</style>');n_p=n_pauseOnMouseOver?" onmouseover=clearTimeout(n_TIM) onmouseout=n_TIM=setTimeout('n_new()',"+n_timeOut+")>":">";n_k=n_nS4?"":" style=text-decoration:none;color:"+n_fontColor;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]!=""&&n_cur==n_l?("<a href='"+n_content[n_t][0]+"' target='"+n_content[n_t][2]+"' class=nnewsbar"+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="position:'+n_position+';top:'+n_top+'px;left:'+n_left+'px;width:'+n_width+'px;height:'+n_height+'px;clip:rect(0,'+n_width+','+n_height+',0)"><div '+(n_nS4?"name":"id")+'=nnewsb style="position:absolute;top:0px;left:0px;width:'+n_width+';height:'+n_height+'px;clip:rect(0,'+n_width+','+n_height+',0);background-color:'+n_bgColor+';layer-background-color:'+n_bgColor+';text-decoration:none;color:'+n_fontColor+'" class=nnewsbar>'+n_alternativeHTML+'</div></div>');if(!n_nS4)setTimeout("n_new()",1000);else window.onload=n_new;if(n_nS4)onresize=function(){location.reload()}