function RunFlash(url,breite,hoehe,off_x,off_y,off_x_MOZ,off_y_MOZ,flash_name)
{
//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+'" id="'+flash_name+'" style="margin-left:'+off_x+'px;margin-top:'+off_y+'px;">\n');
    document.write('<param name=movie value="'+url+'">\n');
    document.write('<param name=quality value=high>\n');
    document.write('<param name=menu value=false>\n');
    document.write('<param name=wmode value=opaque>\n');
    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+'" name="'+flash_name+'" style="margin-left:'+off_x_MOZ+'px;margin-top:'+off_y_MOZ+'px;"></embed></object>');
}

function set_katalog(nummer){
var typen=Array("Neu","Album","Maxi","Sampler","Koelsch")
var flashMovie=getFlashMovieObject("flash_katalog");
flashMovie.SetVariable("my_arrow_index",nummer);
flashMovie.SetVariable("meinfilter",typen[nummer]);
flashMovie.GotoFrame(2);
flashMovie.Play();
}

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();
}

titel_array=Array();
MM_reloadPage(true);

function getFlashMovieObject(movieName)
{
  if (window.document[movieName]) 
  {
      return window.document[movieName];	
  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds && document.embeds[movieName])
      return document.embeds[movieName]; 
  }
  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    return document.getElementById(movieName);
  }
}


function showme(id){
if(titel_array[id]!=1){
// $('#kue2_'+id).css('display','block');
$('#kue2_'+id).css('width','180px');
$('#kue2_'+id).css('padding-left','8px');
$('#kue2_'+id).css('background-image','url(img/bg_katalog.png)');
$('#kue2_'+id).css('background-repeat','repeat-x');
// $('#kue2_'+id).css('background-color','#CCC');
$('#kue2_'+id).slideDown("fast");
titel_array[id]=1;
}else{
// $('#kue2_'+id).css('display','none');
$('#kue2_'+id).slideUp("fast");
titel_array[id]=-1;
}
}

function hl_me(wert){
$('#formfeld_0').css('background-color','#FFF');
$('#formfeld_1').css('background-color','#FFF');
$('#formfeld_2').css('background-color','#FFF');
$('#formfeld_3').css('background-color','#FFF');
$('#formfeld_'+wert).css('background-color','#FFBAC7');
}

function zeige_news(inhalt_id){
	$.fancybox(
		inhalte[inhalt_id],
		{
			'autoScale'		: false,
        		'autoDimensions'	: false,
			'width'         	: 600,
			'height'        	: 220,
			'transitionIn'		: 'none',
			'transitionOut'		: 'none'
		}
	);	
}


