// JavaScript
document.write('<script language="Javascript" type="text/javascript" src="/js/swfobject.js"></script>');


var Scroller = {
	doc : null,
	timer : null,
	perform : function(){
		if(this.timer) return;
		if(!this.doc){
			var ver = navigator.userAgent.toUpperCase();
			if(ver.indexOf('MSIE 5')!=-1 || ver.indexOf('NETSCAPE')!=-1 ||
			ver.indexOf('SAFARI')!=-1){
				this.doc = document.body;
			}else{
				this.doc = document.documentElement;
			}
		}
		if(this.getDelta()){
			this.act();
			this.timer = setInterval('Scroller.act()', 10);
		}
	},
	getDelta : function(){
		return this.doc.scrollTop;
	},
	act : function(){
		var step = this.getDelta() / 2;
		if(step < 2){
			this.timer = clearInterval(this.timer);
			this.doc.scrollTop = 0;
			return;
		}
		this.doc.scrollTop -= step;
	}
};

function resetfrm(fname) {
	document.forms[fname].reset();
}

function changeImage(obj)
{
	var st = obj.src;
	
	if (st.indexOf('_de_')!=-1)
		st = st.replace('_de_','_on_')
	else
		if (st.indexOf('_on_')!=-1)
			st = st.replace('_on_','_off_')
		else
			if (st.indexOf('_off_')!=-1)
				st = st.replace('_off_','_on_');	
	
	obj.src = st;
}

var hide=1;


function showcart()
{
	if (hide==1)
	{
		document.getElementById('quick_cart').style.visibility='visible';
		hide=0;
	}
	else
		{
		document.getElementById('quick_cart').style.visibility='hidden';
		hide=1;
	}
}





