
but11 = new Image();
but11.src = "/pictures/pic_flugger.jpg";
but12 = new Image();
but12.src = "/pictures/pic_flugger_2.jpg";


but21 = new Image();
but21.src = "/pictures/pic_beckers.jpg";
but22 = new Image();
but22.src = "/pictures/pic_beckers_2.jpg";


but31 = new Image();
but31.src = "/pictures/pic_senideco.jpg";
but32 = new Image();
but32.src = "/pictures/pic_senideco_2.jpg";


but41 = new Image();
but41.src = "/pictures/pic_v33.jpg";
but42 = new Image();
but42.src = "/pictures/pic_v33_2.jpg";


but51 = new Image();
but51.src = "/pictures/pic_paritet.jpg";
but52 = new Image();
but52.src = "/pictures/pic_paritet_2.jpg";


but61 = new Image();
but61.src = "/pictures/pic_liberon.jpg";
but62 = new Image();
but62.src = "/pictures/pic_liberon_2.jpg";




m1pic = new Image();
m1pic.src = "/pictures/m1pic.gif";

m1pic2 = new Image();
m1pic2.src = "/pictures/m1pic2.gif";

m2pic = new Image();
m2pic.src = "/pictures/m2pic.gif";

m2pic2 = new Image();
m2pic2.src = "/pictures/m2pic2.gif";



function MenuOver(name)
{
	document.images[name].src=m1pic2.src;
}
function MenuOut(name)
{
	document.images[name].src=m1pic.src;
}
function PodMenuOver(name)
{
	document.images[name].src=m2pic2.src;
}
function PodMenuOut(name)
{
	document.images[name].src=m2pic.src;
}




opera = (navigator.userAgent.indexOf('Opera') >= 0)? true : false;
dom = (document.getElementById)? true : false;
ie4 = (document.all && !dom)? true : false;
nn4 = (document.layers)? true : false;



function showElem(elemId)
{
	if (dom) document.getElementById(elemId).style.visibility = "visible";
	else if (ie4) document.all[elemId].style.visibility = "visible";
	else if (nn4) document.layers[elemId].visibility = "show";
}
function hideElem(elemId)
{
	if (dom) document.getElementById(elemId).style.visibility = "hidden";
	else if (ie4) document.all[elemId].style.visibility = "hidden";
	else if (nn4) document.layers[elemId].visibility = "hide";
}
function putElem(elemId) {
	if (dom) document.getElementById(elemId).style.display = "block";
	else if (ie4) document.all[elemId].style.display = "block";
}
function removeElem(elemId) {
	if (dom) document.getElementById(elemId).style.display = "none";
	else if (ie4) document.all[elemId].style.display = "none";
}

function getElement( elemId )
{
    if (dom)
        return document.getElementById(elemId);
    else
        if (ie4)
            return document.all[elemId];
        else
            if (nn4)
                return document.layers[elemId];
    return null;
} 



var fenster,closed=1;
function centerPopup(popup_name,popup_url,popup_with,popup_height,myWidth,myHeight)
{
if(fenster)
{ if(!closed)
  { fenster.close();
    closed=1;
    fenster=0;
  }
}
   if(!myWidth) {myWidth = 10;}
	if(!myHeight){myHeight = 50;}
	var popup_left = (window.screen.width/2)  - (popup_with/2 + myWidth);
	var popup_top  = (window.screen.height/2) - (popup_height/2 + myHeight);
	var fenster = window.open(popup_url ,popup_name,"toolbar=no,location=no,status=no,menubar=yes,scrollbars=auto,resizable=yes,width=" + popup_with + ",height=" + popup_height + ",left=" + popup_left + ",top=" + popup_top + ",screenX=" + popup_left + ",screenY=" + popup_top);
	fenster.focus();
}














var delay=100;





var orig_width;
var popup_left = window.screen.width/2;
var popup_top  = window.screen.height/2;


