
function Bildwechsel(Bildnr,bild)
{
        document.images[Bildnr].src = bild;
}

function doDelete(myURL)
{
        if(window.confirm("Wollen Sie den Datensatz wirklich loeschen?")==true)
        {
                window.location.href=myURL;
        }
}
/*
function popUp(popWidth,popHeight,url)
{
        fenster_rand = "win_" + Math.round(Math.random()*10000000000);

        // Fensterproportionen
        props="locationbar=no,menubar=no,scrollbars=no,resizable=yes,status=no,width="+popWidth+",height="+popHeight;
        // Fenster Oeffnen
        if(typeof(fenster_rand)!="undefined"){
                // if(fenster.closed!=true)window.fenster_rand.close()
        } //if
        fenster_rand = window.open(url, "", props)
        fenster_rand.focus();
}// popUp
*/

function popUp(popWidth,popHeight,url,scrolling)
{
        /*
        Parameter scrolling optional
        wenn nicht angegeben default="no"
        gleiches Verhalten wie altes popUp
        */
        if(typeof(scrolling=="undefined")) {
                scrolling="no"
        }
        fenster_rand = "win_" + Math.round(Math.random()*10000000000);

        // Fensterproportionen
        props="locationbar=no,menubar=no,scrollbars="+scrolling+",resizable=yes,status=no,width="+popWidth+",height="+popHeight;
        // Fenster Oeffnen
        if(typeof(fenster_rand)!="undefined"){
                // if(fenster.closed!=true)window.fenster_rand.close()
        } //if
        fenster_rand = window.open(url, "", props)
        fenster_rand.focus();
}// popUp

//Fehlerkorrektur nicht existente Variablen
var ns, ie, ie4;

if (document.layers) {ns = 1; ie = 0; ie4 = 0;}
else if(document.all) {ns = 0; ie = 0; ie4 = 1;}
else if(document.getElementById) {ns = 0; ie = 1; ie4 = 0;}

function image_mode(id)
{
	var wert="0&amp;produkt_id=0";
	if( id >= 9000000 )
	{
		wert="1&amp;produkt_id=artist";
	}
	return wert;
}

function vollbild(pfad, modus)
{
        if (ns)
        {
                alert('Ihr Browser unterstuetzt diese Funktion leider nicht!');
        }
        else
        {
                if (!opener)
                {
                        Fenster = window.open(pfad,"vollbild","scrollbars=yes,width=800,height=600,left=0,top=0,fullscreen=yes","1");
                }
                else if (opener)
                {
                        // opener.location.href = '<?php echo SERVER_HOST.$_SERVER['PHP_SELF'].'?'.$_SERVER['QUERY_STRING']; ?>';
                        window.close();
                }
        }
}

//function refresh(){
//location.reload();
//}

//Funktionen für 12 zufallsbilder auf der Startseite
var pathfap="pages/cms/cmstool/images/";
/*
var pic_ids=make_ids_array(data);
var pic_array=make_pic_array(pic_ids);
var tab_rechts_array=make_tab_rechts_array();pic_preload();
*/
var pic_ids=new Array();
var pic_array=new Array();
var tab_rechts_array=new Array();

