function fs(obN){
	this.objName = obN;
	enabletip=true;
	this.$ = function(i){return document.getElementById(i);};
	this.showTip = function (obj,e){
		ie=document.all;
		w3c=document.getElementById && !document.all;
		if(!enabletip){return false;}
		oldX=(ie)?event.clientX:e.pageX;
		oldY=(ie)?event.clientY:e.pageY;
		lp=-100;
		tp=0;
		toolTipNode=document.createElement('div');
		toolTipNode.setAttribute('id','tooltip');
		html="<div>";
		html+="<div><img src='"+obj.getAttribute('rev')+"' alt=''/></div></div>";
		toolTipNode.innerHTML=html;
		document.body.appendChild(toolTipNode);
		toolTipNode.style.position = 'absolute';
		toolTipNode.style.left=(oldX+lp)+"px";
		toolTipNode.style.top=(oldY-toolTipNode.offsetHeight+tp)+"px";
		obj.onmousemove=function(e){
			try{
			oldX=(ie)?event.clientX:e.pageX;
			oldY=(ie)?event.clientY:e.pageY;
			toolTipNode=document.getElementById('tooltip');
			toolTipNode.style.left=(oldX+lp)+"px";
			toolTipNode.style.top=(oldY-toolTipNode.offsetHeight+tp)+"px";
			}catch(e){}
		}
	};
	this.hideTip=function(){
		if(!enabletip){return false;}
		try{
			tooltipNode=document.getElementById('tooltip');
			tooltipNode.parentNode.removeChild(tooltipNode);
		}catch(e){}
	};
	this.changeGallery=function(id,m)
	{
		id = (id+1>m)?1:id+1;
		lid = (id==1)?m:id-1;
		this.$('tuiads_'+lid).style.display='none';
		this.$('tuiads_'+id).style.display='block';
		window.setTimeout(this.objName+".changeGallery("+(id)+","+m+")",5000);
	};
	this.write = function(c){
		d = 'http://zupzip.net';
		m = c.length;
		a='';
		for(i=1;i<=m;i++)
		{
			f = c[i-1][1];
			e = d+'/gallery/'+c[i-1][0]+'/'+f.replace(/ /g,'-');
			g = d+c[i-1][2];
			a+='<a href="'+e+'.html" title="'+f+'" id="tuiads_'+i+'" onclick="window.open(this.href);return false;" style="margin-left:-35px;display:none;" onmouseover="'+this.objName+'.showTip(this,event);" onmouseout="'+this.objName+'.hideTip()" rev="'+g+'"><img src="'+g+'" width="200" height="200" alt="'+f+'" /></a>';
		}
		document.write('<div style="border:1px solid #ACABD1;display:inline-block;width:130px;overflow:hidden;margin-top:3px;">'+a+'</div>');
	};
}
var sd = new fs('sd');
sd.write(c);
sd.changeGallery(1,c.length);
