function RunFlash(url,breite,hoehe)
{
//var frage=1;
//var uniq_user=20085;
//var b='';
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="'+breite+'" height="'+hoehe+'"><param name=movie value="'+url+'"><param name=quality value=high><param name=wmode value=opaque><param name=menu value=false>');
    document.write('<embed src="'+url+'" quality="high" wmode="opaque" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="'+breite+'" height="'+hoehe+'"></embed>\n');
    document.write('</object>');
}


function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
  document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


function open_HR() { //v2.0
var theURL="http://www.huettig-rompf.de/";
var winName="HR";
var features="width=956,height=800,scrollbars=yes";
  window.open(theURL,winName,features);
}

function init2(){
screenH = availH = screen.height;
screenW = availW = screen.width;
	// FUNKTIONIERT IM MSIE MIT DOCTYPE!
	availH = document.documentElement.clientHeight;
        availW = document.body.clientWidth;
	// alert("Avvailable Space exculing the Toolbars:" + availW + "px + x " + availH + "px");
}


// -----


$(document).ready(function()
{  

$('#loading').css('display', 'none');

$(".treffer").mouseover( function() { 
$(this).css('background', '#EBFFAF');
// $('td.td_links2',this).css('text-decoration', 'underline');
$(this).css('cursor', 'pointer');
} );

$(".treffer").mouseout( function() { 
$(this).css('background', '#A5C696');
// $('td.td_links2',this).css('text-decoration', 'underline');
} );

$(".treffer").click( function(e) {
e.preventDefault();
var hhh = $(this).children().next().children().children().attr('href');
// alert('hey '+hhh);
// var vari = 'objekt_einzel.php'+'?'+$(this).attr("href");
// window.location=hhh;
window.open(hhh);
});


init2();

// $('#holditall').css('left', (availW/2)-(990/2)+'px');
$('#holditall').css('top', (availH/2)-(624/2)+'px');
	
window.onresize=function(){
init2();
// $('#holditall').css('left', (availW/2)-(990/2)+'px');
$('#holditall').css('top', (availH/2)-(624/2)+'px');
}

})



