		Shadowbox.init();
		
		function doloadit2(val){
			if(val.length>3){
				/*
				$("#quickresults").css("opacity","0");
				$("#quickresults").height("auto");
				*/
				
				var html = $.ajax({
 			 		url: "/pages/ajaxparser.php?srch="+val,
  					async: false
 				}).responseText;
 				 				
 				$("#quickresults").html(html);
 				$("#quickresults").slideDown();

 				
 				/*
 				endheight=$("#quickresults").height();	
 				$("#quickresults").height(0);
 				$("#quickresults").animate({	 
 					height: endheight,
 					opacity: 1.00
 				}, 500, function() {});
				*/
 			} else {
				/* $("#quickresults").css("opacity","0"); */
				$("#quickresults").slideUp();
 			}
		}
		function docloseit(){
			$("#quickresults").animate({	 
 					height: 0,
 					opacity: 0.00
 				}, 500, function() {});
		}

		function rowcolor(item,color){
			document.getElementById(item).style.backgroundColor=color;
		}
		function swappic(name,newpic){
			document.images[name].src=newpic;
		}
	
		function swapimg(name, newnr){
			newname="img2/"+name+newnr+".gif";
			document.images[name].src=newname;
		}
		function getpage(urrol){
			document.location.href=urrol;
		}
		function disco_light(target){
			document.getElementById(target).style.backgroundColor="#cccccc";
		}
		function disco_dark(target,color){
			document.getElementById(target).style.backgroundColor=color;
		}
		function disco_getpage(nr){
			document.location.href="<?php echo $INDEX; ?>?id="+nr;
		}
		function bookmarksite(title, url){
			if (document.all)
				window.external.AddFavorite(url, title);
			else if (window.sidebar)
				window.sidebar.addPanel(title, url, "")
		}
		function settitle(titel){
			document.title='Challenge Records Int. - '+titel;
		}

		function showlist(ding){
			document.getElementById('tracklist').style.display='none';
			document.getElementById('description').style.display='none';
			document.getElementById('quotes').style.display='none';
			document.getElementById('news').style.display='none';
			document.getElementById(ding).style.display='';
		}
		function showlist2(ding){
			document.getElementById('biography').style.display='none';
			document.getElementById('discography').style.display='none';
			document.getElementById('news').style.display='none';
			document.getElementById('video').style.display='none';
			document.getElementById(ding).style.display='';
		}

		function textlist(){
			document.getElementById('textlist').style.display=''; document.getElementById('piclist').style.display='none';
		}
		function piclist(){
			document.getElementById('textlist').style.display='none'; document.getElementById('piclist').style.display='';
		}

		function getIt(actioni, item, repage){
			document.forms.shopform.actioni.value=actioni;
			document.forms.shopform.item.value=item;
			document.forms.shopform.repage.value=repage;
			if(actioni!=""){
				document.forms.shopform.reload.value="yes";
			}
			document.forms.shopform.submit();
		}	
		
		function dropdownrun(group,veld){
			
			x = document.quicksearch.elements[veld].selectedIndex;
			y= document.quicksearch.elements[veld].options[x].value;
			
			if (y == ""){
			} else {
				type="group";
				if(group=="artists"){	type="id";	}
				document.location.href="http://www.challenge.nl/"+group+"/"+y;
			}
		}
		
		searchstatus='closed';
		
		function openSearch(){
			if(searchstatus=='open'){
				closeSearch();
			} else {
				a=document.getElementById('searchbar').style.height;
				a=a.replace("px","");
				if(a=="" || a==0){ a=1; }
				a=parseInt(a);
				if(a<93){
					a=a*1.5;
					a=Math.round(a);
					document.getElementById('searchbar').style.height=a+'px';
					setTimeout("openSearch()",50);
				} else {
					document.getElementById('searchbar').style.height='93px';
					searchstatus="open";
				}
			}
		}
		
		function closeSearch(){
			document.getElementById('quickresults').style.display='none';
			a=document.getElementById('searchbar').style.height;
			a=a.replace("px","");
			if(a==""){ a=75; }
			a=parseInt(a);
			if(a>1){
				a=a/1.5;
				a=Math.round(a);
				document.getElementById('searchbar').style.height=a+'px';
				setTimeout("closeSearch()",50);
			} else {
				document.getElementById('searchbar').style.height='0px';
				searchstatus='closed';
			}
		}		
		
		function shippingpopup() {
			day = new Date();
			id = day.getTime();
			eval("page" + id + " = window.open('http://www.challenge.nl/pages/shippingpopup.php', '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=300,left = 690,top = 475');");
		}		
