<!--

function nospam(domain,name,subject){
	window.location='mailto:'+name+'@'+domain+'?subject='+subject;	
}

function menu_mo(n,d){

	lnk=$('menu_item_'+n);
	c=(navigator.userAgent.indexOf('MSIE')==-1)?'class':'className';

	if(typeof lnk.called=="undefined")
		{
		bck=document.createElement('DIV');
		bck.setAttribute('id','menu_back_'+n);
		bck.setAttribute(c,'back');
		lnk.appendChild(bck);
		lnk.called=1;
		}

	if(navigator.userAgent.indexOf('MSIE')==-1)	
		{
		f=new fade('menu_back_'+n,d*0.15,20+(d*20),0,new Array('visibility'),0);
		f.init();
		}
	else
		$('menu_back_'+n).style.visibility=(d>0)?'visible':'hidden';

	if(d==1 && Math.random()>0.75 && navigator.userAgent.indexOf('MSIE')==-1)
		{
		if(typeof lnk.added=="undefined")
			lnk.added=0;
		
		lnk.added++;
		s=Math.ceil(Math.random()*4);

		div=document.createElement('DIV');
		div.setAttribute('id','extra'+n+'_'+lnk.added);
		div.setAttribute(c,'extra');

		img=document.createElement('IMG');
		img.setAttribute('id','extra_img'+n+'_'+lnk.added);

		if(navigator.userAgent.indexOf('MSIE')==-1)
			{
			img.setAttribute('src','grfx/extra'+s+'.png');
			div.appendChild(img);
			$('bod').appendChild(div);
			}
		else
			{
			img.setAttribute('src','grfx/s.gif');
			div.appendChild(img);
			$('bod').appendChild(div);
			$('extra_img'+n+'_'+lnk.added).style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='grfx/extra"+s+".png')";
			}	
		
		div=$('extra'+n+'_'+lnk.added);
		div.style.top=((Math.random()*100)-10)+'%';
		div.style.left=((Math.random()*100)-10)+'%';

		f=new fade();
		f.add('extra'+n+'_'+lnk.added,d*0.5,50,0,new Array('visibility'),5000);
		f.add('extra'+n+'_'+lnk.added,d*-0.5,0,50,new Array('visibility'),0);
		f.init();
		}	
}

function thumb_mo(lyr,d){
	f=new fade(lyr,-d*0.25,90-(d*10),100,new Array(),0);
	f.init();
}

function roller(lyr,step){
	
	obj=$(lyr);
	inner=$(lyr+'_inner');

	target=(step>0)?inner.offsetHeight+inner.offsetTop+5:inner.offsetTop;
	
	real=obj.lsReal;
	delta=Math.sqrt(Math.abs(target-real))*0.0125;

	obj.lsReal=real+(step*delta);
	newHeight=obj.lsReal;
	
	if((newHeight>=(target-0.1) && step>0) || (newHeight<=(target-0.1) && step<0))
		{
		obj.style.height=target+'px';
		clearInterval(obj.lsInterval);
		obj.lsInterval=0;
		return;
		}
	else
		obj.style.height=newHeight+'px';

}

function slide(lyr,d){

	obj=$(lyr);
	inner=$(lyr+'_inner');
	if(obj.lsReal==null)
		{
		obj.lsReal=obj.offsetHeight;
		obj.lsInterval=0;
		}
	
	if(obj.lsInterval!=0)
		{
		clearInterval(obj.lsInterval);
		obj.lsInterval=0;
		}

	step=Math.sqrt(inner.offsetHeight)*d*10;
	obj.lsInterval=setInterval("roller('"+lyr+"',"+step+",0)",25);

	if(!$(lyr+'_back'))
		{
		b=document.createElement('DIV');
		b.setAttribute('id',lyr+'_back');
		b.setAttribute('class','back');
		b.setAttribute('className','back');
		obj.parentNode.appendChild(b);
		obj.appendChild(b);
		}

	f=new fade(lyr+'_back',d*0.5,50+(50*d),50-(50*d),new Array('visibility'),0);
	f.init();
}