var pictab="";
var pic_start='<td><a href="index.php?produkt_id=0&amp;page=image_preview1.php&amp;image=';
var pic_mitte='" target="_parent" ><img width="90px" height="90px" src="';
var pic_mitte2='\" alt="" border=0 onmouseover="change_rechts(';
var pic_end=')" ></a></td>';
function make_pic_tab()
{
	pathfap="pages/cms/cmstool/images/";
	//var data=["20036","189736","241630","83092","337516","227449","30460","19786","237918","300073","324778","111347","199785","310804","336142","231700","213133","271141","121095","296646","129259","166022","6808","364043","64808","114948","224137","334384","370004","1004651","200369","252026","226806","291670","481271","293847","178688","58390","995967","871931","195010","343871","300637","208231","345199","621729","271064","217953","244111","123817","107977","105654","629716","199401","223500","71248","283500","84320","6745","1298549","1331033","210443","1099899","77400","386938","498564","212768","90014","495801","416514","81346","7732","265899","204543","355868","502070","59030","318846","657694","818503","696763","273731","557870","510167","568125","265642","298374","1299225","24736","221088","1174563","708131","39745","1561677","206564","639790","945211","1039029","540512","7729","9231691","9231767","9230091","9236293","9233471","9238085","9229905","9230441","9232495","9229427","9239421","9243805","9229955","9233087","9243133","9231337","9246503","9246027","9241907","9241913","9232251","9230493","9231473","9230647","9235301","9238311","9240327"];
/*
	pic_ids=make_ids_array(data);
	pic_array=make_pic_array(pic_ids);
	tab_rechts_array=make_tab_rechts_array();pic_preload();
	pictab="";
	pic_start='<td><a href="index.php?page=image_preview1.php&amp;image=';
	pic_mitte='" target="_parent" ><img width="90px" height="90px" src="';
	pic_mitte2='\" alt="" border=0 onmouseover="change_rechts(\'';
	pic_end='\')" ></a></td>';
	pictab+='<table cellpadding="0" cellspacing="0" bgcolor="#ffffff" style="border : 1px dashed #d9d8d3;"><tr><td><table width="100%" height="100%" border="0" cellspacing="2" cellpadding="0"><tr>';
	pictab+=pic_start+pic_ids[0]+'&amp;own='+image_mode(pic_ids[0])+pic_mitte+pic_array[0]+pic_mitte2+pic_ids[0]+pic_end;
	pictab+=pic_start+pic_ids[1]+'&amp;own='+image_mode(pic_ids[1])+pic_mitte+pic_array[1]+pic_mitte2+pic_ids[1]+pic_end;
	pictab+=pic_start+pic_ids[2]+'&amp;own='+image_mode(pic_ids[2])+pic_mitte+pic_array[2]+pic_mitte2+pic_ids[2]+pic_end;
	pictab+=pic_start+pic_ids[3]+'&amp;own='+image_mode(pic_ids[3])+pic_mitte+pic_array[3]+pic_mitte2+pic_ids[3]+pic_end;
	pictab+=pic_start+pic_ids[12]+'&amp;own='+image_mode(pic_ids[12])+pic_mitte+pic_array[12]+pic_mitte2+pic_ids[12]+pic_end;
	pictab+="</tr><tr>";
	pictab+=pic_start+pic_ids[4]+'&amp;own='+image_mode(pic_ids[4])+pic_mitte+pic_array[4]+pic_mitte2+pic_ids[4]+pic_end;
	pictab+=pic_start+pic_ids[5]+'&amp;own='+image_mode(pic_ids[5])+pic_mitte+pic_array[5]+pic_mitte2+pic_ids[5]+pic_end;
	pictab+=pic_start+pic_ids[6]+'&amp;own='+image_mode(pic_ids[6])+pic_mitte+pic_array[6]+pic_mitte2+pic_ids[6]+pic_end;
	pictab+=pic_start+pic_ids[7]+'&amp;own='+image_mode(pic_ids[7])+pic_mitte+pic_array[7]+pic_mitte2+pic_ids[7]+pic_end;
	pictab+=pic_start+pic_ids[13]+'&amp;own='+image_mode(pic_ids[13])+pic_mitte+pic_array[13]+pic_mitte2+pic_ids[13]+pic_end;
	pictab+="</tr><tr>";
	pictab+=pic_start+pic_ids[8]+'&amp;own='+image_mode(pic_ids[8])+pic_mitte+pic_array[8]+pic_mitte2+pic_ids[8]+pic_end;
	pictab+=pic_start+pic_ids[9]+'&amp;own='+image_mode(pic_ids[9])+pic_mitte+pic_array[9]+pic_mitte2+pic_ids[9]+pic_end;
	pictab+=pic_start+pic_ids[10]+'&amp;own='+image_mode(pic_ids[10])+pic_mitte+pic_array[10]+pic_mitte2+pic_ids[10]+pic_end;
	pictab+=pic_start+pic_ids[11]+'&amp;own='+image_mode(pic_ids[11])+pic_mitte+pic_array[11]+pic_mitte2+pic_ids[11]+pic_end;
	pictab+=pic_start+pic_ids[14]+'&amp;own='+image_mode(pic_ids[14])+pic_mitte+pic_array[14]+pic_mitte2+pic_ids[14]+pic_end;
	pictab+="</tr></table></td></tr></table>";
*/
//var data=["schildkroete-2,58390", "lions,9187825", "schildkroete-2,58390", "lions,9187825", "schildkroete-2,58390", "lions,9187825", "schildkroete-2,58390", "lions,9187825", "schildkroete-2,58390", "lions,9187825", "schildkroete-2,58390", "lions,9187825", "schildkroete-2,58390", "lions,9187825", "schildkroete-2,58390", "lions,9187825", "schildkroete-2,58390", "lions,9187825", "schildkroete-2,58390", "lions,9187825", "schildkroete-2,58390", "lions,9187825", "schildkroete-2,58390", "lions,9187825", "schildkroete-2,58390", "lions,9187825", "schildkroete-2,58390", "lions,9187825", "schildkroete-2,58390", "lions,9187825", "schildkroete-2,58390", "lions,9187825", "schildkroete-2,58390", "lions,9187825", "schildkroete-2,58390", "lions,9187825", "schildkroete-2,58390", "lions,9187825", "schildkroete-2,58390", "lions,9187825"];

	pic_ids=make_ids_array(data);
	pic_array=make_pic_array(pic_ids);
	tab_rechts_array=make_tab_rechts_array();pic_preload();
	pictab="";
	pic_start='<td><a href="/bilder/';
	pic_mitte='.html" target="_parent" ><img width="90px" height="90px" src="';
	pic_mitte2='\" alt="" border=0 onmouseover="change_rechts(\'';
	pic_end='\')" ></a></td>';
	pictab+='<table cellpadding="0" cellspacing="0" bgcolor="#ffffff" style="border : 1px dashed #d9d8d3;"><tr><td><table width="100%" height="100%" border="0" cellspacing="2" cellpadding="0"><tr>';
	pictab+=pic_start+pic_ids[0]+pic_mitte+pic_array[0]+pic_mitte2+pic_ids[0]+pic_end;
	pictab+=pic_start+pic_ids[1]+pic_mitte+pic_array[1]+pic_mitte2+pic_ids[1]+pic_end;
	pictab+=pic_start+pic_ids[2]+pic_mitte+pic_array[2]+pic_mitte2+pic_ids[2]+pic_end;
	pictab+=pic_start+pic_ids[3]+pic_mitte+pic_array[3]+pic_mitte2+pic_ids[3]+pic_end;
	pictab+=pic_start+pic_ids[12]+pic_mitte+pic_array[12]+pic_mitte2+pic_ids[12]+pic_end;
	pictab+="</tr><tr>";
	pictab+=pic_start+pic_ids[4]+pic_mitte+pic_array[4]+pic_mitte2+pic_ids[4]+pic_end;
	pictab+=pic_start+pic_ids[5]+pic_mitte+pic_array[5]+pic_mitte2+pic_ids[5]+pic_end;
	pictab+=pic_start+pic_ids[6]+pic_mitte+pic_array[6]+pic_mitte2+pic_ids[6]+pic_end;
	pictab+=pic_start+pic_ids[7]+pic_mitte+pic_array[7]+pic_mitte2+pic_ids[7]+pic_end;
	pictab+=pic_start+pic_ids[13]+pic_mitte+pic_array[13]+pic_mitte2+pic_ids[13]+pic_end;
	pictab+="</tr><tr>";
	pictab+=pic_start+pic_ids[8]+pic_mitte+pic_array[8]+pic_mitte2+pic_ids[8]+pic_end;
	pictab+=pic_start+pic_ids[9]+pic_mitte+pic_array[9]+pic_mitte2+pic_ids[9]+pic_end;
	pictab+=pic_start+pic_ids[10]+pic_mitte+pic_array[10]+pic_mitte2+pic_ids[10]+pic_end;
	pictab+=pic_start+pic_ids[11]+pic_mitte+pic_array[11]+pic_mitte2+pic_ids[11]+pic_end;
	pictab+=pic_start+pic_ids[14]+pic_mitte+pic_array[14]+pic_mitte2+pic_ids[14]+pic_end;
	pictab+="</tr></table></td></tr></table>";

}
function make_ids_array(data)
{
var inputs=data;
var output=new Array();
for(var i=0;i<15;i++)
{
var tmp;
var index;
var ende=(inputs.length-1);
index=make_rnd(0,ende);
if(index!=ende)
{
tmp=inputs[ende];
inputs[ende]=inputs[index];
inputs[index]=tmp;
}
output.push(inputs.pop(ende));
inputs.reverse();
}
return output;
}
function make_pic_array(data)
{
var out=new Array();
for (var i=0;i<15;i++)
{
var id=data[i];
var name=make8(id);
var path="mowa_prv/prv/"+name.substring(0,5)+"000"+"/"+name+"_prv_teil1_90x90.jpg";
out[i]=path;
}
return out;
}
function make_tab_rechts_array()
{
var array=new Array();
for(var i=0;i<15;i++)
{
array[pic_ids[i]]=make_rnd(1,5);
}
return array;
}
function change_rechts(id,first)
{
var name=make8(id);
var path="mowa_prv/prv/"+name.substring(0,5)+"000"+"/"+name;
var tabs=new Array();
var tabsstart='<table cellpadding="0" cellspacing="0" bgcolor="#ffffff" style="border: 1px dashed #d9d8d3;"><tr><td><table style="width:465px;height:276px;" border="0" cellspacing="2" cellpadding="0"><tr><td id="tab_rechts_content" width="465" height="276" background="img/fap_start/start_couch.jpg" align="center" valign="top">';
var tabsend="</td></tr></table></td></tr></table>";
tabs[1]='<img src="'+pathfap+'transparent.gif" width="369" height="26" border="0" alt="" ><br ><table border="0" cellpadding="0" cellspacing="0"><tr><td width="3" height="3" background="'+pathfap+'eckeobenlinks.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td><td height="3" background="'+pathfap+'rahmenoben.gif"></td><td width="3" height="3" background="'+pathfap+'eckenobenrechts.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td></tr><tr><td width="3" background="'+pathfap+'rahmenlinks.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td><td><img src="'+path+'_single_teil1_Xx108.jpg'+'" border="0"></td><td width="3" background="'+pathfap+'rahmenrechts.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td></tr><tr><td width="3" height="3" background="'+pathfap+'eckeuntenlinks.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td><td height="3" background="'+pathfap+'rahmenunten.gif"></td><td width="3" height="3" background="'+pathfap+'eckeuntenrechts.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td></tr></table>';
tabs[2]='<img src="'+pathfap+'transparent.gif" width="369" height="26" border="0" alt="" ><br ><table style="width:100%;" border="0" cellspacing="0" cellpadding="0"><tr><td width="50%" height="*" align="right" valign="top"><table border="0" cellpadding="0" cellspacing="0"><tr><td width="3" height="3" background="'+pathfap+'eckeobenlinks.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td><td height="3" background="'+pathfap+'rahmenoben.gif"></td><td width="3" height="3" background="'+pathfap+'eckenobenrechts.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td></tr><tr><td width="3" background="'+pathfap+'rahmenlinks.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td><td><img src="'+path+'_2teilig_teil1_108x108.jpg'+'" border="0"></td><td width="3" background="'+pathfap+'rahmenrechts.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td></tr><tr><td width="3" height="3" background="'+pathfap+'eckeuntenlinks.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td><td height="3" background="'+pathfap+'rahmenunten.gif"></td><td width="3" height="3" background="'+pathfap+'eckeuntenrechts.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td></tr></table></td><td width="50%" height="*" align="left" valign="top"><table border="0" cellpadding="0" cellspacing="0"><tr><td width="3" height="3" background="'+pathfap+'eckeobenlinks.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td><td height="3" background="'+pathfap+'rahmenoben.gif"></td><td width="3" height="3" background="'+pathfap+'eckenobenrechts.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td></tr><tr><td width="3" background="'+pathfap+'rahmenlinks.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td><td><img src="'+path+'_2teilig_teil2_108x108.jpg'+'" border="0"></td><td width="3" background="'+pathfap+'rahmenrechts.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td></tr><tr><td width="3" height="3" background="'+pathfap+'eckeuntenlinks.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td><td height="3" background="'+pathfap+'rahmenunten.gif"></td><td width="3" height="3" background="'+pathfap+'eckeuntenrechts.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td></tr></table></td></tr></table>';
tabs[3]='<img src="'+pathfap+'transparent.gif" width="369" height="26" border="0" alt="" ><br ><table style="width:100%;" border="0" cellspacing="0" cellpadding="0"><tr><td width="11%" height="*" align="right" valign="top">&nbsp;</td><td width="26%" height="*" align="right" valign="top"> <table border="0" cellpadding="0" cellspacing="0"><tr><td width="3" height="3" background="'+pathfap+'eckeobenlinks.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td><td height="3" background="'+pathfap+'rahmenoben.gif"></td><td width="3" height="3" background="'+pathfap+'eckenobenrechts.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td></tr><tr><td width="3" background="'+pathfap+'rahmenlinks.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td><td><img src="'+path+'_3teilig_teil1_Xx108.jpg'+'" border="0"></td><td width="3" background="'+pathfap+'rahmenrechts.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td></tr><tr><td width="3" height="3" background="'+pathfap+'eckeuntenlinks.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td><td height="3" background="'+pathfap+'rahmenunten.gif"></td><td width="3" height="3" background="'+pathfap+'eckeuntenrechts.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td></tr></table></td><td width="26%" height="*" align="center" valign="top"> <table border="0" cellpadding="0" cellspacing="0"><tr><td width="3" height="3" background="'+pathfap+'eckeobenlinks.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td><td height="3" background="'+pathfap+'rahmenoben.gif"></td><td width="3" height="3" background="'+pathfap+'eckenobenrechts.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td></tr><tr><td width="3" background="'+pathfap+'rahmenlinks.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td><td><img src="'+path+'_3teilig_teil2_Xx108.jpg'+'" border="0"></td><td width="3" background="'+pathfap+'rahmenrechts.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td></tr><tr><td width="3" height="3" background="'+pathfap+'eckeuntenlinks.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td><td height="3" background="'+pathfap+'rahmenunten.gif"></td><td width="3" height="3" background="'+pathfap+'eckeuntenrechts.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td></tr></table></td><td width="26%" height="*" align="left" valign="top"><table border="0" cellpadding="0" cellspacing="0"><tr><td width="3" height="3" background="'+pathfap+'eckeobenlinks.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td><td height="3" background="'+pathfap+'rahmenoben.gif"></td><td width="3" height="3" background="'+pathfap+'eckenobenrechts.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td></tr><tr><td width="3" background="'+pathfap+'rahmenlinks.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td><td><img src="'+path+'_3teilig_teil3_Xx108.jpg'+'" border="0"></td><td width="3" background="'+pathfap+'rahmenrechts.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td></tr><tr><td width="3" height="3" background="'+pathfap+'eckeuntenlinks.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td><td height="3" background="'+pathfap+'rahmenunten.gif"></td><td width="3" height="3" background="'+pathfap+'eckeuntenrechts.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td></tr></table></td><td width="11%" height="*" align="right" valign="top">&nbsp;</td></tr></table>';
tabs[4]='<img src="'+pathfap+'transparent.gif" width="369" height="56" border="0" alt="" ><br ><table style="width:100%;" border="0" cellspacing="0" cellpadding="0"><tr><td width="10%" height="*" align="center" valign="top">&nbsp;</td><td width="20%" height="*" align="center" valign="top"><table border="0" cellpadding="0" cellspacing="0"><tr><td width="3" height="3" background="'+pathfap+'eckeobenlinks.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td><td height="3" background="'+pathfap+'rahmenoben.gif"></td><td width="3" height="3" background="'+pathfap+'eckenobenrechts.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td></tr><tr><td width="3" background="'+pathfap+'rahmenlinks.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td><td><img src="'+path+'_4teilig_teil1_56x56.jpg'+'" border="0"></td><td width="3" background="'+pathfap+'rahmenrechts.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td></tr><tr><td width="3" height="3" background="'+pathfap+'eckeuntenlinks.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td><td height="3" background="'+pathfap+'rahmenunten.gif"></td><td width="3" height="3" background="'+pathfap+'eckeuntenrechts.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td></tr></table></td><td width="20%" height="*" align="center" valign="top"><table border="0" cellpadding="0" cellspacing="0"><tr><td width="3" height="3" background="'+pathfap+'eckeobenlinks.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td><td height="3" background="'+pathfap+'rahmenoben.gif"></td><td width="3" height="3" background="'+pathfap+'eckenobenrechts.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td></tr><tr><td width="3" background="'+pathfap+'rahmenlinks.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td><td><img src="'+path+'_4teilig_teil2_56x56.jpg'+'" border="0"></td><td width="3" background="'+pathfap+'rahmenrechts.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td></tr><tr><td width="3" height="3" background="'+pathfap+'eckeuntenlinks.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td><td height="3" background="'+pathfap+'rahmenunten.gif"></td><td width="3" height="3" background="'+pathfap+'eckeuntenrechts.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td></tr></table></td><td width="20%" height="*" align="center" valign="top"><table border="0" cellpadding="0" cellspacing="0"><tr><td width="3" height="3" background="'+pathfap+'eckeobenlinks.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td><td height="3" background="'+pathfap+'rahmenoben.gif"></td><td width="3" height="3" background="'+pathfap+'eckenobenrechts.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td></tr><tr><td width="3" background="'+pathfap+'rahmenlinks.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td><td><img src="'+path+'_4teilig_teil3_56x56.jpg'+'" border="0"></td><td width="3" background="'+pathfap+'rahmenrechts.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td></tr><tr><td width="3" height="3" background="'+pathfap+'eckeuntenlinks.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td><td height="3" background="'+pathfap+'rahmenunten.gif"></td><td width="3" height="3" background="'+pathfap+'eckeuntenrechts.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td></tr></table></td><td width="20%" height="*" align="center" valign="top"><table border="0" cellpadding="0" cellspacing="0"><tr><td width="3" height="3" background="'+pathfap+'eckeobenlinks.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td><td height="3" background="'+pathfap+'rahmenoben.gif"></td><td width="3" height="3" background="'+pathfap+'eckenobenrechts.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td></tr><tr><td width="3" background="'+pathfap+'rahmenlinks.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td><td><img src="'+path+'_4teilig_teil4_56x56.jpg'+'" border="0"></td><td width="3" background="'+pathfap+'rahmenrechts.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td></tr><tr><td width="3" height="3" background="'+pathfap+'eckeuntenlinks.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td><td height="3" background="'+pathfap+'rahmenunten.gif"></td><td width="3" height="3" background="'+pathfap+'eckeuntenrechts.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td></tr></table></td><td width="10%" height="*" align="center" valign="top">&nbsp;</td></tr></table>';
tabs[5]='<img src="'+pathfap+'transparent.gif" width="369" height="46" border="0" alt="" ><br ><table style="width:100%;" border="0" cellspacing="0" cellpadding="0"><tr><td width="33%" height="*" align="right" valign="bottom"><table border="0" cellpadding="0" cellspacing="0"><tr><td width="22" height="22" background="'+pathfap+'eckeobenlinks1rahmen.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td><td height="22" background="'+pathfap+'rahmenoben1rahmen.gif"></td><td width="22" height="22" background="'+pathfap+'eckenobenrechts1rahmen.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td></tr><tr><td width="22" background="'+pathfap+'rahmenlinks1rahmen.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td><td><img src="'+path+'_paper_teil1_50xX.jpg'+'" border="0"></td><td width="22" background="'+pathfap+'rahmenrechts1rahmen.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td></tr><tr><td width="22" height="22" background="'+pathfap+'eckeuntenlinks1rahmen.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td><td height="22" background="'+pathfap+'rahmenunten1rahmen.gif"></td><td width="22" height="22" background="'+pathfap+'eckeuntenrechts1rahmen.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td></tr></table><img src="'+pathfap+'transparent.gif" border="0" height="123" ></td><td width="33%" height="*" align="center" valign="bottom"><table border="0" cellpadding="0" cellspacing="0"><tr><td width="22" height="22" background="'+pathfap+'eckeobenlinks2rahmen.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td><td height="22" background="'+pathfap+'rahmenoben2rahmen.gif"></td><td width="22" height="22" background="'+pathfap+'eckenobenrechts2rahmen.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td></tr><tr><td width="22" background="'+pathfap+'rahmenlinks2rahmen.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td><td><img src="'+path+'_paper_teil1_50xX.jpg'+'" border="0"></td><td width="22" background="'+pathfap+'rahmenrechts2rahmen.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td></tr><tr><td width="22" height="22" background="'+pathfap+'eckeuntenlinks2rahmen.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td><td height="22" background="'+pathfap+'rahmenunten2rahmen.gif"></td><td width="22" height="22" background="'+pathfap+'eckeuntenrechts2rahmen.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td></tr></table><img src="'+pathfap+'transparent.gif" border="0" height="123" ></td><td width="33%" height="*" align="left" valign="bottom"><table border="0" cellpadding="0" cellspacing="0"><tr><td width="22" height="22" background="'+pathfap+'eckeobenlinks3rahmen.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td><td height="22" background="'+pathfap+'rahmenoben3rahmen.gif"></td><td width="22" height="22" background="'+pathfap+'eckenobenrechts3rahmen.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td></tr><tr><td width="22" background="'+pathfap+'rahmenlinks3rahmen.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td><td><img src="'+path+'_paper_teil1_50xX.jpg'+'" border="0"></td><td width="22" background="'+pathfap+'rahmenrechts3rahmen.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td></tr><tr><td width="22" height="22" background="'+pathfap+'eckeuntenlinks3rahmen.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td><td height="22" background="'+pathfap+'rahmenunten3rahmen.gif"></td><td width="22" height="22" background="'+pathfap+'eckeuntenrechts3rahmen.gif"><img src="'+pathfap+'transparent.gif" border="0" alt="" ></td></tr></table><img src="'+pathfap+'transparent.gif" border="0" height="123" alt="" ></td></tr></table>';
var content="";
if(first)
{
content+=tabsstart+tabs[tab_rechts_array[id]]+tabsend;
document.getElementById("tab_rechts").innerHTML=content;
}else{
content+=tabs[tab_rechts_array[id]];
document.getElementById("tab_rechts_content").innerHTML=content;
}
}
function make_rnd(min,max)
{
var rnd;
rnd=Math.floor((max-min+1)*(Math.random()));
if(rnd>=(max-min+1))rnd=(max-min);
return rnd+min;
}
function make8(id)
{
var out="00000000";
var poskomma = id.lastIndexOf(",");
var restnum = id.substr(poskomma+1);
out+=""+restnum+"";
out=out.substring(out.length-8,out.length);
//alert( id+"---"+out );
return out;
}
function change_links()
{
document.getElementById("tab_links").innerHTML=pictab;
}
function pic_preload()
{
var generelle=["transparent.gif","sofa.jpg","rahmenoben.gif","rahmenlinks.gif","rahmenrechts.gif","rahmenunten.gif","eckenobenrechts.gif","eckeuntenlinks.gif","eckeobenlinks.gif","eckeuntenrechts.gif","eckeobenlinks1rahmen.gif","eckenobenrechts1rahmen.gif","eckeuntenlinks1rahmen.gif","eckeuntenrechts1rahmen.gif","rahmenoben1rahmen.gif","rahmenlinks1rahmen.gif","rahmenrechts1rahmen.gif","rahmenunten1rahmen.gif","eckeobenlinks2rahmen.gif","eckenobenrechts2rahmen.gif","eckeuntenlinks2rahmen.gif","eckeuntenrechts2rahmen.gif","rahmenoben2rahmen.gif","rahmenlinks2rahmen.gif","rahmenrechts2rahmen.gif","rahmenunten2rahmen.gif","eckeobenlinks3rahmen.gif","eckenobenrechts3rahmen.gif","eckeuntenlinks3rahmen.gif","eckeuntenrechts3rahmen.gif","rahmenoben3rahmen.gif","rahmenlinks3rahmen.gif","rahmenrechts3rahmen.gif","rahmenunten3rahmen.gif"];
var anhaengende=pic_ids;
var gesamt_pics=new Array();
var variable=pic_array;
for(var i=0;i<variable.length;i++)
{
gesamt_pics.push(variable[i]);
}
for(var i=0;i<generelle.length;i++)
{
gesamt_pics.push(pathfap+generelle[i]);
}
for(var i=0;i<anhaengende.length;i++)
{
var id=pic_ids[i];
var name=make8(id);
var path="mowa_prv/prv/"+name.substring(0,5)+"000/"+name;
var variante=tab_rechts_array[id];
var target="";
switch(variante)
{
case 1:target=path+"_single_teil1_Xx108.jpg";
break;
case 2:target=path+"_2teilig_teil1_108x108.jpg,";
target+=path+"_2teilig_teil2_108x108.jpg";
break;
case 3:target=path+"_3teilig_teil1_Xx108.jpg,";
target+=path+"_3teilig_teil2_Xx108.jpg,";
target+=path+"_3teilig_teil3_Xx108.jpg";
break;
case 4:target=path+"_4teilig_teil1_56x56.jpg,";
target+=path+"_4teilig_teil2_56x56.jpg,";
target+=path+"_4teilig_teil3_56x56.jpg,";
target+=path+"_4teilig_teil4_56x56.jpg";
break;
case 5:target=path+"_paper_teil1_50xX.jpg";
break;
default:target=path+"_single_teil1_Xx108.jpg";
break;
}
gesamt_pics.push(target);
}
gesamt_pics=gesamt_pics.join(",").split(",");
var ende=gesamt_pics.length;
document.vorladen=new Array();
if(document.images)
{
for(var i=0;i<ende;i++)
{
document.vorladen[i]=new Image();document.vorladen[i].src=gesamt_pics[i];
}
}
}
function change_tabhide(wie)
{
document.getElementById("changling_tabelle").style.display=wie;
}
function init()
{
make_pic_tab();change_links();change_rechts(pic_ids[make_rnd(0,14)],true);
change_tabhide("block");
}
//window.onload=init;
//ende Zufallsbilder auf der Startseite

