function loadframe(){
if(window.location.replace)
window.frames.frame.location.replace(get('framepage'));
else
window.frames.frame.location.href=get('framepage');
}
function get(key_str) {
var query = window.location.search.substr(1);
var pairs = query.split("&");
for(var i = 0; i < pairs.length; i++) {
var pair = pairs[i].split("=");
if(unescape(pair[0]) == key_str)
return unescape(pair[1]);
}
return null;
}
if (location.search&&get('framepage')!=null)
if ( typeof window.addEventListener != "undefined" )
    window.addEventListener( "load", loadframe, false );
else if ( typeof window.attachEvent != "undefined" )
    window.attachEvent( "onload", loadframe );
else {
    if ( window.onload != null ) {
        var oldOnload = window.onload;
        window.onload = function ( e ) {
            oldOnload( e );
            loadframe();
        };
    }
    else
        window.onload = loadframe;
}


var advancemenu={divclass:'anylinkmenu', inlinestyle:'width:250px; background:#E8E8FF', linktarget:'_frame'} //First menu variable. Make sure "anylinkmenu1" is a unique name!
advancemenu.items=[
	["Robotic 'Advance Transfer", "advance/rat.html"],
	["Robotic Hatch Tray & Chick Box Handling", "hatch/boxtraybot.html"],
	["Robotic Setter Rack Unloading/Reloading", "hatch/rsr.html"],
	["Washdown Grade Robotics", "processing/washbot.html"]
]



var transfermenu={divclass:'anylinkmenu', inlinestyle:'width:270px; background:#E8E8FF', linktarget:'_frame'} //Second menu variable. Same precaution.
transfermenu.items=[
	["Robotic Advance Transfer", "advance/rat.html"],
	["Setter Rack Egg Unloader", "hatch/ru.html"],
	["Setter Rack Egg Reloader", "hatch/rr.html"],
	["Transfer Machine (Flat to Tray)", "hatch/etm.html"],
	["Rack to Rack Egg Flat Transfer", "hatch/r2r.html"],
	["Robotic Multipiece Flat Unloading/Reloading", "hatch/rsr.html"]//no comma following last entry!
]



var chickmenu={divclass:'anylinkmenu', inlinestyle:'width:200px; background:#E8E8FF', linktarget:'_frame'} //Third menu variable. Same precaution.
chickmenu.items=[
	["High Speed Counters", "hatch/counter.html"],
	["Chick Box Destacker", "hatch/boxde.html"],
	["Chick Box Restacker", "hatch/boxre.html"],
	["Robotic Full Chick Box Palletizing", "hatch/rsmithway.html"],
	["Chick Box Washer", "wash/box.html"],
	["Chick Box Conveyors", "hatch/conveyor.html"] //no comma following last entry!
]


var takemenu={divclass:'anylinkmenu', inlinestyle:'width:250px; background:#E8E8FF', linktarget:'_frame'} //Second menu variable. Same precaution.
takemenu.items=[
	["Chick/Shell Separators", "hatch/sep.html"],
	["Robotic Full Hatch Tray Unstacking", "hatch/trayun.html"],
	["Robotic Empty Hatch Tray Restacking", "hatch/trayre.html"],
	["Hatch Tray Washers", "hatch/traywash.html"],
	["Live Chick Conveyor", "hatch/conveyor.html"],
	["Macerators/Upright Macerator", "hatch/macerator.html"]//no comma following last entry!
]

var washmenu={divclass:'anylinkmenu', inlinestyle:'width:130px; background:#E8E8FF', linktarget:'_frame'} //Second menu variable. Same precaution.
washmenu.items=[
	["Hatch Tray Washers", "hatch/traywash.html"],
	["Chick Box Washers", "wash/box.html"],
	["Dolly Washers", "wash/dolly.html"],
	["Rack Washers", "wash/rack.html"],
	["Turbo Blowers", "wash/blower.html"]//no comma following last entry!
]

var wastemenu={divclass:'anylinkmenu', inlinestyle:'width:180px; background:#E8E8FF', linktarget:'_frame'} //Second menu variable. Same precaution.
wastemenu.items=[
	["Integrated Vacuum System", "#"],
	["Holding Tanks", "hatch/vacuum.html"],
	["Macerators/Upright Macerator", "hatch/macerator.html"]
]
