function hover_anchor(navigation_id, anchor_id) {

	document.getElementById(navigation_id + "_a_" + anchor_id).style.color = "#666666";
	document.getElementById(navigation_id + "_li_" + anchor_id).style.background = "#ffffff";
}




function blur_anchor(navigation_id, anchor_id) {

	document.getElementById(navigation_id + "_a_" + anchor_id).style.color = "#AC3030"; /* "#993300"; */
	document.getElementById(navigation_id + "_li_" + anchor_id).style.background = "#ffffff";
}




function hover_list(navigation_id, anchor_id) {

	document.getElementById(navigation_id + "_a_" + anchor_id).style.color = "#666666";
	document.getElementById(navigation_id + "_li_" + anchor_id).style.background = "#ffffff";
}




function blur_list(navigation_id, anchor_id) {

	document.getElementById(navigation_id + "_a_" + anchor_id).style.color = "#AC3030"; /* "#993300"; */
	document.getElementById(navigation_id + "_li_" + anchor_id).style.background = "#ffffff";
}




function open_page(page_id) {

	window.open('index.php?page_id=' + page_id, '_self');
}




function open_page(page_id, lingua) {

	window.open('index.php?lingua=' + lingua + '&page_id=' + page_id, '_self');
}




function input_test(the_input) {

	if(the_input == "newsletter_name") {

		if(document.getElementsByName("newsletter_name")[0].value == "Ihr Name") {

			document.getElementsByName("newsletter_name")[0].value = "";
		}

	}


	if(the_input == "newsletter_e_mail") {

		if(document.getElementsByName("newsletter_e_mail")[0].value == "Ihre Mail-Adresse") {

			document.getElementsByName("newsletter_e_mail")[0].value = "";
		}

	}


	return false;
}




function hover_it(object, style) {

	styles = Array();

	styles[0] = Array();
	styles[1] = Array();
	styles[2] = Array();

	styles[0][0] = "#AC3030";
	styles[0][1] = "#666666";
	styles[0][2] = "#333333";
	styles[0][3] = "#333333";
	styles[0][4] = "#333333";

	styles[1][0] = "#ffffff";
	styles[1][1] = "#ffffff";
	styles[1][2] = "#c0ffbe";
	styles[1][3] = "#ff9900";
	styles[1][4] = "#c0c0dd";

	styles[2][0] = "0";
	styles[2][1] = "0";
	styles[2][2] = "1px solid #999999";
	styles[2][3] = "1px solid #999999";
	styles[2][4] = "1px solid #999999";


	document.getElementById(object).style.color = styles[0][style];
	document.getElementById(object).style.background = styles[1][style];
	document.getElementById(object).style.border = styles[2][style];


	return true;
}


function blur_it(object, style) {

	styles = Array();

	styles[0] = Array();
	styles[1] = Array();
	styles[2] = Array();

	styles[0][0] = "#666666";
	styles[0][1] = "#AC3030";
	styles[0][2] = "#666666";
	styles[0][3] = "#666666";
	styles[0][4] = "#666666";

	styles[1][0] = "#ffffff";
	styles[1][1] = "#ffffff";
	styles[1][2] = "#e3dfdc";
	styles[1][3] = "#e3dfdc";
	styles[1][4] = "#e3dfdc";

	styles[2][0] = "0";
	styles[2][1] = "0";
	styles[2][2] = "1px solid #cccccc";
	styles[2][3] = "1px solid #cccccc";
	styles[2][4] = "1px solid #cccccc";


	document.getElementById(object).style.color = styles[0][style];
	document.getElementById(object).style.background = styles[1][style];
	document.getElementById(object).style.border = styles[2][style];


	return true;
}




function mail(first_name, last_name, url, domain) {

	var address = "mailto:";


	if( first_name.length > 0) {

		address += first_name;
	}


	if( last_name.length > 0) {

		address += "." + last_name;
	}


	location.href = address + "@" + url + "." + domain;
}




