function trackEvent(actionType,elementName,downloadPath){ switch (actionType){ case "directDownload": _gaq.push(['_trackEvent', 'homePage', 'download', elementName]); setTimeout(function () { document.location.href = "http://www.whitesmoke.com/postDownload/"; }, 4000); break; case "onclickDownload": _gaq.push(['_trackEvent', 'homePage', 'download', elementName]); setTimeout(function () { document.location.href = "http://www.whitesmoke.com/postDownload/"; }, 4000); document.location.href = downloadPath; break; case "thirdPartyDownload": _gaq.push(['_trackEvent', 'homePage', 'download', elementName]); break; case "buy": _gaq.push(['_trackEvent', 'homePage', 'buy', elementName]); break; default: _gaq.push(['_trackEvent', 'homePage', 'download', elementName]); } } function rollOver(element) { for( var x = 0; element.childNodes[x]; x++ ) { if( element.childNodes[x].tagName == 'UL' ) element.childNodes[x].style.display = 'block'; } } function rollOut(element) { for( var x = 0; element.childNodes[x]; x++ ) { if( element.childNodes[x].tagName == 'UL' ) element.childNodes[x].style.display = 'none'; } } (function() { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'https://apis.google.com/js/plusone.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); })();