bnews_on = new Image;
bnews_on.src="../images/malaika/top_news_on.gif";
bnews_off= new Image;
bnews_off.src="../images/malaika/top_news.gif";

bdb_on = new Image;
bdb_on.src="../images/malaika/top_db_on.gif";
bdb_off= new Image;
bdb_off.src="../images/malaika/top_db.gif";


bgames_on = new Image;
bgames_on.src="../images/malaika/top_games_on.gif";
bgames_off= new Image;
bgames_off.src="../images/malaika/top_games.gif";

bchat_on = new Image;
bchat_on.src="../images/malaika/top_chat_on.gif";
bchat_off= new Image;
bchat_off.src="../images/malaika/top_chat.gif";


bportal_on = new Image;
bportal_on.src="../images/malaika/top_portal_on.gif";
bportal_off= new Image;
bportal_off.src="../images/malaika/top_portal.gif";

bcopy_on = new Image;
bcopy_on.src="../images/malaika/bot_copyright_on.gif";
bcopy_off= new Image;
bcopy_off.src="../images/malaika/bot_copyright.gif";


bsmap_on = new Image;
bsmap_on.src="../images/malaika/bot_sitem_on.gif";
bsmap_off= new Image;
bsmap_off.src="../images/malaika/bot_sitem.gif";

bwelpen_on = new Image;
bwelpen_on.src="../images/malaika/top_welpen_on.gif";
bwelpen_off= new Image;
bwelpen_off.src="../images/malaika/top_welpen.gif";

bzucht_on = new Image;
bzucht_on.src="../images/malaika/top_zucht_on.gif";
bzucht_off= new Image;
bzucht_off.src="../images/malaika/top_zucht.gif";

badd_on = new Image;
badd_on.src="../images/malaika/top_add_on.gif";
badd_off= new Image;
badd_off.src="../images/malaika/top_add.gif";

bwiw_on = new Image;
bwiw_on.src="../images/malaika/bot_wiw_on.gif";
bwiw_off= new Image;
bwiw_off.src="../images/malaika/bot_wiw.gif";

bimpr_on = new Image;
bimpr_on.src="../images/malaika/bot_impr_on.gif";
bimpr_off= new Image;
bimpr_off.src="../images/malaika/bot_impr.gif";

bgbook_on = new Image;
bgbook_on.src="../images/malaika/top_gbook_on.gif";
bgbook_off= new Image;
bgbook_off.src="../images/malaika/top_gbook.gif";

bgalerie_on = new Image;
bgalerie_on.src="../images/malaika/top_galery_on.gif";
bgalerie_off= new Image;
bgalerie_off.src="../images/malaika/top_galery.gif";

bcontact_on = new Image;
bcontact_on.src="../images/malaika/top_contact_on.gif";
bcontact_off= new Image;
bcontact_off.src="../images/malaika/top_contact.gif";

bdogs_on = new Image;
bdogs_on.src="../images/malaika/top_dogs_on.gif";
bdogs_off= new Image;
bdogs_off.src="../images/malaika/top_dogs.gif";

babout_on = new Image;
babout_on.src="../images/malaika/top_aboutus_on.gif";
babout_off= new Image;
babout_off.src="../images/malaika/top_aboutus.gif";

bstart_on = new Image;
bstart_on.src="../images/malaika/top_start_on.gif";
bstart_off= new Image;
bstart_off.src="../images/malaika/top_start.gif";

bforum_on = new Image;
bforum_on.src="../images/malaika/top_forum_on.gif";
bforum_off= new Image;
bforum_off.src="../images/malaika/top_forum.gif";

bgbook_on = new Image;
bgbook_on.src="../images/malaika/top_gbook_on.gif";
bgbook_off= new Image;
bgbook_off.src="../images/malaika/top_gbook.gif";

brasse_on = new Image;
brasse_on.src="../images/malaika/top_rasse_on.gif";
brasse_off= new Image;
brasse_off.src="../images/malaika/top_rasse.gif";

bcalendar_on = new Image;
bcalendar_on.src="../images/malaika/top_calendar_on.gif";
bcalendar_off= new Image;
bcalendar_off.src="../images/malaika/top_calendar.gif";

bteam_on = new Image;
bteam_on.src="../images/malaika/top_team_on.gif";
bteam_off= new Image;
bteam_off.src="../images/malaika/top_team.gif";

bmembers_on = new Image;
bmembers_on.src="../images/malaika/top_members_on.gif";
bmembers_off= new Image;
bmembers_off.src="../images/malaika/top_members.gif";

bsearch_on = new Image;
bsearch_on.src="../images/malaika/top_search_on.gif";
bsearch_off= new Image;
bsearch_off.src="../images/malaika/top_search.gif";

bfaq_on = new Image;
bfaq_on.src="../images/malaika/bot_faq_on.gif";
bfaq_off= new Image;
bfaq_off.src="../images/malaika/bot_faq.gif";

bpms_on = new Image;
bpms_on.src="../images/malaika/top_pms_on.gif";
bpms_off= new Image;
bpms_off.src="../images/malaika/top_pms.gif";

bregister_on = new Image;
bregister_on.src="../images/malaika/top_register_on.gif";
bregister_off= new Image;
bregister_off.src="../images/malaika/top_register.gif";

busercp_on = new Image;
busercp_on.src="../images/malaika/top_usercp_on.gif";
busercp_off= new Image;
busercp_off.src="../images/malaika/top_usercp.gif";

