var accordion=function(){
	var tm=8; var sp=2;
	function slider(n){
		this.nm=n; this.arr=[]; this.sel=''
	}
	slider.prototype.init=function(t,c,k){
		var a,h,s,l,i; a=document.getElementById(t);
		h=a.getElementsByTagName('dt'); s=a.getElementsByTagName('dd');
		l=h.length;
		for(i=0;i<l;i++){
			var d=h[i]; this.arr[i]=d; d.onclick=new Function(this.nm+".process(this)");
			if(k!=null&&c==i){this.sel=d.className=k}
		}
		l=s.length;
		for(i=0;i<l;i++){
			var d=s[i]; d.maxh=d.offsetHeight;
			if(c!=i){d.style.height='0'; d.style.display='none'}
		}
	}
	slider.prototype.process=function(d){
		var i,l; l=this.arr.length;
		for(i=0;i<l;i++){
			var h=this.arr[i]; var s=h.nextSibling;
			if(s.nodeType!=1){s=s.nextSibling}
			clearInterval(s.timer);
			if(h==d&&s.style.display=='none'){
				s.style.display=''; setup(s,1); h.className='open'}
			else if(s.style.display==''){setup(s,-1); h.className=''}
		}
	}
	function setup(c,f){c.timer=setInterval(function(){slide(c,f)},tm)}
	function slide(c,f){
		var h,m,d; h=c.offsetHeight; m=c.maxh; d=(f==1)?Math.ceil((m-h)/sp):Math.ceil(h/sp);
		c.style.height=h+(d*f)+'px'; 
		if(f==1&&h>=m){clearInterval(c.timer)}
		else if(f!=1&&h==1){c.style.display='none'; clearInterval(c.timer)}
	}
	return{slider:slider}
}();

function checkIt1() {if (document.order1.select1.value=="open") {alert("Please select a size or item!" ) ; return false }
			  else { if (document.order1.select1.value=="sold") {alert("Sorry, this item has been sold out!" ) ; return false }
			  else { if (document.order1.select1.value=="full") {alert("Pre-order on this item was FULL!" ) ; return false }
			  else { if (document.order1.select1.value=="Coming Soon") {alert("Coming Soon!" ) ; return false }}}}}
			  
function checkIt2() {if (document.order2.select2.value=="open") {alert("Please select a size or item!" ) ; return false }
			  else { if (document.order2.select2.value=="sold") {alert("Sorry, this item has been sold out!" ) ; return false }
			  else { if (document.order2.select2.value=="full") {alert("Pre-order on this item was FULL!" ) ; return false }
			  else { if (document.order2.select2.value=="Coming Soon") {alert("Coming Soon!" ) ; return false }}}}}
			  
function checkIt3() {if (document.order3.select3.value=="open") {alert("Please select a size or item!" ) ; return false }
			  else { if (document.order3.select3.value=="sold") {alert("Sorry, this item has been sold out!" ) ; return false }
			  else { if (document.order3.select3.value=="full") {alert("Pre-order on this item was FULL!" ) ; return false }
			  else { if (document.order3.select3.value=="Coming Soon") {alert("Coming Soon!" ) ; return false }}}}}
			  
function checkIt4() {if (document.order4.select4.value=="open") {alert("Please select a size or item!" ) ; return false }
			  else { if (document.order4.select4.value=="sold") {alert("Sorry, this item has been sold out!" ) ; return false }
			  else { if (document.order4.select4.value=="full") {alert("Pre-order on this item was FULL!" ) ; return false }
			  else { if (document.order4.select4.value=="Coming Soon") {alert("Coming Soon!" ) ; return false }}}}}

function checkIt5() {if (document.order5.select5.value=="open") {alert("Please select a size or item!" ) ; return false }
			  else { if (document.order5.select5.value=="sold") {alert("Sorry, this item has been sold out!" ) ; return false }
			  else { if (document.order5.select5.value=="full") {alert("Pre-order on this item was FULL!" ) ; return false }
			  else { if (document.order5.select5.value=="Coming Soon") {alert("Coming Soon!" ) ; return false }}}}}

function checkIt6() {if (document.order6.select6.value=="open") {alert("Please select a size or item!" ) ; return false }
			  else { if (document.order6.select6.value=="sold") {alert("Sorry, this item has been sold out!" ) ; return false }
			  else { if (document.order6.select6.value=="full") {alert("Pre-order on this item was FULL!" ) ; return false }
			  else { if (document.order6.select6.value=="Coming Soon") {alert("Coming Soon!" ) ; return false }}}}}
