function slideShow(v){
	n=v;
	v+="={\n";
	v+="	ThubSeperator: '"+n+"ThubSeperator',\n";
	v+="	CurrentDiv: '"+n+"Source1',\n";
	v+="	RunTimeout: 0,\n";
	v+="	OpacityTimeOut: new Array(),\n";
	v+="	Opacity: new Array(),\n";
	v+="	clickWait: 1,\n";
	v+="	waitSpeed: 2000,\n";
	v+="	fadeSpeed: 1000,\n";
	v+="	fadeStep: 1,\n";
	v+="	selectedOpacity: 100,\n";
	v+="	normalOpacity: 50,\n";
	v+="	sourceCurrent: 0,\n";
	v+="	sourceLast: 1,\n";
	v+="	recordCurrent: 0,\n";
	v+="	recordLast: 1,\n";
	v+="	Args: '',\n";
	v+="	Pause: 0,\n";
	v+="	Init: function(){\n";
	v+="		if("+n+".sourceLast>"+n+".recordLast){\n";
	v+="			"+n+".sourceLast="+n+".recordLast;\n";
	v+="		}\n";
	v+="		"+n+".Place();\n";
	v+="		"+n+".CurrentDiv='"+n+"Source1';\n";
	v+="		"+n+".Opacity['"+n+"Source1']=100;\n";
	v+="		"+n+".thubUpdate();\n";
	v+="		setTimeout('"+n+".Run(0)',"+n+".waitSpeed);\n";
	v+="	},\n";
	v+="	Place: function(){\n";
	v+="		var a=document.getElementById('"+n+"Source1');\n";
	v+="		var b=document.getElementById('"+n+"Source2');\n";
	v+="		var d=getDimensions(a.parentNode);\n";
	v+="		if(d.x>0){\n";
	v+="			a.style.top=b.style.top=d.y+'px';\n";
	v+="			a.style.left=b.style.left=d.x+'px';\n";
	v+="			a.style.width=b.style.width=d.w+'px';\n";
	v+="			a.style.height=b.style.height=d.h+'px';\n";
	v+="		}\n";
	v+="		a.style.visibility=b.style.visibility='visible';\n";
	v+="	},\n";
	v+="	Click: function(i){\n";
	v+="		var j;\n";
	v+="		for(j=0;j<"+n+".OpacityTimeOut.length;j++){\n";
	v+="			clearTimeout("+n+".OpacityTimeOut[j]);\n";
	v+="		}\n";
	v+="		clearTimeout("+n+".RunTimeout);\n";
	v+="		var w="+n+".sourceCurrent==i;\n";
	v+="		"+n+".sourceCurrent="+n+".Pause&w?i:i-1;\n";
	v+="		if("+n+".clickWait){\n";
	v+="			"+n+".Pause=!"+n+".Pause||!w?1:0;\n";
	v+="			"+n+".Run("+n+".Pause);\n";
	v+="		}else{\n";
	v+="			"+n+".Run(0);\n";
	v+="		}\n";
	v+="	},\n";
	v+="	Show: function(){\n";
	v+="		var cback=function(r){\n";
	v+="			r=r.split('\\nthubSourceSeperator');\n";
	v+="			"+n+".opacity("+n+".CurrentDiv,"+n+".Opacity["+n+".CurrentDiv],0,"+n+".fadeSpeed);\n";
	v+="			"+n+".CurrentDiv="+n+".CurrentDiv=='"+n+"Source1'?'"+n+"Source2':'"+n+"Source1';\n";
	v+="			"+n+".changeOpac(0,"+n+".CurrentDiv);\n";
	v+="			document.getElementById("+n+".CurrentDiv).innerHTML=r[0];\n";
	v+="			"+n+".opacity("+n+".CurrentDiv,0,100,"+n+".fadeSpeed);\n";
	v+="			"+n+".thubUpdate(r.slice(1));\n";
	v+="		}\n";
	v+="		ajaxCall(cback,'index.php','MDL=ajax&f=getSlide&'+"+n+".Args+'&recordCurrent='+"+n+".recordCurrent+'&sourceCurrent='+"+n+".sourceCurrent);\n";
	v+="	},\n";
	v+="	thubUpdate: function(r){\n";
	v+="		var i;\n";
	v+="		if(r){\n";
	v+="			for(i=0;i<r.length;i++){\n";
	v+="				document.getElementById('"+n+"thubSource'+i).innerHTML=r[i];\n";
	v+="			}\n";
	v+="		}\n";
	v+="		if("+n+".normalOpacity && "+n+".selectedOpacity){\n";
	v+="			for(i=0;i<"+n+".sourceLast;i++){\n";
	v+="				if(i!="+n+".sourceCurrent){\n";
	v+="					"+n+".changeOpac("+n+".normalOpacity,'"+n+"thubSource'+i);\n";
	v+="				}\n";
	v+="			}\n";
	v+="			"+n+".changeOpac("+n+".selectedOpacity,'"+n+"thubSource'+"+n+".sourceCurrent);\n";
	v+="		}\n";
	v+="	},\n";
	v+="	Run: function(w){\n";
	v+="		"+n+".nextSource();\n";
	v+="		"+n+".Show();\n";
	v+="		if(!w)"+n+".RunTimeout=setTimeout('"+n+".Run(0)',"+n+".waitSpeed);\n";
	v+="	},\n";
	v+="	nextSource: function(){\n";
	v+="		++"+n+".sourceCurrent;\n";
	v+="		if("+n+".sourceCurrent=="+n+".sourceLast){\n";
	v+="			++"+n+".recordCurrent;\n";
	v+="			if("+n+".recordCurrent+"+n+".sourceLast>"+n+".recordLast){\n";
	v+="				"+n+".recordCurrent="+n+".sourceCurrent=0;\n";
	v+="			}else{\n";
	v+="				--"+n+".sourceCurrent;\n";
	v+="			}\n";
	v+="		}\n";
	v+="	},\n";
	v+="	opacity: function(d,a,t,m){\n";
	v+="		var s=Math.round(m/100);\n";
	v+="		var x=0;\n";
	v+="		"+n+".OpacityTimeOut=new Array();\n";
	v+="		if(a>t) {\n";
	v+="			for(i=a;i>=t;i-="+n+".fadeStep){\n";
	v+="				"+n+".OpacityTimeOut[x]=setTimeout('"+n+".changeOpac('+i+',\\''+d+'\\')',(x*s));\n";
	v+="				x++;\n";
	v+="			}\n";
	v+="		}else if(a<t){\n";
	v+="			for(i=a;i<=t;i+="+n+".fadeStep){\n";
	v+="				"+n+".OpacityTimeOut[x]=setTimeout('"+n+".changeOpac('+i+',\\''+d+'\\')',(x*s));\n";
	v+="				x++;\n";
	v+="			}\n";
	v+="		}\n";
	v+="	},\n";
	v+="	changeOpac: function(p,d){\n";
	v+="		var o=document.getElementById(d);\n";
	v+="		if(o){\n";
	v+="			o=o.style;\n";
	v+="			o.opacity=(p/100);\n";
	v+="			o.MozOpacity=(p/100);\n";
	v+="			o.KhtmlOpacity=(p/100);\n";
	v+="			o.filter='alpha(opacity='+p+')';\n";
	v+="			"+n+".Opacity[d]=p;\n";
	v+="			o.visibility=p?'visible':'hidden';\n";
	v+="		}\n";
	v+="	}\n";
	v+="}\n";
	eval(v);
}
