var ready = false; var pL = ""; var yW = 1; var qN = 1; if (document.images) { images_on = new Array(); images_off = new Array(); } function swapon (image, source) { if ((document.images) && (ready)) { image.src = images_on[source].src; } return false; } function swapoff (image, source) { if ((document.images) && (ready)) { image.src = images_off[source].src; } return false; } function Layer (name) { if (document.getElementById) { return document.getElementById(name); } if (document.all) { return document.all[name]; } if (document.layers) { if (document.layers[name]) { return document.layers[name]; } if (document[name]) { return document[name]; } } return false; } function LayerHide (name) { wH = Layer(name); if (wH) { wH.style.visibility = 'hidden'; wH.style.display = 'none'; } } function LayerShow (name) { wH = Layer(name); if (wH) { wH.style.visibility = 'visible'; wH.style.display = 'block'; } } function prep(sX, sN) { qN = sN; if (document.images) { preload = new Array('', 'events_info', 'book_your_event', 'stadium_info', 'dining', 'hall_of_fame', 'pro_shop', 'contact_us', 'packers_sites', 'h/sn', 'tickets'); for (var i=1; i= total) { ready = true; qU(sX); } else { setTimeout('pauseload(\'' + sX + '\');', 300); } } function qU (sX) { if (sX == 'inside') { setTimeout('qL(\'' + sX + '\');', 5000); } else { setTimeout('qL(\'' + sX + '\');', 10000); } } function qL (sX) { qY = qN + 1; if (qY > 9) { qY = 1; } Layer('q1').style.backgroundImage = 'url(http://i.lambeaufield.com/i/' + sX + '_main' + qY + '.jpg)'; qN = qY; qM = 100; qR(sX); } function qR (sX) { qM = qM - 2; if (qM > 0) { if (qM < 10) { qV = '0' + qM; } else { qV = qM; } qTwo = Layer('q2');qTwo.style.opacity = '.' + qV; qTwo.style.filter = 'alpha(opacity=' + qN + ')'; setTimeout('qR(\'' + sX + '\');', 1); } else { Layer('q2').src = 'http://i.lambeaufield.com/i/' + sX + '_main' + qN + '.jpg'; Layer('q2').style.opacity = '1.00'; Layer('q2').style.filter = 'alpha(opacity=100)'; qU(sX); } } function bC (bL, bH) { bL.style.backgroundColor = '#' + bH; } function rD (rO, rB, rC, rU) { rO.style.backgroundColor = '#' + rB; if (rU == 1) { Layer(rC).style.textDecoration = 'underline'; Layer(rC).style.color = '#007000'; } else { Layer(rC).style.textDecoration = 'none'; Layer(rC).style.color = '#000000'; } } function gL (gH) { gW = false; gN = true; if (navigator.appName == "Netscape") { if (event.modifiers != undefined) { gN = false; gS = (event.modifiers+32).toString(2).substring(3,6); if (gS.charAt(0) == "1") { gW = true; } else if (gS.charAt(2) == "1") { gW = true; } } } if (gN) { if (event.altKey) { gW = true; } else if (event.shiftKey) { gW = true; } else if (event.metaKey) { gW = true; } } if (gW) { return gM(gH); } else { location.href = gH; return false; } } function subNav () { sA = new Array (); sA[1] = new Array( 'events_info', 'calendar_of_events', 'Calendar of Events', 'LZ_lambeau', 'LZ Lambeau', 'packers_game_tickets', 'Packers Game Tickets' ); sA[2] = new Array( 'book_your_event', 'corporate', 'Corporate', 'nonprofit', 'Nonprofit', 'social_events', 'Social Events', 'weddings', 'Weddings', 'rooms', 'Room List', 'gameday_packages', 'Gameday Packages' ); sA[3] = new Array( 'stadium_info', 'atrium', 'Atrium', 'a_to_z_guide', 'A-Z Guide', 'brick_sale', 'Brick Sale', 'cams', 'Cams', 'directions', 'Directions', 'fan_conduct', 'Fan Code of Conduct', 'gameday_information', 'Gameday Information', 'history', 'History', 'miller_lite_end_zone', 'Miller Lite End Zone', 'parking', 'Parking', 'seating_diagram', 'Seating Diagram', 'stadium_tours', 'Stadium Tours', '360_degree_photos', '360° Photos' ); sA[4] = new Array( 'dining', 'curlys_pub', 'Curly\'s Pub', 'curlys_game_zone', 'Curly\'s Game Zone', 'seasonal_eateries', 'Seasonal Eateries' ); sA[5] = new Array( 'hall_of_fame', 'visit_the_hall_of_fame', 'Visit the Hall of Fame', 'educational_lambeau_field_trips', 'Educational Lambeau Field Trips', 'group_package_information', 'Group Packages', 'american_spirit', 'Pro Football and the American Spirit', 'scout_patch_program', 'Scout Patch Program', 'videos', 'Videos', 'golf_classic', 'Golf Classic', 'board_of_directors', 'Board of Directors', 'induction_banquet', 'Induction Banquet', 'inductees', 'Inductees', 'sponsors', 'Sponsors', 'hof_prints_for_sale', 'Store' ); sA[6] = new Array( 'pro_shop' ); sA[7] = new Array( 'contact_us', 'gameday_packages', 'Gameday Packages', 'group_package_information', 'Group Package Information', 'reservations', 'Reservations' ); sA[8] = new Array( 'site', 'packers.com', 'Packers.com', 'lambeaufield.com', 'Lambeau Field', 'packersproshop.com', 'Packers Pro Shop', 'packerstrainingcamp.com', 'Training Camp' ); for (sB=1; sB 1) { sW = Layer('d' + sB); if (sW) { if (sB == 8) { sD = 133; sT = ' target="_blank"'; } else { sD = 176; sT = ''; } sH = ''; for (sI=1; sI 1) { sH = sH + ''; } sH = sH + ''; sH = sH + ''; } sH = sH + ''; sH = sH + '
'; sH = sH + '
' + sA[sB][sI+1] + '
'; sW.innerHTML = sH; } } } } function getCoordinates (name) { x = new Array(); i = Layer(name); if (i) { h = 28; o = 19; if (name == 'n96') { h = 16; j = -1; } else if (name == 'n1') { j = -1; } else if (name == 'n8') { j = -1; h = 16; } else { j = -3; } if (i.y) { x[0] = i.y + h; x[1] = i.x + j; } else { x[0] = i.offsetTop + h; x[1] = i.offsetLeft + j; if (!window.attachEvent) { x[1] += o; } i = i.parentElement; while(i != null){ x[0] += i.offsetTop; x[1] += i.offsetLeft; i=i.offsetParent; } } } else { x[0] = 0; x[1] = 0; } return x; } function sL (name) { if (pL != 'd' + name) { cL(); lL = Layer('d' + name); if (lL) { pL = 'd' + name; iL = getCoordinates('n' + name); if (iL[0] > 0) { if (iL[1] > 0) { lL.style.top = iL[0]; lL.style.left = iL[1]+ 1; lL.style.visibility = 'visible'; lL.style.display = 'block'; } } } } } function cL () { if (pL.length > 0) { l = Layer(pL); if (l) { q = pL.substr(1, pL.length - 1); w = Layer('n' + q); if (w) { if (q == '96') { swapoff(w, 9); } else { swapoff(w, q); } } l.style.visibility = 'hidden'; l.style.display = 'none'; pL = ""; } } } function yL (yN, yF, yH) { for (yI=1; yI<=yH; yI++) { if (yF) { LayerHide('y' + yI); LayerHide('x' + yI); LayerHide('a' + yI + 'o'); LayerShow('a' + yI + 'f'); } else if (yI == yN) { LayerHide('y0'); LayerHide('x0'); LayerShow('y' + yI); LayerShow('x' + yI); LayerHide('a' + yI + 'f'); LayerShow('a' + yI + 'o'); //yW = yI; } else { LayerHide('y' + yI); LayerHide('x' + yI); LayerHide('a' + yI + 'o'); LayerShow('a' + yI + 'f'); } } if (yF) { LayerShow('y0'); LayerShow('x0'); } return false; } function yN (yD, yG) { if (yW == undefined) { yW = 1; } yW = yW + yD; if (yW < 1) { yW = yG; } else if (yW > yG) { yW = 1; } for (yI=1; yI<=yG; yI++) { if (yI == yW) { LayerShow('g' + yI); } else { LayerHide('g' + yI); } } return false; //return yL(yW, false); } function qtvr_pop (url, group, smaller) { if (smaller == true) { var qtvrsmall = window.open('/stadium_info/360_degree_photos/view/?qtvr=' + url + '&group=' + group + '&smaller=true', "PackersQTVR", "top=100,left=100,height=319,width=460,status,resizable"); } else { var qtvr = window.open('/stadium_info/360_degree_photos/view/?qtvr=' + url + '&group=' + group, "PackersQTVR", "top=100,left=100,height=359,width=460,status,resizable"); } } function openWin(url,name) { self.name = "main"; popupWin = window.open(url,name,"resizable=1,toolbar=0,width=410,height=410,scrollbars=0"); } if ((!document.all) && (document.getElementById)) { document.captureEvents(Event.MOUSEMOVE); //document.addEventListener("mousemove",mouseMove,false); } document.onmousemove=mouseMove; function mouseMove (e) { if ((!document.all) && (document.getElementById)) { event = e; } if (pL.length > 0) { u = true; if (event.srcElement) { q = true; i = event.srcElement; } else { q = false; i = event.target; } r = ''; while ((i != null) && (u)) { if (i.tagName != null) { if (i.tagName == 'DIV') { u = false; if (i.id.substr(0, 1) == 'd') { u = false; } else { cL(); } } else if (i.id != null) { if (i.id == 'content') { u = false; cL(); } else if (i.id.length > 0) { u = false; } } } if (i.parentElement != null) { i = i.parentElement; } else if (i.parentNode != null) { i = i.parentNode; } else { i = null; } } if (u) { cL(); } } }