var BrowserName	   = navigator.appName;
var BrowserVersion = navigator.appVersion;
var VersionShort   = BrowserVersion.substr(0, 1);
function WinOpen(seite)
   {
seite = seite+"/"+session_sid+"?forward=";

var high =690;
var wide =980;


if(VersionShort  >3){
   if(BrowserName == "Netscape")
   {
   wavewin=window.open(seite,"_blank","fullscreen=no,scrollbars=no,toolbar=no,resizable=0,resizable=no,menubar=no,location=no,status=no,hotkeys=no,height=" + high	+ ",width=" + wide);
   wavewin.focus();
  //window.moveTo(0, 0);
   }
 }

if(BrowserName == "Microsoft Internet Explorer")
     {
wavewin=open(seite,"","fullscreen=no,scrollbars=no,resizable=yes,toolbar=no,menubar=no,location=no,status=no,hotkeys=no,height=" + high + " ,width=" +	wide);
      if(wavewin != null && typeof(wavewin.moveTo) =="function")
      {
      wavewin.moveTo(0,0);
      //wavewin.focus();
      }
    }
  //return false;
 //-->

 }
// This funktion is used from a link which is configured with the 'send' handler
function openlinkWindow(winLocation,high,wide,target,send_url)
{
    //send_url = encodeURIComponent(send_url);
    wavewin=window.open(winLocation+send_url,target,"fullscreen=no,scrollbars=no,resizable=yes,toolbar=no,menubar=no,location=no,status=no,hotkeys=no,height=" + high + " ,width=" +	wide);
	wavewin.focus();
	//return false;
}

function reload_opener()
{
    if(typeof(window.opener) == "undefined"
        )
	    return;
	 opener.location.reload();
	 window.close();
}


// Opens a popup, inputs: url, width, height
function open_popup(popup_url,breite,hoehe)
{
    fenster = open(popup_url,"prod_popup","scrollbars=yes,resizable=yes,status=no,toolbar=no,menubar=no,width="+breite+",height="+hoehe);
    fenster.focus;
}

// Opens a popup, inputs: url, width, height
function open_popup_picture(popup_url,breite,hoehe)
{
    fenster = open(popup_url,"prod_popup","scrollbars=yes,resizable=yes,status=no,toolbar=no,menubar=no,width="+breite+",height="+hoehe);
    fenster.focus;
}

// Opens a popup to display al larger version of a catalog picture, inputs: url, width, height
function open_popup_catalog_picture(popup_url,breite,hoehe)
{
    fenster = open(popup_url,"cat_popup","scrollbars=yes,resizable=yes,status=no,toolbar=no,menubar=no,width="+breite+",height="+hoehe);
    fenster.focus;
}


// Changes the images in the navigation (navi.hbs)
ok	= document.images;

if (ok)
{
	on	=	new Image();
	on.src	=	"/img/pfeile/navi_highlight_9x8.gif";
	off	=	new Image();
	off.src	=	"/img/p_trans.gif";
}
function high(n)
{
	if (ok)
	{
		document[n].src	= eval("on.src");
	}
}
function down(n)
{
	if (ok)
	{
		document[n].src	= eval("off.src");
	}
}

