
//nc relaodpage
function reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.pgW=innerWidth; document.pgH=innerHeight; onresize=reloadPage; }}
  else if (innerWidth!=document.pgW || innerHeight!=document.pgH) location.reload();
}
reloadPage(true);

// Script fuer Bildaustausch in der ONLINE SHOP
var bilder_os=new Array();
bilder_os[1]=new Array(new Image(), new Image());
bilder_os[1][0].src="http://www.bakisat.com/pics/pfeil_kat.gif";
bilder_os[1][1].src="http://www.bakisat.com/pics/pfeil_kat_ov1.gif";

function bw_os(bnam,nr,zustand)
{
	document.images[bnam].src=bilder_os[nr][zustand].src;
}

// Script fuer Bildaustausch in der SUBKATEGORIE
var bilder_osub=new Array();
bilder_osub[1]=new Array(new Image(), new Image());
bilder_osub[1][0].src="http://www.bakisat.com/pics/pfeil_kl1.gif";
bilder_osub[1][1].src="http://www.bakisat.com/pics/pfeil_kl1.gif";

function bw_osub(bnam,nr,zustand)
{
	document.images[bnam].src=bilder_osub[nr][zustand].src;
}

//status zeile
var txt = "";
function szeile(anzeige)
   {
    status = anzeige;
   }
   
 /// Fenster 
 		var Fenster = 0;
		var Fenster;
		function upload(meineSeite,meinName,w,h,scroll)
		{
			LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
			TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
		
			settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
			Fenster = window.open(meineSeite,meinName,settings)
			Fenster.focus();
		}
		
// Function für Newsletter
var fensterNL = 0;
function newslett()
{
	if(fensterNL!=0&&fensterNL.closed!=true)
	{
		fensterNL.focus();
		fensterNL = open("#", "newsletter", "width=400,height=300,scrollbars=no,resizable=no,status=no");
		document.formular.target = "newsletter";
		document.formular.submit();
	}
	else
	{
		fensterNL = open("#", "newsletter", "width=400,height=300,scrollbars=no,resizable=no,status=no");
		document.formular.target = "newsletter";
		document.formular.submit();
	}
}
// Function für Newsletter
var fensterGS = 0;
function gspiel()
{
	if(fensterGS!=0&&fensterGS.closed!=true)
	{
		fensterGS.focus();
		fensterGS = open("#", "gewinnspiel", "width=400,height=300,scrollbars=no,resizable=no,status=no");
		document.formular.target = "gewinnspiel";
		document.formular.submit();
	}
	else
	{
		fensterGS = open("#", "gewinnspiel", "width=400,height=300,scrollbars=no,resizable=no,status=no");
		document.formular.target = "gewinnspiel";
		document.formular.submit();
	}
}

// Function für Warenkorb INSERT
 window.name = 'bakisat';
 
var wkwin=0;
 function produktwk()
 {
	if(wkwin!=0&&wkwin.closed!=true)
	{
		wkwin.focus();
		//var left=(screen.availWidth-width)/2;
		//var top=(screen.availHeight-height)/2;
		wkwin = open("http://www.bakisat.com/regis/wk_insert.php", "wk", "width=364,height=200,top=250,left=250,scrollbars=Yes,resizable=yes,status=no");
		document.formular.target = "wk";
		document.formular.submit();
		//fenster.moveTo(left,top);
	}
	else
	{
		wkwin = open("http://www.bakisat.com/regis/wk_insert.php", "wk", "width=364,height=200,top=250,left=250,scrollbars=Yes,resizable=yes,status=no");
		document.formular.target = "wk";
		document.formular.submit();
	}
 }