/* file: global.js
contents: Konstanten der Randomimage Funktion
author: Techdivision, Thomas Kalteis */
// Seitentitel

  //var j,z,
  var objekte= new Array()
  var detail= new Array()
  var people= new Array()
   
  //Objkete
  objekte[objekte.length]='global/images/keyvisual/objekt/tho01.jpg';
  objekte[objekte.length]='global/images/keyvisual/objekt/tho02.jpg';
  objekte[objekte.length]='global/images/keyvisual/objekt/tho03.jpg';
  objekte[objekte.length]='global/images/keyvisual/objekt/tho04.jpg';
  objekte[objekte.length]='global/images/keyvisual/objekt/tho05.jpg';
  // Neue Objekte 18.03.2005
  //objekte[objekte.length]='../global/images/keyvisual/objekt/to09.jpg';
  //objekte[objekte.length]='../global/images/keyvisual/objekt/to10.jpg';
  //objekte[objekte.length]='../global/images/keyvisual/objekt/to11.jpg';
  //objekte[objekte.length]='../global/images/keyvisual/objekt/to12.jpg';
  //objekte[objekte.length]='../global/images/keyvisual/objekt/to13.jpg';
  objekte[objekte.length]='global/images/keyvisual/objekt/to14.jpg';
  objekte[objekte.length]='global/images/keyvisual/objekt/to15.jpg';
  objekte[objekte.length]='global/images/keyvisual/objekt/to16.jpg';
  objekte[objekte.length]='global/images/keyvisual/objekt/to17.jpg';
  
  o=parseInt(Math.random()*objekte.length);
  o=(isNaN(o))?0:o;
  
  //Detail
  detail[detail.length]='global/images/keyvisual/detail/thd01.gif';
  detail[detail.length]='global/images/keyvisual/detail/thd02.gif';
  detail[detail.length]='global/images/keyvisual/detail/thd03.gif';
  detail[detail.length]='global/images/keyvisual/detail/thd04.gif';
  detail[detail.length]='global/images/keyvisual/detail/thd05.gif';
  // Neue Details 18.03.2005
  detail[detail.length]='global/images/keyvisual/detail/thd06.gif';
  detail[detail.length]='global/images/keyvisual/detail/thd07.gif';
  detail[detail.length]='global/images/keyvisual/detail/thd08.gif';
  detail[detail.length]='global/images/keyvisual/detail/thd09.gif';
  detail[detail.length]='global/images/keyvisual/detail/thd10.gif';

  
  d=parseInt(Math.random()*detail.length);
  d=(isNaN(d))?0:d;
  
  // sollen keine Leute mehr sein
  people[people.length]='global/images/keyvisual/objekt/tho09.jpg';
  people[people.length]='global/images/keyvisual/objekt/tho10.jpg';
  people[people.length]='global/images/keyvisual/objekt/tho11.jpg';
  people[people.length]='global/images/keyvisual/objekt/tho12.jpg';
  people[people.length]='global/images/keyvisual/objekt/tho13.jpg';
  							  
  p=parseInt(Math.random()*people.length);
  p=(isNaN(p))?0:p;
  
  function fwLoadMenus() {
  if (window.fw_menu_0) return;
  window.fw_menu_0 = new Menu("root",190,20,"Verdana, Arial, Helvetica, sans-serif",10,"#333333","#046683","#F5F5F5","#F5F5F5");
  fw_menu_0.addMenuItem("<B class=navlayer>Karriere</B>","location='javascript:void(0)'")
  fw_menu_0.addMenuItem("&gt;&gt; Aktuelle Stellenangebote","window.open('http://stbs-bits.mysug.de/karriere/search.asp','BIAG','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,width=660,height=620');");
  //fw_menu_0.addMenuItem("&gt;&gt; Kontakt","window.open('formular/formular.asp?WCU=100002','BIAG','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,width=668,height=579');");
  fw_menu_0.addMenuItem("&gt;&gt; Kontakt","window.open('karriere/kar_kontakt_pop.asp','BIAG','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,width=668,height=579');");
   fw_menu_0.hideOnMouseOut=true;
  window.fw_menu_1 = new Menu("root",190,20,"Verdana, Arial, Helvetica, sans-serif",10,"#333333","#046683","#F5F5F5","#F5F5F5");
  fw_menu_1.addMenuItem("<B class=navlayer>Investor Relations</B>","location='#'");
  fw_menu_1.addMenuItem("&gt;&gt; Fact Sheet","location='#'");
  fw_menu_1.addMenuItem("&gt;&gt; Kurs Chart","location='#'");
  fw_menu_1.addMenuItem("&gt;&gt; Kontakt / Ansprechpartner","location='#'");
   fw_menu_1.hideOnMouseOut=true;
  window.fw_menu_2 = new Menu("root",199,20,"Verdana, Arial, Helvetica, sans-serif",10,"#333333","#046683","#F5F5F5","#F5F5F5");
  fw_menu_2.addMenuItem("<B class=navlayer>Presse</B>","location='javascript:void(0)'");
 // fw_menu_2.addMenuItem("&gt;&gt; Pressemeldungen","window.open('presse/f_pre_pressemeldungen.html','BIAG','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,width=670,height=600');");
  fw_menu_2.addMenuItem("&gt;&gt; Presseverteiler","window.open('presse/pre_presseverteiler_pop.asp','BIAG','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,width=668,height=579');");
  fw_menu_2.addMenuItem("&gt;&gt; Bildarchiv","window.open('presse/pre_bildarchiv.asp', '_top');");
  //fw_menu_2.addMenuItem("&gt;&gt; Kontakt","window.open('presse/pre_kontakt_pop.asp','BIAG','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,width=668,height=579');");
  fw_menu_2.addMenuItem("&gt;&gt; Kontakt","window.open('http://www.bbikg.de/html/presse/pressekontakt.php?flash=on&js=','_blank');");
   fw_menu_2.hideOnMouseOut=true;
  window.fw_menu_3 = new Menu("root",190,20,"Verdana, Arial, Helvetica, sans-serif",10,"#333333","#046683","#F5F5F5","#F5F5F5");
  fw_menu_3.addMenuItem("<B class=navlayer>Immobilien Vermietung</B>","location='javascript:void(0)'");
  fw_menu_3.addMenuItem("&gt;&gt; Vermietung","window.open('objekte/obj_mietobjekte.asp', '_top');");
  fw_menu_3.addMenuItem("&gt;&gt; Projekte","window.open('objekte/obj_projekte.html', '_top');");
  fw_menu_3.addMenuItem("&gt;&gt; Kontakt","window.open('objekte/obj_kontakt_pop.asp','BIAG','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,width=668,height=579');");
  fw_menu_3.addMenuItem("<B class=navlayer>Immobilien Verkauf</B>","location='javascript:void(0)'");
  fw_menu_3.addMenuItem("&gt;&gt; Allgemeine Infos","window.open('objekte/obj_infos.html', '_top');");
  fw_menu_3.addMenuItem("&gt;&gt; Kontakt","window.open('objekte/obj_infos_pop.asp','BIAG','toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,width=668,height=579');");
  fw_menu_3.hideOnMouseOut=true;
  window.fw_menu_4 = new Menu("root",260,20,"Verdana, Arial, Helvetica, sans-serif",10,"#333333","#046683","#F5F5F5","#F5F5F5");
  fw_menu_4.addMenuItem("<B class=navlayer>Unternehmen</B>","location='javascript:void(0)'")
  fw_menu_4.addMenuItem(" &gt;&gt; Bayerische Hausbau","window.open('http://www.neue.hausbau.de/', '_blank');");
  fw_menu_4.addMenuItem(" &gt;&gt; Profil","window.open('unternehmen/unt_profil_01.html', '_top');");
  fw_menu_4.addMenuItem("&gt;&gt; Standorte","window.open('unternehmen/unt_zentrale.html', '_top');");
   fw_menu_4.hideOnMouseOut=true;

  fw_menu_4.writeMenus();
  
} // fwLoadMenus()