bacp_on = new Image;
bacp_on.src="../images/malaika/bot_acp_on.gif";
bacp_off= new Image;
bacp_off.src="../images/malaika/bot_acp.gif";

bmodcp_on = new Image;
bmodcp_on.src="../images/malaika/bot_modcp_on.gif";
bmodcp_off= new Image;
bmodcp_off.src="../images/malaika/bot_modcp.gif";

blinks_on = new Image;
blinks_on.src="../images/malaika/top_links_on.gif";
blinks_off= new Image;
blinks_off.src="../images/malaika/top_links.gif";


function over_image(parm_name)
{
document[parm_name].src = eval(parm_name + "_on.src");
}

function off_image(parm_name)
{
document[parm_name].src = eval(parm_name + "_off.src");
}


YOffset="100"; // no quotes!!
staticYOffset="100"; // no quotes!!
slideSpeed="1" // no quotes!!
waitTime="100"; // no quotes!! this sets the time the menu stays out for after the mouse goes off it.
menuWidth="140"; // Must be a multiple of 10! no quotes!!
menuIsStatic="yes";
barWidth="12"; // no quotes!!

NS6 = (document.getElementById&&!document.all)
IE = (document.all)
NS = (navigator.appName=="Netscape" && navigator.appVersion.charAt(0)=="4")
moving=setTimeout('null',1)

function moveOut() {
if ((NS6 && parseInt(ssm.left)<0)||(IE && ssm.style.pixelLeft<0)||(NS && document.ssm.left<0)) {
clearTimeout(moving);moving = setTimeout('moveOut()', slideSpeed)
if (NS6) {ssm.left = parseInt(ssm.left)+10+"px";}
if (IE) {ssm.style.pixelLeft += 10;}
if (NS) {document.ssm.left += 10;}}
else {clearTimeout(moving);moving=setTimeout('null',1)}};

function moveBack() {
clearTimeout(moving);moving = setTimeout('moveBack1()', waitTime)}

function moveBack1() {
if ((NS6 && parseInt(ssm.left)>(-menuWidth))||(IE && ssm.style.pixelLeft>(-menuWidth))||(NS && document.ssm.left>(-menuWidth))) {
clearTimeout(moving);moving = setTimeout('moveBack1()', slideSpeed);
if (NS6) {ssm.left = parseInt(ssm.left)-10+"px";}
if (IE) {ssm.style.pixelLeft -= 10;}
if (NS) {document.ssm.left -= 10;}}
else {clearTimeout(moving);moving=setTimeout('null',1)}};

lastY = 0;

function makeStatic() {
if (NS6) {winY = window.pageYOffset;}
if (IE) {winY = document.body.scrollTop;var NM=document.all('ssm').style}
if (NS) {winY = window.pageYOffset;var NM=document.ssm}
if (NS6||IE||NS) {
if (winY!=lastY&&winY>YOffset-staticYOffset) {
smooth = .2 * (winY - lastY - YOffset + staticYOffset);}
else if (YOffset-staticYOffset+lastY>YOffset-staticYOffset) {
smooth = .2 * (winY - lastY);}
else {smooth=0}
if(smooth > 0) smooth = Math.ceil(smooth);
else smooth = Math.floor(smooth);
if (NS6) ssm.top=parseInt(ssm.top)+smooth+"px"
if (IE) NM.pixelTop+=smooth;
if (NS) NM.top+=smooth;
lastY = lastY+smooth;
setTimeout('makeStatic()', 1)}
}


function initSlide() {
if (NS6){
ssm=document.getElementById("ssm").style
ssm.visibility="visible";
ssm.left = -menuWidth+"px";}
else if (IE) {
ssm.style.visibility = "visible";
ssm.style.pixelLeft = -menuWidth;}
else if (NS) {
document.ssm.left = -menuWidth;
document.ssm.visibility = "show"}
if (menuIsStatic=="no") makeStatic();}

function chkform()
{

	var nachname 	  = document.sendform.jfm_sender_name.value;
	var pattern_alnum = new RegExp( '^([^<]{2,})' );
	var pattern_alpha = new RegExp( '^([^0-9]{2,})' );

	if ( !pattern_alpha.test( nachname ) )
	{		
		alert("Bitte geben Sie Ihren Namen an");
		document.sendform.jfm_sender_name.focus();
        return false;
	}

	
	var email  = document.sendform.jfm_sender_email.value;
	var pattern_email = new RegExp( '^([^.: ])([a-zA-Z0-9\\-\\.\\_]+)(\\@)([a-zA-Z0-9\\-\\.]+)([\\.])([a-zA-Z]{2,4})$' );
	
	if ( !pattern_email.test(email) )
	{
		alert("Bitte geben Sie Ihre gültige email Adresse an");
		document.sendform.jfm_sender_email.focus();
		return false;
	}	

	var subject       = document.sendform.jfm_subject.value;
	if ( !pattern_alnum.test( subject ) )
	{
		alert("Bitte geben Sie den Betreff an");
		document.sendform.jfm_subject.focus();
		return false;
	}
	
	var message      = document.sendform.jfm_message.value;
	if ( !pattern_alnum.test( message ) )
	{
		alert("Sie müssen schon etwas schreiben");
		document.sendform.jfm_message.focus();
		return false;
	}


	return true;
}
