/*
 * This file contains the JavaScript code that is included inline in the design concept.
 * 
 */



//setTimeout("self.location.href='index2.php'",4000);
var timeoutId1=0;
var timeoutId2=0;
var anzahl = 4;
var position=0;
var start = 0;
var merker_stop = 0;
var merker_fade_id = 0;
var timeout_init;
var timeout_blend = new Array;



var id = 'newsticker_box_teil_1';
var id2 = 'newsticker_box_teil_2';
var id3 = 'newsticker_box_teil_3';
var id4 = 'newsticker_box_teil_4';
var merker_fade = 0;
var timeoutId;
var timeoutId_up = -1;
var timeoutId_down = -1;

var id_2 = 'meist_box_teil_1';
var id2_2 = 'meist_box_teil_2';
var id3_2 = 'meist_box_teil_3';
var id4_2 = 'meist_box_teil_4';
var merker_fade2 = 0;
var merker_opac = 0;
var merker_init_start = 0;
var timeoutId_up2 = -1;
var timeoutId_down2 = -1;

function init_stop(fade_id) {
	if (!document.getElementById('imgheader0'+(position))) { return false; }
	
	if (merker_init_start == 0 || merker_init_start == 2) {
		merker_fade_id = fade_id;
		if (fade_id == -1 && document.getElementById('imgheader0'+(position+1))) { position++; fade_id = position; 
		} else if (fade_id == -1 && !document.getElementById('imgheader0'+(position+1))) { position = 0; fade_id = position; }

		var opac = 1
		if (merker_init_start == 0 ) { opac = 100; }
		merker_init_start = 1;
		clearTimeout(timeout_init);
		if (fade_id==anzahl) { fade_id=0; }
		for (var i = 0 ; i < timeout_blend.length ; i++) {
			clearTimeout(timeout_blend[i]);
		}
		for (var i = 0 ; i < anzahl ; i++) {
			if (document.getElementById('imgheader0'+i).style.filter && document.getElementById('imgheader0'+i).style.filter != "") {
				merker_opac = parseInt(document.getElementById('imgheader0'+i).style.filter.substr(14,3));
			} else if (document.getElementById('imgheader0'+i).style.opacity) {
				merker_opac = (document.getElementById('imgheader0'+i).style.opacity * 100);
			} else {
				merker_opac = opac;
				opac = 1;
			}
			if (navigator.userAgent.indexOf("MSIE 6") > 0) {
				var object = document.getElementById('imgheader0'+i).style; 
				object.opacity = (1);
				object.MozOpacity = (1);
				object.KhtmlOpacity = (1);
				object.filter = "alpha(opacity=" + 100 + ")";
				if (fade_id == i) {
					position = fade_id;
					//opacity('imgheader0'+i, merker_opac, 100, 1000);
					document.getElementById("img_titel0"+i).className = 'titel_menue_act';
					document.getElementById("imgheader0"+i).style.display = 'block';
				} else {
					//opacity('imgheader0'+i,merker_opac, 0, 1000);
					document.getElementById("img_titel0"+i).className = 'titel_menue';
					document.getElementById("imgheader0"+i).style.display = 'none';
				}
			} else {
			//alert(merker_opac);
				if (fade_id == i) {
					position = fade_id;
					opacity('imgheader0'+i, merker_opac, 100, 1000);
					document.getElementById("img_titel0"+i).className = 'titel_menue_act';
					document.getElementById("imgheader0"+i).style.display = 'block';
				} else {
					opacity('imgheader0'+i,merker_opac, 0, 1000);
					document.getElementById("img_titel0"+i).className = 'titel_menue';
					setTimeout("document.getElementById('imgheader0"+i+"').style.display = 'none';",1000);
				}
			}
		}
		//
		if (merker_fade_id == -1) { timeout_init = setTimeout("init_stop(-1);",7000); 
		} else { timeout_init = setTimeout("init_stop(-1);",20000); }
		merker_stop = 1;
		setTimeout("merker_init_start = 2;",1000);
	}
}
function init_start() {
   /* if (merker_stop == 1) {
		alert('test');
        timeout_init = setTimeout("init_stop("+(position+1)+");",5000);
        merker_stop = 0;
    }*/
}

