var menus = new Array();
var s = 0;
var o3_x = 0;
var o3_y = 0;
var lastMouseOnTick = 0;
var refreshInterval = 1000;
var hideAfter = 1000;
var isNav = navigator.appName == "Netscape";
var isIE = (document.all)? true:false;
function init(){initMenus();updateSlideshowImage();}
function updateSlideshowImage(){};
function initMenus() {menuLoop();}
function getLayer(aLayerName){
if (isNav){
return document.getElementById(aLayerName);
//return document[aLayerName];
}
else{
return document.all ? document.all[aLayerName] : null;
}
}
function hideMenus() {
for (i in menus) {
setLayerVisible(getLayer(menus[i]),false);
}
return false;
}
function leaveMenu() {
s=0;
return false;
}
function menuLoop() {
d = new Date();
currentTick = d.valueOf();
if ((currentTick - lastMouseOnTick) > hideAfter) {
if (s!=1) hideMenus();
}
setTimeout('menuLoop();', refreshInterval);
}
function setLayerVisible(aLayer,vis){
if(aLayer){
if(vis){
if(isNav){
aLayer.visibility="show";
aLayer.style.visibility="visible";
}
else {
aLayer.style.visibility="visible";
}
}
else {
if (isNav){
aLayer.visibility="hide";
aLayer.style.visibility="hidden";
}
else {
aLayer.style.visibility="hidden";
}
}
}
}
function showMenu(pre){
mouseMove(pre);
setLayerVisible(getLayer(pre), true);
d = new Date();
lastMouseOnTick = d.valueOf();
}
function showLevel3Menu(pre) {
mouseMove(pre);
if (o3_x < 20) {
left=15;
}
else {
left=o3_x-15;
}
showMenu(pre);
d = new Date();
lastMouseOnTick = d.valueOf();
}
function pingMenu(){
d = new Date();
lastMouseOnTick = d.valueOf();
s = 1;
return false;
}
function noSubNav() {
setLayerVisible(getLayer('HeaderSubNav'));
}
function repositionTo(obj,xL,yL) {
if (obj.style) {
obj.left = xL;
obj.top = yL;
obj.style.left = xL + "px"; obj.style.top = yL+ "px";
}
}
if (document.captureEvents) {
document.captureEvents(Event.MOUSEMOVE);
}
document.onmouseover = mouseMove;
function mouseMove(e) {
if (isNav) {o3_x=e.pageX; o3_y=e.pageY;};
if (isIE) {o3_x=event.x; o3_y=event.y;};
}
function jClipToIdeaFile(ideaFileId,oid,clipTitle,lnk){
url="/ideafile/index.cfm?action=addClip&ifid=" + ideaFileId + "&clipOid=" + oid + "&clipTitle=" + clipTitle + "&clipLink=" + lnk;
window.location = url;
//options="width=650,height=400,toolbar=no,menubar=no,scrollbars=yes,status=yes,resizable=yes";
//var ideaWindow = window.open(url,'ideaWindow',options);
//ideaWindow.focus();
}
function jOpenIdeaFile(ideaFileId){
url="/ideafile/view.cfm?ifid=" + ideaFileId;
options="width=650,height=400,toolbar=no,menubar=no,scrollbars=yes,status=yes,resizable=yes";
var ideaWindow = window.open(url,'ideaWindow',options);
ideaWindow.focus();
}
function openLocator(){
if ((window.location.pathname+window.location.search) == '/products/product.cfm?oid=E6BF2E1F-68E8-4E93-AED32549BFFA7593')
{
locatorWindow = window.open('/products/locator_cuidh.cfm','MarvinLocator','width=768,height=240,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
}
else
{
locatorWindow = window.open('/locator.cfm','MarvinLocator','width=768,height=435,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
}
}
function openLocator_jp() {
opener.location='/wheretobuy/index.cfm?oid=7A713729-DF7C-4CD9-BC123F6282389A04&country=Japan';
opener.focus();
}
function openIntlLocator(){
//window.open('http://www.international.marvin.com/locator_eng.html','MarvinIntlLocator','width=768,height=535,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
window.location = '/wheretobuy'
}
function openAIRLocator(){
locatorWindow = window.open('http://locate.marvinlocator.com/default.aspx?air=true','MarvinLocator','width=768,height=435,left=100,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
}
function showObjectInPop(oid,method){
window.open('/viewObjectInPop.cfm?oid=' + oid + "&method=" + method,'ObjectPop','width=650,height=520,scrollbars=yes,resizable=yes');
}
function productColors(){
window.open('/products/productColors.cfm','productColors','width=650,height=520,scrollbars=yes,resizable=yes');
}
function openMovie(url){
window.open(url,'MarvinMovie','width=497,height=375,status=yes,menubar=no,scrollbars=no,resizable=no');
}
function openDesignBasics(){
window.open('http://marvin.spectra.martinwilliams.com/3rdParty/TMP_designBasics.cfm','MarvinDesignBasics','width=775,height=435,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
}
function openJobInformation(url) {
options="width=680,height=550,toolbar=no,menubar=no,scrollbars=yes,status=yes,resizable=yes";
var jobWindow = window.open(url,'jobwindow',options);
jobWindow.focus();
}
function submitResumeGeneral(emailID,location) {
options="width=586,height=429,toolbar=no,menubar=no,scrollbars=yes,status=yes,resizable=yes";
var jobWindow = window.open('/whyMarvin/careers/opportunities/submitResume.cfm?emailID=' + emailID + '&location=' + location,'jobwindow',options);
jobWindow.focus();
}
function planOfTheMonth(url) {
options="width=590,height=495,toolbar=no,menubar=no,scrollbars=yes,status=yes,resizable=yes";
var jobWindow = window.open(url,'planOfTheMonth',options);
jobWindow.focus();
}
function openIdeaFile(oid) {
jClipToIdeaFile('default',oid,'Clipping',"");
}
function viewIdeaFile() {
jOpenIdeaFile('default');
}
function popupButton(key,folder,txtA,txtB){
this.normal=new Image(); this.normal.src = "/media/images/nav/subNavPopups/" + folder + "/" + key + ".gif";
this.on = new Image(); this.on.src = "/media/images/nav/subNavPopups/" + folder + "/" + key + "On.gif";
this.icon = new Image(); this.icon.src = "/media/images/nav/subNavPopups/" + folder + "/" + key + "Pic.jpg";
this.text = "" + txtA + "
" + txtB;
this.url = "link.";
}
function headerBottomButton(key){
this.down=new Image(); this.down.src = "/media/images/nav/headerBottomButton/" + key + "/imgDown.gif";
this.on = new Image(); this.on.src = "/media/images/nav/headerBottomButton/" + key + "/imgOn.gif";
this.up = new Image(); this.up.src = "/media/images/nav/headerBottomButton/" + key + "/imgUp.gif";
this.url = "link.";
}
function headerSubNavButton(key,popupId){
this.normal = new Image(); this.normal.src = "/media/images/nav/headerSubNav/" + key + "/img.gif";
this.on = new Image(); this.on.src = "/media/images/nav/headerSubNav/" + key + "/imgOn.gif";
this.url = "link.";
this.popupId = popupId;
}
function headerTopButton(key){
this.down=new Image(); this.down.src = "/media/images/nav/headerTopNav/" + key + "On.gif";
this.on = new Image(); this.on.src = "/media/images/nav/headerTopNav/" + key + "On.gif";
this.up = new Image(); this.up.src = "/media/images/nav/headerTopNav/" + key + ".gif";
this.url = "link.";
}
function normalRollover(offImage,onImage){
this.off =new Image(); this.off.src = offImage;
this.on = new Image(); this.on.src = onImage;
this.url = "link.";
}
headerBottomButtons = new Object();
function headerBottomButtonMouseOver(key){
if(isNav){
document.HeaderBottomNav.document.images[key].src = headerBottomButtons[key].on.src;
} else {
document.images[key].src = headerBottomButtons[key].on.src;
}
}
function headerBottomButtonMouseOut(key){
if(isNav){
document.HeaderBottomNav.document.images[key].src = headerBottomButtons[key].up.src;
} else {
document.images[key].src = headerBottomButtons[key].up.src;
}
}
headerSubNavButtons = new Object();
function headerSubNavMouseOver(key){
if(headerSubNavButtons[key].popupId){
showMenu(headerSubNavButtons[key].popupId);
}else{
hideMenus();
}
if(isNav){
document.HeaderMiddleNav.document.images[key].src=headerSubNavButtons[key].on.src;
} else {
document.images[key].src=headerSubNavButtons[key].on.src;
}
}
function headerSubNavMouseOut(key){
if(headerSubNavButtons[key].popupId){
leaveMenu();
}else{
hideMenus();
}
if(isNav){
document.HeaderMiddleNav.document.images[key].src=headerSubNavButtons[key].normal.src;
} else {
document.images[key].src=headerSubNavButtons[key].normal.src;
}
}
headerTopNavButtons = new Object();
function headerTopMouseOver(key){
if(isNav){
document.HeaderTopNav.document.images[key].src = headerTopNavButtons[key].down.src;
} else {
document.images[key].src = headerTopNavButtons[key].down.src;
}
}
function headerTopMouseOut(key){
if(isNav){
document.HeaderTopNav.document.images[key].src = headerTopNavButtons[key].up.src;
} else {
document.images[key].src = headerTopNavButtons[key].up.src;
}
}
rollovers = new Object();
function rollOver(key){
document.images[key].src = rollovers[key].on.src;
}
function rollOut(key){
document.images[key].src = rollovers[key].off.src;
}
popupButtons = new Object();
function popMouseOver(key,popup){
if(isNav){
document[popup + 'Popup'].document.images[key].src = popupButtons[key].on.src;
document[popup + 'Popup'].document.images[popup + 'Icon'].src = popupButtons[key].icon.src;
} else {
document.images[key].src = popupButtons[key].on.src;
document.images[popup + 'Icon'].src = popupButtons[key].icon.src;
}
popText( popupButtons[key].text, popup );
pingMenu();
}
function popMouseOut(key,popup){
if(isNav){
document[popup + 'Popup'].document.images[key].src = popupButtons[key].normal.src;
document[popup + 'Popup'].document.images[popup + 'Icon'].src = "/media/images/nav/subNavPopups/" + popup + ".gif";
} else {
document.images[key].src = popupButtons[key].normal.src;
document.images[popup + 'Icon'].src = "/media/images/nav/subNavPopups/" + popup + ".gif";
}
leaveMenu();
popText(0,popup);
}
function popText(txt,popup){
if(txt){
if(isNav){
} else {
eval("document.all." + popup + "Popup.document.all." + popup + "Dynamic.innerHTML = '" + popTextTable(txt) + "'\;");
}
} else {
if(isNav){
} else {
eval("document.all." + popup + "Popup.document.all." + popup + "Dynamic.innerHTML = '" + popTextTable(" ") + "'\;");
}
}
}
function popTextTable(txt){
return '
| ' + txt + ' |