﻿function rollImage(a, b) { a.src = b.src } function populateInputBox(a, b) { if (a.value.replace(/^\s+|\s+$/g, "") == "") a.value = b } function clearInputBox(a, b) { if (a.value == b) a.value = "" } function submitSearch(a) { var b = parent.document.URL; if (b.indexOf("us/en") != -1) window.location = "/us/en/sitesearch/index.aspx?q=" + encodeURI(a); else if (b.indexOf("gb/en") != -1) window.location = "/gb/en/sitesearch/index.aspx?q=" + encodeURI(a); else if (b.indexOf("jp/ja") != -1) window.location = "/jp/ja/sitesearch/index.aspx?q=" + encodeURI(a); else if (b.indexOf("cn/zh") != -1) window.location = "/cn/zh/sitesearch/index.aspx?q=" + encodeURI(a); return false } function processEnterKey(a) { var a = a ? a : event ? event : null; var b = a.target ? a.target : a.srcElement ? a.srcElement : null; if (a.keyCode == 13) { if (b.name == "searchInputBox") { submitSearch(document.forms[0].searchInputBox.value) } else if (b.name == "q") { submitSearch(document.forms[0].q.value) } else if (b.name == "gmaps") { searchCine() } return false } return true } function popSurvey() { var a = getIEVersionNumber(); var b = "600"; if (a > 7) { b = "620" } webVal = RC("IPERCEPTIONS_563"); if (webVal === null || webVal === undefined) { webVal = true } else { webVal = false } if (exitWebSite && MSIEOffset && webVal) { CC("dolbyExit", true, 1); url = "http://ai-collect01.iperceptions.com/study734/start.aspx?sessionID=1&lang=1&tagLang=1&re=1&tagre=1&drive=C&compCode=279&SDate=1/26/2009&surveyID=734&UGRandomTags=0&RQRandomQs=0&RQStart=0&RQEnd=10&UGQualifyingQNumber=1&indicator=4.2&multiplier=1.4&compName=&referrer="; var c = window.open(url, "Dolby", "toolbar=no,personalbar=no,location=no,directories=no,status=no,menubar=nos,scrollbars=no,resizable=no,width=610,height=" + b + ",top=200,left=250"); c.focus() } } function getIEVersionNumber() { var a = navigator.userAgent; var b = a.indexOf("MSIE "); if (b == -1) { return 0 } else { return parseFloat(a.substring(b + 5, a.indexOf(";", b))) } } function CC(a, b, c) { if (c) { var d = new Date; d.setTime(d.getTime() + c * 24 * 60 * 60 * 1e3); var e = "; expires=" + d.toUTCString() } else var e = ""; document.cookie = a + "=" + b + e + "; path=/" } function RC(a) { if (document.cookie.length > 0) { begin = document.cookie.indexOf(a + "="); if (begin != -1) { begin += a.length + 1; end = document.cookie.indexOf(";", begin); if (end == -1) end = document.cookie.length; return unescape(document.cookie.substring(begin, end)) } } return null } $(document).ready(function() { $("html").addClass("js"); $(".countrySelectBoxData").sSelect().change(function() { exitWebSite = false }) })