var fader_start = setTimeout("init_stop(-1);",7000);

function init() {
    //alert("test");
    
	//start_menue();
	
    /*if (start == 0) {
        timeoutId = setTimeout("fade_newsticker();",7000);
        document.getElementById(id2).style.top = parseInt(document.getElementById(id).offsetHeight);
        document.getElementById(id4).style.top = parseInt(document.getElementById(id3).offsetHeight);
        document.getElementById(id2_2).style.top = parseInt(document.getElementById(id_2).offsetHeight);
        document.getElementById(id4_2).style.top = parseInt(document.getElementById(id3_2).offsetHeight);
        start=1;
    }
    
    if (position<0) { 
        position=1; 
        timeout_init = setTimeout("init();",9000);
    } else {
        if (position==anzahl) { position=0; }
            setTimeout("opacity('imgheader0"+position+"', "+(document.getElementById('imgheader0'+position).style.opacity * 100)+", 100, 3000);",10);
            document.getElementById("img_titel0"+position).className = 'titel_menue_act';
        if (position==0) {
            setTimeout("opacity('imgheader0"+(anzahl-1)+"', "+(document.getElementById('imgheader0'+(anzahl-1)).style.opacity * 100)+", 0, 3000);",10);
            document.getElementById("img_titel0"+(anzahl-1)).className = 'titel_menue';
            position++;
        } else {
            setTimeout("opacity('imgheader0"+(position-1)+"', "+(document.getElementById('imgheader0'+(position-1)).style.opacity * 100)+", 0, 3000);",10);
            document.getElementById("img_titel0"+(position-1)).className = 'titel_menue';
            position++;
        }
        timeout_init = setTimeout("init();",9000);
    }*/

}

