//function Preload_Images()
//	{
news_low  = new Image(); 
news_high = new Image();
news_low.src  = "/bilder/link_buttons/news_dunkel.gif";
news_high.src = "/bilder/link_buttons/news_hell.gif";

photos_low  = new Image(); 
photos_high = new Image();
photos_low.src  = "/bilder/link_buttons/photos_dunkel.gif";
photos_high.src = "/bilder/link_buttons/photos_hell.gif";

forum_low  = new Image(); 
forum_high = new Image();
forum_low.src  = "/bilder/link_buttons/forum_dunkel.gif";
forum_high.src = "/bilder/link_buttons/forum_hell.gif";

links_low  = new Image(); 
links_high = new Image();
links_low.src  = "/bilder/link_buttons/links_dunkel.gif";
links_high.src = "/bilder/link_buttons/links_hell.gif";

members_low  = new Image(); 
members_high = new Image();
members_low.src  = "/bilder/link_buttons/members_dunkel.gif";
members_high.src = "/bilder/link_buttons/members_hell.gif";

guestbook_low  = new Image(); 
guestbook_high = new Image();
guestbook_low.src  = "/bilder/link_buttons/guestbook_dunkel.gif";
guestbook_high.src = "/bilder/link_buttons/guestbook_hell.gif";

download_low  = new Image(); 
download_high = new Image();
download_low.src  = "/bilder/link_buttons/download_dunkel.gif";
download_high.src = "/bilder/link_buttons/download_hell.gif";

misc_low  = new Image(); 
misc_high = new Image();
misc_low.src  = "/bilder/link_buttons/misc_dunkel.gif";
misc_high.src = "/bilder/link_buttons/misc_hell.gif";
//	};

function ChangeButton(id,Button)
	{
	 if (id=="news_button") window.document.news_button.src = Button.src;
	 if (id=="photos_button") window.document.photos_button.src = Button.src;
	 if (id=="forum_button") window.document.forum_button.src = Button.src;
	 if (id=="links_button") window.document.links_button.src = Button.src;
	 if (id=="members_button") window.document.members_button.src = Button.src;
	 if (id=="guestbook_button") window.document.guestbook_button.src = Button.src;
	 if (id=="download_button") window.document.download_button.src = Button.src;
	 if (id=="misc_button") window.document.misc_button.src = Button.src;
	};


function Dec2Hex(x)
	{
	 zehner = Math.floor(x / 16);
	 einer  = x - 16*zehner;
	 
	 if (zehner == 0)  a = '0'; if (einer == 0)  b = '0';
	 if (zehner == 1)  a = '1'; if (einer == 1)  b = '1';
	 if (zehner == 2)  a = '2'; if (einer == 2)  b = '2';
	 if (zehner == 3)  a = '3'; if (einer == 3)  b = '3';
	 if (zehner == 4)  a = '4'; if (einer == 4)  b = '4';
	 if (zehner == 5)  a = '5'; if (einer == 5)  b = '5';
	 if (zehner == 6)  a = '6'; if (einer == 6)  b = '6';
	 if (zehner == 7)  a = '7'; if (einer == 7)  b = '7';
	 if (zehner == 8)  a = '8'; if (einer == 8)  b = '8';
	 if (zehner == 9)  a = '9'; if (einer == 9)  b = '9';
	 if (zehner == 10) a = 'A'; if (einer == 10) b = 'A';
	 if (zehner == 11) a = 'B'; if (einer == 11) b = 'B';
	 if (zehner == 12) a = 'C'; if (einer == 12) b = 'C';
	 if (zehner == 13) a = 'D'; if (einer == 13) b = 'D';
	 if (zehner == 14) a = 'E'; if (einer == 14) b = 'E';
	 if (zehner == 15) a = 'F'; if (einer == 15) b = 'F';
	 v = a+b;
	 return(v);	 

	};


function get_filename(stin)
	{
	 s = '';
	 for (x = 0; x<stin.length;x++)
		{
		 s = s+"%"+Dec2Hex(stin.charCodeAt(x));
		};
	 return s;
	};

//Preload_Images();