function big_img(shop_id, shop_type, img_src, img_title, lingua) {

	var img_window;

	var html_text = new Array();

	html_text[0] = new Array();
	html_text[0][0] = "Mausklick schlie&szlig;t dieses Fenster";
	html_text[0][1] = "Fenster schlie&szlig;en";

	html_text[1] = new Array();
	html_text[1][0] = "Click will close this window";
	html_text[1][1] = "Close this window";

	html_text[2] = new Array();
	html_text[2][0] = "Cerrar ventana";
	html_text[2][1] = "Pincha aqu&iacute; para cerrar";


	var lingua_index = 0;


	if(lingua == "en") {

		lingua_index = 1;
	}


	if(lingua == "es") {

		lingua_index = 2;
	}


	var x_position = 0.5 * eval(screen.availWidth - 340);
	var y_position = 0.5 * eval(screen.availHeight - 380);


	var img_window = window.open("Singer Pur: " + img_title, "big_img_window", "height=380px, width=340px, left=" + x_position + ", top=" + y_position + ", hotkeys=yes, location=no, resizable=no, menubar=no, toolbar=no, scrollbars=no, status=yes");


	img_window.document.open();


	with (img_window.document) {

		write("<?xml version=\"1.0\" encoding=\"iso-8859-15\"?>\n\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"de-DE\" lang=\"de-DE\">\n\n<head>\n\t<title>Singer Pur: " + img_title + "</title>\n\t<meta http-equiv=\"content-type\" content=\"text/html; charset=iso-8859-15\" />\n\t<meta http-equiv=\"expires\" content=\"0\" />\n\t<meta name=\"robots\" content=\"noindex, nofollow\" />\n\t<meta name=\"description\" content=\"Willkommen bei Singer Pur &nbsp;&ndash;&nbsp; einem der f&uuml;hrenden deutschsprachigen Vokalensembles.\" />\n\t<meta name=\"keywords\" content=\"Singer Pur,Singerpur,Singer-Pur,Vokalensemble, Vocal Ensemble,Vokalsextett,Vokalmusik,vocal group,a-cappella,a-capella,Gesang,Stimme,Hilliard Ensemble,vocal music,P&auml;rt,Regensburg,Domspatzen,Chormusik,spiritual and secular vocal music\" />\n\t<meta name=\"author\" content=\"Singer Pur und die datendreXler, D-26123 Oldenburg : Copyright 2010\" />\n\n\t<link rel=\"shortcut icon\" href=\"media/shortcut_icons/singerpur.ico\" />\n\t<link rel=\"stylesheet\" type=\"text/css\" href=\"css/singerpur.css\" />\n</head>\n\n");


		write("<body class=\"big_shop_img\">\n<p class=\"big_shop_img\">\n<img src=\"media/shop_data/" + shop_id + "/shop_images/" + img_src + "\" id=\"big_shop_img_" + shop_type + "\" title=\"Singer Pur: " + img_title + "\" alt=\"Singer Pur: " + img_title + "\" />\n</p>\n\n<p class=\"big_shop_img_close_window\" onclick=\"window.close();\" title=\"" + html_text[lingua_index][0] + "\">" + html_text[lingua_index][1] + "</p>\n</body>\n\n</html>");
	}


	img_window.document.close();
}








