// (c) 2002-2005 sitegeist media solutions GmbH
// Autor: Alexander Bohndorf
var mainMenu; //globale Variable, die durch createMenu gesetzt wird
function printMe()
{
if (window.print)
{
if (!((navigator.appVersion.indexOf('MSIE')!=-1)&&(navigator.appVersion.indexOf('Mac')!=-1)))
window.print();
else
window.alert('Drucken über diesen Link wird von Ihrem Browser leider nicht unterstützt.\nBitte benutzen Sie den Druckbutton Ihres Browsers.');
}
else
window.alert('Drucken über diesen Link wird von Ihrem Browser leider nicht unterstützt.\nBitte benutzen Sie den Druckbutton Ihres Browsers.');
}
function mailPage()
{
var strUrl;
// window.alert('Diese Funktion steht leider momentan noch nicht zur Verfügung.'); return;
if (parent)
{
strUrl = "/index_com_forward.php?url=" + escape(location.href);
location.href = strUrl;
}
}
/* Funktionen zum dynamischen Positionieren von Layern */
function DOMGetElement(o) {
if (document.getElementById) return document.getElementById(o);
else if (document.all) return document.all[o];
else if (document.layers) return document.layers[o];
return null;
}
function DOMWindowGetXOffset() {
if (document.all) return document.body.scrollLeft;
else if (document.getElementById) return window.pageXOffset;
else if (document.layers) return window.pageXOffset;
}
function DOMWindowGetYOffset() {
if (document.all) return document.body.scrollTop;
else if (document.getElementById) return window.pageYOffset;
else if (document.layers) return window.pageYOffset;
}
function DOMElementSetTopPos(o,val) {
if (document.getElementById) o.style.top = val;
else if (document.all) o.style.top = val;
else if (document.layers) o.pageY = val;
}
function DOMElementSetLeftPos(o,val) {
if (document.getElementById) o.style.left = val;
else if (document.all) o.style.left = val;
else if (document.layers) o.pageX = val;
}
function DOMWindowGetInnerWidth() {
if (document.all) return document.body.clientWidth;
else if (document.getElementById) return window.innerWidth;
else if (document.layers) return window.innerWidth;
}
function DOMWindowGetInnerHeight() {
if (document.all) return document.body.clientHeight;
else if (document.getElementById) return window.innerHeight;
else if (document.layers) return window.innerHeight;
}
function DOMElementGetHeight(o) {
if (document.all) return o.clientHeight;
else if (document.getElementById) return parseInt(o.offsetHeight);
else if (document.layers) return o.document.height;
}
function DOMElementGetWidth(o) {
if (document.all) return o.clientWidth;
else if (document.getElementById) return parseInt(o.offsetWidth);
else if (document.layers) return o.document.width;
}
function showLeftGreenBorder() {
// Zeigt die Fortsetzung des linken grünen Rahmens links nach Ende des Hintergrundbildes an.
var o = DOMGetElement('divLinkerRand');
if (o) {
// DOMElementSetLeftPos(o, DOMWindowGetXOffset() + DOMWindowGetInnerWidth() - DOMElementGetWidth(o) - 20);
DOMElementSetLeftPos(o, 0);
yPos = DOMWindowGetYOffset() + DOMWindowGetInnerHeight() - DOMElementGetHeight(o);
if (yPos < 1200) yPos = 1200;
DOMElementSetTopPos(o, yPos);
setTimeout('showLeftGreenBorder()',10);
}
}
/* --------------------------------------------------- */
function layerInit()
{
page = new lib_doc_size();
layerFlash = new lib_obj('divFlash');
layerImg = new lib_obj('divImg');
}
function writeSwf(obj,swfFile,width,height)
{
swfFile = swfFile + '?url1=&win1=_self&url2=&win2=_self&url3=&win3=_self&url4=&win4=_self&go=2';
out = '\n';
obj.writeIt(out);
}
function getBrowser()
{
if (navigator.appName.indexOf('Microsoft Internet Explorer')!=-1) return("ie");
if (navigator.appName.indexOf('Netscape')!=-1) return("ns");
if (navigator.appName.indexOf('Opera')!=-1) return("op");
return("other");
}
function getVersion()
{
if(getBrowser()!='ie')
return(parseFloat(navigator.appVersion.substr(0,navigator.appVersion.indexOf(' '))));
else
{
elems =navigator.appVersion.split(";");
for(i=0; i < elems.length; i++)
if(elems[i].toLowerCase().indexOf("msie")!=-1)
{
return(parseFloat(elems[i].substr(elems[i].toLowerCase().indexOf('msie ')+5,5)));
}
return(0);
}
}
function BrowserSupportsDHTMLoverFlash()
{
if(document.ids)x='ns4';
else if( document.all && !document.getElementById )x='ie4';
else if( window.opera && !document.createElement )x='op5';
else if( window.opera && window.getComputedStyle ) {
if(document.createRange)x='op7.6';
else if(window.navigate)x='op7.5';
else x='op7.2'; }
else if( window.opera && document.compatMode )x='op7';
else if( window.opera && document.releaseEvents )x='op6';
else if( document.contains && !window.opera )x='kq3';
else if( window.getSelection && window.atob )x='nn7';
else if( window.getSelection && !document.compatMode )x='nn6';
else if( window.clipboardData && document.compatMode )x='ie6';
else if( window.clipboardData ){x='ie5';
if( !document.createDocumentFragment ) x+='.5';
if( document.doctype && !window.print ) x+='m';}
else if( document.getElementById && !document.all ) x='op4';
else if( document.images && !document.all ) x='nn3';
else x='other';
return (x=='ie5.5' || x=='ie6' || x=='nn7');
}
function getOS()
{
if (navigator.appVersion.indexOf("Win")!=-1) return("win");
if (navigator.appVersion.indexOf("Mac")!=-1) return("mac");
return("other");
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0; a && i < a.length && (x=a[i]) && x.oSrc; i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i 0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i < d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x && d.layers && i < d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i < (a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function createMenu(bFlashLayer,imgPath,urlBasePath)
{
urlBasePath = ''; //wird nicht mehr benötigt und muß jetzt immer leer sein!
imgPath = ''; //wird nicht mehr benötigt und muß jetzt immer leer sein!
if(bFlashLayer) layerInit();
//Menu object creation
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname
//Menu properties
oCMenu.pxBetween=0;
oCMenu.fromLeft=24;
oCMenu.fromTop=148;
oCMenu.rows=0;
oCMenu.menuPlacement=0;
oCMenu.offlineRoot="";
oCMenu.onlineRoot="";
oCMenu.resizeCheck=1;
oCMenu.wait=1000;
oCMenu.fillImg="/Bilder/cm_fill.gif";
oCMenu.zIndex=0;
//Background bar properties
oCMenu.useBar=1;
oCMenu.barWidth="menu";
oCMenu.barHeight="menu";
oCMenu.barClass="clBar";
oCMenu.barX="menu";
oCMenu.barY="menu";
oCMenu.barBorderX=0;
oCMenu.barBorderY=0;
oCMenu.barBorderClass="";
//Level properties - ALL properties have to be specified in level 0
oCMenu.level[0]=new cm_makeLevel(); //Add this for each new level
oCMenu.level[0].width=103;
oCMenu.level[0].height=22;
oCMenu.level[0].regClass="clLevel0";
oCMenu.level[0].overClass="clLevel0over";
oCMenu.level[0].borderClass="clLevel0border";
oCMenu.level[0].borderX=0;
oCMenu.level[0].borderY=1;
oCMenu.level[0].offsetX=0;
oCMenu.level[0].offsetY=-2;
oCMenu.level[0].rows=0;
oCMenu.level[0].align="right";
oCMenu.level[1]=new cm_makeLevel(); //Add this for each new level (adding one to the number)
oCMenu.level[1].width=180; //oCMenu.level[0].width-2
oCMenu.level[1].height=22;
oCMenu.level[1].regClass="clLevel1";
oCMenu.level[1].overClass="clLevel1over";
oCMenu.level[1].borderClass="clLevel1border";
oCMenu.level[1].style="";
oCMenu.level[1].offsetX=0;
oCMenu.level[1].offsetY=-1;
oCMenu.level[1].borderX=1;
oCMenu.level[1].borderY=1;
oCMenu.level[1].rows=0;
oCMenu.level[1].align="right";
oCMenu.level[1].arrow=imgPath + "/Bilder/menu_arrow.gif";
oCMenu.level[1].arrowWidth=10;
oCMenu.level[1].arrowHeight=9;
/* *****************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout)
************************************ */
oCMenu.makeMenu('about_frosta','','','','','103','22',imgPath + '/Bilder/aboutfrosta.gif',imgPath + '/Bilder/aboutfrosta_over.gif');
oCMenu.makeMenu('about_frosta_data_facts','about_frosta','Data & Facts','/index_com_data_facts.php','','180','',imgPath + '',imgPath + '');
oCMenu.makeMenu('about_frosta_subsidiaries','about_frosta','Subsidiaries','/index_com_subsidiaries.html','','180','',imgPath + '',imgPath + '');
oCMenu.makeMenu('about_frosta_contact','about_frosta','Contact','/index_com_contact_form.htm','','180','',imgPath + '',imgPath + '');
oCMenu.makeMenu('products','','','','','103','22',imgPath + '/Bilder/products.gif',imgPath + '/Bilder/products_over.gif');
oCMenu.makeMenu('products_new_products','products','New products','/index_com_821.htm','','180','',imgPath + '',imgPath + '');
oCMenu.makeMenu('products_ready_meals','products','Ready Meals "Dinner International"','#','','180','40',imgPath + '',imgPath + '');
oCMenu.makeMenu('ready_meals_general','products_ready_meals','General information','/index_com_824.htm','','180','',imgPath + '',imgPath + '');
oCMenu.makeMenu('ready_meals_paella','products_ready_meals','Paella','/index_com_834.htm','','180','',imgPath + '',imgPath + '');
oCMenu.makeMenu('ready_meals_indianchicken','products_ready_meals','Indian Chicken','/index_com_836.htm','','180','',imgPath + '',imgPath + '');
oCMenu.makeMenu('ready_meals_nasigoreng','products_ready_meals','Nasi Goreng','/index_com_838.htm','','180','',imgPath + '',imgPath + '');
oCMenu.makeMenu('ready_meals_steakhouse','products_ready_meals','Steakhouse','/index_com_839.htm','','180','',imgPath + '',imgPath + '');
oCMenu.makeMenu('ready_meals_mexicanchicken','products_ready_meals','Mexican chicken','/index_com_840.htm','','180','',imgPath + '',imgPath + '');
oCMenu.makeMenu('ready_meals_gyros','products_ready_meals','Gyros','/index_com_841.htm','','180','',imgPath + '',imgPath + '');
oCMenu.makeMenu('ready_meals_alpengulasch','products_ready_meals','Noodles and Chicken','/index_com_842.htm','','180','',imgPath + '',imgPath + '');
oCMenu.makeMenu('products_stir_fry','products','Vegetables with sauces','#','','180','',imgPath + '',imgPath + '');
oCMenu.makeMenu('stir_fry_general','products_stir_fry','General Information','/index_com_844.htm','','180','',imgPath + '',imgPath + '');
oCMenu.makeMenu('stir_fry_veggiepanamerican','products_stir_fry','American Style','/index_com_846.htm','','180','',imgPath + '',imgPath + '');
oCMenu.makeMenu('stir_fry_veggiepanitalian','products_stir_fry','Italian Style','/index_com_848.htm','','180','',imgPath + '',imgPath + '');
oCMenu.makeMenu('stir_fry_veggiepanasian','products_stir_fry','Asian Style','/index_com_850.htm','','180','',imgPath + '',imgPath + '');
oCMenu.makeMenu('stir_fry_veggiepangerman','products_stir_fry','Classic Style','/index_com_852.htm','','180','',imgPath + '',imgPath + '');
oCMenu.makeMenu('stir_fry_veggiepanfrench','products_stir_fry','French Style','/index_com_french-style.html','','180','',imgPath + '',imgPath + '');
oCMenu.makeMenu('stir_fry_countrystyle','products_stir_fry','Country Style','/index_com_854.htm','','180','',imgPath + '',imgPath + '');
oCMenu.makeMenu('stir_fry_spinachincreamsauce','products_stir_fry','Spinach in cream sauce','/index_com_spinach-in-cream-sauce.html','','180','',imgPath + '',imgPath + '');
oCMenu.makeMenu('products_fish','products','Fish Products','#','','180','',imgPath + '',imgPath + '');
oCMenu.makeMenu('fish_general','products_fish','General Information','/index_com_858.htm','','230','',imgPath + '',imgPath + '');
oCMenu.makeMenu('fish_fishfingers','products_fish','Fish fingers','/index_com_860.htm','','230','',imgPath + '',imgPath + '');
oCMenu.makeMenu('fish_mexicanfingers','products_fish','Mexican fish fingers','/index_com_862.htm','','230','',imgPath + '',imgPath + '');
oCMenu.makeMenu('fish_steaks','products_fish','Fish steaks','/index_com_864.htm','','230','',imgPath + '',imgPath + '');
oCMenu.makeMenu('fish_fillets','products_fish','Fish fillets','/index_com_866.htm','','230','',imgPath + '',imgPath + '');
oCMenu.makeMenu('fish_captainscoins','products_fish','Captain\'s coins','/index_com_872.htm','','230','',imgPath + '',imgPath + '');
oCMenu.makeMenu('fish_ovenitalian','products_fish','Oven-baked Fish with Italian sauce','/index_com_874.htm','','230','',imgPath + '',imgPath + '');
oCMenu.makeMenu('fish_ovenbroccoli','products_fish','Oven-baked Fish with Broccoli sauce','/index_com_876.htm','','230','',imgPath + '',imgPath + '');
oCMenu.makeMenu('fish_filletdeluxwithcheese','products_fish','Fillet de Lux with cheese','/index_com_fillet-de-lux-with-cheese.html','','230','',imgPath + '',imgPath + '');
oCMenu.makeMenu('fish_filletdeluxwithspinach','products_fish','Fillet de Lux with spinach','/index_com_fillet-de-lux-with-spinach.html','','230','',imgPath + '',imgPath + '');
oCMenu.makeMenu('products_vegetables','products','Vegetables','#','','180','',imgPath + '',imgPath + '');
oCMenu.makeMenu('vegetables_general','products_vegetables','General Information','/index_com_878.htm','','180','',imgPath + '',imgPath + '');
oCMenu.makeMenu('vegetables_broccoli','products_vegetables','Broccoli','/index_com_880.htm','','180','',imgPath + '',imgPath + '');
oCMenu.makeMenu('vegetables_cauliflower','products_vegetables','Cauliflower','/index_com_882.htm','','180','',imgPath + '',imgPath + '');
oCMenu.makeMenu('vegetables_frenchbean','products_vegetables','French bean','/index_com_884.htm','','180','',imgPath + '',imgPath + '');
oCMenu.makeMenu('vegetables_greenpeas','products_vegetables','Green peas','/index_com_886.htm','','180','',imgPath + '',imgPath + '');
oCMenu.makeMenu('vegetables_hawaiimix','products_vegetables','Hawaii mix','/index_com_888.htm','','180','',imgPath + '',imgPath + '');
oCMenu.makeMenu('vegetables_broccolimix','products_vegetables','Broccoli mix','/index_com_890.htm','','180','',imgPath + '',imgPath + '');
oCMenu.makeMenu('vegetables_cauliflowermix','products_vegetables','Cauliflower mix','/index_com_892.htm','','180','',imgPath + '',imgPath + '');
oCMenu.makeMenu('vegetables_stirfrymix','products_vegetables','Stir-fry mix','/index_com_894.htm','','180','',imgPath + '',imgPath + '');
oCMenu.makeMenu('products_chicken','products','Chicken products','#','','180','',imgPath + '',imgPath + '');
oCMenu.makeMenu('general_information_chicken','products_chicken','General information','/index_com_general-information-chicken.html','','180','',imgPath + '',imgPath + '');
oCMenu.makeMenu('chicken_nuggets','products_chicken','Chicken nuggets','/index_com_chicken-nuggets.html','','180','',imgPath + '',imgPath + '');
oCMenu.makeMenu('chicken_wings','products_chicken','Chicken wings','/index_com_chicken-wings.html','','180','',imgPath + '',imgPath + '');
oCMenu.makeMenu('cordon_bleu','products_chicken','Cordon Bleu','/index_com_cordon-bleu.html','','180','',imgPath + '',imgPath + '');
oCMenu.makeMenu('chicken_steaks','products_chicken','Chicken steaks','/index_com_chicken-steaks.html','','180','',imgPath + '',imgPath + '');
oCMenu.makeMenu('imprint','','','/index_com_823.htm','','103','22',imgPath + '/Bilder/imprint.gif',imgPath + '/Bilder/imprint_over.gif');
//Flash-Layer aus-/einblenden (je nach Browser)
if(bFlashLayer)
{
if (!BrowserSupportsDHTMLoverFlash())
{
//Für alle Browser außer IE 5.5 und Mozilla 1.1 oder höher auf Windows:
//sobald die DHTML-Navi kommt, Flash-Movie ausblenden und alternatives
//Bild einblenden, da DHTML over Flash nicht geht, da das Flash-Plugin
//immer im Vordergrund steht
if(!(getOS()=="mac" && getBrowser()=="ie" && getVersion()==5))
{
oCMenu.onshow="layerFlash.hideIt(); layerImg.showIt();";
oCMenu.onhide="layerImg.hideIt(); layerFlash.showIt();";
}
else
{
//IE 5 unter MAC (OS/9) scheint der Flash-Movie auch bei ausgeblendetem Layer
//durch, deshalb hier den HTML-Code des Layers löschen damit Flash weg ist
oCMenu.onshow="layerFlash.writeIt(''); layerImg.showIt();";
oCMenu.onhide="layerImg.hideIt(); writeSwf(layerFlash,'/Bilder/hometrailer.swf',607,279);";
}
}
}
oCMenu.wait = 300;
oCMenu.construct();
mainMenu = oCMenu;
}
function ShowHideFlashLayer(swfFile,width,height)
{
page = new lib_doc_size();
layerFlash = new lib_obj('divFlash');
layerImg = new lib_obj('divImg');
if(!BrowserSupportsDHTMLoverFlash())
{
//Für alle Browser außer IE 5.5 oder höher auf Windows:
//sobald die DHTML-Navi kommt, Flash-Movie ausblenden und alternatives
//Bild einblenden, da DHTML over Flash nicht geht, da das Flash-Plugin
//immer im Vordergrund steht
if(!(getOS()=="mac" && getBrowser()=="ie" && getVersion()==5))
{
mainMenu.onshow="layerFlash.hideIt(); layerImg.showIt();";
mainMenu.onhide="layerImg.hideIt(); layerFlash.showIt();";
}
else
{
//IE 5 unter MAC (OS/9) scheint der Flash-Movie auch bei ausgeblendetem Layer
//durch, deshalb hier den HTML-Code des Layers löschen damit Flash weg ist
mainMenu.onshow="layerFlash.writeIt(''); layerImg.showIt();";
mainMenu.onhide="layerImg.hideIt();";
writeSwf(layerFlash,swfFile,width,height);
}
}
}