// -> getting variables from urlvar id = (window.location.pathname.indexOf('georgette-dee')  != -1) ? 1 : id;var id = (window.location.pathname.indexOf('maren-kroymann') != -1) ? 2 : id;var id = (window.location.pathname.indexOf('lilo-wanders')   != -1) ? 3 : id;var id = (window.location.pathname.indexOf('the-croonettes') != -1) ? 4 : id;var id = (window.location.pathname.indexOf('mouron')         != -1) ? 5 : id;var id = (window.location.pathname.indexOf('gitte-haenning') != -1) ? 6 : id;var id = (window.location.pathname.indexOf('autoauto')       != -1) ? 7 : id;var page = (window.location.pathname.indexOf('tourdaten') != -1) ? 2 : 1;var page = (window.location.pathname.indexOf('musik')     != -1) ? 3 : page;var media = (window.location.pathname.indexOf('pressezitate') != -1) ? 1 : media;var media = (window.location.pathname.indexOf('photos')       != -1) ? 2 : media;var media = (window.location.pathname.indexOf('pressetext')   != -1) ? 3 : media;// -> end// -> main navi startMainNaviOver = new Array(); // status: overMainNaviOff = new Array(); // status: offfor (i=1; i<=7; i++) {	MainNaviOver[i] = new Image();	MainNaviOff[i] = new Image();	MainNaviOver[i].src = "http://www.agentur-charis.de/images/navi_main_" + i + "_over.gif";	MainNaviOff[i].src = "http://www.agentur-charis.de/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 = "http://www.agentur-charis.de/images/navi_sub_" + i + "_on.gif";	SubNaviOver[i].src = "http://www.agentur-charis.de/images/navi_sub_" + i + "_over.gif";	SubNaviOff[i].src = "http://www.agentur-charis.de/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 = "http://www.agentur-charis.de/images/navi_subsub_" + i + "_on.gif";	SubSubNaviOver[i].src = "http://www.agentur-charis.de/images/navi_subsub_" + i + "_over.gif";	SubSubNaviOff[i].src = "http://www.agentur-charis.de/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 = 'http://www.agentur-charis.de/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 = 'http://www.agentur-charis.de/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 = 'http://www.agentur-charis.de/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