//window.onload = init();





	//var start_pixel_newsticker_slider = setTimeout("pixel_newsticker_slider();",3000);
	var pixel_newsticker_slider_startwert = 1;
	var pixel_newsticker_slider_hoehe_teil_1 = 0;
	var pixel_newsticker_slider_hoehe_teil_2 = 0;
	var pixel_newsticker_slider_hoehe_teil_3 = 0;
	var pixel_newsticker_slider_hoehe_teil_4 = 0;
	var pixel_newsticker_slider_richtung = 1;
	var pixel_newsticker_slider_timer = -1;
	var pixel_newsticker_slider_millisec = 1000;
	var pixel_newsticker_slider_speed = Math.round(pixel_newsticker_slider_millisec / 100);
	var pixel_newsticker_slider_timer = 0;

	var pixel_newsticker_slider_timeout_slider_1 = new Array ();
	var pixel_newsticker_slider_timeout_slider_2 = new Array ();

	function init_pixel_newsticker_slider () {
		//document.getElementById(id).style.top = '0px';
		//document.getElementById(id2).style.top = document.getElementById(id).offsetHeight + 'px';
		//document.getElementById(id3).style.top = '0px';
		//document.getElementById(id4).style.top = document.getElementById(id3).offsetHeight + 'px';
		pixel_newsticker_slider_startwert = 0;
		start_pixel_newsticker_slider = setTimeout("pixel_newsticker_slider();",6000);
		
	}
	var start_pixel_newsticker_slider = setTimeout('init_pixel_newsticker_slider();',1000);
	var pixel_newsticker_slider_zaehler = 101;
	
	function pixel_newsticker_slider (richtung) {
		if (!document.getElementById(id)) { return false; }
		
		if (pixel_newsticker_slider_startwert == 0) {
			pixel_newsticker_slider_zaehler = 0;

			pixel_newsticker_slider_startwert = 1;
			
			//##################### Box 1 ###############################
			pixel_newsticker_slider_hoehe_teil_1 = document.getElementById(id).offsetTop;
			pixel_newsticker_slider_hoehe_teil_2 = document.getElementById(id2).offsetTop;

			//##################### Box 2 ###############################
			pixel_newsticker_slider_hoehe_teil_3 = document.getElementById(id3).offsetTop;
			pixel_newsticker_slider_hoehe_teil_4 = document.getElementById(id4).offsetTop;

			pixel_newsticker_slider_timer = 0;

			for (i = 0 ; i <= 101 ; i++) {
				if (pixel_newsticker_slider_timeout_slider_1[i]) { clearTimeout(pixel_newsticker_slider_timeout_slider_1[i]); }
			}
			
			for(i = 0; i <= 100; i = i + 2) {
				if (richtung == 1) { 
					pixel_newsticker_slider_timeout_slider_1[i] = setTimeout("pixel_newsticker_slider_runter(" + i + ");",(pixel_newsticker_slider_timer * pixel_newsticker_slider_speed));
				} else {
					pixel_newsticker_slider_timeout_slider_1[i] = setTimeout("pixel_newsticker_slider_hoch(" + i + ");",(pixel_newsticker_slider_timer * pixel_newsticker_slider_speed));
				}
				pixel_newsticker_slider_timer = pixel_newsticker_slider_timer + 2
			}
			pixel_newsticker_slider_timeout_slider_1[101] = setTimeout("pixel_newsticker_slider_startwert = 0;",(pixel_newsticker_slider_timer * pixel_newsticker_slider_speed));
			
			start_pixel_newsticker_slider = setTimeout("pixel_newsticker_slider();",6000);
		}
		
	}
	
		//change the opacity for different browsers
	function pixel_newsticker_slider_hoch (slide_step) {
		
			if ((parseInt(document.getElementById(id).style.top)+parseInt(document.getElementById(id).offsetHeight)) <= 0) {
				document.getElementById(id).style.top = parseInt(document.getElementById(id).offsetHeight) + 'px';
				pixel_newsticker_slider_hoehe_teil_1 = document.getElementById(id).offsetTop;
			}
			if ((parseInt(document.getElementById(id3).style.top)+parseInt(document.getElementById(id3).offsetHeight)) <= 0) {
				document.getElementById(id3).style.top = parseInt(document.getElementById(id3).offsetHeight) + 'px';
				pixel_newsticker_slider_hoehe_teil_3 = document.getElementById(id3).offsetTop;
			}
			
			if ((parseInt(document.getElementById(id2).style.top)+parseInt(document.getElementById(id2).offsetHeight)) <= 0) {
				document.getElementById(id2).style.top = parseInt(document.getElementById(id2).offsetHeight) + 'px';
				pixel_newsticker_slider_hoehe_teil_2 = document.getElementById(id2).offsetTop;
			}
			if ((parseInt(document.getElementById(id4).style.top)+parseInt(document.getElementById(id4).offsetHeight)) <= 0) {
				document.getElementById(id4).style.top = parseInt(document.getElementById(id4).offsetHeight) + 'px';
				pixel_newsticker_slider_hoehe_teil_4 = document.getElementById(id4).offsetTop;
			}

			document.getElementById(id).style.top = (pixel_newsticker_slider_hoehe_teil_1-(45/100*slide_step)) + 'px';
			document.getElementById(id2).style.top = (pixel_newsticker_slider_hoehe_teil_2-(45/100*slide_step)) + 'px';
			document.getElementById(id3).style.top = (pixel_newsticker_slider_hoehe_teil_3-(45/100*slide_step)) + 'px';
			document.getElementById(id4).style.top = (pixel_newsticker_slider_hoehe_teil_4-(45/100*slide_step)) + 'px';
			pixel_newsticker_slider_zaehler++;
	}

	function pixel_newsticker_slider_runter (slide_step) {
		
			if (parseInt(document.getElementById(id).style.top) >= parseInt(document.getElementById(id).offsetHeight)) {
				document.getElementById(id).style.top = (-1 * parseInt(document.getElementById(id).offsetHeight)) + 'px';
				pixel_newsticker_slider_hoehe_teil_1 = document.getElementById(id).offsetTop;
			}
			if (parseInt(document.getElementById(id3).style.top) >= parseInt(document.getElementById(id3).offsetHeight)) {
				document.getElementById(id3).style.top = (-1 * parseInt(document.getElementById(id3).offsetHeight)) + 'px';
				pixel_newsticker_slider_hoehe_teil_3 = document.getElementById(id3).offsetTop;
			}
			
			if (parseInt(document.getElementById(id2).style.top) >= parseInt(document.getElementById(id2).offsetHeight)) {
				document.getElementById(id2).style.top = (-1 * parseInt(document.getElementById(id2).offsetHeight)) + 'px';
				pixel_newsticker_slider_hoehe_teil_2 = document.getElementById(id2).offsetTop;
			}
			if (parseInt(document.getElementById(id4).style.top) >= parseInt(document.getElementById(id4).offsetHeight)) {
				document.getElementById(id4).style.top = (-1 * parseInt(document.getElementById(id4).offsetHeight)) + 'px';
				pixel_newsticker_slider_hoehe_teil_4 = document.getElementById(id4).offsetTop;
			}


			document.getElementById(id).style.top = (pixel_newsticker_slider_hoehe_teil_1+(45/100*slide_step)) + 'px';
			document.getElementById(id2).style.top = (pixel_newsticker_slider_hoehe_teil_2+(45/100*slide_step)) + 'px';
			document.getElementById(id3).style.top = (pixel_newsticker_slider_hoehe_teil_3+(45/100*slide_step)) + 'px';
			document.getElementById(id4).style.top = (pixel_newsticker_slider_hoehe_teil_4+(45/100*slide_step)) + 'px';

			pixel_newsticker_slider_zaehler++;
	}

	function fade_newsticker_up () {
			pixel_newsticker_slider_richtung = 1;
			clearTimeout(pixel_newsticker_slider_timer);
			clearTimeout(start_pixel_newsticker_slider);
			
			pixel_newsticker_slider(2);
	}
	
	function fade_newsticker_down () {
			pixel_newsticker_slider_richtung = 0;
			clearTimeout(pixel_newsticker_slider_timer);
			clearTimeout(start_pixel_newsticker_slider);
			
			pixel_newsticker_slider(1);
	}




	var pixel_meist_slider_startwert = 0;

	//var start_pixel_newsticker_slider = setTimeout("pixel_newsticker_slider();",3000);
	var pixel_meist_slider_startwert = 1;
	var pixel_meist_slider_hoehe_teil_1 = 0;
	var pixel_meist_slider_hoehe_teil_2 = 0;
	var pixel_meist_slider_hoehe_teil_3 = 0;
	var pixel_meist_slider_hoehe_teil_4 = 0;
	var pixel_meist_slider_richtung = 1;
	var pixel_meist_slider_timer = -1;
	var pixel_meist_slider_millisec = 1000;
	var pixel_meist_slider_speed = Math.round(pixel_meist_slider_millisec / 100);
	var pixel_meist_slider_timer = 0;

	var pixel_meist_slider_timeout_slider_1 = new Array ();
	var pixel_meist_slider_timeout_slider_2 = new Array ();

	function init_pixel_meist_slider () {
		//document.getElementById(id_2).style.top = '0px';
		//document.getElementById(id2_2).style.top = document.getElementById(id_2).offsetHeight + 'px';
		//document.getElementById(id3_2).style.top = '0px';
		//document.getElementById(id4_2).style.top = document.getElementById(id3_2).offsetHeight + 'px';
		pixel_meist_slider_startwert = 0;
		
	}
	var start_pixel_meist_slider = setTimeout('init_pixel_meist_slider();',500);

	function pixel_meist_slider (richtung) {
		if (pixel_meist_slider_startwert == 0) {

			pixel_meist_slider_startwert = 1;
			
			//##################### Box 1 ###############################
			pixel_meist_slider_hoehe_teil_1 = document.getElementById(id_2).offsetTop;
			pixel_meist_slider_hoehe_teil_2 = document.getElementById(id2_2).offsetTop;

			//##################### Box 2 ###############################
			pixel_meist_slider_hoehe_teil_3 = document.getElementById(id3_2).offsetTop;
			pixel_meist_slider_hoehe_teil_4 = document.getElementById(id4_2).offsetTop;

			pixel_meist_slider_timer = 0;

			for (i = 0 ; i <= 101 ; i++) {
				if (pixel_meist_slider_timeout_slider_1[i]) { clearTimeout(pixel_meist_slider_timeout_slider_1[i]); }
			}
			
			for(i = 0; i <= 100; i = i + 2) {
				if (richtung == 1) { 
					pixel_meist_slider_timeout_slider_1[i] = setTimeout("pixel_meist_slider_runter(" + i + ");",(pixel_meist_slider_timer * pixel_meist_slider_speed));
				} else {
					pixel_meist_slider_timeout_slider_1[i] = setTimeout("pixel_meist_slider_hoch(" + i + ");",(pixel_meist_slider_timer * pixel_meist_slider_speed));
				}
				pixel_meist_slider_timer = pixel_meist_slider_timer + 2
			}
			pixel_meist_slider_timeout_slider_1[101] = setTimeout("pixel_meist_slider_startwert = 0;",(pixel_meist_slider_timer * pixel_meist_slider_speed));
			
			//pixel_meist_slider_timer = setTimeout("pixel_meist_slider();",6000);
		}
		
	}
	
		//change the opacity for different browsers
	function pixel_meist_slider_hoch (slide_step) {
		
			if ((parseInt(document.getElementById(id_2).style.top)+parseInt(document.getElementById(id_2).offsetHeight)) <= 0) {
				document.getElementById(id_2).style.top = parseInt(document.getElementById(id_2).offsetHeight) + 'px';
				pixel_meist_slider_hoehe_teil_1 = document.getElementById(id_2).offsetTop;
			}
			if ((parseInt(document.getElementById(id3_2).style.top)+parseInt(document.getElementById(id3_2).offsetHeight)) <= 0) {
				document.getElementById(id3_2).style.top = parseInt(document.getElementById(id3_2).offsetHeight) + 'px';
				pixel_meist_slider_hoehe_teil_3 = document.getElementById(id3_2).offsetTop;
			}
			
			if ((parseInt(document.getElementById(id2_2).style.top)+parseInt(document.getElementById(id2_2).offsetHeight)) <= 0) {
				document.getElementById(id2_2).style.top = parseInt(document.getElementById(id2_2).offsetHeight) + 'px';
				pixel_meist_slider_hoehe_teil_2 = document.getElementById(id2_2).offsetTop;
			}
			if ((parseInt(document.getElementById(id4_2).style.top)+parseInt(document.getElementById(id4_2).offsetHeight)) <= 0) {
				document.getElementById(id4_2).style.top = parseInt(document.getElementById(id4_2).offsetHeight) + 'px';
				pixel_meist_slider_hoehe_teil_4 = document.getElementById(id4_2).offsetTop;
			}

			document.getElementById(id_2).style.top = (pixel_meist_slider_hoehe_teil_1-(45/100*slide_step)) + 'px';
			document.getElementById(id2_2).style.top = (pixel_meist_slider_hoehe_teil_2-(45/100*slide_step)) + 'px';
			document.getElementById(id3_2).style.top = (pixel_meist_slider_hoehe_teil_3-(45/100*slide_step)) + 'px';
			document.getElementById(id4_2).style.top = (pixel_meist_slider_hoehe_teil_4-(45/100*slide_step)) + 'px';
	
	}

	function pixel_meist_slider_runter (slide_step) {
		
			if (parseInt(document.getElementById(id_2).style.top) >= parseInt(document.getElementById(id_2).offsetHeight)) {
				document.getElementById(id_2).style.top = (-1 * parseInt(document.getElementById(id_2).offsetHeight)) + 'px';
				pixel_meist_slider_hoehe_teil_1 = document.getElementById(id_2).offsetTop;
			}
			if (parseInt(document.getElementById(id3_2).style.top) >= parseInt(document.getElementById(id3_2).offsetHeight)) {
				document.getElementById(id3_2).style.top = (-1 * parseInt(document.getElementById(id3_2).offsetHeight)) + 'px';
				pixel_meist_slider_hoehe_teil_3 = document.getElementById(id3_2).offsetTop;
			}
			
			if (parseInt(document.getElementById(id2_2).style.top) >= parseInt(document.getElementById(id2_2).offsetHeight)) {
				document.getElementById(id2_2).style.top = (-1 * parseInt(document.getElementById(id2_2).offsetHeight)) + 'px';
				pixel_meist_slider_hoehe_teil_2 = document.getElementById(id2_2).offsetTop;
			}
			if (parseInt(document.getElementById(id4_2).style.top) >= parseInt(document.getElementById(id4_2).offsetHeight)) {
				document.getElementById(id4_2).style.top = (-1 * parseInt(document.getElementById(id4_2).offsetHeight)) + 'px';
				pixel_meist_slider_hoehe_teil_4 = document.getElementById(id4_2).offsetTop;
			}


			document.getElementById(id_2).style.top = (pixel_meist_slider_hoehe_teil_1+(45/100*slide_step)) + 'px';
			document.getElementById(id2_2).style.top = (pixel_meist_slider_hoehe_teil_2+(45/100*slide_step)) + 'px';
			document.getElementById(id3_2).style.top = (pixel_meist_slider_hoehe_teil_3+(45/100*slide_step)) + 'px';
			document.getElementById(id4_2).style.top = (pixel_meist_slider_hoehe_teil_4+(45/100*slide_step)) + 'px';


	}

	function fade_meist_up () {
		pixel_meist_slider_richtung = 1;
		clearTimeout(pixel_meist_slider_timer);
		
		pixel_meist_slider(2);
	}
	
	function fade_meist_down () {
		pixel_meist_slider_richtung = 0;
		clearTimeout(pixel_meist_slider_timer);
		
		pixel_meist_slider(1);
	}




