function QB_showBox(label) {
	var linksContainer = document.getElementById('QB_links');
	var boxesContainer = document.getElementById('QB_boxes');

	var boxes = boxesContainer.getElementsByTagName('div');
	for(i = 0; i < boxes.length; i++) {
		box = boxes[i];
		if(!box.id)
			continue;

		if(box.id.substring(0, 7) != 'QB_box_')
			continue;

		if(box.id == 'QB_box_' + label)
			box.style.display = 'block';
		else
			box.style.display = 'none';
	}
	
	linkToRemove = document.getElementById('QB_link_' + label);
	removedLink = linksContainer.removeChild(linkToRemove);
	firstChild = linksContainer.childNodes[0];
	linksContainer.insertBefore(removedLink, firstChild);
	
	var links = linksContainer.getElementsByTagName('span');
	counter = 0;
	for(i = 0; i < links.length; i++) {
		link = links[i];
		if(!link.id)
			continue;

		if(link.id.substring(0, 8) != 'QB_link_')
			continue;

		if(link.id == 'QB_link_' + label) {
			className = 'active';
			topValue = '0px';
			createCookie('quickBoxActive', label);
		} else {
			counter++;
			topValue = counter * 68;
			topValue += 'px';
			className = 'pasive';
		}
		link.style.top = topValue;

		link.setAttribute('class', className);
		link.setAttribute('className', className);
	}
}

function createCookie(name,value) {
	var expires = "";
	document.cookie = name+"="+value+"; path=/";
}



