﻿// JScript File

/***********************************
*  http://news-scroller.vbarsan.com/
*   This notice may not be removed 
***********************************/

//-- Begin Scroller's Parameters and messages -->
//scroller's width
//debugger
var swidth=505;

//scroller's height
var sheight=45;

//scroller's speed 
var sspeed=35;
var restart=sspeed;
var rspeed=sspeed;

//scroller's pause 
var spause=4000;

//scroller's background
sbcolor="#FFFFCC";

//messages: change to your own; use as many as you'd like; set up Hyperlinks to URLs as you normally do: <a target=... href="... URL ...">..message..</a>
var singletext=new Array();
singletext[0]='<nobr> <div align=center class=gray-text><a class=scrolllink target="_blank" href="http://www.mstutorial.in"> www.mstutorial.in</a> - We are enthusiastically launching this website featuring <br>puzzle of the week, question of the day, Polls, Ajax based Expert Solutions <br> and Photogallery.    </div></nobr> '
singletext[1]='<nobr> <div align=center class=gray-text>Technowiz - well renowned company from mumbai, india will come up with <br> following new projects: 24x7exam.com, germiclean.in, epay.com, <br>  sanchoripatti.com <br></div></nobr>';
singletext[2]='<nobr> <div class=gray-text>24x7Exam.com:- Consists of Student Registration from all over india with features like Online <br> Test,  Expert Solution  and  Forum. Also the Photo Gallery and News & Events <br> will be featured.</div></nobr>';
singletext[3]='<nobr> <div class=gray-text>Epay.com:- E-Commerce webportal consists of online product management, <br> shopping cart, merchant module, payment gateway, MLM and E-Wallet <br> Account. </div></nobr>';
singletext[4]='<nobr> <div class=gray-text>Germiclean.in:- Aethestically designed static website with an unique menu <br>tabs, precisely choosen  site images and wonderful combinations of colours <br> are the unique features of this website.</div></nobr>';
singletext[5]='<nobr> <div class=gray-text>Sanchoripatti.com: Intranet based website where user can create the family <br> tree  upto two node  on both the side of tree with the facility for search of <br>near and dear ones. </div></nobr>';

//singletext[3]='<nobr><B>Dhtml Horizontal Scroller v3.5</B> - Once a message left, the next one comes in. Adjust: Pause, Size, Speed and Background. Any message may use <b><u>Hyperlinks</u></b></nobr>';
//singletext[4]='<nobr><b>Windows/Linux:</b> ie4+ firefox1+ netscape6+ opera7+ ns4+ - <b>Mac OS X</b>: Safari, ie5+ firefox1+ opera7+</nobr>';
//singletext[...]='...';
//-- end Parameters and message -->

//-- begin: Scroller's Algorithm -->
var ii=0;var gekso=0;if(navigator.product&&navigator.product=="Gecko"){var agt = navigator.userAgent.toLowerCase();var rvStart = agt.indexOf('rv:');var rvEnd = agt.indexOf(')', rvStart);var check15 = agt.substring(rvStart+3, rvEnd);if(parseFloat(check15)<1.8) gekso=1;}var operbr=0; operbr=navigator.userAgent.toLowerCase().indexOf('opera');
function goup(){if(sspeed!=rspeed*16){sspeed=sspeed*2;restart=sspeed;}}
function start(){
if(document.getElementById){ns6div=document.getElementById('iens6div');if(operbr!=-1)operdiv=document.getElementById('operaslider');ns6div.style.left=swidth+"px";ns6div.innerHTML=singletext[0];sizeup=ns6div.offsetWidth;if(operbr!=-1&&sizeup==swidth){operdiv.innerHTML=singletext[0];sizeup=operdiv.offsetWidth;}ns6scroll();}
else 
if(document.layers){ns4layer=document.ns4div.document.ns4div1;ns4layer.left=swidth;ns4layer.document.write(singletext[0]);ns4layer.document.close();sizeup=ns4layer.document.width;ns4scroll();}
else 
if(document.all){iediv=iens6div;iediv.style.pixelLeft=swidth+"px";iediv.innerHTML=singletext[0];sizeup=iediv.offsetWidth;iescroll();}}
function iescroll(){if(iediv.style.pixelLeft>0&&iediv.style.pixelLeft<=sspeed){iediv.style.pixelLeft=0;setTimeout("iescroll()",spause);}else 
if(iediv.style.pixelLeft>=sizeup*-1){iediv.style.pixelLeft-=sspeed+"px";setTimeout("iescroll()",100);}else{if(ii==singletext.length-1)ii=0;else ii++;iediv.style.pixelLeft=swidth+"px";iediv.innerHTML=singletext[ii];sizeup=iediv.offsetWidth;iescroll();}}
function ns4scroll(){if(ns4layer.left>0&&ns4layer.left<=sspeed){ns4layer.left=0;setTimeout("ns4scroll()",spause);}else 
if(ns4layer.left>=sizeup*-1){ns4layer.left-=sspeed;setTimeout("ns4scroll()",100);}else{if(ii==singletext.length-1)ii=0;else ii++;ns4layer.left=swidth;ns4layer.document.write(singletext[ii]);ns4layer.document.close();sizeup=ns4layer.document.width;ns4scroll();}}
function ns6scroll(){if(parseInt(ns6div.style.left)>0&&parseInt(ns6div.style.left)<=sspeed){ns6div.style.left=0;setTimeout("ns6scroll()",spause);}else if(parseInt(ns6div.style.left)>=sizeup*-1){ns6div.style.left=parseInt(ns6div.style.left)-sspeed+"px";setTimeout("ns6scroll()",100);}
else{if(ii==singletext.length-1)ii=0;else ii++;
ns6div.style.left=swidth+"px";ns6div.innerHTML=singletext[ii];sizeup=ns6div.offsetWidth;if(operbr!=-1&&sizeup==swidth){operdiv.innerHTML=singletext[ii];sizeup=operdiv.offsetWidth;}ns6scroll();}}
//-- end Algorithm -->