function marqueeJs(){
	this.divId = 'marqueeEffect';
	this.moveBy = 1;
	this.movedBy = 0;
	this.stopMove = 0;
	this.moveDelay = 10;
	this.width = 400;
	
	this.initMarquee = function(){
		var marqueeObj = document.getElementById(this.divId);
		if(marqueeObj) {
			marqueeObj._self = this;
			marqueeObj.onmouseover = function(e){
				this._self.stopMove = 1;
			};
			marqueeObj.onmouseout = function(e){
				this._self.stopMove = 0;
			};
			var marqueeDataObj = document.getElementById(this.divId+'Data');
			cleanWhitespace(marqueeDataObj);
			
			var dataObjLIs = marqueeDataObj.getElementsByTagName('LI');
			var dataObjLiNums = dataObjLIs.length;
			var liWidth = 0;
			for(var i=0; i<dataObjLiNums; i++){
				liWidth += dataObjLIs[i].offsetWidth;
			}
			marqueeDataObj.style.width = liWidth + 'px';
			this.startMarqueeDelay();
		}
	};
	this.startMarqueeDelay = function(){
		var _self = this;
		setTimeout(function(){_self.startMarquee();}, _self.moveDelay);
	};
	this.startMarquee = function(){
		var marqueeObj = document.getElementById(this.divId);
		if(this.stopMove == 1) {
			this.startMarqueeDelay();
		}else{
			var marqueeDataObj = document.getElementById(this.divId+'Data');
			marqueeDataObj.style.marginLeft = this.movedBy + 'px';
			this.movedBy--;
			var checkEnd = marqueeDataObj.offsetWidth + this.movedBy - this.width;
			if(marqueeDataObj.childNodes.length > 1) {
				if(checkEnd <= 0){
					var firstWidth = marqueeDataObj.firstChild.offsetWidth;
					marqueeDataObj.appendChild(marqueeDataObj.firstChild);
					var newMargin = this.movedBy + firstWidth;
					marqueeDataObj.style.marginLeft = newMargin + 'px';
					this.movedBy = newMargin;
				}
			}
			this.startMarqueeDelay();
		}
	};
}