function preload() {

    var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=preload.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function addBookmark(url, title) {

	if (!url) url = location.href;
	if (!title) title = document.title;

	//Gecko
	if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function")) window.sidebar.addPanel (title, url, "");
	//IE4+
	else if (typeof window.external == "object") window.external.AddFavorite(url, title);
	//Opera7+
	else if (window.opera && document.createElement) {

		var a = document.createElement('A');
		if (!a) return false; //IF Opera 6
		a.setAttribute('rel','sidebar');
		a.setAttribute('href',url);
		a.setAttribute('title',title);
		a.click();
	}
	else return false;

	return true;
}

function openCategory(nextid, id) {

//	var cat = document.getElementById(nextid).parentNode;
//	var cat = document.getElementById(nextid).childNodes[1]	;
	var cat = document.getElementById(nextid);
	var img = document.getElementById(id);

	if (cat.className == 'closed') {
    
		cat.className = '';
		img.className = 'opened';
	}
		else {

		cat.className = 'closed';
		img.className = '';
	}
}
