/******************************************************************
*																						*
*				Function: addtohead												*
*				Description: add to head tag whatever you want			*
*				Author: Alessandro Ferrari										*
*				Email: mrgorefest@gmail.com 									* 
*				Website: http://smileytest.ning.com							*
*																						*
*******************************************************************/

function addtohead(type, src) {
var headTag = document.getElementsByTagName('head')[0]; 
if (type == "text/javascript") { 
	elem = document.createElement('script');
	elem.type = type; 
	elem.src = src; 
}
else if (type == "text/css") {
	elem = document.createElement("link"); 
	elem.setAttribute("rel", "stylesheet"); 
	elem.setAttribute("type", "text/css"); 
	elem.setAttribute("href", src);
	elem.setAttribute("media", "screen");
}

headTag.appendChild(elem);

}

addtohead("text/css", "css/lightbox.css");
addtohead("text/javascript", "js/prototype.js");
addtohead("text/javascript", "js/scriptaculous.js?load=effects,builder");
addtohead("text/javascript", "js/lightbox.js");





