flowAD = function(AdID,AdPic,AdLink,AdTarget,AdTitle,AdValign,AdAlign,AdVMargin,AdHMargin){
	this.tempX = new Number();
	this.tempNewX = new Number();
	this.adID = AdID;
	this.adPic = AdPic;
	this.adLink = AdLink;
	this.adTarget = AdTarget;
	this.adTitle = AdTitle;
	this.adValign = AdValign;
	this.adAlign = AdAlign;
	this.adVMargin = AdVMargin;
	this.adHMargin = AdHMargin;
	this.writeFlow();
	}
flowAD.prototype.writeFlow = function(){
	this.adArea = '<div id="'+this.adID+'" style="position:absolute"><a href="'+this.adLink+'" target="'+this.adTarget+'"><img id="'+this.adID+'Pic" src="'+this.adPic+'" alt="'+this.adTitle+'" border="0" /></a></div>'
	document.write(this.adArea);
	this.adBody = document.getElementById(this.adID);
	this.adPicWidth = document.getElementById(this.adID+'Pic').width;
	this.adPicHeight = document.getElementById(this.adID+'Pic').height;
	this.startFlow();
	}
flowAD.prototype.startFlow = function(){
	this.IntervalID = setInterval(this.adID+".Flow()",10);
	}
flowAD.prototype.stopFlow = function(){
	clearInterval(this.IntervalID);
	}
flowAD.prototype.Flow = function(){
	if(this.adValign == "top"){
		this.adBody.style.top = document.body.scrollTop+this.adVMargin;
		}
	else if (this.adValign == "bottom"){
		this.adBody.style.top = document.body.clientHeight+document.body.scrollTop-this.adPicHeight-this.adVMargin;
		}
	if(this.adAlign == "left"){
		this.adBody.style.left = document.body.scrollLeft+this.adHMargin;
		}
	else if (this.adAlign == "right"){
		this.adBody.style.left = document.body.clientWidth+document.body.scrollLeft-this.adPicWidth-this.adHMargin;
		}
	}