function audio_src(shop_id, audio_src, cd_title, lingua) {

	var audio_window;

	var html_text = new Array();

	html_text[0] = new Array();
	html_text[0][0] = "Mausklick schlie&szlig;t dieses Fenster";
	html_text[0][1] = "Fenster schlie&szlig;en";

	html_text[1] = new Array();
	html_text[1][0] = "Click will close this window";
	html_text[1][1] = "Close this window";

	html_text[2] = new Array();
	html_text[2][0] = "Cerrar ventana";
	html_text[2][1] = "Pincha aqu&iacute; para cerrar";


	var lingua_index = 0;


	if(lingua == "en") {

		lingua_index = 1;
	}


	if(lingua == "es") {

		lingua_index = 2;
	}


	var x_position = 0.5 * eval(screen.availWidth - 360);
	var y_position = 0.5 * eval(screen.availHeight - 180);

	var audio_window = window.open("", "audio_src_mp3", "height=180px, width=360px, left=" + x_position + ", top=" + y_position + ", hotkeys=yes, location=no, resizable=no, menubar=no, toolbar=no, scrollbars=no, status=no");


	audio_window.document.open();


	with (audio_window.document) {

		write("<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"de-DE\" lang=\"de-DE\">\n\n<head>\n\t<title>Singer Pur: " + cd_title + "</title>\n\t<meta http-equiv=\"content-type\" content=\"text/html; charset=iso-8859-15\" />\n\t<meta http-equiv=\"expires\" content=\"0\" />\n\t<meta name=\"robots\" content=\"noindex, nofollow\" />\n\t<meta name=\"description\" content=\"Willkommen bei Singer Pur &nbsp;&ndash;&nbsp; einem der f&uuml;hrenden deutschsprachigen Vokalensembles.\" />\n\t<meta name=\"keywords\" content=\"Singer Pur,Singerpur,Singer-Pur,Vokalensemble, Vocal Ensemble,Vokalsextett,Vokalmusik,vocal group,a-cappella,a-capella,Gesang,Stimme,Hilliard Ensemble,vocal music,P&auml;rt,Regensburg,Domspatzen,Chormusik,spiritual and secular vocal music\" />\n\t<meta name=\"author\" content=\"Singer Pur und die datendreXler, D-26123 Oldenburg : Copyright 2010\" />\n\n\t<link rel=\"shortcut icon\" href=\"media/shortcut_icons/singerpur.ico\" />\n\t<link rel=\"stylesheet\" type=\"text/css\" href=\"css/singerpur.css\" />\n</head>\n\n");


		write("<body class=\"audio_src\">\n<h2 class=\"audio_src\">\nH&ouml;rprobe:</h2>\n<p class=\"audio_src\">\n" + audio_src + "\n</p>\n<p class=\"audio_src\">\n<object type=\"audio/mpeg\" data=\"http://www.singerpur.de/media/shop_data/" + shop_id + "/files_to_be_linked/singer_pur-hoerprobe-" + audio_src + "\" style=\"width:240px; height:80px;\"></object>\n</p>\n\n<p class=\"audio_src_close_window\" onclick=\"window.close();\" title=\"" + html_text[lingua_index][0] + "\">" + html_text[lingua_index][1] + "</p>\n</body>\n\n</html>");
	}


	audio_window.document.close();
}




