// JavaScript Document

 var msgs = new Array(
										 "Now you can Shop Online - Order Sweets to your loved one",
										 "Click here to see Dadu's Speciality",
										 "Click here to see Andhra's Speciality",
										 "Our Mithai is all special made to order as per your requirement and taste.",
										 "We do Gifting Sweets also, click here to see",
										 "Feedback: Do write us for any suggestion/complaint. It will enable us to serve you better" ); // No comma after last ticker msg
									
									 var msg_url = new Array(
										  "#",
										 "category.php?cat_id=12",
										 "category.php?cat_id=17",
										 "#",
										 "gifting.html",
										 "feedback.php" ); // No comma after last ticker url
									
									var barwidth='91%' //Enter main bar width in px or %
									var setdelay=3000 //Enter delay between msgs, in mili-seconds
									var mouseover_color='#333333' //Specify highlight color
									var mouseout_color='#3c3c3c' //Specify default color
									/////////////////////////////////////////////////////////////////////
									
									var count=0;
									var ns6=document.getElementById&&!document.all
									var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1
									
									if (ie4||ns6){
									document.write('<form name="news_bar" style="margin:0px; padding:0px;"><input type="button" value="&lsaquo;" onclick="moveit(0)" class="scrollerstyle" name="prev" title="Previous News"><input type="button" name="news_bar_but" onclick="goURL();" style="color:#daa56c;background:#3c3c3c; font-size:11px;font-family:tahoma; width:'+barwidth+'; height:22px; border-width:0px; border-color:#929292; margin:0px;padding:0px; cursor:pointer" onmouseover="this.style.background=mouseover_color" onmouseout="this.style.background=mouseout_color"><input type="button" value="&rsaquo;" onclick="moveit(1)" class="scrollerstyle" name="next" title="Next News"></form>');
									}
									else{
									document.write('<form name="news_bar"><input type="button" value="Previous" onclick="moveit(0)">')
									if (navigator.userAgent.indexOf("Opera")!=-1)
									document.write('<input type="button" name="news_bar_but" onclick="goURL();" style="width:'+barwidth+'" border="0">')
									else
									document.write('<input type="button" name="news_bar_but" onclick="goURL();" width="'+barwidth+'" border="0">')
									document.write('<input type="button" value="Next" onclick="moveit(1)"></form>')
									}
									
									function init_news_bar(){
									  document.news_bar.news_bar_but.value=msgs[count];
									}
									//moveit function by Dynamicdrive.com
									function moveit(how){
									if (how==1){ //cycle foward
									if (count<msgs.length-1)
									count++
									else
									count=0
									}
									else{ //cycle backward
									if (count==0)
									count=msgs.length-1
									else
									count--
									}
									document.news_bar.news_bar_but.value=msgs[count];
									}
									
									setInterval("moveit(1)",setdelay)
									
									function goURL(){
									 location.href=msg_url[count];
									}
									
									init_news_bar();