//Top Community Member auf der Startseite
function ajax_request( url , id , query )
{
        var request=false;
        if(window.XMLHttpRequest)request = new XMLHttpRequest();
        else if(window.ActiveXObject)
        {
                try {request = new ActiveXObject('Msxml2.XMLHTTP');}
                catch (e)
                        {
                                try{request = new ActiveXObject('Microsoft.XMLHTTP');}
                                catch(e){}
                        }
        }
        if(request)
        {
			if( query=='' )
			{
                request.open('get',url,true);
                request.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
                request.send(query);
                request.onreadystatechange = function() {interpretRequest(id,request)};
			}
			else
			{
                request.open('post',url,true);
                request.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
                request.send(query);
                request.onreadystatechange = function() {interpretRequest(id,request)};
			}
        }
}
function interpretRequest(id,request)
{
        if(request.readyState==4&&request.status==200)document.getElementById(id).innerHTML=request.responseText;
}
function init_top50()
{
	ajax_request( 'ajax_comtop50.php?query=top10' , 'comtop50' , '' );
}
//ende Top Community Member auf der Startseite 

function div_switcher( id ){
	var tmp = document.getElementById( "prod_div_"+id ).innerHTML;
	nonvisiblecontent.push( tmp );
	document.getElementById( "prod_div_"+id ).innerHTML = nonvisiblecontent.shift();
}






