//	special contents

function special(level) {

	document.write("<div class='special_cnt_box'><div class='special_find'>");
	document.write("<img src='../images/2011connect/new.jpg' width='48' height='16' align='right'>V-Drums Lite");
	document.write("</div>");
	document.write("<a href='http://www.roland.com/products/en/HD-3/' target='_blank'><img src='../images/2012NAMM/HD-3_side.jpg' width='60' height='86' border='0' align='left' style='margin-right:5px;'>The new compact HD-3 is Fun and friendly for all levels of drummers.</a></div>");

	document.write("<div class='special_cnt_box'><div class='special_find'>");
	document.write("<img src='../images/2011connect/new.jpg' width='48' height='16' align='right'>Drum Tutor</div>");
	document.write("<a href='http://www.roland.com/products/en/DT-1/' target='_blank'><img src='../images/2012NAMM/bn_DT-1.jpg' width='60' height='66' align='left' style='margin-right:5px;'>Get on the Fast Track to Drumming! The DT-1 for Mac/PC is compatible with any Roland V-Drums kit. </a></div>");

	document.write("<div class='special_cnt_box'><div class='special_find'>");
	document.write("V-Drums Friend Jam</div><a href='../FriendJam/' target='_blank'><img src='");
	if (level == 1)	{
		document.write("../");
	}
	document.write("images/top/sp_friends.jpg' width='60' height='42' align='left' style='margin-right:5px;'></a><div align='center'><a href='../FriendJam/' target='_blank'>More Info</a><br><br></div>"); 
	document.write("<img src='");
	if (level == 1)	{
		document.write("../");
	}
	document.write("images/spacer.gif' width='1' height='10'><br><a href='../FriendJam/' target='_blank'>Let's jam with online friends around the world!</a></div>");

}

var accordion=function(){
	var tm=sp=10;
	function slider(n){this.nm=n; this.arr=[]}
	slider.prototype.init=function(t,c,k){
		var a,h,s,l,i; a=document.getElementById(t); this.sl=k?k:'';
		h=a.getElementsByTagName('dt'); s=a.getElementsByTagName('dd'); this.l=h.length;
		for(i=0;i<this.l;i++){var d=h[i]; this.arr[i]=d; d.onclick=new Function(this.nm+'.pro(this)'); if(c==i){d.className=this.sl}}
		l=s.length;
		for(i=0;i<l;i++){var d=s[i]; d.mh=d.offsetHeight; if(c!=i){d.style.height=0; d.style.display='none'}}
	}
	slider.prototype.pro=function(d){
		for(var i=0;i<this.l;i++){
			var h=this.arr[i], s=h.nextSibling; s=s.nodeType!=1?s.nextSibling:s; clearInterval(s.tm);
			if(h==d&&s.style.display=='none'){s.style.display=''; su(s,1); h.className=this.sl}
			else if(s.style.display==''){su(s,-1); h.className=''}
		}
	}
	function su(c,f){c.tm=setInterval(function(){sl(c,f)},tm)}
	function sl(c,f){
		var h=c.offsetHeight, m=c.mh, d=f==1?m-h:h; c.style.height=h+(Math.ceil(d/sp)*f)+'px';
		c.style.opacity=h/m; c.style.filter='alpha(opacity='+h*100/m+')';
		if(f==1&&h>=m){clearInterval(c.tm)}else if(f!=1&&h==1){c.style.display='none'; clearInterval(c.tm)}
	}
	return{slider:slider}
}();
