<!--

//////////////////////////////////////////////////////
// PRELOAD VON BILDERN
//////////////////////////////////////////////////////

var imagedir="img/";
var myimages=new Array();
function preloadimages(){
	for (i=0;i<preloadimages.arguments.length;i++){
	myimages[i]=new Image()
	myimages[i].src=imagedir + preloadimages.arguments[i]
	}
}
preloadimages("b_enter_on.gif","m_bio_sub_1_on.gif","m_bio_sub_2_on.gif","m_bio_sub_3_on.gif","m_charts_on.gif","m_community_on.gif","m_community_sub_1_on.gif","m_community_sub_1a_on.gif","m_community_sub_1b_on.gif","m_community_sub_2_on.gif","m_dates_on.gif","m_dates_sub_1_on.gif","m_dates_sub_2_on.gif","m_favourites_on.gif","m_galerie_on.gif","m_home_on.gif","m_impressum_on.gif","m_kontakt_on.gif","m_news_on.gif","m_radio_on.gif","m_shop_on.gif","m_radio_on.gif","m_multimedia_on.gif");

//////////////////////////////////////////////////////
// TOGGLE FUNKTION
//////////////////////////////////////////////////////

function toggle(DivID) {
	if (document.layers) { // NN4+
		if (document.layers[DivID].visibility == 'visible') {
		document.layers[DivID].visibility = "hide";
		document.layers[DivID].display = "none";
		}else{
		document.layers[DivID].visibility = "show";
		document.layers[DivID].display = "inline";
		}
	} else if(document.getElementById) { // gecko(NN6) + IE 5+
	var obj = document.getElementById(DivID);
		if (obj.style.visibility == 'visible') {
		obj.style.visibility = "hidden";
		obj.style.display = "none";
		}else{
		obj.style.visibility = "visible";
		obj.style.display = "inline";
		}
	} else if (document.all) { // IE 4
		if (document.all[DivID].style.visibility == 'visible') {
		document.all[DivID].style.visibility = "hidden";
		document.all[DivID].style.display = "none";
		}else{
		document.all[DivID].style.visibility = "visible";
		document.all[DivID].style.display = "inline";
		}
	}
}


//////////////////////////
// EINFACHER HTML POPUP //
//////////////////////////

function forum() {
var pwidth = 690;
var pheight = 575;
var left = (screen.width/2)-(pwidth/2);
var top = (screen.height/2)-(pheight/2);
NewWin=window.open('http://www.turntablerocker.com/lexy/forum/index.php','NewWin','width=' + pwidth + ',height=' + pheight + ',scrollbars=1,resizable=1,top=' + top + ',left=' + left + '');
}

//////////////////////////////////////////////////////
// BILD POPUP
//////////////////////////////////////////////////////

var newwindow;
var wheight = 0, wwidth = 0;
function imgpop(url, title, iwidth, iheight, colour) {
var pwidth, pheight;
// SCREEN MITTE
links = (screen.width/2)-(iwidth/2);
oben = (screen.height/2)-(iheight/2);
if ( !newwindow || newwindow.closed ) {
pwidth=iwidth+30;
pheight=iheight+30;
newwindow=window.open('','htmlname','width=' + pwidth +',height=' +pheight + ',resizable=1,top='+oben+',left='+links);
wheight=iheight;
wwidth=iwidth;
}
if (wheight!=iheight || wwidth!=iwidth ) {
pwidth=iwidth+30;
pheight=iheight+60;
newwindow.resizeTo(pwidth, pheight);
wheight=iheight;
wwidth=iwidth;
}
newwindow.document.clear();
newwindow.focus();
newwindow.document.writeln('<html>');
newwindow.document.writeln('<head>');
newwindow.document.writeln('<title>' + title + '<\/title>');
newwindow.document.writeln('<\/head>');
newwindow.document.writeln('<body bgcolor= \"' + colour + '\">');
newwindow.document.writeln('<table border=\"0\" width=\"100%\" height=\"100%\" cellspacing=\"0\" cellpadding=\"0\"><tr><td width=\"100%\" align=\"center\">');
newwindow.document.writeln('<a href=\"javascript:window.close()\">');
newwindow.document.writeln('<img src=' + url + ' border=\"0\" alt=\"Fenster schließen\">');
newwindow.document.writeln('<\/a>');
newwindow.document.writeln('<\/td><\/tr><\/table>');
newwindow.document.writeln('<\/body>');
newwindow.document.writeln('<\/html>');
newwindow.document.close();
newwindow.focus();
}
function tidy5() {
if (newwindow && !newwindow.closed) { newwindow.close(); }
}

//-->