function setup(){

	l=$('left');
	
	if(!l)
		return;

	for(i=0;i<l.childNodes.length;i++)
		{
		if(l.childNodes[i].tagName=='IMG')
			break;
		}
	
	src=l.childNodes[i].src;
	src=src.substring(src,src.lastIndexOf('.'));
	src=src.replace(/imgs/g,'grfx');

	fade_splash=new fade();
	fade_splash.add('left',0.15,100,0,new Array('visibility'),0);

	for(i=1;i<5;i++)
		{
		n=document.createElement('DIV');
		n.setAttribute('id','splash_overlay_'+i);

		img=document.createElement('IMG');
		img.setAttribute('id','splash_overlay_img_'+i);

		if(navigator.userAgent.indexOf('MSIE')==-1)
			{
			img.setAttribute('src',src+'_'+i+'.png');
			n.setAttribute('class','overlay');
			n.appendChild(img);
			l.appendChild(n);
			}
		else
			{
			img.setAttribute('src','grfx/s.gif');
			n.setAttribute('className','overlay');
			n.appendChild(img);
			l.appendChild(n);
			$('splash_overlay_img_'+i).style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+src+"_"+i+".png')";
			}

		$('splash_overlay_'+i).style.zIndex=i+1;
		fade_splash.add('splash_overlay_'+i,0.1/Math.sqrt(i),100,0,new Array('display'),0);
		}

	fade_splash.init();
}

function fade(){

	this.isIE=(navigator.userAgent.indexOf('MSIE')==-1)?false:true;
	this.chain=new Array();
	var myself=this;

	function add(lyr,rate,target,initial_value,operations,pause){
		obj=$(lyr);
		if(typeof obj!="object")
			return;
		stuff=new Array(obj,rate,target,initial_value,operations,pause);
		this.chain.push(stuff);
	}

	function cycle(){
		cur=this.chain[0];
		lyr=cur[0];
		rate=cur[1];
		target=cur[2];
		operations=cur[4];

		lyr.fade+=(rate*20);
		lyr.fade=(lyr.fade<0)?0:lyr.fade;
		lyr.fade=(lyr.fade>100)?100:lyr.fade;

		if(!this.isIE)
			lyr.style.opacity=lyr.fade/100;
		else
			{
			lyr.style.filter="Alpha(Opacity="+lyr.fade+")";

			if(lyr.fade>99)
				lyr.style.filter='';
			}

		if((rate>0 && lyr.fade>=target) || (rate<0 && lyr.fade<=target))
			{
			lyr.fade=target*0.9999999;
			clearInterval(lyr.fade_on);
			lyr.fade_on=0;

			if(operations.Find('focus') && (lyr.tagName=='INPUT' || lyr.tagName=='TEXTAREA'))
				lyr.focus();
	
			if(this.chain.length>1)
				{
				this.chain.shift();
				if(cur[5]!=0)
					this.time_out=setTimeout(call_init,cur[5]);
				else
					this.init();
				}
			}

		if(operations.Find('visibility'))
			lyr.style.visibility=(lyr.fade==0)?'hidden':'visible';

		if(operations.Find('display'))
			lyr.style.display=(lyr.fade==0)?'none':'block';
	}

	function init(){
		cur=this.chain[0];
		lyr=cur[0];
		rate=cur[1];
		target=cur[2];
		initial_value=cur[3];
		operations=cur[4];

		if(lyr.fade_on==null)
			{
			lyr.fade_on=0;
			lyr.fade=initial_value;
			}
	
		if(lyr.fade_on!=0)
			{
			clearInterval(lyr.fade_on);
			lyr.fade_on=0;
			}
	
		lyr.fade_on=setInterval(loop,30);
	}

	function call_init(){
		myself.init();	
	}

	function loop(){
		myself.cycle();	
	}

	this.add=add;
	this.cycle=cycle;
	this.init=init;

	args=fade.arguments;
	if(args.length==6)
		this.add(args[0],args[1],args[2],args[3],args[4],args[5]);

}

Array.prototype.Find=function Find(v){
	for(i=0;i<this.length;i++)
		if(this[i]==v)
			return true;
	return false;
}

function $(lyr){
	return document.getElementById(lyr);	
}
//-->