function showImg(img){
	
	getElement('divshowimg').style.display='block';
	document.images['showimg'].src=img.src;

	
	
	orig_width=img.width;
	orig_height=img.height;
	gooShowImg(20,orig_width,orig_height);

}
function setPositionImg(){

}

function gooShowImg(i,orig_width,orig_height){

	if (i<=0){
		clearTimeout(timer1);
		return false;
	}
	else {
		cur_width = document.images['showimg'].width=parseInt(orig_width/i);
		cur_height = document.images['showimg'].height=parseInt(orig_height/i);
				
		popup_left = (document.body.clientWidth/2)  - (cur_width/2)+document.body.scrollLeft;
		popup_top  = (document.body.clientHeight/2) - (cur_height/2)+document.body.scrollTop;

		getElement('divshowimg').style.left=popup_left;
		getElement('divshowimg').style.top=popup_top;
		
		
		i--;
		timer1=setTimeout("gooShowImg("+i+","+orig_width+","+orig_height+")",10);
		
		
		
	}
}
function gooCloseImg(i,orig_width,orig_height){

	if (i>20){
		clearTimeout(timer2);getElement('divshowimg').style.display='none';
		return false;
	}
	else {
		cur_width = document.images['showimg'].width=parseInt(orig_width/i);
		cur_height = document.images['showimg'].height=parseInt(orig_height/i);
		
		popup_left = (document.body.clientWidth/2)  - (cur_width/2)+document.body.scrollLeft;
		popup_top  = (document.body.clientHeight/2) - (cur_height/2)+document.body.scrollTop;

		getElement('divshowimg').style.left=popup_left;
		getElement('divshowimg').style.top=popup_top;

		
		i++;
		timer2=setTimeout("gooCloseImg("+i+","+orig_width+","+orig_height+")",10);
	}
}

function closeShowdiv(){
	clearTimeout(timer1);
	
	gooCloseImg(1,orig_width,orig_height);
	
	
}



var fenster,closed=1;
function showFlv(url,suffix,popup_with,popup_height){
	popup_url="/includes/player"+suffix+".php?url="+url;
	if(fenster)
	{ if(!closed)
	  { fenster.close();
	    closed=1;
	    fenster=0;
	  }
	}
	if (!popup_with){
		var popup_with = 320;
	}
	
	if (!popup_height){
		var popup_height = 240;
	}
	
	var myWidth = 2;
	var myHeight = 2;
	
	var popup_left = (window.screen.width/2)  - (popup_with/2 + myWidth);
	var popup_top  = (window.screen.height/2) - (popup_height/2 + myHeight);
	var fenster = window.open(popup_url, "flvwin", "toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=" + popup_with + ",height=" + popup_height + ",left=" + popup_left + ",top=" + popup_top + ",screenX=" + popup_left + ",screenY=" + popup_top);
	fenster.focus();
	
	
}

function showFlv2(url,width,height,name){
	
	if (!width){var width=500;}
	if (!height){var height=375;}
	
	
	AC_FL_RunContent(
			'codebase',			'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
			'width',			width,
			'height',			height,
			'src',				'/includes/player2',
			'quality',			'high',
			'pluginspage',		'http://www.macromedia.com/go/getflashplayer',
			'align',			'middle',
			'play',			'true',
			'loop',			'false',
			'scale',			'showall',
			'wmode',			'window',
			'devicefont',		'false',
			'id',				'flvPlayer',
			'bgcolor',			'#ffffff',
			'name',			'flvPlayer',
			'menu',			'false',
			'allowFullScreen',	'true',
			'allowScriptAccess','always',
			'movie',			'/includes/player2',
			'FlashVars',		'way='+url+'&amp;swf=/includes/player2.swf&amp;w='+width+'&amp;h='+height+'&amp;pic=&amp;autoplay=0&amp;tools=2&amp;skin=white&amp;volume=70&amp;q=&amp;comment='+name,
			'salign', 			''
			); //end AC code
	
}
