jQuery(window).resize(function() {

 show_center(1);

});

function show_scroll(){

jQuery(".scroll_window").each(function(){

//fixes the blink input mozilla bug

if (jQuery.browser.mozilla) {

 jQuery(this).css("overflow","auto");

 jQuery(this).css("overflow-x","hidden");

}

if(jQuery(this).children().height() > jQuery(this).height()){

// alert("gdf");

jQuery(this).height("350px");

jQuery(this).css("overflow","auto");

jQuery(this).css("overflow-x","hidden");

jQuery(this).children().width("666px");

if(!jQuery(this).next().hasClass("scroll_bottom")){

jQuery(this).after("<div class='scroll_bottom'>&nbsp;</div>");



}

}

});

// for listing

jQuery(".scroll_window_listing").each(function(){

//fixes the blink input mozilla bug

if (jQuery.browser.mozilla) {

jQuery(this).css("overflow","auto");

jQuery(this).css("overflow-x","hidden");

}

if(jQuery(this).children().height() > jQuery(this).height()){

jQuery(this).height("350px");

jQuery(this).css("overflow","auto");

jQuery(this).css("overflow-x","hidden");

jQuery(this).children().width("666px");

if(!jQuery(this).next().hasClass("scroll_bottom")){

jQuery(this).after("<div class='scroll_bottom'>&nbsp;</div>");

}

}

});



}

function show_center(a){

if(a == 1){

if(jQuery(window).width() <= jQuery("#cyt_center").width() || jQuery(window).height() <= jQuery("#cyt_center").height()+88){

jQuery("#cyt_center").css("margin-top","0");

jQuery("#cyt_center").css("margin-left","0");

jQuery("#cyt_center").css("position","relative");

jQuery("#cyt_center").css("left","0");

jQuery("#cyt_center").css("top","0");

jQuery("#cyt_center").css("width","921px");

jQuery("#cyt_center").css("margin","auto");

}else{

jQuery("#cyt_center").css("margin-top","-388px");

jQuery("#cyt_center").css("margin-left","-456px");

jQuery("#cyt_center").css("position","absolute");

jQuery("#cyt_center").css("left","50%");

jQuery("#cyt_center").css("top","50%");

jQuery("#cyt_center").css("width","921px");

}

}else{

if(jQuery(window).width() <= jQuery("#cyt_center").width() || jQuery(window).height() <= jQuery("#cyt_center").height()+88){

jQuery("#cyt_center").css("margin-top","0");

jQuery("#cyt_center").css("margin-left","0");

jQuery("#cyt_center").css("position","relative");

jQuery("#cyt_center").css("left","0");

jQuery("#cyt_center").css("top","0");

jQuery("#cyt_center").css("width","921px");

jQuery("#cyt_center").css("margin","auto");

}else{



}

}

}

function hide_scroll(){

							jQuery(".scroll_window").each(function(){						 

							jQuery(this).css("overflow","hidden");

							//jQuery(this).hide("slow");



							});

							jQuery(".scroll_window_listing").each(function(){						 

							jQuery(this).css("overflow","hidden");

							// jQuery(this).hide("slow");



							});

};

function do_click(){

	jQuery(".title").each(function(){

								   jQuery(this).click(function(){

														window.location.href = jQuery(this).children().children().attr("href")

																});

								   

								   });

};

function showthumb(i){   
	document.getElementById("pic"+i).style.display = "block";
}
		
var bildArray=new Array(1,2,3);
function bild(nummer){
	if(document.getElementById)
	for (a=0;a<bildArray.length;a++){
		if(bildArray[a]!=nummer){
			document.getElementById("bild"+bildArray[a]).style.display = "none";
		}else{
			document.getElementById("bild"+nummer).style.display = "block";
		}
	}
}