// Handles rollover images for NN3+ and IE4+
var loaded = new Array();

function F_loadRollover(image,imageName) {
	if (image && image.src &&
		(null == image.out || typeof(image.out) == typeof(void(0)))) {
		s = image.src;
		image.out = new Image();
		image.out.src = s;
		image.over = new Image();
		if (imageName.lastIndexOf('/') >= 0 || imageName.lastIndexOf('\\') >= 0) {
			s = imageName;
		} else {
			i = s.lastIndexOf('/');
			if (i<0) i = s.lastIndexOf('\\');
			if (i<0) { s = imageName; }
			else	 { s = s.substring(0,i+1) + imageName; }
		}
		image.over.src = s;
		loaded[image.name] = image;
	}
}
function F_roll(imageName,over) {
	if (document.images) {
	if (over) { imageObject = "over"; }
	else	  { imageObject = "out"; }
	image = loaded[imageName];
	if (image) {
		ref = eval("image."+imageObject);
		if (ref) image.src = eval("image."+imageObject+".src");
	}
	if (window.event)
		window.event.cancelBubble = true;
	}
}
 

///scroll text
<!--
  var quoteStr;
  var quoteNum;
  var quoteDis;
  var quoteLen;
  var quoteLoc;
  var quotePic;
  var quoteMax;
  var numQuote;
  var charDelay;
  var quoteDelay;
  var delayCntr;


 function funcQuote() {
   this[0] = " Ahmedabad Municipal Corporation ";
   this[1] = " At your Service ....";
   this[2] = " E-governance now close to you";
   this[3] = " Know your Property Tax & Vehicle Tax ";
   this[4] = " Civic Centers at your Service ";
   this[5] = " Civic Center at Usmanpura...";
   this[6] = " Civic Center at Naroda..";
   this[7] = " Register your Complaints ";
   this[8] = " Civic Center at Rakhial..";
   this[9] = " Civic Center at Sardar Baug ";
   this[10] = " Civic Center at LAW GARDEN..";
   this[11] = " Know your Birth & Death ";
   this[12] = " Get your pass of AMTS ";
   this[13] = " Know your Gumastadhara ";
   this[14] = " Know your Professional Tax ";
  }

  function getQuote() {
   delayCntr = delayCntr + 1;
   quoteLoc = quoteLoc - 1;
   if (delayCntr > quoteDelay) {
      delayCntr = 100;
      quoteLen = 0;
      quoteLoc = 0;
      quoteNum = Math.floor(Math.random() * numQuote);
      quoteStr = makeQuote[quoteNum];
      quoteLen = quoteStr.length;
      quoteMax= quoteStr.length;
      padQuote();
   }
  }

  function disQuote() {
   quoteLoc = quoteLoc + 1;
   if (quoteLoc > quoteMax) {
    if (delayCntr > 50) {
      delayCntr = 0;
    }
    getQuote();
   }
   quoteDis = quoteStr.substring(0, quoteLoc);
   for (var i = quoteLoc; i < quoteMax; i++){
    var charone;
    charone = quoteStr.substring(i, i + 1);
    var rdnum;
    rdnum = Math.floor(Math.random() * 57)
    quoteDis = "" + quoteDis + quotePic.substring(rdnum, rdnum + 1);
   }
  }
  function padQuote () {
   var spacePad = quoteMax - quoteStr.length;
   var frontPad = Math.floor(spacePad / 2);
   for (var i = 0; i < frontPad; i++) {
    quoteStr = " " + quoteStr;
   }
   for (var i = quoteStr.length; i < quoteMax; i++) {
    quoteStr= "" + quoteStr + " ";
   }
  }
  function loopQuote() {
   document.all.txt1.innerHTML="<span>"+quoteDis+"</span>";
   disQuote();
   setTimeout ("loopQuote();", charDelay);
  }
  function startQuote() {
   quoteStr = "";
   quoteNum = 0;
   quoteDis = "";
   quoteLen = 0;
   quoteLoc = 0;
   quotePic = "abcdefghjkmnopqrstuvwxyzABCEDEFGHJKLMNOPQRSTUVXYZ234567890";
   quoteMax = 70;
   numQuote = 14;
   delayCntr=100;
   charDelay = 50;
   quoteDelay = 50;
   makeQuote = new funcQuote();
   getQuote();
   disQuote();
   loopQuote();
  }
//-->