var active_id = "";
var start_id = 0;
var timeoutId_menue;
var timeoutId_menue2;
var menue_click = 0;
var start_show_untermenue = "" ;

function start_menue() {
	for (var i = 1 ; i < 20 ; i++) {
        if (document.getElementById('menue_'+i) &&  start_id == 0) {
			//alert(document.getElementById("menue_"+i).className +" # "+i);
			if (document.getElementById("menue_"+i).className == 'menue menue_selected' || document.getElementById("menue_"+i).className == 'menue_act') { 
				start_id = i;
				//alert(start_id);
				break;
			}
		}
    }
	if (start_id == 0) { start_id = 1; }
	
}

function show_click_untermenue(menue_id) {
    
	menue_click = 1;
	
	start_menue();
    if (menue_id != "" && active_id != menue_id) { 
        //document.getElementById('untermenue_cont2').style.left = '15px';
        active_id = menue_id; 
    }
    
    clearTimeout(timeoutId_menue);
	if (start_show_untermenue) { clearTimeout(start_show_untermenue); }

	for (var i = 1 ; i < 20 ; i++) {
        if (document.getElementById('untermenue_'+i)) { document.getElementById('untermenue_'+i).style.display = 'none'; }
        if (document.getElementById('menue_'+i)) { document.getElementById("menue_"+i).className = 'menue'; }
    }
    if (document.getElementById('untermenue_'+menue_id)) { document.getElementById('untermenue_'+active_id).style.display = 'block'; }
    if (document.getElementById('menue_'+menue_id)) { document.getElementById("menue_"+menue_id).className = 'menue_act'; }

}