function europa(lingua) {

	var europa_window;

	var html_text = new Array();

	html_text[0] = new Array();
	html_text[0][0] = "Das Lieferziel &bdquo;Europa&rdquo;";
	html_text[0][1] = "Das Lieferziel &bdquo;Europa&rdquo; umfasst folgende Staaten:\n</p>\n<p class=\"europa\">\nAlbanien, Andorra, Armenien, Aserbaidschan, Belarus (Wei&szlig;russland), Belgien, Bosnien und Herzegowina, Bulgarien, D&auml;nemark, Estland, Finnland, Frankreich, Georgien, Gibraltar, Griechenland, Gro&szlig;britannien, Irland, Island, Italien, Kasachstan, Kosovo, Kroatien, Lettland, Liechtenstein, Litauen, Luxemburg, Malta, Mazedonien, Monaco, Montenegro, Niederlande, Norwegen, &Ouml;sterreich, Polen, Portugal, Republik Moldau, Rum&auml;nien, Russische F&ouml;deration, San Marino, Schweden, Schweiz, Serbien, Slowakei, Slowenien, Spanien, Tschechische Republik, T&uuml;rkei, Ukraine, Ungarn, Vatikanstadt, Zypern";
	html_text[0][2] = "Mausklick schlie&szlig;t dieses Fenster";
	html_text[0][3] = "Fenster schlie&szlig;en";

	html_text[1] = new Array();
	html_text[1][0] = "The destination &bdquo;Europe&rdquo;";
	html_text[1][1] = "The destination &bdquo;Europe&rdquo; includes these countries:\n</p>\n<p class=\"europa\">\nAlbania, Andorra, Armenia, Austria, Azerbaijan, Belarus (Byelorussia), Belgium, Bosnia and Herzegovina, Bulgaria, Croatia, Cyprus, Czech Republic, Denmark, Estonia, Finland, France, Georgian Republic, Gibraltar, Greece, Hungary, Iceland, Ireland, Italy, Kazakhstan, Kosovo, Latvia, Liechtenstein, Lithuania, Luxembourg, Macedonia, Malta, Moldova, Monaco, Montenegro, Netherlands, Norway, Poland, Portugal, Romania, Russian Federation, San Marino, Serbia, Slovakia, Slovenia, Spain, Sweden, Switzerland, Turkey, Ukraine, United Kingdom, Vatican City";
	html_text[1][2] = "Click will close this window";
	html_text[1][3] = "Close this window";

	html_text[2] = new Array();
	html_text[2][0] = "El destino &bdquo;Europa&rdquo;";
	html_text[2][1] = "El destino &bdquo;Europa&rdquo; engloba los estados\n</p>\n<p class=\"europa\">\nAlbania, Andorra, Armenia, Austria, Azerbaiy&aacute;n, Belar&uacute;s (Bielorrusia), B&eacute;lgica, Bosnia y Hercegovina, Bulgaria, Chipre,  Ciudad del Vaticano, Croacia, Dinamarca, Eslovaquia, Eslovenia, Espa&ntilde;a, Estonia, Federaci&oacute;n Rusa, Finlandia, Francia, Georgia, Gibraltar, Grecia, Gran Breta&ntilde;a, Hungr&iacute;a, Irlanda, Islandia, Italia, Kazajist&aacute;n, Kosovo, Letonia, Liechtenstein, Lituania, Luxemburgo, Malta, Macedonia, Monaco, Montenegro, Noruega, Pa&iacute;ses Bajos, Polonia, Portugal, Rep&uacute;blica Checa, Rep&uacute;blica Moldava, Rumania, San Marino, Serbia, Suecia, Suiza, Turqu&iacute;a, Ucrania";
	html_text[2][2] = "Cerrar ventana";
	html_text[2][3] = "Pincha aqu&iacute; para cerrar";


	var lingua_index = 0;


	if(lingua == "en") {

		lingua_index = 1;
	}


	if(lingua == "es") {

		lingua_index = 2;
	}


	var x_position = 0.5 * eval(screen.availWidth - 400);
	var y_position = 0.5 * eval(screen.availHeight - 360);


	var europa_window = window.open("Singer Pur: " + html_text[lingua_index][0], "europa_window", "height=360px, width=400px, left=" + x_position + ", top=" + y_position + ", hotkeys=yes, location=no, resizable=no, menubar=no, toolbar=no, scrollbars=no, status=yes");


	europa_window.document.open();


	with (europa_window.document) {

		write("<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"de-DE\" lang=\"de-DE\">\n\n<head>\n\t<title>Singer Pur: " + html_text[lingua_index][0] + "</title>\n\t<meta http-equiv=\"content-type\" content=\"text/html; charset=iso-8859-15\" />\n\t<meta http-equiv=\"expires\" content=\"0\" />\n\t<meta name=\"robots\" content=\"noindex, nofollow\" />\n\t<meta name=\"description\" content=\"Willkommen bei Singer Pur &nbsp;&ndash;&nbsp; einem der f&uuml;hrenden deutschsprachigen Vokalensembles.\" />\n\t<meta name=\"keywords\" content=\"Singer Pur,Singerpur,Singer-Pur,Vokalensemble, Vocal Ensemble,Vokalsextett,Vokalmusik,vocal group,a-cappella,a-capella,Gesang,Stimme,Hilliard Ensemble,vocal music,P&auml;rt,Regensburg,Domspatzen,Chormusik,spiritual and secular vocal music\" />\n\t<meta name=\"author\" content=\"Singer Pur und die datendreXler, D-26123 Oldenburg : Copyright 2010\" />\n\n\t<link rel=\"shortcut icon\" href=\"media/shortcut_icons/singerpur.ico\" />\n\t<link rel=\"stylesheet\" type=\"text/css\" href=\"css/singerpur.css\" />\n</head>\n\n");


		write("<body class=\"europa\">\n<p class=\"europa\">\n" + html_text[lingua_index][1] + "\n</p>\n\n<p class=\"europa_close_window\" onclick=\"window.close();\" title=\"" + html_text[lingua_index][2] + "\">" + html_text[lingua_index][3] + "</p>\n</body>\n\n</html>");
	}


	europa_window.document.close();
}

