function linkorama(selObj,restore) {
	var fullString = selObj.options[selObj.selectedIndex].value;
	if (restore) {
		selObj.selectedIndex = 0;
	}
	var length = fullString.length;
	var endPos = fullString.lastIndexOf("~");
	var url, targ;
	if (endPos > 0) {
		url = fullString.substring(0,endPos);
	} else {
		url = fullString;
	}
	endPos++
	if (endPos < length) {
		targ = fullString.substring(endPos,length)
	}
	if (targ == "window:none") {
		return;
	} else if (targ == "window:top") {
		eval("top.location='"+url+"'");
	} else if (targ == "window:new") {
		window.open(url);
	} else {
		eval("self.location='"+url+"'");
	}
}

function jumpurl(form) {
	var selVal = form.URL.options[form.URL.selectedIndex].value;
	if (selVal == "none") {
		return true;
	} else {
		window.open(selVal,'KOMPONENT','toolbar=yes,resizable=yes,scrollbars=auto,statusbar=yes,location=yes,top=0,left=10,top=10,width=800,height=' + (screen.height - 100) + '')
		return true;
	}
}

function gotourl(form) {
	var selVal2 = form.URL2.options[form.URL2.selectedIndex].value;
	if (selVal2 == "none") {
		return true;
	} else {
		top.location = selVal2;
		return true;
	}
}

function jumpshow(form) {
	var selVal = form.URL.options[form.URL.selectedIndex].value;
	if (selVal == "none") {
		return true;
	} else {
		top.location = selVal;
		return true;
	}
}

function newwin(url) {
	window.open(url,'KOMPONENT','toolbar=no,resizable=yes,scrollbars=yes,statusbar=no,location=no,top=0,left=10,top=10,width=666,height=500')
	return true;
}

function goHist(a) {
	history.go(a);
}

if(document.images) {
	pics = new Array();
	pics[1] = new Image();
	pics[1].src = "/includes/KOMPONENT_vert.jpg";
	pics[2] = new Image();
	pics[2].src = "/includes/KOMPONENT_vert_on.jpg";
	pics[3] = new Image();
	pics[3].src = "/includes/FORUM.jpg";
	pics[4] = new Image();
	pics[4].src = "/includes/FORUM_on.jpg";
	pics[5] = new Image();
	pics[5].src = "/includes/EVENTS.jpg";
	pics[6] = new Image();
	pics[6].src = "/includes/EVENTS_on.jpg";
	pics[7] = new Image();
	pics[7].src = "/includes/EARLIER.jpg";
	pics[8] = new Image();
	pics[8].src = "/includes/EARLIER_on.jpg";
	pics[9] = new Image();
	pics[9].src = "/includes/CONTACT.jpg";
	pics[10] = new Image();
	pics[10].src = "/includes/CONTACT_on.jpg";
	pics[11] = new Image();
	pics[11].src = "/includes/ABOUT.jpg";
	pics[12] = new Image();
	pics[12].src = "/includes/ABOUT_on.jpg";
	pics[13] = new Image();
	pics[13].src = "/includes/ORGANIZER.jpg";
	pics[14] = new Image();
	pics[14].src = "/includes/ORGANIZER_on.jpg";
	pics[15] = new Image();
	pics[15].src = "/includes/GALLERY.jpg";
	pics[16] = new Image();
	pics[16].src = "/includes/GALLERY_on.jpg";
	pics[17] = new Image();
	pics[17].src = "/includes/FRIENDS.jpg";
	pics[18] = new Image();
	pics[18].src = "/includes/FRIENDS_on.jpg";
	pics[25] = new Image();
	pics[25].src = "/includes/NEWSLETTER.jpg";
	pics[26] = new Image();
	pics[26].src = "/includes/NEWSLETTER_on.jpg";
	pics[27] = new Image();
	pics[27].src = "/includes/goback.gif";
	//pics[28] = new Image();
	//pics[28].src = "/includes/goback_on.gif";
	pics[29] = new Image();
	pics[29].src = "/includes/gototop.gif";
	//pics[30] = new Image();
	//pics[30].src = "/includes/gototop_on.gif";
	pics[31] = new Image();
	pics[31].src = "/includes/DONTFORGETTOVISIT.jpg";
	pics[32] = new Image();
	pics[32].src = "/includes/DONTFORGETTOVISIT_on.jpg";
	pics[33] = new Image();
	pics[33].src = "/includes/CALENDAR.jpg";
	pics[34] = new Image();
	pics[34].src = "/includes/CALENDAR_on.jpg";
	pics[35] = new Image();
	pics[35].src = "/includes/QUICKFORUMSEARCH.jpg";
	pics[36] = new Image();
	pics[36].src = "/includes/QUICKFORUMSEARCH_on.jpg";
}

function changer(from,to) {
	if(document.images) {
		document.images[from].src = pics[to].src;
	}
}

function elementToggle(id) {
	if (document.all) {
		if(document.all[id].style.display == 'none') {
			document.all[id].style.display = '';
		} else {
			document.all[id].style.display = 'none';
		}
		return false;
	}
	else if (document.getElementById) {
		if(document.getElementById(id).style.display == 'none') {
			document.getElementById(id).style.display = 'block';
		} else {
			document.getElementById(id).style.display = 'none';
		}
		return false;
	}
}