//Druckfunktion
function custom_print() {
    if (document.all) {
        if (navigator.appVersion.indexOf("5.0") == -1) {
            var OLECMDID_PRINT = 6;
            var OLECMDEXECOPT_DONTPROMPTUSER = 2;
            var OLECMDEXECOPT_PROMPTUSER = 1;
            var WebBrowser = "<OBJECT ID=\"WebBrowser1\" WIDTH=0 HEIGHT=0 CLASSID=\"CLSID:8856F961-340A-11D0-A96B-00C04FD705A2\"></OBJECT>";
            document.body.insertAdjacentHTML("beforeEnd", WebBrowser);
            WebBrowser1.ExecWB(6, 2);
            WebBrowser1.outerHTML = "";
        } else {
            self.print();
        }
    } else {
        self.print();
    }
}

//Openwindow
function openNewWindow(link, title, x, y, resizable, m_bar, l_bar, s_bars, status)
{
	var x_new;
	var y_new;
	var bname = navigator.appName;
	if (bname == "Netscape")
	{
		x_new = x + 18;
		y_new = y + 25;
		options = "width=" + x_new + ",height=" + y_new + ",resizable=" + resizable + ",menubar=" + m_bar + ",locationbar=" + l_bar + ",scrollbars=" + s_bars + ",status=" + status;
	}
	else
	{
		options = "width=" + x + ",height=" + y + ",resizable=" + resizable + ",menubar=" + m_bar + ",locationbar=" + l_bar + ",scrollbars=" + s_bars + ",status=" + status;
	}
	window.open(link, title, options);
}


	

											  
