|
|
|
|
|
|
function checkFrames(sprache,menu,content,basePlus)
{
if (top==window)
{
if (basePlus!=undefined)
{
location.href=basePlus+"../index.php?menu="+menu+"&content="+content+"&sprache="+sprache;
}
else
{
location.href="../index.php?menu="+menu+"&content="+content+"&sprache="+sprache;
}
}
}
function setDivDisplay(id, action){ // Anzeige selctierter Menüs
if(action) disp = "";
else disp = "none";
document.getElementById(id).style.display = disp;
// Folgendes funktioniert momentan nur bei "Buche ungedämpft":
/* if (window.name=="holzart_buche")
{
var zahl = id.substr((id.length-2),2);
var reiter = parent.document.getElementById("link-"+zahl);
if (action)
reiter.className="submenuSel";
else
reiter.className="submenu";
}
*/
}
function setTBDisplayFarben (id, action)
{
if (action)
{
document.getElementById(id).style.display = "";
//document.getElementById("tb4").style.display="none";
}
else
{
document.getElementById(id).style.display = "none";
//document.getElementById("tb4").style.display = "";
}
}
var ns4 = (document.layers)? true:false;
var ns6 = (document.getElementById)? true:false;
var ie = (document.all)? true:false;
function showLayer(name){//layername
if (ie) {document.all[''+name].style.visibility = "visible"}
else if(ns4) {document.layers[''+name].visibility = "show";}
else if(ns6) {document.getElementById(''+name).style.visibility = "visible";}
aktLayerName=name;
}
function hideLayer(name){
if (ie) {document.all[''+name].style.visibility = "hidden"}
else if(ns4) {document.layers[''+name].visibility = "hide"}
else if(ns6) {document.getElementById(''+name).style.visibility = "hidden";}
aktLayerName='';
}
function showMenuLayer(name){//layername
if (ie) {document.all[''+name].style.visibility = "visible"}
else if(ns4) {document.layers[''+name].visibility = "show";}
else if(ns6) {document.getElementById(''+name).style.visibility = "visible";}
aktLayerName=name;
if (selectedLayer!=null)
{
if (ie) {document.all[''+selectedLayer].style.visibility = "hidden"}
else if(ns4) {document.layers[''+selectedLayer].visibility = "hide"}
else if(ns6) {document.getElementById(''+selectedLayer).style.visibility = "hidden";}
}
}
function hideMenuLayer(name){
if (ie) {document.all[''+name].style.visibility = "hidden"}
else if(ns4) {document.layers[''+name].visibility = "hide"}
else if(ns6) {document.getElementById(''+name).style.visibility = "hidden";}
aktLayerName='';
if (selectedLayer!=null)
{
if (ie) {document.all[''+selectedLayer].style.visibility = "visible"}
else if(ns4) {document.layers[''+selectedLayer].visibility = "show";}
else if(ns6) {document.getElementById(''+selectedLayer).style.visibility = "visible";}
}
}
function layerPos(name, l, t){//layername, leftpos, toppos
if (ie){
document.all[''+name].style.left = l;
document.all[''+name].style.top = t;
}else if(ns4){
document.layers[''+name].left = l;
document.layers[''+name].top = t;
}else if(ns6){
document.getElementById(''+name).style.left = l;
document.getElementById(''+name).style.top = t;
}
}
function openPopUpWin(URL, picName, winWidth, winHeight){//open popup window
popUpWin = open(URL+'?picName='+picName+'?w='+winWidth+'?h='+winHeight, 'popUpWindow', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width='+ winWidth+',height='+winHeight);
popUpWin.focus();
}
function openDetail(holz,unterart)
{
var zufall = Math.floor(Math.random()*1000);
var popUpWin = window.open('farben-detail-frameset.php?holz='+holz+"&unterart="+unterart,'DetailPopup'+zufall,'scrolling=no,resizable=no,status=no,width=760,height=760');
var screenBreite=screen.availWidth;
var screenHoehe=screen.availHeight;
if (screenBreite<=1024)
{
popX=0;
popWidth=screenBreite;
}
else
{
popX=Math.floor(screenBreite/2)-512;
popWidth=1024;
}
if (screenHoehe<=768)
{
popY=0;
popHeight=screenHoehe;
}
else
{
popY=Math.floor(screenHoehe/2)-363;
popHeight=760;
}
popUpWin.moveTo(popX,popY);
popUpWin.resizeTo(popWidth,popHeight);
/*popUpWin.moveTo(0,0);
popUpWin.resizeTo(screen.availWidth,screen.availHeight);*/
}
function zweiFrames(frame1,frame2)
{
top.main.main.menu.location.href=frame1;
if (frame2!="#")
{
top.main.main.content.show.location.href=frame2;
}
}
function menueAktualisieren(ebene)
{
if (top.main.main.menu.location.href)
{
top.main.main.menu.location.href=ebene;
}
}
function swapPfeil(pfeil,toWhat)
{
var pfeilBild = document.getElementById(pfeil);
if (toWhat)
{
pfeilBild.src="../image/pfeil.gif";
}
else
{
pfeilBild.src="../image/pfeil-w.gif";
}
}
function openMuster(parkett,muster)
{
var zufall = Math.floor(Math.random()*1000);
var popUpWin = window.open('parkett-detail-frameset.php?parkett='+parkett+"&muster="+muster,'DetailPopup'+zufall,'scrolling=no,resizable=yes,status=no,width=760,height=746');
var screenBreite=screen.availWidth;
var screenHoehe=screen.availHeight;
if (screenBreite<=1024)
{
popX=0;
popWidth=screenBreite;
}
else
{
popX=Math.floor(screenBreite/2)-512;
popWidth=1024;
}
if (screenHoehe<=768)
{
popY=0;
popHeight=screenHoehe;
}
else
{
popY=Math.floor(screenHoehe/2)-363;
popHeight=746;
}
popUpWin.moveTo(popX,popY);
popUpWin.resizeTo(popWidth,popHeight);
/*popUpWin.moveTo(0,0);
popUpWin.resizeTo(screen.availWidth,screen.availHeight);*/
}
|
|
|
|
|
|