function show_untermenue(menue_id) {
	clearTimeout(timeoutId_menue);
	if (start_show_untermenue) { clearTimeout(start_show_untermenue); }
	start_show_untermenue = setTimeout("show_untermenue_start('"+menue_id+"');", 500);
}

function show_untermenue_start(menue_id) {
	if (menue_click == 0) {
		start_menue();
		start_show_untermenue = 1;
		if (menue_id != "" && active_id != menue_id) { 
			//document.getElementById('untermenue_cont2').style.left = '15px';
			active_id = menue_id; 
		}
		
		//clearTimeout(timeoutId_menue);
		for (var i = 1 ; i < 20 ; i++) {
			if (document.getElementById('untermenue_'+i)) { document.getElementById('untermenue_'+i).style.display = 'none'; }
			if (document.getElementById('menue_'+i)) { document.getElementById("menue_"+i).className = 'menue'; }
		}
		if (document.getElementById('untermenue_'+menue_id)) { document.getElementById('untermenue_'+active_id).style.display = 'block'; }
		if (document.getElementById('menue_'+menue_id)) { document.getElementById("menue_"+menue_id).className = 'menue_act'; }
	}
	
}

function hide_untermenue() {
	if (menue_click == 1) {
		timeoutId_menue = setTimeout('hide_untermenue();',20000);
		menue_click = 2;
	} else {
		if (start_show_untermenue) { clearTimeout(start_show_untermenue); }
		start_menue();
		//    <br />
		//<b>Warning</b>:  include(../Includes/menue_2_steuerung.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in <b>/var/www/html/pixelproductions.de/public_html/patriot/index.php</b> on line <b>296</b><br />
		//<br />
		//<b>Warning</b>:  include() [<a href='function.include'>function.include</a>]: Failed opening '../Includes/menue_2_steuerung.php' for inclusion (include_path='.:/var/www/html/pixelproductions.de/public_html:/usr/share/pear:/usr/share/php:/usr/share/ZendFramework/library') in <b>/var/www/html/pixelproductions.de/public_html/patriot/index.php</b> on line <b>296</b><br />
	
		for (var i = 1 ; i < 20 ; i++) {
			if (document.getElementById('untermenue_'+i)) { document.getElementById('untermenue_'+i).style.display = 'none'; }
			if (document.getElementById('menue_'+i)) { document.getElementById("menue_"+i).className = 'menue'; }
		}
		if (document.getElementById('untermenue_'+start_id)) { document.getElementById('untermenue_'+start_id).style.display = 'block'; }
		if (document.getElementById('menue_'+start_id)) { document.getElementById("menue_"+start_id).className = 'menue_act'; }
		menue_click = 0;
		//document.getElementById('untermenue_cont2').style.left = '15px';
	}

}

function move_menue_right() {

    if (timeoutId_menue) { clearTimeout(timeoutId_menue); }
    if (!document.getElementById('untermenue_cont2').style.left) { document.getElementById('untermenue_cont2').style.left = '15px'; }
    document.getElementById('untermenue_cont2').style.left = (parseInt(document.getElementById('untermenue_cont2').style.left)-2);

    timeoutId_menue2 = setTimeout("move_menue_right();",80);
}
function move_menue_left() {

    if (timeoutId_menue) { clearTimeout(timeoutId_menue); }
    if (!document.getElementById('untermenue_cont2').style.left) { document.getElementById('untermenue_cont2').style.left = '15px'; }
    document.getElementById('untermenue_cont2').style.left = (parseInt(document.getElementById('untermenue_cont2').style.left)+2) +'px';

    timeoutId_menue2 = setTimeout("move_menue_left();",80);
}
function move_menue_stop() {
    clearTimeout(timeoutId_menue); 
    timeoutId_menue = setTimeout('hide_untermenue();',1000);
    clearTimeout(timeoutId_menue2);
    //alert(document.getElementById('untermenue_cont2').offsetWidth);
}





