// -> getting variables from urlfunction getArgs() {	var query = location.search.substring(1);	var pairs = query.split("&");	for(var i = 0; i < pairs.length; i++) {		var pos = pairs[i].indexOf('=');		if (pos == -1) continue;		var argname = pairs[i].substring(0,pos);		var value = pairs[i].substring(pos+1);		args[argname] = unescape(value);	}	return args;}var args = new Object();getArgs();if (window.location.search != "") {	// only gets variables from url if there are any	var id = (args['id']);	var page = (args['page']);	var media = (args['media']);} else {	// sets initial variables	var page = "1";	var media = "1";}// -> end// -> main navi startMainNaviOver = new Array(); // status: overMainNaviOff = new Array(); // status: offfor (i=1; i<=5; i++) {	MainNaviOver[i] = new Image();	MainNaviOff[i] = new Image();	MainNaviOver[i].src = "images/navi_main_" + i + "_over.gif";	MainNaviOff[i].src = "images/navi_main_" + i + "_off.gif";}function toggleMainNavi(itemindex) {		// rollover effect	if (document.images["MainNaviImage" + itemindex].src.indexOf("_off.gif") >= 0) {		document.images["MainNaviImage" + itemindex].src = MainNaviOver[itemindex].src;	} else if (document.images["MainNaviImage" + itemindex].src.indexOf("_over.gif") >= 0) {		document.images["MainNaviImage" + itemindex].src = MainNaviOff[itemindex].src;	}}// -> end// -> sub navi startSubNaviOn = new Array(); // status: onSubNaviOver = new Array(); // status: overSubNaviOff = new Array(); // status: offfor (i=1; i<=5; i++) {	SubNaviOn[i] = new Image();	SubNaviOver[i] = new Image();	SubNaviOff[i] = new Image();	SubNaviOn[i].src = "images/navi_sub_" + i + "_on.gif";	SubNaviOver[i].src = "images/navi_sub_" + i + "_over.gif";	SubNaviOff[i].src = "images/navi_sub_" + i + "_off.gif";}function buildSubNavi() { // building menu	if (page != 0) {		document.images["SubNaviImage" + page].src = SubNaviOn[page].src; // switches between items according to page number	}}function toggleSubNavi(itemindex) {		// rollover effect	if (document.images["SubNaviImage" + itemindex].src.indexOf("_off.gif") >= 0) {		document.images["SubNaviImage" + itemindex].src = SubNaviOver[itemindex].src;	} else if (document.images["SubNaviImage" + itemindex].src.indexOf("_over.gif") >= 0) {		document.images["SubNaviImage" + itemindex].src = SubNaviOff[itemindex].src;	}}// -> end// -> subsub navi startSubSubNaviOn = new Array(); // status: onSubSubNaviOver = new Array(); // status: overSubSubNaviOff = new Array(); // status: offfor (i=1; i<=3; i++) {	SubSubNaviOn[i] = new Image();	SubSubNaviOver[i] = new Image();	SubSubNaviOff[i] = new Image();	SubSubNaviOn[i].src = "images/navi_subsub_" + i + "_on.gif";	SubSubNaviOver[i].src = "images/navi_subsub_" + i + "_over.gif";	SubSubNaviOff[i].src = "images/navi_subsub_" + i + "_off.gif";}function buildSubSubNavi() { // building menu	if (page == 1) {		document.images["SubSubNaviImage" + media].src = SubSubNaviOn[media].src; // switches between items according to page number	}}function toggleSubSubNavi(itemindex) {		// rollover effect	if (document.images["SubSubNaviImage" + itemindex].src.indexOf("_off.gif") >= 0) {		document.images["SubSubNaviImage" + itemindex].src = SubSubNaviOver[itemindex].src;	} else if (document.images["SubSubNaviImage" + itemindex].src.indexOf("_over.gif") >= 0) {		document.images["SubSubNaviImage" + itemindex].src = SubSubNaviOff[itemindex].src;	}}// -> end// -> article popupfunction article(index) {	var URL = 'article.php?id=' + id + '&article=' + index;	var l = "20";	var t =	"20";	var w = "516";	var h = "400";	var windowprops = "location=no, scrollbars=yes, menubars=no, toolbars=no, resizable=no" + ",left=" + l + ",top=" + t + ",width=" + w + ",height=" + h;	popup = window.open(URL, "PopUp", windowprops);	popup.focus();}// -> end// -> projector popupfunction projector(index, copyright) {	var URL = 'projector.php?id=' + id + '&photo=' + index + '&copyright=' + copyright;	var l = "20";	var t =	"20";	var w = "400";	var h = "480";	var windowprops = "location=no, scrollbars=yes, menubars=no, toolbars=no, resizable=no" + ",left=" + l + ",top=" + t + ",width=" + w + ",height=" + h;	popup = window.open(URL, "Projector", windowprops);	popup.focus();}// -> end// -> musicbox popupfunction musicbox(album, title) {	var URL = 'data/music/' + id + '_' + album + '_' + title +'.mp3';	var l = "20";	var t =	"20";	var w = "300";	var h = "100";	var windowprops = "location=no, scrollbars=yes, menubars=no, toolbars=no, resizable=no" + ",left=" + l + ",top=" + t + ",width=" + w + ",height=" + h;	popup = window.open(URL, "Musicbox", windowprops);	popup.focus();}// -> end// -> imprint popupfunction imprint() {	var URL = 'imprint.php';	var l = "20";	var t =	"20";	var w = "300";	var h = "280";	var windowprops = "location=no, scrollbars=yes, menubars=no, toolbars=no, resizable=no" + ",left=" + l + ",top=" + t + ",width=" + w + ",height=" + h;	popup = window.open(URL, "Imprint", windowprops);	popup.focus();}// -> end