//jdj-2007-12-14-for com.tmo.tracking function track_event(uri) { track(uri); } function trackEvent(uri) { track(uri); } function track(uri) { //alert(uri); //trackWebtrends(uri); ts_trackAll(uri); } function dcsFlashTrack(uri) { track(uri); } // To prevent error (not sure what this used to do) function trackAll(uri) {} //window.onload = init; function init() { initRollOvers(); initSubNav(); initFadeTile(); initTableRollover(); } function navigateToUrl(url) { window.location = url; } /*----------------------------------------- Pop-up window -----------------------------------------*/ function popUpWindow(url) { if (url.indexOf("/ID/") > 0) { window.open(url,"SidekickIdDemo","height=415,width=705,resizable=no,scrollbars=yes,toolbar=no,status=no,menubar=1,resizable=1"); } else if (url.indexOf("buynow") >= 0) { window.open(url,"SidekickBuyNow","height=332,width=705,resizable=no,scrollbars=yes,toolbar=no,status=no,menubar=0,resizable=1"); } else { window.open(url,"Sidekick3Demo","height=450,width=730,resizable=no,scrollbars=yes,toolbar=no,status=no,menubar=1,resizable=1"); } } /*----------------------------------------- Rollover Fade -----------------------------------------*/ /* Fx.FadeHoverLink = Fx.Style.extend({ initialize: function(el, options) { options.wait = false; this.parent(el, 'opacity', options); this.set(0.01); this.element.addEvent('mouseover', function() { this.custom(0.01,1); }.bind(this) ); this.element.addEvent('mouseout', function() { this.custom(1,0.01); }.bind(this) ); } }); function initRollOvers() { $$('.bvFadeLink').each( function(el) { if (el.id != pageName + "_link") // Skip active page el.fl = new Fx.FadeHoverLink(el,{duration:300}); } ); } */ /*----------------------------------------- Elements (sub_navigation) -----------------------------------------*/ /* function initSubNav(){ var szNormal = 181, szSmall = 135, szFull = 364; var sub_navigation = $$("#sub_navigation .tile"); var fx = new Fx.Elements(sub_navigation, {wait: false, duration: 220, transition: Fx.Transitions.quadOut}); sub_navigation.each(function(subnav, i) { subnav.addEvent("mouseenter", function(event) { var o = {}; if (i != 4){ o[i] = {width: [subnav.getStyle("width").toInt(), szFull]} } sub_navigation.each(function(other, j) { var w = other.getStyle("width").toInt(); if(i != j && i != 4) { if(w != szSmall) o[j] = {width: [w, szSmall]}; } else if (i == 4){ // All should be normal o[j] = {width: [w, szNormal]}; } }); fx.start(o); }); }); var subNav = $("sub_navigation"); subNav.addEvent("mouseleave", function(event) { var o = {}; sub_navigation.each(function(subnav, i) { o[i] = {width: [subnav.getStyle("width").toInt(), szNormal]} }); fx.start(o); }) } */ /* function initSubNav(){ var szNormal = 181, szSmall = 135, szFull = 364; var sub_navigation = $$("#sub_navigation .tile"); var fx = new Fx.Elements(sub_navigation, {wait: false, duration: 220, transition: Fx.Transitions.quadOut}); sub_navigation.each(function(subnav, i) { subnav.addEvent("mouseenter", function(event) { var o = {}; o[i] = {width: [subnav.getStyle("width").toInt(), szFull]} sub_navigation.each(function(other, j) { if(i != j) { var w = other.getStyle("width").toInt(); if(w != szSmall) o[j] = {width: [w, szSmall]}; } }); fx.start(o); }); }); var subNav = $("sub_navigation"); subNav.addEvent("mouseleave", function(event) { var o = {}; sub_navigation.each(function(subnav, i) { o[i] = {width: [subnav.getStyle("width").toInt(), szNormal]} }); fx.start(o); }) } /*----------------------------------------- Sub Navigation Fade -----------------------------------------*/ /* Fx.FadeHoverTile = Fx.Style.extend({ initialize: function(el, options) { options.wait = false; this.parent(el, 'opacity', options); this.set(1); this.element.addEvent('mouseover', function() { this.custom(1,0.01); }.bind(this) ); this.element.addEvent('mouseout', function() { this.custom(0.01,1); }.bind(this) ); } }); function initFadeTile() { $$('.tile').each( function(el) { el.fl = new Fx.FadeHoverTile(el,{duration:400}); } ); } */ /*----------------------------------------- Events pg table row rollover -----------------------------------------*/ /* function initTableRollover() { $$('tr.tblrow').each(function(tr){ tr.addEvents({ mouseover : function(){ this.addClass('tblrow_over'); }, mouseout : function(){ this.removeClass('tblrow_over'); }, click : clickRow }); }); } function clickRow(e) { var target = e.currentTarget; // For IE if (!target) { // Find the actual target var el = e.srcElement; if (el.nodeName == "TR") target = el; else if (el.parentNode.nodeName == "TR") { target = el.parentNode; } else if (el.parentNode.parentNode.nodeName == "TR") { target = el.parentNode.parentNode; } } window.location = target.getAttribute("href"); } */