diff --git a/zefie_wtvp_minisrv/app.js b/zefie_wtvp_minisrv/app.js index 2ec431fd..daf8d916 100644 --- a/zefie_wtvp_minisrv/app.js +++ b/zefie_wtvp_minisrv/app.js @@ -50,21 +50,19 @@ function validateAudioProxy() { }); if (check.error || check.status !== 0) { - console.warn(`AudioProxy disabled: ffmpeg not found or failed to execute at '${wtvAudioProxy.config.ffmpegPath}'.`); - if (check.error) console.warn(`AudioProxy ffmpeg error: ${check.error.message}`); + console.warn(` # AudioProxy disabled: ffmpeg not found or failed to execute at '${wtvAudioProxy.config.ffmpegPath}'.`); + if (check.error) console.warn(` # AudioProxy ffmpeg error: ${check.error.message}`); wtvAudioProxy.config.enabled = false; return; } - console.log(`AudioProxy enabled: transcoding audio to ${wtvAudioProxy.config.bitrate} ${wtvAudioProxy.config.sampleRate}Hz mono MP3.`); + console.log(` * AudioProxy enabled: transcoding audio to ${wtvAudioProxy.config.bitrate} ${wtvAudioProxy.config.sampleRate}Hz mono MP3.`); } catch (error) { - console.warn(`AudioProxy disabled: ffmpeg validation failed: ${error.message}`); + console.warn(` # AudioProxy disabled: ffmpeg validation failed: ${error.message}`); wtvAudioProxy.config.enabled = false; } } -validateAudioProxy(); - process .on('SIGTERM', shutdown('SIGTERM')) .on('SIGINT', shutdown('SIGINT')) @@ -2487,6 +2485,8 @@ else console.log(" * Shenanigans disabled"); if (minisrv_config.config.image_decoder.enabled) console.log(" * WebTV Unsupported images will be processed and converted for WebTV clients"); else console.log(" * WebTV Unsupported images will not be processed, and sent to client as-is"); +validateAudioProxy(); + ports.sort(); pc_ports.sort(); diff --git a/zefie_wtvp_minisrv/generate_msn_san_cert.js b/zefie_wtvp_minisrv/generate_msn_san_cert.js new file mode 100644 index 00000000..f88b5584 --- /dev/null +++ b/zefie_wtvp_minisrv/generate_msn_san_cert.js @@ -0,0 +1,172 @@ +'use strict'; + +const fs = require('fs'); +const path = require('path'); +const forge = require('node-forge'); + +const workspaceRoot = __dirname; +const httpsDir = path.join(workspaceRoot, 'includes', 'ServiceDeps', 'https'); +const msnDir = path.join(workspaceRoot, 'includes', 'ServiceDeps', 'msntv2'); +const domainsFile = path.join(msnDir, 'msn_domains.txt'); + +const defaultCaCertPath = path.join(msnDir, 'msntv2.crt'); +const defaultCaKeyPath = path.join(msnDir, 'msntv2.key'); +const defaultOutCertPath = path.join(msnDir, 'msn_domains.crt'); +const defaultOutKeyPath = path.join(msnDir, 'msn_domains.key'); + +function parseArgs(argv) { + const out = {}; + for (let i = 2; i < argv.length; i++) { + const part = argv[i]; + if (!part.startsWith('--')) continue; + const key = part.slice(2); + const next = argv[i + 1]; + if (!next || next.startsWith('--')) { + out[key] = true; + continue; + } + out[key] = next; + i += 1; + } + return out; +} + +function extractDomainsFromRedirectMap(text) { + const found = []; + const seen = new Set(); + const re = /"([A-Za-z0-9.-]+\.)"\s*:\s*self\.redirect_ip/g; + let match; + while ((match = re.exec(text))) { + const clean = match[1].replace(/\.$/, '').toLowerCase(); + if (!seen.has(clean)) { + seen.add(clean); + found.push(clean); + } + } + return found; +} + +function loadDomains(args) { + if (args['from-map-file']) { + const mapText = fs.readFileSync(path.resolve(workspaceRoot, args['from-map-file']), 'utf8'); + const domains = extractDomainsFromRedirectMap(mapText); + if (!domains.length) { + throw new Error('No domains were extracted from --from-map-file.'); + } + return domains; + } + + if (!fs.existsSync(domainsFile)) { + throw new Error('Domain file not found: ' + domainsFile); + } + + const domains = fs.readFileSync(domainsFile, 'utf8') + .split(/\r?\n/) + .map((s) => s.trim().toLowerCase()) + .filter((s) => s && !s.startsWith('#')); + + return Array.from(new Set(domains)); +} + +function loadPemOrThrow(filePath, label) { + if (!fs.existsSync(filePath)) { + throw new Error(label + ' file missing: ' + filePath); + } + return fs.readFileSync(filePath, 'utf8'); +} + +function ensureDirFor(filePath) { + const dir = path.dirname(filePath); + if (!fs.existsSync(dir)) { + fs.mkdirSync(dir, { recursive: true }); + } +} + +function signAlgorithm(sigName) { + const lower = String(sigName || 'sha1').toLowerCase(); + if (lower === 'sha256') return forge.md.sha256.create(); + if (lower === 'sha384') return forge.md.sha384.create(); + if (lower === 'sha512') return forge.md.sha512.create(); + return forge.md.sha1.create(); +} + +function generateCert({ domains, caCertPem, caKeyPem, outCertPath, outKeyPath, years, sig }) { + const caCert = forge.pki.certificateFromPem(caCertPem); + const caKey = forge.pki.privateKeyFromPem(caKeyPem); + + const keys = forge.pki.rsa.generateKeyPair(2048); + const cert = forge.pki.createCertificate(); + cert.publicKey = keys.publicKey; + cert.serialNumber = forge.util.bytesToHex(forge.random.getBytesSync(16)); + + const now = new Date(); + cert.validity.notBefore = new Date(now.getTime() - 24 * 60 * 60 * 1000); + cert.validity.notAfter = new Date(now.getTime() + years * 365 * 24 * 60 * 60 * 1000); + + const cn = domains[0] || 'headwaiter.trusted.msntv.msn.com'; + cert.setSubject([ + { name: 'commonName', value: cn }, + { name: 'organizationName', value: 'Zefie Networks' }, + { name: 'countryName', value: 'US' } + ]); + cert.setIssuer(caCert.subject.attributes); + + cert.setExtensions([ + { name: 'basicConstraints', cA: false }, + { name: 'keyUsage', digitalSignature: true, keyEncipherment: true }, + { name: 'extKeyUsage', serverAuth: true }, + { + name: 'subjectAltName', + altNames: domains.map((d) => ({ type: 2, value: d })) + } + ]); + + cert.sign(caKey, signAlgorithm(sig)); + + ensureDirFor(outCertPath); + ensureDirFor(outKeyPath); + fs.writeFileSync(outKeyPath, forge.pki.privateKeyToPem(keys.privateKey), 'utf8'); + fs.writeFileSync(outCertPath, forge.pki.certificateToPem(cert), 'utf8'); + + return { cn, count: domains.length }; +} + +function main() { + const args = parseArgs(process.argv); + + const caCertPath = path.resolve(workspaceRoot, args['ca-cert'] || defaultCaCertPath); + const caKeyPath = path.resolve(workspaceRoot, args['ca-key'] || defaultCaKeyPath); + const outCertPath = path.resolve(workspaceRoot, args['out-cert'] || defaultOutCertPath); + const outKeyPath = path.resolve(workspaceRoot, args['out-key'] || defaultOutKeyPath); + const years = Number(args.years || 15); + const sig = String(args.sig || 'sha1'); + + const domains = loadDomains(args); + const caCertPem = loadPemOrThrow(caCertPath, 'CA cert'); + const caKeyPem = loadPemOrThrow(caKeyPath, 'CA key'); + + const result = generateCert({ + domains, + caCertPem, + caKeyPem, + outCertPath, + outKeyPath, + years, + sig + }); + + console.log('[msn-san-cert] generated cert:', outCertPath); + console.log('[msn-san-cert] generated key :', outKeyPath); + console.log('[msn-san-cert] domains :', result.count); + console.log('[msn-san-cert] common name :', result.cn); + console.log('[msn-san-cert] signature alg :', sig); +} + +if (require.main === module) { + try { + main(); + } catch (err) { + console.error('[msn-san-cert] error:', err.message); + process.exit(1); + } +} diff --git a/zefie_wtvp_minisrv/includes/ServiceDeps/msntv2/msn_domains.crt b/zefie_wtvp_minisrv/includes/ServiceDeps/msntv2/msn_domains.crt new file mode 100644 index 00000000..3e1cedd8 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceDeps/msntv2/msn_domains.crt @@ -0,0 +1,36 @@ +-----BEGIN CERTIFICATE----- +MIIGSTCCBTGgAwIBAgIQlHjGEAhkTTLRsnsDQ/FBODANBgkqhkiG9w0BAQUFADBw +MQswCQYDVQQGEwJVUzELMAkGA1UECAwCT0gxEzARBgNVBAcMCkJ1dHQgQ3JhY2sx +IDAeBgNVBAoMF1VuZGVyd2VhciBJbnNwZWN0b3IgIzEyMR0wGwYDVQQLDBRUaGlu +ZyBMb29rZXIgRXhwZXJ0czAeFw0yNjA0MzAxMjI0MzFaFw00MTA0MjcxMjI0MzFa +MD4xFjAUBgNVBAMTDWVwaXgueGJveC5jb20xFzAVBgNVBAoTDlplZmllIE5ldHdv +cmtzMQswCQYDVQQGEwJVUzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB +ALcVrQ2E2OiR8JJ2WFZVvrN1hrM2vusykN/59GZ5DuIQEQlDC3UZw0Utu/gnTwqh +GScJ2xkCrW2znTl/Dnst2sppy+PghIJBORM/M5CViKuSezpekribgUBFUbF9udSF +WqfdEnxwd51v/hVS753hL2pT+BbzMgalAmxGFLREf1Hu4loQu9bo8I8hhwFRCTd1 +JMqQ8QMxG5l+tV6u52SwDWAkMdSL9Tqh0mun38hhZWUCkGCCSpjUmL2PzWfdH7K1 +GXw+VtA48gidkjahChlNuuMu7w2fJdbfZtSITYimd5yQ19sStlr5lZ/tNyHOvokL +xBZ4HUSk9xePKyVe2s1nEU0CAwEAAaOCAw8wggMLMAkGA1UdEwQCMAAwCwYDVR0P +BAQDAgWgMBMGA1UdJQQMMAoGCCsGAQUFBwMBMIIC2gYDVR0RBIIC0TCCAs2CDWVw +aXgueGJveC5jb22CEXhlYXMueGJveGxpdmUuY29tgg14ZWFzLnhib3guY29tghJ4 +ZXRncy54Ym94bGl2ZS5jb22CD2FzLnhib3hsaXZlLmNvbYIUYXMucGFydC54Ym94 +bGl2ZS5jb22CEHRncy54Ym94bGl2ZS5jb22CFXRncy5wYXJ0Lnhib3hsaXZlLmNv +bYITeGVtYWNzLnhib3hsaXZlLmNvbYIRbWFuaWZlc3QueGJveC5jb22CEW1hY3Mu +eGJveGxpdmUuY29tghZtYWNzLnBhcnQueGJveGxpdmUuY29tghdwaWZsYy5wYXJ0 +Lnhib3hsaXZlLmNvbYIQZXBsaXN0cy54Ym94LmNvbYIScGlmbGMueGJveGxpdmUu +Y29tghBiZWFjb25zLnhib3guY29tghlzZzQudHJ1c3RlZC5tc250di5tc24uY29t +ghlzZzMudHJ1c3RlZC5tc250di5tc24uY29tghlzZzIudHJ1c3RlZC5tc250di5t +c24uY29tghlzZzEudHJ1c3RlZC5tc250di5tc24uY29tgg1tc250di5tc24uY29t +ghZtYWlsLnNlcnZpY2VzLmxpdmUuY29tgiBoZWFkd2FpdGVyLnRydXN0ZWQubXNu +dHYubXNuLmNvbYIec3luYy1zZzEudHJ1c3RlZC5tc250di5tc24uY29tgg5sb2dp +bi5saXZlLmNvbYIRcG9wdGltaXplLm1zbi5jb22CEWZhdm9yaXRlcy5tc24uY29t +ghFtZXNzZW5nZXIubXNuLmNvbYIRbGl2ZWZpbGVzdG9yZS5jb22CFnVzZXJzLnN0 +b3JhZ2UubGl2ZS5jb22CCWcubXNuLmNvbYIXbXNuaWFsb2dpbi5wYXNzcG9ydC5j +b22CEGNsb3VkLnJlZml2ZS5kZXaCE3Byb2Qucm9zLnJlZml2ZS5kZXYwDQYJKoZI +hvcNAQEFBQADggEBACKaL3Pl9893HrDj6mAM5Ac3qoD0wCfxws8H7oiabzHr4PgA +rZKoV8NS5qwoi1B1Tr/EZJct0gtjBdp+x8GRZ3j+UgkPhTEi32kXG8HLDRaaXIhW +i7LpjMs3zk6uATXNuPfjuFs6yh66H8Qj44MXgYT66xLLVKYsrm2CSjDiajfhpr5x +HL2oEJUJfqoGTxaxz8zAdiDCVjTkJ0zxyv6vGsVo0TgVggOEfJiYMSqBlJ/j7wBj ++mfRsB8d735QhJOMdABMDLj0DIG6HoMM2gvR2ayeuTtSf1x36doyadDmNYDXyIqI +Vica5k3jkRJ/4IIBf8Ghakh1e+4r6hI692sxePA= +-----END CERTIFICATE----- diff --git a/zefie_wtvp_minisrv/includes/ServiceDeps/msntv2/msn_domains.key b/zefie_wtvp_minisrv/includes/ServiceDeps/msntv2/msn_domains.key new file mode 100644 index 00000000..816506e3 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceDeps/msntv2/msn_domains.key @@ -0,0 +1,27 @@ +-----BEGIN RSA PRIVATE KEY----- +MIIEogIBAAKCAQEAtxWtDYTY6JHwknZYVlW+s3WGsza+6zKQ3/n0ZnkO4hARCUML +dRnDRS27+CdPCqEZJwnbGQKtbbOdOX8Oey3aymnL4+CEgkE5Ez8zkJWIq5J7Ol6S +uJuBQEVRsX251IVap90SfHB3nW/+FVLvneEvalP4FvMyBqUCbEYUtER/Ue7iWhC7 +1ujwjyGHAVEJN3UkypDxAzEbmX61Xq7nZLANYCQx1Iv1OqHSa6ffyGFlZQKQYIJK +mNSYvY/NZ90fsrUZfD5W0DjyCJ2SNqEKGU264y7vDZ8l1t9m1IhNiKZ3nJDX2xK2 +WvmVn+03Ic6+iQvEFngdRKT3F48rJV7azWcRTQIDAQABAoIBAAueAf2WHOdg/0lj +3gYYacHcZsAvbJzi+ANmSmZILzQT/ei/CtaS3Gui08cSw3ayszRhcTgcjeGkoIjZ +8ZLKXZQzc18Ry4ayWctJWt3FR0dPw6b4AkpZf7GS1HS1PBnqnk6Bfh9MSaLBTPeQ +bCjx9X7DNj5KjzWRud4h8kVgBU4vBTAU1Pu+j5yiepMnmasT/O4JQ6OZ0roc3Mr4 +1MiEfNk33Qi88xsIeKcfqVS43vJzowUj6yF+zADTMSWr/Ij5xhHCdqSR0CFyX42Q +GrNFfcWQ9veFcL9b9+tTp575F8HNFa50ULCrk9wjMPsGk1aMztfF5EZamGyDvf/0 +m2OGmjcCgYEA7eS8J76LDI8YS6Ijccu4FJRz9a+fPDOxkVmzbQKb2ErEpTWXdQX8 +s2sk3W4EnMfMEZ9IJ0rm+LhaZZbKmiCL6lCJSIAhsQBdpHMJ/EUX1gDmv3I3/Ie7 +pa9cMnxNQG2plWvKXorjP87ho1X2WmXtmaJc/oWR5x07Rtm/McZpCi8CgYEAxQUD +AbMBIKf3zB+bHmmTBFQkkt3GnCWGyF2nH85REX0e5SOOyAxJicXq3WSZkHtRjYMl +nxuy/ReyEU0zgWr9Qgl6PZ7EoJbS74W+IPth0KB9ZzJ6gXIP4k7n5lBMXbIpEaU9 +n2DE43w2I6Zxl98F0z91Bsi/WoViDMJl/M2eSUMCgYAKDR0KDNnxKOac43fd6f6Y +GAGiQs5Wi9SX0JNtKqwNAnO2i0If9qXLqt4+4NQfD64GnJU+28JQhfGD01AyHOfs +eYSjZI6H3P0X4qhsWTr9lsIpGplU+SMrh/I8S9Yzv65nmstNHU8mtgYAkbQ784yL +bjnBo0Eb47dKcg7K+pgbjwKBgHMDM/gf+T6JD30XzkP4uZxDSn55/OFWftIk6dUF +agndktWM5mMd2SgWY78OZR8U/kywDJxPXTOmS4sSGEkqneGZCsVCE+LzaPvuhUlX +tohFyC8gJqe+YEtqaLHomkvwH01vuwN5SDbMYgZ5ucJArXPejYCCXEKJru1n5oWn +uwllAoGAD2W5Ims1iR/qWEzQoiSBOvDJdsQWLJwGWlZ1/bUZ5FK3VlhhNMuJv5PC +wJhSSW3GECt0SxS+z4QtjFATPMO5hdoo9H6WN+Kx14vAjJbX+8jLBS3EhVZkv6b3 +aAjJgd9LMbAh9H+CAiYf9QjKfSL7ueIjzf4CHfovj8bk5PPlVSA= +-----END RSA PRIVATE KEY----- diff --git a/zefie_wtvp_minisrv/includes/ServiceDeps/msntv2/msn_domains.txt b/zefie_wtvp_minisrv/includes/ServiceDeps/msntv2/msn_domains.txt new file mode 100644 index 00000000..3f448f75 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceDeps/msntv2/msn_domains.txt @@ -0,0 +1,34 @@ +epix.xbox.com +xeas.xboxlive.com +xeas.xbox.com +xetgs.xboxlive.com +as.xboxlive.com +as.part.xboxlive.com +tgs.xboxlive.com +tgs.part.xboxlive.com +xemacs.xboxlive.com +manifest.xbox.com +macs.xboxlive.com +macs.part.xboxlive.com +piflc.part.xboxlive.com +eplists.xbox.com +piflc.xboxlive.com +beacons.xbox.com +sg4.trusted.msntv.msn.com +sg3.trusted.msntv.msn.com +sg2.trusted.msntv.msn.com +sg1.trusted.msntv.msn.com +msntv.msn.com +mail.services.live.com +headwaiter.trusted.msntv.msn.com +sync-sg1.trusted.msntv.msn.com +login.live.com +poptimize.msn.com +favorites.msn.com +messenger.msn.com +livefilestore.com +users.storage.live.com +g.msn.com +msnialogin.passport.com +cloud.refive.dev +prod.ros.refive.dev diff --git a/zefie_wtvp_minisrv/includes/ServiceDeps/msntv2/msntv2.crt b/zefie_wtvp_minisrv/includes/ServiceDeps/msntv2/msntv2.crt new file mode 100644 index 00000000..a815ed34 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceDeps/msntv2/msntv2.crt @@ -0,0 +1,23 @@ +-----BEGIN CERTIFICATE----- +MIIDwzCCAqugAwIBAgIULL+4ofEIwgHwoGgoEJ+mJOmeF4YwDQYJKoZIhvcNAQEF +BQAwcDELMAkGA1UEBhMCVVMxCzAJBgNVBAgMAk9IMRMwEQYDVQQHDApCdXR0IENy +YWNrMSAwHgYDVQQKDBdVbmRlcndlYXIgSW5zcGVjdG9yICMxMjEdMBsGA1UECwwU +VGhpbmcgTG9va2VyIEV4cGVydHMwIBcNMDAwNDIwMDAwMDAxWhgPMjA2OTA2MDkw +MDAwMDFaMHAxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJPSDETMBEGA1UEBwwKQnV0 +dCBDcmFjazEgMB4GA1UECgwXVW5kZXJ3ZWFyIEluc3BlY3RvciAjMTIxHTAbBgNV +BAsMFFRoaW5nIExvb2tlciBFeHBlcnRzMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A +MIIBCgKCAQEArN5xb8PqUKNNTitGuxyJJxEsWTIt7t7eobSq1+V3hTpknJEspRpb +JeD5Ep86pWn4aGoWYT0JU9w4FRJFPaBPAMmLFTIYv1bySlFwna+5J67dAtMm59Pr +t3ZSw2dQpads3LGZRSpkY1mv9GC2TVVk/TANWZmWYvEZZ4/2E2YuMJZ6v6gNIY7Y +pfJ6F6Q4+d/Dgrvow4E35lmNuM0Y95sdMhKy8HTJ0ecU/bMLKyoXXZyt7LxezT+T +w3J2EDVV03lDXZhb0h2ZECmpCAgnKsQ/WmLMjEGeojDQnm+QzTaFHqO0148RMbYN +lxURCZVl+keYe1LTHW/K+2f58DeeI0z11wIDAQABo1MwUTAdBgNVHQ4EFgQU0bsp +ZOhtJGP0dLS4sdaA4nmQ5ocwHwYDVR0jBBgwFoAU0bspZOhtJGP0dLS4sdaA4nmQ +5ocwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQUFAAOCAQEANAV1WNeCggjK +eb8kIGkt2R3PMMBy2w+rC4X80xygh+NHU5neJKM1lpq6NLkt5rCBXNCTDb5uPjRv +mcrGeIYJYXMy39htjlYgPtfUiQx7e7eq3g1mMHYN26Gr9p7BwJW0QVvaA6zB3lqt +HGL7hwQyBCD9P/0sR91sjyLF9mPkaO4sBM5EbrV89LXbD+OPqn10X2Mu4trI3bd4 +R02Pl0A/rDO/S7bOGc4HGGPSsmgeoapydvkqgnXL497zD1Sv103n96hiuq4Dhurj +gfnGxQvEN7MCc31HE2ufkTHjNc62RatseiCLxJE3sBhMl9aaNEhtM3FNDXZnhMbs +0/7C2b5kSg== +-----END CERTIFICATE----- diff --git a/zefie_wtvp_minisrv/includes/ServiceDeps/msntv2/msntv2.dhp b/zefie_wtvp_minisrv/includes/ServiceDeps/msntv2/msntv2.dhp new file mode 100644 index 00000000..64882ce8 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceDeps/msntv2/msntv2.dhp @@ -0,0 +1,5 @@ +-----BEGIN DH PARAMETERS----- +MIGHAoGBAOjeZEDvMxiY+T4AMUIJ6jPFhflzUwO6EPBc0+Fn3C13WGQgsx9N3Rjg +bZsF4Sbqs62+KFTYb5/1PVPSOxyif0CJLRC8VhvCl5CZ2DsS6nJ3sstPxtfhQdn+ +X1kbvqAbHlvNtE6w5ketHv3gK6y4d9qdVnwicZW3uV1sJ2dg4RfDAgEC +-----END DH PARAMETERS----- diff --git a/zefie_wtvp_minisrv/includes/ServiceDeps/msntv2/msntv2.key b/zefie_wtvp_minisrv/includes/ServiceDeps/msntv2/msntv2.key new file mode 100644 index 00000000..e940f805 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceDeps/msntv2/msntv2.key @@ -0,0 +1,28 @@ +-----BEGIN PRIVATE KEY----- +MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCs3nFvw+pQo01O +K0a7HIknESxZMi3u3t6htKrX5XeFOmSckSylGlsl4PkSnzqlafhoahZhPQlT3DgV +EkU9oE8AyYsVMhi/VvJKUXCdr7knrt0C0ybn0+u3dlLDZ1Clp2zcsZlFKmRjWa/0 +YLZNVWT9MA1ZmZZi8Rlnj/YTZi4wlnq/qA0hjtil8noXpDj538OCu+jDgTfmWY24 +zRj3mx0yErLwdMnR5xT9swsrKhddnK3svF7NP5PDcnYQNVXTeUNdmFvSHZkQKakI +CCcqxD9aYsyMQZ6iMNCeb5DNNoUeo7TXjxExtg2XFREJlWX6R5h7UtMdb8r7Z/nw +N54jTPXXAgMBAAECggEAN5W7IfX8FPu9csIllyrAyygRe4jQDjvpmFNwj8VAHj29 +dj6T/W6xGkfxrtQ2VlPxxRk/ovquUiHAgr4CN6OhY55qs2ENZhD+DXmMXZfQUHtA +o5TjsK2K4M4SJLTG0M06CuisYPoVl4CSPGEQnWM0+tiFombpXV0rDwrSVECJ36Mr +x/HPoMJQPewBSI4lG2ACQMBmQ+7WQVwl0mprJjIFJYW9BXFRkqmFKSXq6G302VcH +VOjiSOF/8BR64worbo9UrpPBPMLZMAW1rwZx50Chwhplben8B2uQNSqrc7Q9ZA3C +2XJ8Wi0KCeYmJy+xng3LT22Sdme1UC8YfC9iCsHfaQKBgQDe3sN97UK+WVIgvA8Q ++4+rpkUWOy/dCoTzPuxHy4qSTHyF723+URyVkNF/P5EtwKwpIuJ/WMwIyUF0EqLQ +0+6HrmqfO5CR+p/2xJhFPHi1qn3uCM8pw5O9i5MjhOr1jM1RQz1xe0rToLiTlq3x +sSrYzDmIs61kBH2NKaVp38Oh5QKBgQDGkObMw8Gyn5JT1ewkS0VGDT5bbVK5sptJ +KTkaikKTuNV5RLya+7SxnR7rOBWWLN+ZpdQygM8IlUh0TJiTZazUkKUSNv3isIbF +rfak10q8Zad6RkaQyyH7GKhBOnMs0z3kqgL0SvNhoIs2KKsE46UoMVE49/C9Ma8Y +zbdEBLTtCwKBgQCRJc934d/IDHAadZ/yVYOaLO1trxpbARDZQq+rinozEbE/oVGn +gbf2CJ0IHKQ2gfcdy2Rrv68SQdBpAgIbswr0Prmd/rMG/4zSr/LjlKCg3+qn7gDN +mFxN4+ruBRDo3syREhOgJsXy0gejx0x9zf6ztz35M9vG+c2y896Q93R3qQKBgA/e +AmN4fSD9+V5zqMQZs7ZuVn5N1R97s0b8YVDKnZlaWsyu/ndQB9dtm8vmFmuCuHd5 +teQ3QNQJwdlxSXv10wLFcDttY4pa2tovFZeEkLdPVDvEI91sLhH3nXJg7lU1qCt+ +nm/REXPKtXUleM0SN99nWXs47ObhcoGD5tIroh2TAoGBAISazlBBrmnNOavnUzWa +Ka2uXk/2txan8Fh9jul0g6GPPsI7Ej3YMf3ccC9iotVugteHrBUK0cNbesydw3J0 +PIs05XLX0curxoTox2Jeynq+ajy2tnmrDHDfilXdxRt2rsQlobZi3qoJskwPFYhf +ssL5LnP78Pv/t2H01jDSpZXu +-----END PRIVATE KEY----- diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/headwaiter/connection/kickstart.aspx.js b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/headwaiter/connection/kickstart.aspx.js new file mode 100644 index 00000000..1693bd19 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/headwaiter/connection/kickstart.aspx.js @@ -0,0 +1,76 @@ +const minisrv_service_file = true; + +headers = `200 OK +Content-type: text/html`; + +data = ` + + + + + + + + +`; \ No newline at end of file diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Common/Images/1x1.gif b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Common/Images/1x1.gif new file mode 100644 index 00000000..4c395396 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Common/Images/1x1.gif differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Home/Home.aspx.js b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Home/Home.aspx.js new file mode 100644 index 00000000..50e4443a --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Home/Home.aspx.js @@ -0,0 +1,528 @@ +const minisrv_service_file = true; + +// Weather placeholder (static defaults — no live API) +const WeatherCity = 'Your City'; +const WeatherTemp = '72'; +const WeatherDescription = 'Sunny'; +const WeatherIcon = '/Pages/Home/Weather/26.gif'; + +// News headlines +const NewsLink1 = 'http://sg1.trusted.msntv.msn.com/Pages/Tricks/he.mp3'; +const NewsLink2 = 'http://sg1.trusted.msntv.msn.com/Pages/Tricks/pokemon-black-2.mp3'; +const NewsLink3 = 'http://sg1.trusted.msntv.msn.com/Pages/Tricks/he.mp3'; +const NewsTitle1 = 'Ryder Smells'; +const NewsTitle2 = 'Ryder Smells'; +const NewsTitle3 = 'Ryder Smells'; + +headers = `200 OK +Content-type: text/html`; + +data = ` + + +Home + + + + + + + + + + + + + +
+
+ + +
+ +
+ + +
+ + + + +
+
+
+ +
+ + + + + +
+ + +
+ + + +
+ +
+ +
+ + +
+ +
+ +
+ +
+ + +
+ +
+ + + Using MSN TV + + Sign Out + + Account + + Settings + + + + + + + +
Help + +
+ +
+
+
+
+ + +
+ +
+
+ Promotional Image +
+
+
+
+
+ +
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + +
+ ${WeatherCity} +
+ + + + + + + +
+ ${WeatherTemp}°F +
+ ${WeatherDescription} +
+
+ Weather icon +
+ Open-Meteo +
+
+ +
+
+ + +
+
+ + +
+
Today on TV2
+ + + + +
${NewsTitle1}
${NewsTitle2}
${NewsTitle3}
+
+ + + + +
More MSN news
+
+
+ + + +
+ +
+
+ +
+
+
+ + + + + + + + + +
Search or type www
+
+
+
+
+
+ +
+ + + + +
+ + + + +
+ + + + + +
+ +
+
+
+
+ + + +
+ + `; diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Home/Home.razor b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Home/Home.razor new file mode 100644 index 00000000..267b04ae --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Home/Home.razor @@ -0,0 +1,629 @@ +@page "/Pages/Home/Home.aspx" +@using MSNTV2MainServer.Components.Layout +@using Microsoft.AspNetCore.Http +@using Microsoft.AspNetCore.Components +@using MSNTV2MainServer.Components.APIs +@inject IHttpContextAccessor httpContextAccessor + +@layout EmptyLayout + +@if (IsTV2) +{ + + MarkupString htmlContent = new MarkupString($@" + + + +Home + + + + + + + + + + + + + +
+ +
+ + + +
+ + +
+ + +
+ + + + +
+
+
+ +
+ + + + + +
+ + +
+ + + +
+ +
+ +
+ + +
+ +
+ +
+ +
+ + +
+ +
+ + + Using MSN TV + + Sign Out + + Account + + Settings + + + + + + + +
Help + +
+ +
+
+
+
+ + +
+ + +
+
+ +
+
+
+
+
+ + + +
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + +
+ {@Weather.City} +
+ + + + + + + +
+ {@Weather.Temp}°F +
+ {Weather?.Description} +
+
+ +
+ Open-Meteo +
+
+ +
+
+ + + +
+
+ + + +
+
Today on TV2
{NewsTitle1}
{NewsTitle2}
{NewsTitle3}
More MSN news
+
+ +
+
+ + + + +
Using MSN TV
Tip: Turn on audible dialing
Get better printing results
+
+ +
+ +
+Go to Using MSN TV +
+
+ +
+
+ + +
+ +
+ + +
+ + + + +
+
+
+ + + + +
+ +Search or type www +
+
+
+ + +
+ + + + +
+ + + + +
+ + + + + +
+ +
+
+
+
+ + + +
+ + + + "); + + @((MarkupString)htmlContent) +} +else +{ + Home +

Hello, world!

+ +} + +@code { + string userAgent { get; set; } + bool IsTV2 = false; + + // News + string NewsLink1 = "http://sg1.trusted.msntv.msn.com/Pages/Tricks/he.mp3"; + string NewsLink2 = "http://sg1.trusted.msntv.msn.com/Pages/Tricks/pokemon-black-2.mp3"; + string NewsLink3 = "http://sg1.trusted.msntv.msn.com/Pages/Tricks/he.mp3"; + string NewsTitle1 = "Ryder Smells"; + string NewsTitle2 = "Ryder Smells"; + string NewsTitle3 = "Ryder Smells"; + + // Weather mock + WeatherData Weather = new WeatherData + { + City = "San Jose", + Temp = "72", + Description = "Sunny", + Icon = "/Pages/Home/Weather/26.gif" + }; + + // Date data + DateData date = new DateData(); + + protected override void OnInitialized() + { + var request = httpContextAccessor.HttpContext?.Request; + IsTV2 = request != null && SecurityHandler.IsMsnTvClient(request) && SecurityHandler.IsTrustedDomain(request); + } + + + class WeatherData + { + public string City { get; set; } + public string Temp { get; set; } + public string Description { get; set; } + public string Icon { get; set; } + } + + class DateData + { + public string date { get; } + + public DateData() + { + date = DateTime.Now.ToString("dddd, MMMM d"); + } + } +} diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Home/MoneyModule.aspx.js b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Home/MoneyModule.aspx.js new file mode 100644 index 00000000..fada87d7 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Home/MoneyModule.aspx.js @@ -0,0 +1,127 @@ +const minisrv_service_file = true; + +headers = `200 OK +Content-type: text/html`; + +data = ` + + + + + + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Dow +
+
+54.11
Nasdaq +
+
+6.31
S&P +
+
+3.19
Source: MSN Money
+ + + + +`; diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Home/MoneyModule.razor b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Home/MoneyModule.razor new file mode 100644 index 00000000..a33809d7 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Home/MoneyModule.razor @@ -0,0 +1,164 @@ +@page "/Pages/Home/MoneyModule.aspx" +@using MSNTV2MainServer.Components.Layout +@using Microsoft.AspNetCore.Http +@using Microsoft.AspNetCore.Components; +@inject IHttpContextAccessor httpContextAccessor + + +@layout EmptyLayout + + +@if (IsTV2) +{ + MarkupString htmlContent = new MarkupString($@" + + + + + + + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Dow +
+
+54.11
Nasdaq +
+
+6.31
S&P +
+
+3.19
Source: MSN Money
+ + + + + +"); + + @((MarkupString)htmlContent) +} + +else +{ + Home +} + +@code +{ + string userAgent { get; set; } + bool IsTV2 = false; + + + + protected override void OnInitialized() + { + userAgent = httpContextAccessor.HttpContext.Request.Headers["User-Agent"]; + + //Check if the client is an MSNTV2 box. If it is, we should return the TV2 page and not the Blazor based Page. + if(userAgent.Contains("MSNTV")) + { + IsTV2 = true; + StateHasChanged(); + } + } +} diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Home/WeatherModule.aspx.js b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Home/WeatherModule.aspx.js new file mode 100644 index 00000000..e22368fe --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Home/WeatherModule.aspx.js @@ -0,0 +1,104 @@ +const minisrv_service_file = true; + +headers = `200 OK +Content-type: text/html`; + +data = ` + + + + + + +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Your City
+ + + + + + + + + +
63°/50
Mostly
Cloudy
+
The Weather Channel ®
+
+ + + + +`; diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Home/WeatherModule.razor b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Home/WeatherModule.razor new file mode 100644 index 00000000..348c1aa8 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Home/WeatherModule.razor @@ -0,0 +1,166 @@ +@page "/Pages/Home/WeatherModule.aspx" +@using MSNTV2MainServer.Components.Layout +@using Microsoft.AspNetCore.Http +@using Microsoft.AspNetCore.Components; +@inject IHttpContextAccessor httpContextAccessor + + +@layout EmptyLayout + + +@if (IsTV2) +{ + + MarkupString htmlContent = new MarkupString($@" + + + + + + + +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Your City
+ + + + + + + + + +
63°/50
Mostly
Cloudy
+
The Weather Channel ®
+
+ + + + + +"); + + @((MarkupString)htmlContent) +} + +else +{ + Home + +

Hello, world!

+ +} + +@code +{ + string userAgent { get; set; } + bool IsTV2 = false; + + string NewsLink1 = "https://google.com"; + string NewsLink2 = "https://yahoo.com"; + string NewsLink3 = "https://bing.com"; + string NewsTitle1 = "Google reigns superior over the universe"; + string NewsTitle2 = "Who even uses Yahoo anymore?"; + string NewsTitle3 = "Oh god, it's Bing! (Now with extra piss)"; + + + protected override void OnInitialized() + { + userAgent = httpContextAccessor.HttpContext.Request.Headers["User-Agent"]; + + //Check if the client is an MSNTV2 box. If it is, we should return the TV2 page and not the Blazor based Page. + @if(userAgent.Contains("MSNTV")) + { + IsTV2 = true; + StateHasChanged(); + } + } +} diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/BBHomeBG.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/BBHomeBG.jpg new file mode 100644 index 00000000..3aea1339 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/BBHomeBG.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeBBVideo.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeBBVideo.png new file mode 100644 index 00000000..9bb43ade Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeBBVideo.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeBG.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeBG.jpg new file mode 100644 index 00000000..77e59c9e Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeBG.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconAccount.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconAccount.jpg new file mode 100644 index 00000000..81e7c10e Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconAccount.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconAccountOver.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconAccountOver.jpg new file mode 100644 index 00000000..3db04291 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconAccountOver.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconChat.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconChat.jpg new file mode 100644 index 00000000..51aad869 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconChat.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconChatOver.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconChatOver.jpg new file mode 100644 index 00000000..e4e56d69 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconChatOver.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconDiscuss.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconDiscuss.jpg new file mode 100644 index 00000000..5e08ef0c Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconDiscuss.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconDiscussOver.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconDiscussOver.jpg new file mode 100644 index 00000000..d6332520 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconDiscussOver.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconEncarta.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconEncarta.jpg new file mode 100644 index 00000000..af6249e9 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconEncarta.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconEncartaOver.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconEncartaOver.jpg new file mode 100644 index 00000000..452bfe56 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconEncartaOver.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconEnt.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconEnt.jpg new file mode 100644 index 00000000..7be9fe04 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconEnt.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconEntOver.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconEntOver.jpg new file mode 100644 index 00000000..e1f344e4 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconEntOver.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconFav.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconFav.jpg new file mode 100644 index 00000000..f3d8ac10 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconFav.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconFavOver.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconFavOver.jpg new file mode 100644 index 00000000..2f92bcbc Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconFavOver.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconGames.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconGames.jpg new file mode 100644 index 00000000..03948034 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconGames.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconGamesOver.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconGamesOver.jpg new file mode 100644 index 00000000..34aa2f81 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconGamesOver.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconHelp.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconHelp.jpg new file mode 100644 index 00000000..51a77508 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconHelp.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconHelpOver.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconHelpOver.jpg new file mode 100644 index 00000000..be8a269b Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconHelpOver.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconMSNBC.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconMSNBC.jpg new file mode 100644 index 00000000..e9c37b30 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconMSNBC.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconMSNBCOver.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconMSNBCOver.jpg new file mode 100644 index 00000000..c5ee5965 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconMSNBCOver.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconMail.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconMail.jpg new file mode 100644 index 00000000..1b3a5e6a Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconMail.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconMailOver.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconMailOver.jpg new file mode 100644 index 00000000..72d500c8 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconMailOver.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconMaps.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconMaps.jpg new file mode 100644 index 00000000..c41e4177 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconMaps.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconMapsOver.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconMapsOver.jpg new file mode 100644 index 00000000..dfe8040b Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconMapsOver.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconMoney.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconMoney.jpg new file mode 100644 index 00000000..4fecd660 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconMoney.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconMoneyOver.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconMoneyOver.jpg new file mode 100644 index 00000000..13354179 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconMoneyOver.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconMsgr.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconMsgr.jpg new file mode 100644 index 00000000..6a9e9853 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconMsgr.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconMsgrOver.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconMsgrOver.jpg new file mode 100644 index 00000000..a671bc33 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconMsgrOver.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconMusic.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconMusic.jpg new file mode 100644 index 00000000..0797ed8c Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconMusic.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconMusicOver.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconMusicOver.jpg new file mode 100644 index 00000000..ac3fe464 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconMusicOver.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconNetwork.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconNetwork.jpg new file mode 100644 index 00000000..4027344c Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconNetwork.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconNetworkOver.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconNetworkOver.jpg new file mode 100644 index 00000000..e1713cc7 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconNetworkOver.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconPhoto.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconPhoto.jpg new file mode 100644 index 00000000..0f4ced37 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconPhoto.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconPhotoOver.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconPhotoOver.jpg new file mode 100644 index 00000000..be69fb49 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconPhotoOver.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconSearch.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconSearch.jpg new file mode 100644 index 00000000..5155bb15 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconSearch.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconSearchOver.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconSearchOver.jpg new file mode 100644 index 00000000..fab91412 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconSearchOver.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconSettingsOver.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconSettingsOver.jpg new file mode 100644 index 00000000..05dc0618 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconSettingsOver.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconShopping.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconShopping.jpg new file mode 100644 index 00000000..9d3ee518 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconShopping.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconShoppingOver.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconShoppingOver.jpg new file mode 100644 index 00000000..ecef8ef2 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconShoppingOver.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconSports.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconSports.jpg new file mode 100644 index 00000000..5904e11c Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconSports.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconSportsOver.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconSportsOver.jpg new file mode 100644 index 00000000..9a1a3ad9 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconSportsOver.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconTTT.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconTTT.jpg new file mode 100644 index 00000000..2bf4df55 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconTTT.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconTTTOver.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconTTTOver.jpg new file mode 100644 index 00000000..80c7eb47 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconTTTOver.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconTVListings.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconTVListings.jpg new file mode 100644 index 00000000..6e1bee07 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconTVListings.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconTVListingsOver.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconTVListingsOver.jpg new file mode 100644 index 00000000..d30c731b Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconTVListingsOver.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconTWC.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconTWC.jpg new file mode 100644 index 00000000..568725cd Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconTWC.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconTWCOver.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconTWCOver.jpg new file mode 100644 index 00000000..5e62fb3b Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconTWCOver.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconUsingMSN.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconUsingMSN.jpg new file mode 100644 index 00000000..9878f186 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconUsingMSN.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconUsingMSNOver.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconUsingMSNOver.jpg new file mode 100644 index 00000000..3b44f536 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconUsingMSNOver.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconVideos.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconVideos.jpg new file mode 100644 index 00000000..04bfbe7f Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconVideos.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconVideosOver.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconVideosOver.jpg new file mode 100644 index 00000000..8558a0e1 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeIconVideosOver.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeLaunchBarBG.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeLaunchBarBG.jpg new file mode 100644 index 00000000..6eeeeff9 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Home/HomeLaunchBarBG.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/HomeBB/26.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/HomeBB/26.png new file mode 100644 index 00000000..cc5628e2 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/HomeBB/26.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/HomeBB/32.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/HomeBB/32.png new file mode 100644 index 00000000..a0ed8c27 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/HomeBB/32.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/HomeBB/BBHomeBG.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/HomeBB/BBHomeBG.jpg new file mode 100644 index 00000000..3aea1339 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/HomeBB/BBHomeBG.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/HomeBB/HPSearchBG.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/HomeBB/HPSearchBG.jpg new file mode 100644 index 00000000..bf55a928 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/HomeBB/HPSearchBG.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/HomeBB/NextBtn.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/HomeBB/NextBtn.png new file mode 100644 index 00000000..6a5d498e Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/HomeBB/NextBtn.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/ContentBg.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/ContentBg.jpg new file mode 100644 index 00000000..e8760fbd Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/ContentBg.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/EndDivider.gif b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/EndDivider.gif new file mode 100644 index 00000000..d040032b Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/EndDivider.gif differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/GenericThumb.JPG b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/GenericThumb.JPG new file mode 100644 index 00000000..b0cad18a Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/GenericThumb.JPG differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/Header.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/Header.jpg new file mode 100644 index 00000000..b33b6e81 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/Header.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/NavBg.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/NavBg.jpg new file mode 100644 index 00000000..c2dc0242 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/NavBg.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/NavBgIcon.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/NavBgIcon.jpg new file mode 100644 index 00000000..19589438 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/NavBgIcon.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/NavBgThmb.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/NavBgThmb.jpg new file mode 100644 index 00000000..c2dc0242 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/NavBgThmb.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/ThumbnailDivider.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/ThumbnailDivider.png new file mode 100644 index 00000000..7feedfd0 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/ThumbnailDivider.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/VerticalDivider.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/VerticalDivider.jpg new file mode 100644 index 00000000..8724abc3 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/VerticalDivider.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/VideoPopupBttm.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/VideoPopupBttm.png new file mode 100644 index 00000000..317188fe Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/VideoPopupBttm.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/VideoPopupTop.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/VideoPopupTop.png new file mode 100644 index 00000000..842da376 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/VideoPopupTop.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/VideoTileAuto.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/VideoTileAuto.png new file mode 100644 index 00000000..ca505a42 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/VideoTileAuto.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/VideoTileBizTech.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/VideoTileBizTech.png new file mode 100644 index 00000000..874145c3 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/VideoTileBizTech.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/VideoTileEnd.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/VideoTileEnd.png new file mode 100644 index 00000000..7feedfd0 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/VideoTileEnd.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/VideoTileEntertainment.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/VideoTileEntertainment.png new file mode 100644 index 00000000..9e35ffdb Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/VideoTileEntertainment.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/VideoTileHomeGarden.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/VideoTileHomeGarden.png new file mode 100644 index 00000000..75d6167d Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/VideoTileHomeGarden.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/VideoTileMoviesMusic.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/VideoTileMoviesMusic.png new file mode 100644 index 00000000..002fea78 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/VideoTileMoviesMusic.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/VideoTileNews.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/VideoTileNews.png new file mode 100644 index 00000000..c2f59292 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/VideoTileNews.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/VideoTilePlaylist.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/VideoTilePlaylist.png new file mode 100644 index 00000000..5c3acc07 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/VideoTilePlaylist.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/VideoTileSpecial.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/VideoTileSpecial.png new file mode 100644 index 00000000..aaaea6e4 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/VideoTileSpecial.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/VideoTileSports.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/VideoTileSports.png new file mode 100644 index 00000000..35a99bd3 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/VideoTileSports.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/default_120x30_ad.gif b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/default_120x30_ad.gif new file mode 100644 index 00000000..b3bce499 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/MSNVideo/default_120x30_ad.gif differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/NextBtn.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/NextBtn.png new file mode 100644 index 00000000..6a5d498e Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/NextBtn.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Shared/26.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Shared/26.png new file mode 100644 index 00000000..cc5628e2 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Shared/26.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Shared/32.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Shared/32.png new file mode 100644 index 00000000..a0ed8c27 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Shared/32.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Shared/ArrowLeft.gif b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Shared/ArrowLeft.gif new file mode 100644 index 00000000..9a6dc027 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Shared/ArrowLeft.gif differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Shared/ArrowRight.gif b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Shared/ArrowRight.gif new file mode 100644 index 00000000..9dd97dca Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Shared/ArrowRight.gif differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Shared/CenterBg.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Shared/CenterBg.jpg new file mode 100644 index 00000000..03f069a8 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Shared/CenterBg.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Shared/CenterHeaderNews.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Shared/CenterHeaderNews.jpg new file mode 100644 index 00000000..ad102ee1 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Shared/CenterHeaderNews.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Shared/CenterSideNews.gif b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Shared/CenterSideNews.gif new file mode 100644 index 00000000..93008a55 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Shared/CenterSideNews.gif differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Shared/s.gif b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Shared/s.gif new file mode 100644 index 00000000..1d11fa9a Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Images/Shared/s.gif differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/1.2.1.322.21/localhost-1700/MSNVideo/Anduril/CSSTransforms/en-us/Main.css b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/1.2.1.322.21/localhost-1700/MSNVideo/Anduril/CSSTransforms/en-us/Main.css new file mode 100644 index 00000000..7ed3c8b9 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/1.2.1.322.21/localhost-1700/MSNVideo/Anduril/CSSTransforms/en-us/Main.css @@ -0,0 +1 @@ +DIV{position:absolute;}.bodyDiv{width:560;height:384;overflow:hidden;}.bkg1{position:absolute;top:34;width:560;height:216;background-image:url(/Images/MSNVideo/ContentBg.jpg);}.bkg2{position:absolute;top:34;width:560;height:325;background-color:131517;}.bkg2spn1{position:absolute;top:9;left:16;width:530;height:265;background-color:010408;}.bkg2spn2{position:absolute;top:274;left:16;width:530;height:46;background-image:url(/Shared/Anduril/Images/en-us/_debug/Panels/Images/PanelPlayerLargeBG.jpg);}.bkg2spn3{position:absolute;top:320;left:16;width:530;height:6;background-color:16181A;}a{color:ffffff;}.bannerDiv{position:absolute;width:560;height:33;background-image:url(/Images/MSNVideo/Header.jpg);}.bannerLogo{position:absolute;left:22;top:6;font:bold 20;}.bannerHelp{position:absolute;left:469;top:6;font:18;}.bannerHelpImg{position:relative;left:4px;margin-left:4px;width:20;height:20;background-repeat: no-repeat;behavior:url(#default#alphaImageLoader);background:url(/Shared/Anduril/Images/en-us/_debug/Shared/Images/Icon_Help_RelatedLink.png);}.mediaPlayerDiv{position:absolute;}#mpStatusDiv{position:absolute;left:100;top:300;width:400;height:100;color:F2F2F2;}#pbDiv{position:absolute;top:285;left:226;width:320;height:25;color:87A3CA;}#pbTxt3{font-size:16;overflow: hidden; text-overflow:ellipsis; white-space:nowrap;width:115;}.vcDiv{position:absolute;width:320;height:46;}.vcDivPlaying{top:308;left:226;}.vcDivFullScrn{top:331;left:15;}.vcBtn{position:relative;width:39;height:46;behavior:url(#default#alphaImageLoader);}.vcMuteBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlMute.png); }.vcUnmuteBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlUnmute.png); }.vcPlayBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlPlay.png); }.vcPauseBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlPause.png); }.vcStopBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlStop.png); }.vcRewBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlRew.png); }.vcFwdBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlFF.png); }.vcPrevBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlPrev.png); }.vcNextBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlNext.png); }.vcFullScrn{position:absolute;left:200;top:12;font:16;}.vcNormView{position:absolute;left:385;top:24;font:16;}.vcStatus{position:absolute;left:392;top:3;width:151;white-space:nowrap;font-size:16;color:F2F2F2;}.brandingDiv{width:560;height:384;}.brandingAreaImage{position:absolute;}.vmDiv{position:absolute;top:80;height:146;left:15;width:348;overflow:hidden;}.videoMetadataInnerDiv{width:323;padding-bottom:16;}.vmTxt1{width:323;color:F2F2F2;padding-bottom:18;font:16;}.vmTxt2{width:323;color:87A3CA;font:bold 18;}.vmTxt3{width:323;color:87A3CA;font:bold 18;line-height:16px;padding-bottom:16;}.vmTxt4{width:323;color:87A3CA;padding-bottom:16;font:16;line-height:16px;}.vmLink{width:307;height:16;color:87A3CA;font:16;line-height:16px;overflow: hidden; text-overflow:ellipsis; white-space:nowrap;}.vmArrw{width:15;}.nowPlayingDiv{position:absolute;top:51;left:15;width:200;font:16;line-height:16px;text-align:top;}.npMsg{padding-left:10;width:200;color:F2F2F2;padding-bottom:18;}.npUpNxt{padding:0 0 18 10;width:200;color:87A3CA;}.npTitle{padding:39 0 15 10;width:200;color:87A3CA;}.npArrw{margin-left:10;width:12;}.onDeckDiv{position:absolute;left:25;width:190;top:212;height:69;font:16;color:87A3CA;line-height:16px;}.odThumb{width:92;height:69;}.odTxt1{position:absolute;left:98;width:92;height:22;overflow:hidden;}.odTxt2{position:absolute;left:98;width:92;top:22;height:49;overflow:hidden;}.odTxt3{width:190;height:69;}.amDiv{position:absolute;width:124;height:34;padding:2;}.ssPanel{position:absolute;top:45;left:340;width:200;height:150;}.ssAbstract{position:absolute;top:45;left:16;}.ssAbstractTxt{position:absolute;left:7;height:135;width:295;overflow:hidden;}.ssBtn{position:absolute;top:150;font:16;}.navBarDiv{text-align:left;position:absolute;top:240;height:118;width:560;overflow-x:hidden; white-space:nowrap;vertical-align:top;}.navBarDivIcon{background-image:url(/Images/MSNVideo/NavBgIcon.jpg);}.navBarDivThmb{background-image:url(/Images/MSNVideo/NavBgThmb.jpg);}.nbIcnSpn{width:120;height:110;margin:8 0 0 9;}.nbIcnTab{background-repeat: no-repeat;behavior:url(#default#alphaImageLoader);margin:0 9 0 9; width:111;height:106;letter-spacing:-0.2mm;}.nbArrSpn{width:22;height:118;padding:45 2 57 2; }.nbArrw{width:18;height:18;background-repeat: no-repeat;behavior:url(#default#alphaImageLoader);}.nbArrw_l{background:url(/Shared/Anduril/Images/en-us/_debug/Shared/Images/ScrollIndicatorLeftGlobal.png);}.nbArrw_r{background:url(/Shared/Anduril/Images/en-us/_debug/Shared/Images/ScrollIndicatorRightGlobal.png);}.nbThmSpn{margin:33 0 10 0;height:75;vertical-align:top;overflow:hidden;}.nbThmSpnWide{width:189;margin-right:20;}.nbThmSpnNrrw{width:98;}.nbThmSpnHilite{width:189;background-color:212A39;margin-right:20;}.nbThmTbl{position:relative;table-layout:fixed;height:70;}.nbThmTblA{color:F2F2F2;}.nbThmTblB{color:7C92B1;}.nbThmImg{width:92;height:70;}.nbThmTxt{width:91;height:64;overflow:hidden;font:16;line-height:16px;}.nbThmDvdrIcon{position:absolute;width:20;height:20;z-index:500;top:52;background-image:url(/Images/MSNVideo/EndDivider.gif);}.nbThmDvdrThmb{position:absolute;behavior:url(#default#alphaImageLoader);background:url(/Images/MSNVideo/ThumbnailDivider.png);width:15;height:106;z-index:500;top:20;}.nbVertDvdr{position:absolute;width:4;height:98;top:12;background-image:url(/Images/MSNVideo/VerticalDivider.jpg);}.browseHeaderDiv{position:absolute;top:247;left:23;width:545;height:25;font:16;color:87A3CA;z-index:2;}.browseHeaderTxt1{}.browseHeaderTxt2{margin-left:6;}.browseHeaderArrw{position:absolute;left:400;}.browseHeaderLink{position:absolute;left:415;}.footerDiv{position:absolute;top:358;height:28;width:560;background:292B2B;padding:5 15 0 15;z-index:2;overflow:hidden;text-align:right;}.footArrw{padding:0 8 0 15; }.footBtn{padding-top:3;font:16;color:F2F2F2;}.fullScreenPanelDiv{position:absolute;top:323;height:61;width:560;}.fspBkg{position:absolute;height:61;}.fspLeft{width:15;background-image:url(/Shared/Anduril/Images/en-us/_debug/Panels/Images/PanelPlayerSmallLeftSide.jpg);}.fspCenter{left:15;width:530;background-image:url(/Shared/Anduril/Images/en-us/_debug/Panels/Images/PanelPlayerSmallMiddleStretch.jpg);}.fspRight{width:15;left:545;background-image:url(/Shared/Anduril/Images/en-us/_debug/Panels/Images/PanelPlayerSmallRightSide.jpg);}.brwsCatDiv{position:absolute;width:205;z-index:10;left:15;}.popup{position:absolute;padding:3 0 0 7;width:205;height:26;font:16;color:001332;behavior:url(#default#alphaImageLoader);overflow: hidden; text-overflow:ellipsis; white-space:nowrap;}.popupTop{background:url(/Images/MSNVideo/VideoPopupTop.png);}.popupTopHL{color:05529D;font-weight:bold;letter-spacing:-0.2mm;}.popupBttm{top:0;left:15;text-align:left;letter-spacing:-0.2mm;overflow: hidden; text-overflow:ellipsis; white-space:nowrap;background:url(/Images/MSNVideo/VideoPopupBttm.png);} \ No newline at end of file diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/1.2.1.322.21/localhost-1700/MSNVideo/Anduril/JsTransforms/en-us/Main.js b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/1.2.1.322.21/localhost-1700/MSNVideo/Anduril/JsTransforms/en-us/Main.js new file mode 100644 index 00000000..cbcb9629 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/1.2.1.322.21/localhost-1700/MSNVideo/Anduril/JsTransforms/en-us/Main.js @@ -0,0 +1 @@ +function Background(div){this.Div = div;this.Draw1 = _bkDraw1;this.Draw2 = _bkDraw2;this.Show = _bkShow;this.Hide = _bkHide;this.Clear = _bkClear;}function _bkDraw1(){this.Div.className = "bkg1";this.Clear();}function _bkDraw2(){this.Div.className = "bkg2";this.Clear();var spn1 = addSpan(this.Div);spn1.className = "bkg2spn1";var spn2 = addSpan(this.Div);spn2.className = "bkg2spn2";var spn3 = addSpan(this.Div);spn3.className = "bkg2spn3";}function _bkShow(){this.Div.style.visibility = "visible";}function _bkHide(){this.Div.style.visibility = "hidden";}function _bkClear(){clearChildren(this.Div);}function Banner(div) {this.Div = div;this.Init = _baInit;this.Refresh = _baRefresh;this.Hide = _baHide;this.Show = _baShow;this.IsSelectable = _baIsSelectable;}function _baInit(){this.TextSpan = addSpan(this.Div);this.TextSpan.className = "bannerLogo";this.HelpBtn = addSpan(this.Div);this.HelpBtn.innerHTML = "Help ";InitNavObject(this.HelpBtn,"helpBtn","bannerHelp","","","","","","","clickHelp()");}function _baRefresh(){var txt = "MSN Video";if (g_nowVideoSize == VIDEOSIZE_SMALL){if (g_nowNavView == NAV_VIEW_PLAYLIST){txt += " — Playlist";}else if (g_nowNavView == NAV_VIEW_BROWSE){txt += " — " + g_topics[g_nowTopicInd];}}this.TextSpan.innerHTML = txt;}function _baHide(){this.Div.style.visibility = "hidden";}function _baShow(){this.Div.style.visibility = "visible";}function _baIsSelectable(){return (this.Div.style.visibility != "hidden");}function BrandingArea(div, cssClass) {this.Div = div;this.Clear = _brClear;this.Init = _brInit;this.Refresh = _brRefresh;this.Hide = _brHide;this.Show = _brShow;this.SetDimensions = _brSetDimensions;this.Div.className = cssClass;}function _brClear(){clearChildren(this.Div);}function _brInit(){this.Image = addImg(this.Div);this.Image.className = "brandingAreaImage";this.Image.src = "/Images/Shared/s.gif";}function _brSetDimensions(t, l, h, w){this.Image.style.top = t;this.Image.style.left = l;this.Image.style.height = h;this.Image.style.width = w;}function _brRefresh(){if (oPlaylist.Position==-1 || oMediaPlayer.IsPlayingAd || oMediaPlayer.GetPlayState()!=PLAYSTATE_PLAYING)this.Image.src = "/Images/Shared/s.gif";else if (oPlaylist.GetCurrent() != null)this.Image.src = "http://video.msn.com/s/us/sc/i/MSNTV/src/" + oPlaylist.GetCurrent().Source + ".gif";}function _brHide(){this.Div.style.visibility = "hidden";}function _brShow(){this.Div.style.visibility = "visible";}function BrowseHeader(div) {this.Div = div;this.Init = _bhInit;this.SetText1 = _bhSetText1;this.SetText2 = _bhSetText2;this.ShowLoadingMessage = _bhShowLoadingMessage;this.Clear = _bhClear;this.Hide = _bhHide;this.Show = _bhShow;}function _bhInit(){var ob;ob = addSpan(this.Div);ob.className = "browseHeaderTxt1";this.Text1 = ob;ob = addSpan(this.Div);ob.className = "browseHeaderTxt2";this.Text2 = ob;}function _bhSetText1(h){this.Text1.innerHTML = h;}function _bhSetText2(h){this.Text2.innerHTML = h;}function _bhShowLoadingMessage(str){this.Text1.innerHTML = "Please wait while we get " + str + " ready.";this.Text2.innerHTML = "";}function _bhClear(){this.Text1.innerHTML = "";this.Text2.innerHTML = "";}function _bhShow(){this.Div.style.visibility = "visible";}function _bhHide(){this.Div.style.visibility = "hidden";}function CategoryChooser(div, maxSubcats){this.Div = div;this.Init = _ccInit;this.Show = _ccShow;this.Hide = _ccHide;this.AppendBadCat = _ccAppendBadCat;this.ExcludeBtn = _ccExcludeBtn;this.MaxSubcats = maxSubcats;this.FailedSubcats = new Array();}function _ccInit(topics, cats, bottomY){var btn;var btns = new Array();for (var i=0; i= this.MaxSubcats) ? this.MaxSubcats : cats[i].length;for (var j=-1; j=0; j--){var nowBtn = this.Btns[i][j];if (i!=topicInd || this.ExcludeBtn(nowBtn.FullName)){nowBtn.Hide();}else {if (j==catInd+1 && i==topicInd)nowBtn.SetHighlight(true);else nowBtn.SetHighlight(false);nowBtn.style.bottom = bottomY;;bottomY += this.ButtonHeight;nowBtn.Show();}}}var popupHeight= (this.ButtonHeight * this.Btns[topicInd].length);this.Div.style.height = popupHeight;this.Div.style.top = this.BottomY - popupHeight;this.Div.style.visibility = "visible";try{this.Btns[topicInd][catInd+1].focus(); }catch (e){oFooter.SetFocus();}}function _ccHide(){for (var i=0; i= length)wmp.CurrentPosition = length;else wmp.CurrentPosition = currentPos + increment;}}}function _mpShowStatus(s){this.Status.innerHTML = s;}var MGX_ICON_ERROR= 0x10;var MGX_ICON_WARNING= 0x30;var MGX_ICON_INFO= 0x40;var MGX_SIZE_LARGE = 0x0;var MGX_SIZE_SMALL = 0x1;function MessagePopup(){this.Error = _msError;this.Warning = _msWarning;this.Info = _msInfo;this.Confirm = _msConfirm;this.AutoHide = _msAutoHide;}function _msError(msg, caption){alert(msg);}function _msWarning(msg, caption){alert(msg);}function _msInfo(msg, caption){alert(msg);}function _msConfirm(msg){return confirm(msg);}function _msAutoHide(msg){alert(msg);}function NavBar(div){this.Div = div;this.Clear = _nbClear;this.Draw = _nbDraw;this.Refresh = _nbRefresh;this.InitTopics = _nbInitTopics;this.SetFocus = _nbSetFocus;this.SetRatchet = _nbSetRatchet;this.GetThumbIndex = _nbGetThumbIndex;this.InitThumbnails = _nbInitThumbnails;this.IsSelectable = _nbIsSelectable;this.Show = _nbShow;this.Hide = _nbHide;}function _nbClear(){this.Div.className = "navBarDiv navBarDivThmb";clearChildren(this.Div);}function _nbDraw(ind){this.CurrentRatchet = ind;var dividerX = -100;var ob;var css;for (var i=0; i=this.HTML.length)j-=this.HTML.length;ob.innerHTML = this.HTML[j];ob.GUID = this.GUIDs[j];}if (this.Hanger != null && this.HTML.length>this.MenuCount){var j = ind+i;if (j==this.HTML.length)dividerX = this.Hanger.offsetLeft;if (j>=this.HTML.length)j-=this.HTML.length;this.Hanger.innerHTML = imageTag(this.Images[j], 92, 69, "nbThmImg");}if (this.HTML.length>this.MenuCount){this.LeftArrow.innerHTML = " ";this.RightArrow.innerHTML = " ";}else {this.LeftArrow.innerHTML = ""; this.RightArrow.innerHTML = ""; }if (this.Divider != null){this.Divider.style.left = dividerX - (this.Mode == "thumbnails" ? 18 : 24);}this.Refresh();}function _nbRefresh(){if (this.Mode != "thumbnails")return;var doHighlight;for (var i=0; i= 2) ? 2 : titles.length;this.Div.className = "navBarDiv navBarDivThmb";this.HTML = new Array();this.Images = new Array();this.GUIDs = guids;for (var i=0; i"+ ""+ ""+ imageTag(this.Images[i], 92, 69, "nbThmImg")+ ""+ ""+ ""+ txt+ ""+ ""+ ""+ "";this.HTML[i] = h;}this.LeftArrow = addSpan(this.Div);this.LeftArrow.className = "nbArrSpn";for (var i=0; i"+ ""+ ""+ txt + ""+ ""+ "";this.HTML[i] = h;}var ob;this.LeftArrow = addSpan(this.Div);this.LeftArrow.className = "nbArrSpn";var leftAction;var rightAction;for (var i=0; i Choose Play to begin again.";txt.className = "npMsg";this.SelectableOb = null;}else if (oMediaPlayer.IsPlayingAd){var txt = addSpan(this.Div);txt.innerHTML = "Up next after this advertisement:";txt.className = "npMsg";txt = addSpan(this.Div);txt.innerHTML = oPlaylist.GetCurrent().Title;txt.className = "npUpNxt";var arrw = addSpan(this.Div);arrw.innerHTML = bulletImage();arrw.className = "npArrw";this.MoreInfoBtn = addSpan(this.Div);this.MoreInfoBtn.innerHTML = "More info";InitNavObject(this.MoreInfoBtn,"moreInfoButton","","","","","","","","clickMoreInfo()");this.SelectableOb = this.MoreInfoBtn;}else {if (oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING){var txt = addSpan(this.Div);txt.innerHTML = oPlaylist.GetCurrent().Title;txt.className = "npTitle";var arrw = addSpan(this.Div);arrw.innerHTML = bulletImage();arrw.className = "npArrw";this.MoreInfoBtn = addSpan(this.Div);this.MoreInfoBtn.innerHTML = "More info";InitNavObject(this.MoreInfoBtn,"moreInfoButton","","","","","","","","clickMoreInfo()");this.SelectableOb = this.MoreInfoBtn;}else {var txt = addSpan(this.Div);txt.innerHTML = "Please wait while we get your video ready.";txt.className = "npMsg";this.SelectableOb = null;}}}function _npClear(){clearChildren(this.Div);}function _npShow(){this.Div.style.visibility = "visible";}function _npHide(){this.Div.style.visibility = "hidden";}function _npIsSelectable(){return ((this.Div.style.visibility != "hidden") && (this.SelectableOb!=null));}function OnDeckArea(div) {this.Div = div;this.Init = _odInit;this.Refresh = _odRefresh;this.Hide = _odHide;this.Show = _odShow;this.IsSelectable = _odIsSelectable;}function _odInit(){var ob;ob = addSpan(this.Div);ob.className = "odThumb";this.ThumbSpan = ob;ob = addSpan(this.Div);ob.className = "odTxt1";this.TextSpan1 = ob;ob = addSpan(this.Div);ob.className = "odTxt2";this.TextSpan2 = ob;ob = addSpan(this.Div);ob.className = "odTxt3";this.TextSpan3 = ob;}function _odRefresh(){this.ThumbSpan.innerHTML = "";this.TextSpan1.innerHTML = "";this.TextSpan2.innerHTML = "";this.TextSpan3.innerHTML = "";if (oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING && !oMediaPlayer.IsPlayingAd){if ((oPlaylist.Position == -1) || (oPlaylist.Position+1 >= oPlaylist.Items.length)){this.TextSpan3.innerHTML = "Up next: end of playlist";}else {var currentItem = oPlaylist.Items[oPlaylist.Position+1];this.ThumbSpan.innerHTML = imageTag(currentItem.Thumb, 92, 69, "");this.TextSpan1.innerHTML = "Up next:";this.TextSpan2.innerHTML = currentItem.Title;}}}function _odShow(){this.Div.style.visibility = "visible";}function _odHide(){this.Div.style.visibility = "hidden";}function _odIsSelectable(){return false;}function onBuffering(bStart){if (bStart){}else {refreshStatus();}}var g_ReadyState = 0; var rs_Uninitialized = 0;var rs_Loading = 1;var rs_Interactive = 3;var rs_Complete = 4;var g_clipLoadTimer;var g_adIsLoading;function onReadyStateChange(lReadyState){var hasLoaded = (g_ReadyState == rs_Loading && lReadyState == rs_Complete);refreshStatus();if (hasLoaded){oMediaPlayer.IsLoading = false;window.clearTimeout(g_clipLoadTimer);g_ForceFullStop = false; refreshPlaystateFeedback();oProgressBar.Reset();if (!oMediaPlayer.IsPlayingAd){if (oPlaylist.GetCurrent() != null){trackViewedClip(oPlaylist.GetCurrent().GUID);}}oMediaPlayer.ResetDimensions();}g_ReadyState = lReadyState;}function setClipLoadTimer(seconds, isAd){g_adIsLoading = isAd;var mls = parseInt(seconds)*1000;g_clipLoadTimer = window.setTimeout(function() {checkClipLoad();}, mls);}function checkClipLoad(){window.clearTimeout(g_clipLoadTimer);if(oMediaPlayer.IsLoading) {oMediaPlayer.IsLoading = false;oMediaPlayer.Cancel();if (g_adIsLoading){}else {var clip = oPlaylist.GetCurrent();if (clip != null){oMessagePopup.Warning("The video is not available", "");trackViewedClip(clip.GUID);}}postStopAction();return;}}var g_Rewinding = false;var g_ForceFullStop = false;var PLAYSTATE_STOPPED = 0;var PLAYSTATE_PAUSED = 1;var PLAYSTATE_PLAYING = 2;var PLAYSTATE_BUFFERING = 3;var PLAYSTATE_FWD = 4;var PLAYSTATE_REW = 5;var PLAYSTATE_FINISHED = -1;function onPlayStateChange(oldState, newState){refreshStatus();if (oldState == PLAYSTATE_BUFFERING && newState == PLAYSTATE_STOPPED){return;}switch (oMediaPlayer.GetPlayState()){case PLAYSTATE_STOPPED:postStopAction(); break; case PLAYSTATE_BUFFERING: break;case PLAYSTATE_PAUSED:g_Rewinding = false;postPauseAction();break;case PLAYSTATE_PLAYING:g_Rewinding = false;postPlayAction();break;case PLAYSTATE_FINISHED:break;case PLAYSTATE_FWD:g_Rewinding = false;break;case PLAYSTATE_REW:g_Rewinding = true;break;}}function postStopAction(){var l_ForceFullStop = g_ForceFullStop;var l_Rewinding = g_Rewinding;g_ForceFullStop = false;g_Rewinding = false;var action;if (l_ForceFullStop){}else if (l_Rewinding){window.setTimeout(function() {oMediaPlayer.Play();}, 1);}else if (oMediaPlayer.IsPlayingAd){oMediaPlayer.IsPlayingAd = false; playCurrent();}else if (oPlaylist.Position+1 < oPlaylist.Items.length){oPlaylist.MoveNext();playCurrent();}else {onPlaylistEnd();}}function postPlayAction(){}function postPauseAction(){}function playItemAfterAd(ind){if (oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING){if (oMediaPlayer.IsPlayingAd){oPlaylist.MoveTo(ind); }else {oPlaylist.MoveTo(ind-1); oMediaPlayer.Stop();}}else {oPlaylist.MoveTo(ind); playCurrent();}}function playCurrent(){if (oMediaPlayer.IsPlayingAd){if (oMediaPlayer.GetPlayState() != PLAYSTATE_PLAYING)oMediaPlayer.Play();return;}if (oPlaylist.GetCurrent() == null)return;onPrepareToPlay();if (oPlaylist.GetCurrent().GUID != oAdManager.CurrentGUID){oAdManager.CurrentGUID = oPlaylist.GetCurrent().GUID;oAdManager.SetPageGroup(oPlaylist.GetCurrent().PageGroup);oMediaPlayer.IsPlayingAd = oAdManager.EndUserSees=="video";}refreshPlaystateFeedback();iPlayNextTimerId = window.setTimeout(playCurrentB, 100);}function playCurrentB(){window.clearTimeout(iPlayNextTimerId);if (oMediaPlayer.IsPlayingAd){oAdManager.LoadNext();}else {if (oPlaylist.GetCurrent() != null){var url = oPlaylist.GetCurrent().URL;if (url.indexOf("/default.cdnx/") != -1)url += ".asx";oMediaPlayer.PlayMedia(url);oTrackingManager.TrackContentPlay(oPlaylist.GetCurrent());setClipLoadTimer(30, false);}}}function onLoadAdComplete(){oAdManager.ShowLeaveBehind();if (oMediaPlayer.IsPlayingAd){if (oAdManager.ClipSrc == "" || oAdManager.ClipSrc.indexOf(".gif") != -1){postStopAction();}else {oMediaPlayer.PlayMedia(oAdManager.ClipSrc);oTrackingManager.TrackAdPlay(oPlaylist.GetCurrent(), oAdManager.TrackingImgId);setClipLoadTimer(15, true);}}}function ProgressBar(div){this.Div = div;this.Init = _pbInit;this.Refresh = _pbRefresh;this.Reset = _pbReset;this.Hide = _pbHide;this.Show = _pbShow;this.SetStatus = _pbSetStatus;}function _pbInit(player, barWidth){var h = ""+ ""+ ""+ ""+ ""+ ""+ ""+ "
"+ ""+ ""+ ""+ ""+ ""+ ""+ ""+ "
";this.Div.innerHTML = h;this.Htc = pbHtc;this.Text1 = pbTxt1;this.Text2 = pbTxt2;this.StatusText = pbTxt3;this.Visible = false;this.Player = player;this.BarWidth = barWidth;}function _pbReset(){if (this.Visible){this.Text1.innerHTML = "00:00";this.Duration = Math.floor(this.Player.GetDuration());var mm = Math.floor(this.Duration/60);var ss = this.Duration - mm*60;this.Text2.innerHTML= ((mm < 10) ? "0" + mm : mm)+ ":"+ ((ss < 10) ? "0" + ss : ss);this.Htc.percentComplete = 0;this.Refresh();}}function _pbRefresh(){window.clearTimeout(this.TimerId);if (this.Visible){try{var mls = this.Player.GetMediaPosition();var sec = Math.floor(mls/1000);var mm = Math.floor(sec/60);var ss = sec - mm*60;if (mm == -1){this.Text1.innerHTML = "00:00";}else {this.Text1.innerHTML= ((mm < 10) ? "0" + mm : mm)+ ":"+ ((ss < 10) ? "0" + ss : ss);}this.Htc.percentComplete = Math.round(sec/this.Duration*100);}catch (exception){this.Text1.innerHTML = "00:00";this.Htc.percentComplete = 0;}this.TimerId = window.setTimeout(function() {oProgressBar.Refresh();}, 1000);}}function _pbHide(){clearTimeout(this.TimerId);this.Div.style.visibility = "hidden";this.Visible = false;}function _pbShow(){this.Visible = true;this.Reset();this.Div.style.visibility = "visible";}function _pbSetStatus(s){this.StatusText.innerHTML = s;}function SlideShow(slidePanel, abstractDiv){this.SlidePanel = slidePanel;this.AbstractDiv = abstractDiv;this.Init = _ssInit;this.Clear = _ssClear;this.Next = _ssNext;this.Hide = _ssHide;this.Show = _ssShow;this.ShowAbstract = _ssShowAbstract;this.PanelIsSelectable = _ssPanelIsSelectable;this.AbstractIsSelectable = _ssAbstractIsSelectable;}function _ssInit(slideHtml, abstractHtml){this.Clear();this.AbstractHtml = abstractHtml;this.Slides = new Array();var slide;for (var i=0; i");return toOb.appendChild(btn);}function bulletImage(){var h = " h){doTruncate = true;break;}htmlThatFits = textGauge.innerHTML;}}textGauge.style.display = "none";if (doTruncate){var tHtml = htmlThatFits;var lastChar = (tHtml.charAt(tHtml.length-2) == ",") ? tHtml.length-2 : tHtml.length-1;tHtml = tHtml.substring(0,lastChar);return (tHtml == "") ? "" : tHtml + "…";}else {return html;}}function truncateWord(w, maxChars){var s = "";var c = "";for (var i=0; i 0);showSkip = (oPlaylist.Position < oPlaylist.Items.length-1);}}this.Rew.style.display = (showRew) ? "inline" : "none"; this.Fwd.style.display = (showFwd) ? "inline" : "none"; this.Prev.style.display = (showPrev) ? "inline" : "none"; this.Next.style.display = (showSkip) ? "inline" : "none";if((nowFocusOb==this.Rew || nowFocusOb==this.Fwd || nowFocusOb==this.Prev || nowFocusOb==this.Next)&&(nowFocusOb.style.display == "none")&&(this.Div.style.visibility != "hidden")){if (showSkip) this.Next.focus();else if (showPrev) this.Prev.focus();else if (showFwd) this.Fwd.focus();else if (showRew) this.Rew.focus();else this.Stop.focus();}}catch (error){}}function _vcPlayingView(){this.Div.className = "vcDiv vcDivPlaying";this.FullScreenBtn.style.display = "inline";this.NormalViewBtn.style.display = "none";this.Mute.style.display = "none";this.UnMute.style.display = "none";this.Play.style.display = "inline";this.Pause.style.display = "inline";this.Stop.style.display = "inline";this.Rew.style.display = "none";this.Fwd.style.display = "none";this.Prev.style.display = "inline";this.Next.style.display = "inline";}function _vcFullScreenView(){this.Div.className = "vcDiv vcDivFullScrn";this.FullScreenBtn.style.display = "none";this.NormalViewBtn.style.display = "inline";this.RefreshMute();this.Play.style.display = "inline";this.Pause.style.display = "inline";this.Stop.style.display = "inline";this.Rew.style.display = "inline";this.Fwd.style.display = "inline";this.Prev.style.display = "inline";this.Next.style.display = "inline";}function _vcShow(){this.Div.style.visibility = "visible";this.HideShowBtns();}function _vcHide(){this.Div.style.visibility = "hidden";}function _vcIsSelectable(){return (this.Div.style.visibility != "hidden");}function _vcClickMute(){oMediaPlayer.Player.Mute = !oMediaPlayer.Player.Mute;oVideoControls.RefreshMute();if (oMediaPlayer.Player.Mute)oVideoControls.UnMute.focus();else oVideoControls.Mute.focus();}function _vcRefreshMute(){if (oMediaPlayer.Player.Mute){this.Mute.style.display = "none";this.UnMute.style.display = "inline";}else {this.Mute.style.display = "inline";this.UnMute.style.display = "none";}}function _vcClickPlay(){switch (oMediaPlayer.GetPlayState()){case PLAYSTATE_PLAYING:break;case PLAYSTATE_PAUSED:case PLAYSTATE_FWD:case PLAYSTATE_REW:case PLAYSTATE_STOPPED:oMediaPlayer.Play();refreshPlaystateFeedback();break;default:if (oPlaylist.Position == -1)oPlaylist.Position = 0;playCurrent();break;}}function _vcClickPause(){if (oMediaPlayer.GetPlayState() == PLAYSTATE_PAUSED){oMediaPlayer.Play();}else {try{oMediaPlayer.Pause();}catch (error){}}}function _vcClickStop(){window.clearTimeout(g_clipLoadTimer);if (oMediaPlayer.IsLoading){oMediaPlayer.Cancel();oMediaPlayer.IsLoading = false;}else if (oMediaPlayer.GetPlayState() == PLAYSTATE_STOPPED){}else {try{if (oMediaPlayer.GetPlayState() != PLAYSTATE_BUFFERING) g_ForceFullStop = true;oMediaPlayer.Stop();oMediaPlayer.SetMediaPosition(0);oBrandingArea.Refresh();oVideoMetadata.Refresh(true);oNowPlaying.Refresh(true);}catch (error){}}}function _vcClickRew(){oMediaPlayer.Rew();}function _vcClickFwd(){oMediaPlayer.Fwd();}function _vcClickPrev(){playItemAfterAd(oPlaylist.Position-1);}function _vcClickNext(){if (oPlaylist.Position+1 < oPlaylist.Items.length){g_ForceFullStop = true;oMediaPlayer.Stop();oPlaylist.MoveNext();playCurrent();}else {}}function VideoMetadata(div, innerDiv) {this.Div = div;this.InnerDiv = innerDiv;this.Init = _vmInit;this.Refresh = _vmRefresh;this.Clear = _vmClear;this.Hide = _vmHide;this.Show = _vmShow;this.IsSelectable = _vmIsSelectable;this.GetSelectableOb = _vmGetSelectableOb;}function _vmInit(){}function _vmRefresh(userStopped){this.Clear();if(oPlaylist.GetCurrent() == null)return;if (userStopped){var txt = addSpan(this.InnerDiv);txt.innerHTML = "You have stopped the video.

Choose Play to begin again.";txt.className = "vmTxt1";this.SelectableOb = null;}else if (oMediaPlayer.IsPlayingAd){var txt = addSpan(this.InnerDiv);txt.innerHTML = "Up next after this advertisement:";txt.className = "vmTxt1";txt = addSpan(this.InnerDiv);txt.innerHTML = oPlaylist.GetCurrent().Title;txt.className = "vmTxt2";this.SelectableOb = null;}else {if (oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING){var title = addSpan(this.InnerDiv);title.innerHTML = oPlaylist.GetCurrent().Title;title.className = "vmTxt3";var abstract = addSpan(this.InnerDiv);abstract.innerHTML = oPlaylist.GetCurrent().Caption;abstract.className = "vmTxt4";var urls = oPlaylist.GetCurrent().LinkUrls;var text = oPlaylist.GetCurrent().LinkText;var addedLink = false;for (var i=0; i 0){var i = this.Items[this.Items.length-1];if (i[0]==topicInd && i[1]==catInd && i[2]==videoSize && i[3]==navView){return;}if (i[0]==topicInd && i[1]==catInd && i[2]==videoSize && i[3]==navView){return;}}this.Items[this.Items.length] = new Array(topicInd, catInd, videoSize, navView);}function _bmRemoveLast(){var a = new Array();for (var i=0; i< this.Items.length-1; i++){a[i] = this.Items[i];}this.Items = a;}function DataFetcher(){this.Init = _dfInit;this.GetData = _dfGetData;this.OnLoad = _dfOnLoad;this.Cancel = _dfCancel;this.AppendToQueue = _dfAppendToQueue;this.PushToQueue = _dfPushToQueue;this.ClearQueue = _dfClearQueue;this.DomDoc = new ActiveXObject("Msxml2.DOMDocument");this.DomDoc.onreadystatechange = _dfCheckReadyState;this.DomDoc.async = true;}function _dfInit(){this.UrlQueue = new Array();this.OnSucceedQueue = new Array();this.OnFailQueue = new Array();}function _dfGetData(url, onSucceed, onFail){if (this.Url != null){this.PushToQueue(this.Url, this.OnSucceed, this.OnFail);}this.Url = url;this.OnSucceed = onSucceed;this.OnFail = onFail;this.DomDoc.load(url);}function _dfOnLoad(){this.Data = this.DomDoc.text;var f = (this.DomDoc.parseError.errorCode != 0) ? this.OnFail : this.OnSucceed;this.Url = null;this.OnSucceed = null;this.OnFail = null;f.call();if (this.UrlQueue.length != 0){this.GetData(this.UrlQueue[0], this.OnSucceedQueue[0], this.OnFailQueue[0]);var a1 = new Array();var a2 = new Array();var a3 = new Array();for (var i=0; i=0; i--){if (g_videoPaths[i] != ""){t_GUIDs[j] = g_GUIDs[i];j++;}}var clipsToAdd = false;for (var i=0; i=0; i--){if (g_videoPaths[i] != ""){t_GUIDs[j] = g_GUIDs[i];t_videoPaths[j] = g_videoPaths[i];t_headlines[j] = g_headlines[i];t_captions[j] = g_captions[i];t_imageUrls[j] = g_imageUrls[i];t_sources[j] = g_sources[i];t_relatedLinkUrls[j] = g_relatedLinkUrls[i];t_relatedLinkText[j] = g_relatedLinkText[i];t_PGs[j] = g_PGs[i];t_PSs[j] = g_PSs[i];t_IDs[j] = g_IDs[i];j++;}}oPlaylist.AddAll(t_GUIDs, t_videoPaths, t_headlines, t_captions, t_imageUrls, t_sources, t_relatedLinkUrls, t_relatedLinkText, t_PGs, t_PSs, t_IDs);}var p_types = new Array();var p_titles = new Array();var p_slideHtml = new Array();var p_abstractHtml = new Array();var p_metdataHtml = new Array();var p_userWeatherCity;var p_userWeatherConditionImg;var p_stockDirection;function setPersonalDataGlobals(types, titles, slideHtml, abstractHtml, metdataHtml, userWeatherCity, userWeatherConditionImg, stockDirection){p_types = types;p_titles = titles;p_slideHtml = slideHtml;p_abstractHtml = abstractHtml;p_metdataHtml = metdataHtml;p_userWeatherCity = userWeatherCity;p_userWeatherConditionImg = userWeatherConditionImg;p_stockDirection = stockDirection;}function addPersonalDataToGlobals(){var topicName = (g_nowCatInd == -1) ? g_topics[g_nowTopicInd] : g_cats[g_nowTopicInd][g_nowCatInd];var newType = "";if ((topicName == "Weather") && (p_userWeatherCity!=null)){newType = "Weather";}if (newType != ""){for (var i=g_types.length; i>0; i--){g_types[i] = g_types[i-1];g_GUIDs[i] = g_GUIDs[i-1];g_PGs[i] = g_PGs[i-1];g_PSs[i] = g_PSs[i-1];g_IDs[i] = g_IDs[i-1];g_sources[i] = g_sources[i-1];g_headlines[i] = g_headlines[i-1];g_captions[i] = g_captions[i-1];g_imageTypes[i] = g_imageTypes[i-1];g_imageUrls[i] = g_imageUrls[i-1];g_videoPaths[i] = g_videoPaths[i-1];g_articleUrls[i] = g_articleUrls[i-1];g_relatedLinkUrls[i] = g_relatedLinkUrls[i-1];g_relatedLinkText[i] = g_relatedLinkText[i-1];}g_types[0] = newType;g_GUIDs[0] = "";g_videoPaths[0] = "";}}function addSlideshowToPlaylist(firstInd){var a = (firstInd==null) ? 0 : firstInd;var t_GUIDs = new Array();var t_videoPaths = new Array();var t_headlines = new Array();var t_captions = new Array();var t_imageUrls = new Array();var t_sources = new Array();var t_relatedLinkUrls = new Array();var t_relatedLinkText = new Array();var t_PGs = new Array();var t_PSs = new Array();var t_IDs = new Array();var j = 0;for (var i=g_scGuids.length-1; i>=0; i--){if (i!=a){t_GUIDs[j] = g_scGuids[i];t_videoPaths[j] = g_scVideoUrls[i];t_headlines[j] = g_scHeadlines[i];t_captions[j] = g_scCaptions[i];t_imageUrls[j] = g_scImageUrls[i];t_sources[j] = g_scSources[i];t_relatedLinkUrls[j] = g_scRelatedLinkUrls[i];t_relatedLinkText[j] = g_scRelatedLinkText[i];t_PGs[j] = g_scPGs[i];t_PSs[j] = g_scPSs[i];t_IDs[j] = g_scIDs[i];j++;}}oPlaylist.AddAll(t_GUIDs, t_videoPaths, t_headlines, t_captions, t_imageUrls, t_sources, t_relatedLinkUrls, t_relatedLinkText, t_PGs, t_PSs, t_IDs);oPlaylist.PutNext(g_scGuids[a], g_scVideoUrls[a], g_scHeadlines[a], g_scCaptions[a], g_scImageUrls[a], g_scSources[a], g_scRelatedLinkUrls[a], g_scRelatedLinkText[a], g_scPGs[a], g_scPSs[a], g_scIDs[a]);}function handleThumbClick(ind, isLoading){var i = (ind + oNavBar.CurrentRatchet) % oNavBar.HTML.length;if (g_types[i] == "Weather"){showWeather();return;}if (g_types[i] == "Stocks"){showStocks();return;} var inPlaylistAtPos = oPlaylist.IndexOf(g_GUIDs[i]); var isPlaying = (oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING); var currentItemIsAd = oMediaPlayer.IsPlayingAd;if (inPlaylistAtPos != -1){if (currentItemIsAd){oMessagePopup.AutoHide("The selected video will play after the advertisement");playItemAfterAd(inPlaylistAtPos);return;}if (inPlaylistAtPos == oPlaylist.Position){if (isLoading){oMessagePopup.AutoHide("The selected video is currently loading");return;}else if (isPlaying){oMessagePopup.AutoHide("The selected video is currently playing");return;}}oMessagePopup.AutoHide("Preparing to play the selected video");playItemAfterAd(inPlaylistAtPos);return;}if (!oPlaylist.PutLast(g_GUIDs[i], g_videoPaths[i], g_headlines[i], g_captions[i], g_imageUrls[i], g_sources[i], g_relatedLinkUrls[i], g_relatedLinkText[i], g_PGs[i], g_PSs[i], g_IDs[i]))return;onPlayListChange();if (isLoading || isPlaying){oMessagePopup.AutoHide("Adding the selected video to the playlist");return;}oMessagePopup.AutoHide("Preparing to play the selected video");playItemAfterAd(oPlaylist.Items.length-1);}function getTopic_Cat(topicInd, catInd){return (catInd==-1) ? topicInd : topicInd + "_" + catInd;}function ImagePreloader() {this.Init = _ipInit;this.Start = _ipStart;this.GetNext = _ipGetNext;this.ImageOb = new Image();this.ImageOb.onload = function(){ oImagePreloader.GetNext() };this.LoadFunction = function(){ oImagePreloader.ImageOb.src = oImagePreloader.Images[oImagePreloader.NowInd]; };this.TimerId = null;}function _ipInit(imageArray){this.Images = imageArray;}function _ipStart(){this.NowInd = -1;this.GetNext();}function _ipGetNext(){window.clearTimeout(this.TimerId);this.NowInd++;if (this.NowInd <= this.Images.length-1){this.TimerId = window.setTimeout(this.LoadFunction, 1);}}function JsPreloader() {this.Init = _jsInit;this.Load = _jsLoad;this.LoadNext = _jsLoadNext;this.Urls = new Array();this.NowLoading = -1;}function _jsInit(topicIds, catIds, client){this.TopicIds = topicIds;this.CatIds = catIds;this.Client = client;}function _jsLoad(nowTopicInd, nowCatInd){this.Urls = new Array();this.NowLoading = -1;this.NowTopic = nowTopicInd;this.NowCat = nowCatInd;var idArray = new Array();if (nowTopicInd == -1){idArray = this.TopicIds;}else if (nowCatInd == -1){idArray = this.CatIds[nowTopicInd];}if (idArray != null){for (var i=0; iind; i--){this.Items[i] = this.Items[i-1];} this.Items[ind] = item;if (inPlaylistAtPos != -1){if (inPlaylistAtPos <= ind){this.Remove(inPlaylistAtPos);if (this.Position > 0)this.Position = this.Position-1;}else {this.Remove(inPlaylistAtPos+1);}}return this.OK;}oMessagePopup.Warning("The video was not added to your playlist because your list is full. The maximum number of videos your playlist can contain is " + this.MaxLength + ".", "");return this.MAX;}function _plRemove(ind){var tmpArr = new Array();var tmpInd = 0;for (var i=0; i=0 ; i--){item = new PlaylistItem(t_GUIDs[i], t_videoPaths[i], t_headlines[i], t_captions[i], t_imageUrls[i], t_sources[i], t_relatedLinkUrls[i], t_relatedLinkText[i], t_PGs[i], t_PSs[i], t_IDs[i]);if (oPlaylist.Insert(item, 0) != oPlaylist.OK)return;}var startItemGuid = getStartupParam("i");if (startItemGuid != ""){var url = urlToGuidLookup(g_startUpParams);oDataFetcher.GetData(url, onGetItemByGuid, onGetItemByGuidFail);}else {DeviceSpecialStart();}}}catch (e){onGetPlaylistFail();}}function onGetPlaylistFail(){DeviceDefaultStart();}function onGetItemByGuid(){try{if (oDataFetcher.Data == ""){onGetItemByGuidFail();return;}eval(oDataFetcher.Data);var item;for (var i=t_GUIDs.length-1; i>=0 ; i--){item = new PlaylistItem(t_GUIDs[i], t_videoPaths[i], t_headlines[i], t_captions[i], t_imageUrls[i], t_sources[i], t_relatedLinkUrls[i], t_relatedLinkText[i], t_PGs[i], t_PSs[i], t_IDs[i]);if (oPlaylist.Insert(item, 0) != oPlaylist.OK)return;}DeviceSpecialStart();}catch (oError){onGetItemByGuidFail();}}function onGetItemByGuidFail(){DeviceDefaultStart();}function getInitialNavView(){var t_topicName = (getStartupParam("m")!="") ? getStartupParam("m") : getStartupParam("menu");var t_categoryName = (getStartupParam("mi")!="") ? getStartupParam("mi") : getStartupParam("menuItem");if (t_topicName!= null){var loadCategory = false;var initTopic = -1;var initCat = -1;for (var a=0; a0; i--){child = ob.children(i-1);ob.removeChild(child);}}function addDiv(ob){var newDiv = document.createElement("DIV");return ob.appendChild(newDiv);}function imageTag(src, w, h, className){var tag = " 0);var t_vidSize;if (!t_playing){t_vidSize = VIDEOSIZE_NONE;}else if (t_navView == NAV_VIEW_HOME){t_vidSize = VIDEOSIZE_MEDIUM;}else {t_vidSize = VIDEOSIZE_SMALL;_playAfterThumbnailLoad = true;t_playing = false;}setVideoSize(t_vidSize);setNavView(t_navView);refreshFooter();updateBacklist();if (t_playing){oPlaylist.MoveTo(0);playCurrent();}}function setVideoSize(videoSize){if (g_nowVideoSize == videoSize)return;g_nowVideoSize = videoSize;window.clearTimeout(iFullScreenTimerId);switch (videoSize){case VIDEOSIZE_NONE:setBodyBg("131517");toggleSlideshow(SLIDESHOW_ON);oMediaPlayer.SetDimensions(0, 0, 0, 0, 0, 0, 0, 0);oAdManager.SetPos(202, 418);oAdManager.Show();oBanner.Show();oBkg1.Show();oBkg2.Hide();oBrandingArea.Hide();oBrowseHeader.Show();oCategoryChooser.Hide();oFullScreenPanel.Hide();oMediaPlayer.Hide();oNavBar.Show();oNowPlaying.Hide();oOnDeckArea.Hide();oProgressBar.Hide();oSlideShow.Show();oVideoMetadata.Hide();oVideoControls.Hide();break;case VIDEOSIZE_SMALL:setBodyBg("131517");toggleSlideshow(SLIDESHOW_OFF);oBrandingArea.SetDimensions(41, 10, 35, 243);oMediaPlayer.SetDimensions(385, 41, 160, 120, 3, 3, 3, 3);oAdManager.SetPos(171, 422);oAdManager.Show();oBanner.Show();oBkg1.Show();oBkg2.Hide();oBrandingArea.Show();oBrowseHeader.Show();oCategoryChooser.Hide();oFullScreenPanel.Hide();oMediaPlayer.Show(true);oNavBar.Show();oNowPlaying.Hide();oOnDeckArea.Hide();oProgressBar.Hide();oSlideShow.Hide();oVideoMetadata.Show();oVideoControls.Hide();oMediaPlayer.Div.focus();break;case VIDEOSIZE_MEDIUM:setBodyBg("131517");toggleSlideshow(SLIDESHOW_OFF);oBrandingArea.SetDimensions(51, 20, 29, 201);oMediaPlayer.SetDimensions(226, 41, 320, 240, 3, 3, 3, 3);oAdManager.SetPos(315, 16);oAdManager.Show();oBanner.Show();oBkg1.Hide();oBkg2.Show();oBrandingArea.Show();oBrowseHeader.Hide();oCategoryChooser.Hide();oFullScreenPanel.Hide();oMediaPlayer.Show(true);oNavBar.Hide();oNowPlaying.Show();oOnDeckArea.Show();oProgressBar.Show();oSlideShow.Hide();oVideoMetadata.Hide();oVideoControls.PlayingView();oVideoControls.Show();oVideoControls.Play.focus();break;case VIDEOSIZE_LARGE:setBodyBg("000000");toggleSlideshow(SLIDESHOW_OFF);oMediaPlayer.SetDimensions(66, 0, 428, 321, 0, 66, 0, 66);oAdManager.Hide();oBanner.Hide();oBkg1.Hide();oBkg2.Hide();oBrandingArea.Hide();oBrowseHeader.Hide();oCategoryChooser.Hide();oFullScreenPanel.Show();oMediaPlayer.Show(false);oNavBar.Hide();oNowPlaying.Hide();oOnDeckArea.Hide();oProgressBar.Hide();oSlideShow.Hide();oVideoMetadata.Hide();oVideoControls.FullScreenView();oVideoControls.Show();oVideoControls.Play.focus();startFsCountdown();break;case VIDEOSIZE_FULL:setBodyBg("000000");toggleSlideshow(SLIDESHOW_OFF);oMediaPlayer.SetDimensions(0, 0, 560, 384, 0, 0, 0, 0);oAdManager.Hide();oBanner.Hide();oBkg1.Hide();oBkg2.Hide();oBrandingArea.Hide();oBrowseHeader.Hide();oCategoryChooser.Hide();oFullScreenPanel.Hide();oMediaPlayer.Show(false);oNavBar.Hide();oNowPlaying.Hide();oOnDeckArea.Hide();oProgressBar.Hide();oSlideShow.Hide();oVideoMetadata.Hide();oVideoControls.Hide();break;}oBanner.Refresh();refreshStatus();}function setBodyBg(clr){document.body.style.background = clr;}function refreshStatus(){var ps = oMediaPlayer.GetPlayState();var str;if (g_ReadyState < rs_Complete)str = "Connecting";else if (ps == PLAYSTATE_BUFFERING)str = "Loading";else if (ps == PLAYSTATE_STOPPED)str = "Stopped";else if (ps == PLAYSTATE_PLAYING)str = "Playing";else if (ps == PLAYSTATE_PAUSED)str = "Paused";else if (ps == PLAYSTATE_FWD)str = "Fast-forwarding";else if (ps == PLAYSTATE_REW)str = "Rewinding";else str = "";switch(g_nowVideoSize){case VIDEOSIZE_MEDIUM:oProgressBar.SetStatus(str);break;case VIDEOSIZE_LARGE:oVideoControls.SetStatus(str);break;}}function startFsCountdown(){window.clearTimeout(iFullScreenTimerId);iFullScreenTimerId = window.setTimeout(goFullScreen, 15000);}function goFullScreen(){setVideoSize(VIDEOSIZE_FULL);refreshFooter();updateBacklist();}function setNavView(view){oDataFetcher.ClearQueue();g_nowNavView = view;switch (view){case NAV_VIEW_HOME:g_nowTopicInd = -1;g_nowCatInd = -1;setMetaDataGlobals(null, null, null, null, null, null, null, null, null, null, null, null, null, null);oBrowseHeader.Clear();oNavBar.Clear();oNavBar.InitTopics(g_topics);oNavBar.SetFocus();break;case NAV_VIEW_PLAYLIST:var t_types = new Array();var t_GUIDs = new Array();var t_headlines = new Array();var t_captions = new Array();var t_imageUrls = new Array();var t_videoPaths = new Array();for (var i=0; i oNavBar.MenuCount)oNavBar.SetRatchet(oPlaylist.Position);else oNavBar.SetRatchet(0);oNavBar.SetFocus();if (_playAfterThumbnailLoad){_playAfterThumbnailLoad = false;oPlaylist.MoveTo(0);playCurrent();}break;case NAV_VIEW_BROWSE:var topicId = (g_nowCatInd == -1) ? g_topicIds[g_nowTopicInd] : g_catIds[g_nowTopicInd][g_nowCatInd];var topicName = (g_nowCatInd == -1) ? g_topics[g_nowTopicInd] : g_cats[g_nowTopicInd][g_nowCatInd];oNavBar.Clear();oCategoryChooser.Hide();oBrowseHeader.ShowLoadingMessage(topicName);var url = urlToJsLoader(topicId, "Anduril");oDataFetcher.GetData(url, onBrowseLoadComplete, onBrowseLoadFail);break;default:break;}oBanner.Refresh();}function onBrowseLoadComplete(){try{eval(oDataFetcher.Data);setMetaDataGlobals(t_types, t_GUIDs, t_PGs, t_PSs, t_IDs, t_sources, t_headlines, t_captions, t_imageTypes, t_imageUrls, t_videoPaths, t_articleUrls, t_relatedLinkUrls, t_relatedLinkText);oImagePreloader.Init(g_imageUrls);oImagePreloader.Start();completeBrowseView();}catch (error){onBrowseLoadFail();}refreshFooter();if (_playAfterThumbnailLoad){_playAfterThumbnailLoad = false;oPlaylist.MoveTo(0);playCurrent();}}function onBrowseLoadFail(){var topicName = (g_nowCatInd == -1) ? g_topics[g_nowTopicInd] : g_cats[g_nowTopicInd][g_nowCatInd];var badCat = getTopic_Cat(g_nowTopicInd, g_nowCatInd);oCategoryChooser.AppendBadCat(badCat);alert("The " + topicName + " category is currently unavailable. Please try again later.");setNavView(NAV_VIEW_HOME);}function completeBrowseView(){var headerText= ""+ g_topics[g_nowTopicInd]+ " — "+ ((g_nowCatInd == -1) ? "All" : g_cats[g_nowTopicInd][g_nowCatInd])+ "";var itemCount = g_headlines.length;oBrowseHeader.MediaCount = itemCount;oBrowseHeader.SetText1(headerText);oNavBar.InitThumbnails(g_headlines, g_imageUrls, g_GUIDs, g_topics[g_nowTopicInd]);oNavBar.SetFocus();}function refreshFooter(){switch (g_nowVideoSize){case VIDEOSIZE_MEDIUM:oFooter.DrawPlayingView();break;case VIDEOSIZE_LARGE:oFooter.Hide();break;case VIDEOSIZE_FULL:oFooter.Hide();break;default:switch (g_nowNavView){case NAV_VIEW_HOME:oFooter.DrawHomeView();break;case NAV_VIEW_PLAYLIST:oFooter.DrawPlaylistView();break;default:oFooter.DrawBrowseView();break;}break;}}function refreshPlaystateFeedback(){oBrandingArea.Refresh();oNowPlaying.Refresh(false);oNavBar.Refresh();oOnDeckArea.Refresh();oVideoMetadata.Refresh(false);oVideoControls.HideShowBtns();}function toggleSlideshow(setting){g_nowSlideshowMode = setting;if (g_nowSlideshowMode == SLIDESHOW_ON){var slides = new Array();for (var i=0; i';}var abstracts = new Array();for (var i=0; i" + "

" + "

" + g_ssCaptions[i] ;var h2 = truncateToHeight(295, 135, "20px", h1);abstracts[i]= ""+ h2+ "

";}oSlideShow.Init(slides, abstracts);iSlideShowTimerId = window.setTimeout(nextSlide, iSlideShowInterval);}else {window.clearTimeout(iSlideShowTimerId);}}function nextSlide(){window.clearTimeout(iSlideShowTimerId);oSlideShow.Next();iSlideShowTimerId = window.setTimeout(nextSlide, iSlideShowInterval);}function updateBacklist(){oBacklistManager.Append(g_nowTopicInd, g_nowCatInd, g_nowVideoSize, g_nowNavView);}function videoGoBack(){if (oCategoryChooser.Div.style.visibility == "visible"){oCategoryChooser.Hide();oFooter.SetFocus();return;}if (oBacklistManager.Items.length<2){if (okToLeaveApp()){oPlaylist.RemoveAll();oMediaPlayer.Stop();return false;}else {return true;}}var prevState = oBacklistManager.Items[oBacklistManager.Items.length -2];var prevTopic = prevState[0];var prevCat = prevState[1];var prevVidSize = prevState[2];var prevNavView = prevState[3];oBacklistManager.RemoveLast();if ((prevNavView == NAV_VIEW_PLAYLIST) && (oPlaylist.Items.length == 0))return videoGoBack();if (prevVidSize >= VIDEOSIZE_LARGE && oMediaPlayer.GetPlayState() == PLAYSTATE_STOPPED)return videoGoBack();if ((prevVidSize == VIDEOSIZE_NONE) && (g_nowSlideshowMode != SLIDESHOW_ON))prevVidSize = VIDEOSIZE_SMALL;if (oPlaylist.Items.length == 0)prevVidSize = VIDEOSIZE_NONE;if ((g_nowTopicInd == prevTopic) && (g_nowCatInd == prevCat) && (g_nowVideoSize == prevVidSize) && (g_nowNavView == prevNavView))return videoGoBack();g_nowTopicInd = prevTopic;g_nowCatInd = prevCat;setVideoSize(prevVidSize);setNavView(prevNavView);refreshFooter();return true;}function clickHelp(){if (okToLeaveApp())CallPaneHelp(PH_topicTOC,'MSNTV_TRS_TOC_Videos.htm');}function clickSlide(){var a = oSlideShow.Slides[oSlideShow.CurrentSlide].ShowcaseIndex;addSlideshowToPlaylist(a);oMessagePopup.AutoHide("Adding top videos to the playlist and preparing to play");setVideoSize(VIDEOSIZE_MEDIUM);setNavView(NAV_VIEW_PLAYLIST);refreshFooter();updateBacklist();playItemAfterAd(oPlaylist.Position+1);}function clickPlayTop(){clickSlide();}function clickPlayAll(){var topicName = (g_nowCatInd == -1) ? g_topics[g_nowTopicInd] : g_cats[g_nowTopicInd][g_nowCatInd];if (catHasClipsNotInPlaylist()){oMessagePopup.AutoHide("Adding all " + htmlDecode(topicName) + " videos to the playlist and preparing to play");addCategoryToPlaylist();setVideoSize(VIDEOSIZE_MEDIUM);updateBacklist();refreshFooter();playItemAfterAd(oPlaylist.Position+1);}else {clickThumb(0);}}function clickIcon(i){var iconInd = (i + oNavBar.CurrentRatchet) % oNavBar.HTML.length; try{var nowIcon = eval("menuItem_" + i);var ob;if (nowIcon.offsetLeft < 230){if (oVideoMetadata.IsSelectable())ob = oVideoMetadata.GetSelectableOb();if (oSlideShow.AbstractIsSelectable())ob = oSlideShow.AbstractDiv.Button;if (oOnDeckArea.IsSelectable())ob = oOnDeckArea.LinkSpan;}else {if (oAdManager.IsSelectable())ob = oAdManager.SelectableOb();if (oSlideShow.PanelIsSelectable())ob = oSlideShow.SlidePanel;if (oMediaPlayer.IsSelectable())ob = oMediaPlayer.Div;}if (ob!=null)ob.focus();}catch (e){}if (iconInd == oNavBar.HTML.length-1){clickPlaylistButton();}else {g_nowTopicInd = iconInd;g_nowCatInd = -1;setNavView(NAV_VIEW_BROWSE);updateBacklist();}}function overThumb(i){if (g_nowNavView != NAV_VIEW_HOME){var h = "(" + oNavBar.GetThumbIndex(i) + " of " + oBrowseHeader.MediaCount + ")";oBrowseHeader.SetText2(h);}}function clickBrowseButton(){oCategoryChooser.Show(g_nowTopicInd, g_nowCatInd);}function overBrowseButton(){oCategoryChooser.Hide();}function offBrowseButton(){oCategoryChooser.Hide();oNavBar.SetFocus();}function clickPip(){switch (g_nowVideoSize){case VIDEOSIZE_SMALL:setVideoSize(VIDEOSIZE_MEDIUM);updateBacklist();refreshFooter();break;case VIDEOSIZE_MEDIUM:setVideoSize(VIDEOSIZE_LARGE);updateBacklist();refreshFooter();break;}}function clickMoreInfo(){setVideoSize(VIDEOSIZE_SMALL);refreshFooter();updateBacklist();}function clickNormalView(){setVideoSize(VIDEOSIZE_MEDIUM);refreshFooter();updateBacklist();oVideoControls.Play.focus();}function clickBrwsBtn(i,j){oFooter.SetFocus();toCat(i,j);}function toCat(a,b){g_nowTopicInd = a;g_nowCatInd = b;setNavView(NAV_VIEW_BROWSE);updateBacklist();}function clickPlaylistButton(){if (oPlaylist.Items.length == 0){alert("Your playlist is empty. To add videos to your playlist, first choose a category, then find the video you want to add and press OK on your keyboard or remote control.");return;}if (g_nowVideoSize == VIDEOSIZE_MEDIUM)setVideoSize(VIDEOSIZE_SMALL);g_nowTopicInd = -1;g_nowCatInd = -1;setNavView(NAV_VIEW_PLAYLIST);refreshFooter();updateBacklist();}function clickHomeButton(){if (g_nowVideoSize == VIDEOSIZE_MEDIUM)setVideoSize(VIDEOSIZE_SMALL);setNavView(NAV_VIEW_HOME);refreshFooter();updateBacklist();}function clickDeleteAll(){if (oMessagePopup.Confirm("Are you sure you want to empty your playlist?")){oPlaylist.RemoveAll();g_ForceFullStop = true;oMediaPlayer.Stop();onPlaylistEnd();oMediaPlayer.IsPlayingAd = false;}}function clickAd(){DeviceClickAway(oAdManager.GetClickThroughUrl());}function clickFullScreen(){setVideoSize(VIDEOSIZE_LARGE);updateBacklist();refreshFooter();}function clickRelatedLink(url, ind){var trackingUrl = oTrackingManager.TrackRelatedLink(url, ind, oPlaylist.GetCurrent());DeviceClickAway(trackingUrl);}function onPlayListChange(){refreshPlaystateFeedback();}function onPrepareToPlay(){if (g_nowVideoSize == VIDEOSIZE_NONE){setVideoSize(VIDEOSIZE_SMALL);updateBacklist();refreshFooter();}}function onPlaylistEnd(){setNavView(NAV_VIEW_HOME);setVideoSize(VIDEOSIZE_NONE);refreshFooter();updateBacklist();oNavBar.Refresh();oNavBar.SetFocus();}function trackViewedClip(guid){var url = urlToUserActivity();url += "action=saveGuid&guid=" + guid;oDataFetcher.GetData(url, onTrackClip, onTrackClipFail);}function onTrackClip(){}function onTrackClipFail(){}function ratchetNavBar(dir, i){if (oNavBar.HTML.length > oNavBar.MenuCount){if (dir=='l')if (oNavBar.CurrentRatchet==0)oNavBar.Draw(oNavBar.HTML.length-1);else oNavBar.Draw(oNavBar.CurrentRatchet-1);else if (oNavBar.CurrentRatchet==oNavBar.HTML.length-1)oNavBar.Draw(0);else oNavBar.Draw(oNavBar.CurrentRatchet+1);}if (g_nowNavView != NAV_VIEW_HOME){var h = "(" + oNavBar.GetThumbIndex(i) + " of " + oBrowseHeader.MediaCount + ")";oBrowseHeader.SetText2(h);}}function clickThumb(ind){handleThumbClick(ind, oMediaPlayer.IsLoading);} \ No newline at end of file diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/1.2.1.322.21/localhost-1700/Shared/Anduril/CssTransforms/en-us/Styles.css b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/1.2.1.322.21/localhost-1700/Shared/Anduril/CssTransforms/en-us/Styles.css new file mode 100644 index 00000000..1b0ae161 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/1.2.1.322.21/localhost-1700/Shared/Anduril/CssTransforms/en-us/Styles.css @@ -0,0 +1 @@ +TD.abTxt{padding-bottom:15;font:18 Segoe;color:#1D1D1D}TD.abLnks{vertical-align:bottom;text-align:right;}ul{margin-top:-2px;margin-bottom:15px;}ul li{margin-left:-24px;margin-bottom:5px;}ul li span.li{position:relative;top:2px;left:-4px;}ul.links{list-style:none;}ul.links li{ position:relative; top:2px; left:-15px; padding-left:13px; background:url(msntv:/Shared/images/BulletCustom.gif) no-repeat; background-position-y:3px;}ul.links li a{ display:inline-block;}TABLE.lotTbl{width:379;table-layout:fixed;}TR.lotR1{height:26;padding-left:8;}TR.lotR2{vertical-align:middle;height:45;font:16 Segoe;}TR.lotR3{height:45;background:#D6D6D7;}TR.lotR5{text-align: right;padding-top:10px;}TD.lotC1{width:110;background: #BFCED6;}TD.lotC2{width:151; background: #BFCED6;}TR.lotSpc{height:10;}TD.lotSpc2{width:2;}TD.lotSpc3{padding-left:8;}TABLE.setTbl{width:379;font:18 Segoe;}TR.setR1{padding-bottom:15;}TR.setR2{padding-bottom:8;}TR.setR3{padding-bottom:15;font:16 Segoe;}TR.setR4{padding-top:15;vertical-align:bottom;text-align:right;}TR.setR5{height:2;background:#919191;} TR.setR6A{}TR.setR6B{background:#BCDEE5;}BODY{margin:0 0 0 0;font:18 Segoe;color: #1D1D1D;behavior: url(/HTC/Shared/FocusBoxKeyHandler.htc);}A:link, A:visited{color: #14224B;text-decoration:none;}SELECT{font:12 Segoe;}SPAN.shrArrw{width:11;height:14;behavior: url(#default#alphaImageLoader);src:/Images/Shared/BulletCustom.png;margin:0 8 0 0;}A.shrLnk1{font:18}A.shrLnk2{font:bold 18;}.shrTxt {font:18}INPUT.shrStngInpt {background-color: #261f4d;color:white; }TABLE.cntr{width:560;height:384;}TABLE.cntrPht{width:560;height:384;behavior: url(#default#gradient);startColor:#B2B2B2;endColor: #EBEBEB;angle: 180;}TR.cntrHdr{height:56;}TR.cntrBdy{height:328;}TD.cntrSdbr{width:151;}TD.cntrSdbr{padding:10 0 10 0;}TD.cntrCnt{width:409;background-color:#E8E9EA;background-image:url(/Images/Shared/CenterBg.jpg);background-repeat:no-repeat;padding:15 0 15 8;}TD.cntrCntPht{width:409;background-repeat:no-repeat;padding:15 0 15 8;}TABLE.cntrHdr{width:542;margin-left:10;}TR.cntrHdrR1{height:29;text-align:right;}TR.cntrHdrR2{height:27;}SPAN.cntrHdrLnks{font:16 Segoe;top:1;color:#E6E6E6}#helpIcon{position: relative;top: 0px;left: 4px;margin-left: 4px;behavior: url(#default#alphaImageLoader);width: 20px;height: 20px;}.helpLink {font-size: 18px;font-weight: normal;display: inline-block;}a.helpLink:link, a.helpLink:visited, a.helpLink:hover {color: #F7F7F7;}SPAN.cntrHdr{top:-3; font:21 Segoe;}SPAN.cntrHdr2{color:#F7F7F7;font-weight: 600;}TABLE.sdbr{font:16 Segoe;color:#1D1D1D;width:151;}TR.sbBtn{height:24;padding-left:10;}TD.sbDiv2{height:1;background:#FFFFFF;}TABLE.sdbrRl{margin:45 10 0 8;border:1px solid;width:133;font:16 Segoe;}TABLE.sdbrPh1{margin:15 10 0 8;border:1px solid;width:133;font:16 Segoe;}DIV.cntntTtl{font:bold 18 Segoe;color:#0F6C1B;height:27;width:379;line-height:85%; }TABLE.cntntTbl{width:379;}.cntrbbModDiv{width:362; height:100;color: #020e29;font-size: 18px;}.cntrbbModBnnr{width:362; height:29;font:bold 21px;}.cntrbbModBnnrImg{width:29;height:22;behavior:url(#default#alphaImageLoader);filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/Images/Home/HomeBBVideo.png', sizingMethod='scale');src=/Images/Home/HomeBBVideo.png;}.cntrbbModBnnrTxt1{color: 434343;padding-right:5;}.cntrbbModImg{width:92;height:69;}.cntrbbModHead{position:absolute;top:95;left:260;width:260; height:23; font-weight:bold;overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}.cntrbbModCptn{position:absolute;left:260;width:260;height:23; overflow: hidden; white-space: nowrap;}.cntrbbModCptn1{top:119;}.cntrbbModCptn2{top:142;text-overflow: ellipsis; }.cntrbbModNoData{position:absolute;top:110;width: 350}DIV.cntntTtlEnt, .cntntTtlGam, .cntntTtlMny, .cntntTtlNws,.cntntTtlPht, .cntntTtlSet, .cntntTtlShp, .cntntTtlSpr, .cntntTtlUsng, .cntntTtlWthr{font:bold 18 Segoe;height:27;width:379;line-height:85%; }TD.cntrSdbrPht{background-color:#B2B2B2;}TD.cntrSdbrEnt, .cntrSdbrGam, .cntrSdbrMny, .cntrSdbrNws, .cntrSdbrSet, .cntrSdbrShp, .cntrSdbrSpr, .cntrSdbrUsng, .cntrSdbrWthr{width:151;padding:10 0 10 0;}TD.cntrHdrEnt { background:url(/Images/Shared/CenterHeaderEntertainment.jpg);}SPAN.hdrTxtEnt { color:#B7D3FD;}TD.sbDiv1Ent { height:1px; background:#275B81;}TD.sbBtnHlFntEnt { color:#A84C0E; font-weight: bold;}TD.cntrSdbrEnt{ background:url(/Images/Shared/CenterSideEntertainment.gif);}DIV.cntntTtlEnt { color:#A84C0E;}TD.cntrHdrGam { background:url(/Images/Shared/CenterHeaderGames.jpg) }SPAN.hdrTxtGam { color:#C2E5FF; }TD.sbDiv1Gam { height:1px; background:#168CD9;}TD.sbBtnHlFntGam { color:#B4571F; font-weight: bold;}TD.cntrSdbrGam { background:url(/Images/Shared/CenterSideGames.gif); }DIV.cntntTtlGam { color:#B4571F;}TD.cntrHdrMny { background:url(/Images/Shared/CenterHeaderMoney.jpg) }SPAN.hdrTxtMny { color:#BAF2C6; }TD.sbDiv1Mny { height:1px; background:#236C24;}TD.sbBtnHlFntMny { color:#A74403; font-weight: bold;}TD.cntrSdbrMny { background:url(/Images/Shared/CenterSideMoney.gif);}DIV.cntntTtlMny { color:#A74403;}SPAN.hdrTxtRad { color:#153A73; }TD.cntrHdrRad { background:url(/Images/Shared/MusicHeaderBG.jpg) }TD.cntrHdrNws { background:url(/Images/Shared/CenterHeaderNews.jpg) }SPAN.hdrTxtNws { color:#9DBBE5; }TD.sbDiv1Nws { height:1px; background:#2D7091;}TD.sbBtnHlFntNws { color:#A84C0E; font-weight: bold;}TD.cntrSdbrNws{ background:url(/Images/Shared/CenterSideNews.gif);}DIV.cntntTtlNws { color:#A84C0E;}TD.cntrHdrPht { background:url(/Images/Shared/PhotoHeader.jpg); }SPAN.hdrTxtPht { color:#B2B2B2; }DIV.cntntTtlPht { color:#CD1F36;}TD.cntrHdrSts { background:url(/Images/Shared/CenterHeader_DEBUG.jpg) }SPAN.hdrTxtStsWthr { color:#BBBBBB; }TD.sbDiv1Set { height:1px; background:#686868;}TD.sbBtnHlFntSet { color:#808080; font-weight: bold;}TD.cntrSdbrSet{ background-color:#808080;}DIV.cntntTtlSet { color:#989898;}TD.cntrHdrShr { background-color:#383838 }SPAN.hdrTxtShr { color:#BBBBBB; }TD.sbDiv1Shr { height:1px; background:#686868;}TD.sbBtnHlFntShr { color:#989898; font-weight: bold;}TD.cntrSdbrShr{ background-color:#808080;}DIV.cntntTtlShr { color:#989898;}TD.cntrHdrShp { background:url(/Images/Shared/CenterHeaderShopping.jpg) }SPAN.hdrTxtShp { color:#CFCBFE; }TD.sbDiv1Shp { height:1px; background:#7E5A96;}TD.sbBtnHlFntShp { color:#A93F26; font-weight: bold;}TD.cntrSdbrShp{background:url(/Images/Shared/CenterSideShopping.gif);}DIV.cntntTtlShp { color:#A93F26;}TD.cntrHdrSpr { background:url(/Images/Shared/CenterHeaderSports.jpg) }SPAN.hdrTxtSpr { color:#FDD8B8; }TD.sbDiv1Spr { height:1px; background:#963E0C;}TD.sbBtnHlFntSpr { color:#943100; font-weight: bold;}TD.cntrSdbrSpr{background:url(/Images/Shared/CenterSideSports.gif);}DIV.cntntTtlSpr { color:#943100; font-weight: bold;}TD.cntrHdrUsng { background:url(/Images/Shared/CenterHeaderUsingMSNTV.jpg) }SPAN.hdrTxtUsng { color:#B7FCDF; }TD.sbDiv1Usng { height:1px; background:#507126;}TD.sbBtnHlFntUsng { color:#9E4701; font-weight: bold;}TD.cntrSdbrUsng{background:url(/Images/Shared/CenterSideUsingMsntv.gif);}DIV.cntntTtlUsng { color:#9E4701;}TD.cntrHdrWthr { background:url(/Images/Shared/CenterHeaderWeather.jpg) }SPAN.hdrTxtWthr { color:#AAE1FF; }TD.sbDiv1Wthr { height:1px; background:#267082;}TD.sbBtnHlFntWthr{ color:#9C4E08; font-weight: bold;}TD.cntrSdbrWthr{ background:url(/Images/Shared/CenterSideWeather.gif);}DIV.cntntTtlWthr { color:#9C4E08;}TR.tsImg{padding-bottom:10; }TD.tsImg1{width:1%;font:10 Segoe;color:#1D1D1D;}TD.tsImg2{width:99%;padding-left:6; }DIV.tsImgLd{padding-top:6;}TR.tsHdlnRw{padding-bottom:6;}TD.tsCol1{width:12;}TD.tsCol2{width:367;}TR.tsLnks{padding-top:10;}TR.tsLnrl{height:2;background:#919191;}TR.tsSpc{height:8;}TABLE.wthTbl{width:379;table-layout:fixed;text-align:center;margin-top:7px;}DIV.wthGrd{width:401;height:26;margin-bottom:10;padding-top:2;font:bold 18;}TABLE.wthTblCC{width:379;table-layout:fixed;text-align:center;}DIV.wthCC{position: relative;top:0;left:0;padding:0 0 7 0;font:18;text-align:left;}SPAN.wthCCimg{position: relative;top:0;left:0;padding-right: 10;height:60;width:68;}SPAN.wthCC1{position: absolute;top:-5px;left:75px;font:36 Segoe;color:#0B9093;}SPAN.wthCC2{position: absolute;top: 40px;left:75px;color:#1D1D1Dmargin-top:15px;}TR.wthR1{height:28;font:18;}TR.wthR2{height:70;}TR.wthR4{text-align:left;padding:10 0 10 0;}TR.wthR5{text-align:right;}TD.wthBrnd{font-size:18px;zoom:70%;}TD.wthC1{width:2px;background:#919191;}TD.wthC2{width:94px;}SPAN.wthLo{font:18;color:#595D75;}DIV.wthInst{padding:0 0 15 0;font:18;width:379;}TABLE.entNws{margin:0 0 0 0;width:379;}TR.entNwsR2{height:25px;}TD.entNwsC1{width:400px;}TD.entNwsC2{width:30px;}TABLE.entMvSrch{margin:8 0 0 8;width:430px;background:#B7D3FD;}TR.entMvSrchR1{height:40px;}TD.entMvSrchC1{width:310px;}TD.entMvSrchC2{width:90px;}TD.entTpTvC1{width:100px;}TD.entTpTvC2{width:10px;}TD.entTpTvC3{width:300px;}TD.entTpTvC4{width:20px;}TABLE.entTvPt{margin:8 0 0 8;width:379;font-size:12;table-layout:fixed;}TABLE.entMvShw{margin:8 0 0 8;width:430px;}TD.entMvShwC1{width:400px;}TABLE.entPhts{margin:8 0 0 8;width:379;height:100px;}TD.mnystkcolspc {width:2;}TD.mnystkcol1 {width:75; background: #BBCEB0;}TD.mnystkcol2 {width:100; background: #BBCEB0;}TD.mnystkcol3 {width:110; background: #BBCEB0;}TD.mnystkcol4 {width:88; background: #BBCEB0;}TD.mnyDsclm{text-align:right;padding-top:10;padding-bottom:15;font-size:10;}TD.mnyDtlLnk{text-align:right;padding-bottom:15;}TD.mnyQlInst{padding-bottom:15;font:18;}TR.mnyBtnRw{vertical-align:bottom;text-align:right;}TD.mnyImg{padding-right:6;padding-left:6; }TR.mnyTR1{height: 90;}TR.mnyTr2{padding-top:10;}.mnyImageUp{behavior: url(#default#alphaImageLoader);src:/Images/Money/HomeStocksUpArrow.png;height:24px;width:14px;} .mnyImageDn{behavior: url(#default#alphaImageLoader);src:/Images/Money/HomeStocksDnArrow.png;height:24px;width:14px;} .eSextImgBorder {border: 1px solid black;width: 80;height: 80;}A.eSextTitle, .eSextTitle{font-size: 18px;font-weight: bold;}A.eSextLink, .eSextLink{font-size: 18px;font-weight: bold;} A.eSextMerchant, .eSextMerchant {font-size: 18px;}.eSextPromo {color: #ff6600;font-size: 18px;}.eSextPrice {font-size: 18px;font-weight: bold;}SPAN.usgCatLft {width:175;padding-left: 8;padding-bottom: 8;}SPAN.usgCatRt {width:175; padding-right: 8; padding-bottom: 8;}SPAN.usgCatTtl{color:#A84C0E;font:18px;font-weight:bold;background:#C7D1BE;width:181px;height:26px;vertical-align:middle;padding-left:8;}TABLE.usgTbl{width:379;}TABLE.usgCatTbl{background:#D3DACC;border:1px solid;border-color:#9A9A9A;width:379;}TABLE.usgLgTbl{width:198;}TABLE.usgSmTbl{width:183;}TD.usgTd2{padding-bottom:8;}TR.usgTr1{height:15;}TR.usgBtnRw{vertical-align:bottom;text-align:right;padding-top:15;}A.usgMainTtl, A.usgMainTtl:visited, A.usgMainTtl:active, A.usgMainTtl:hover{color:#9E4701;font-weight: bold;}.usgTipsIcon{behavior: url(#default#alphaImageLoader);src: /Images/UsingMsntv/CenterIconTips.png;height:42px;width:43px;} .usgNwsIcon{behavior: url(#default#alphaImageLoader);src: /Images/UsingMsntv/CenterIconNewsletter.png;height:42px;width:43px;}.usgTTTIcon{behavior: url(#default#alphaImageLoader);src: /Images/UsingMsntv/CenterIconTTT.png;height:42px;width:43px;} .usgImg{width:178;height:135;margin-right: 10px;}.usgTxt{color: #01682F}.cntntTtlUsng2{font:bold 18 Segoe;color:#9E4701;width:191;line-height:85%; }TR.gmsTr1{height:70;}TD.gmsTd1{width:60;}TD.gmsTd2{width:6;}TD.gmsTd3{width:343;}.stationCategoryHeader{color: #A73D0D;padding-bottom:5px;}.radioRule{width:550px;background-color: #97B7D3;height: 2px;position:relative;left:-12px;}ul.radLinks {list-style:none;}ul.radLinks{position:relative;top:2px;left:-30px;padding-left:15px; behavior: url(#default#alphaImageLoader);background:url(/Images/Shared/BulletCustom.png) no-repeat;background-position-y:3px;}TD.radcntrCnt{width:537px;height: 323;background-image:url(/Images/radio/MusicRadioHomePageBG3.jpg);padding: 15 8 0 15;}TD.radCnt{padding: 15 8 13 15;}DIV.radCntr{width:560;height: 380px;}TABLE.radHmBtmTbl{padding: 0 7 0 238}.radTd1{position:absolute;top:25px;left:0px;width:170px;padding-right:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.radTd2{position:absolute;top:25px;left:180px;width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}TD.radTd3{width:130 px;}TD.radBr{width:394px;}DIV.radSt{width:143px;}TD.radSB{left:403px; position:absolute; width:142pxbackground-color: #E3E9F4;}TD.radMain{width:369px; position:absolutebehavior: url(#default#gradient);startcolor: #E3E94F;endcolor: #B2C4DF;angle: 180;}.radPlus{position:absolute;left:238px;top:274;width:300px;height:98px;behavior: url(#default#gradient);startcolor: #C7EEFF;endcolor: #C7EEFF;starttransparency: 50%;endtransparency: 60%;border-style:solid;border-color:4163A3;border-width:1px;}.radPlsHdr{position:relative;top:10px;height:24px;behavior:url(#default#gradient);startColor:#2E5399;endcolor:#E9F8FF;angle:90;}.radPlusHdrTxt{position:relative;top:3px;left:14px;color:FFFFFF;}.radPlusTxt{position:relative;top:15px;left:14px;}.radPlusLnk{position:relative;top:20px;left:14px;}SPAN.radHdr{color:E6E6E6;font-size:21px;}DIV.cntrHdrRad { background: url(/Images/Shared/MusicHeader.jpg) no-repeat;top:0px; left:0px; height:56px; width:100%;}TD.cntrHdrRad2 { background: url(/Images/Shared/MusicHeader.jpg) no-repeat;top:0px; left:0px; height:56px; width:100%;}.radHdrLinks {font-size: 18px;font-weight: normal;display: inline-block;}a.radHdrLinks:link, a.radHdrLinks:visited, a.radHdrLinks:hover {color: #163973;}DIV.cntrRadHdr { font-family: segoe; color: #A93D0D; font-size: 20px; font-weight: bold;padding-bottom:2px;}.radStationAddRemTitle{width:325px; padding-left:8px}.cntrRadTxt { font-family: segoe; font-size: 18px; vertical-align:top;font-color:#213764;}a.cntrRadTxt:link, a.cntrRadTxt:visited a.cntrRadTxt:hover{font-color:#213764;} .cntrRadFvHmTxt { font-family: segoe; font-size: 18px; vertical-align:top;font-color:#2B2C29;}.cntrRadWmpTitleTxt { font-family: segoe; font-size: 18px; font-weight:bold; color:white }.cntrRadWmpTitleVal { font-family: segoe; font-size: 18px; font-weight:bold; color: #73DDA0 }hr.radDvdr{height:2px;width: 100%;border:#97B7D3 solid 2px;margin-top: 0px;margin-bottom: 0px;}.radInst{width:100%; padding-bottom:15px;}.sideBarBkg{position: absolute;top: 56px;right: 0px;width: 27%;height: 324px;padding-right: 8px;padding-left: 6px;padding-top: 10px;background-color:#D7EDFE;}.sideBarLclBkg{position: absolute;top: 56px;right: 0px;width: 27%;height: 324px;padding-right: 8px;padding-left: 6px;padding-top: 10px;background-color:#D7EDFE;}.sideBarButton{height: 26px;width: 100%;display: block;text-align:left;margin: 0 0 4px 0;}#scrollAreaLg{position: absolute;top: 0px;left: 0px;width: 100%;height: 324px;padding: 15 20 10 15;bottom: 0px;/*height: 1px; will be overridden (because of the bottom value) once the HTC loads */overflow-y: auto;behavior: url(/Shared/Anduril/HTC/en-us/ScrollingDIV.htc);}.scrollAreaBkg{position: relative;top: 0px;left: 0px;width: 73%;height: 324px;behavior: url(#default#gradient);startColor: #BDEAFF; endcolor: #D7ECFD;angle:180;}.scrollAreaLclBkg{position: relative;top: 0px;left: 0px;width: 73%;height: 324px;behavior: url(#default#gradient);startColor:#BDEAFF;endcolor: #D7ECFD;angle:180;}#stateScroll, #cityScroll{position: absolute;top: 0px;left: 0px;width: 100%;height: 300px;padding: 10 0 0 5;bottom: 0px;/*height: 1px; will be overridden (because of the bottom value) once the HTC loads */overflow-y: auto;behavior: url(/Shared/Anduril/HTC/en-us/ScrollingDIV.htc);}.scrollAreaBkgLft{position: absolute;top: 105px;left: 0px;width: 167px;height: 210px;margin-left:15px;background-color: #E1F5FE;border-color:#97B7D3;border-style:solid;border-width:1px;}.scrollAreaBkgRt{position: absolute;top: 105px;left: 190px;width: 214px;height: 210px;margin-right:22px;background-color: #E1F5FE;border-color:#97B7D3;border-style:solid;border-width:1px;}.cityList{display:none;}.lclTitleLft{position:absolute;top:80px;left:15px;height:26px;width:167;behavior:url(#default#gradient);startColor:#33508A;endcolor:#A3B8D5;angle:90;color:FFFFFF;padding-left:5px;padding-top:3px;}.lclTitleRt{position:absolute;top:80px;left:190px;height:26px;width:214;behavior:url(#default#gradient);startColor:#33508A;endcolor:#A3B8D5;angle:90;color:FFFFFF;padding-left:5px;padding-top:3px;display:none;overflow: hidden; text-overflow:ellipsis; white-space:nowrap;}.radLclInst{padding: 15 0 15 15;width:100%; }.radLclLnk{color:#ED3B0D}#favoriteDiv{width:185;}div.favLink{line-height:.95;width:185;margin:3 0 0 3;padding:2 2 2 2;display:none;}.upsellTextArea{padding: 15 0 15 15;} \ No newline at end of file diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/1.2.1.322.21/localhost-1700/Shared/Anduril/JsTransforms/en-us/Scripts.js b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/1.2.1.322.21/localhost-1700/Shared/Anduril/JsTransforms/en-us/Scripts.js new file mode 100644 index 00000000..49eb3799 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/1.2.1.322.21/localhost-1700/Shared/Anduril/JsTransforms/en-us/Scripts.js @@ -0,0 +1 @@ +function submitReplace(f){var url = f.action + "?";for (var i=0; i -1)return true;}return false;}function isAllAlph(s){s = s.toLowerCase();for (var i=0; i -1)return true;}return false;}function isAllNums(s){for (var i=0; i";InitNavObject(this.HelpBtn,"helpBtn","bannerHelp","","","","","","","clickHelp()");}function _baRefresh(){var txt = "MSN Video";if (g_nowVideoSize == VIDEOSIZE_SMALL){if (g_nowNavView == NAV_VIEW_PLAYLIST){txt += " — Playlist";}else if (g_nowNavView == NAV_VIEW_BROWSE){txt += " — " + g_topics[g_nowTopicInd];}}this.TextSpan.innerHTML = txt;}function _baHide(){this.Div.style.visibility = "hidden";}function _baShow(){this.Div.style.visibility = "visible";}function _baIsSelectable(){return (this.Div.style.visibility != "hidden");}function BrandingArea(div, cssClass) {this.Div = div;this.Clear = _brClear;this.Init = _brInit;this.Refresh = _brRefresh;this.Hide = _brHide;this.Show = _brShow;this.SetDimensions = _brSetDimensions;this.Div.className = cssClass;}function _brClear(){clearChildren(this.Div);}function _brInit(){this.Image = addImg(this.Div);this.Image.className = "brandingAreaImage";this.Image.src = "/Images/Shared/s.gif";}function _brSetDimensions(t, l, h, w){this.Image.style.top = t;this.Image.style.left = l;this.Image.style.height = h;this.Image.style.width = w;}function _brRefresh(){if (oPlaylist.Position==-1 || oMediaPlayer.IsPlayingAd || oMediaPlayer.GetPlayState()!=PLAYSTATE_PLAYING)this.Image.src = "/Images/Shared/s.gif";else if (oPlaylist.GetCurrent() != null)this.Image.src = "http://video.msn.com/s/us/sc/i/MSNTV/src/" + oPlaylist.GetCurrent().Source + ".gif";}function _brHide(){this.Div.style.visibility = "hidden";}function _brShow(){this.Div.style.visibility = "visible";}function BrowseHeader(div) {this.Div = div;this.Init = _bhInit;this.SetText1 = _bhSetText1;this.SetText2 = _bhSetText2;this.ShowLoadingMessage = _bhShowLoadingMessage;this.Clear = _bhClear;this.Hide = _bhHide;this.Show = _bhShow;}function _bhInit(){var ob;ob = addSpan(this.Div);ob.className = "browseHeaderTxt1";this.Text1 = ob;ob = addSpan(this.Div);ob.className = "browseHeaderTxt2";this.Text2 = ob;}function _bhSetText1(h){this.Text1.innerHTML = h;}function _bhSetText2(h){this.Text2.innerHTML = h;}function _bhShowLoadingMessage(str){this.Text1.innerHTML = "Please wait while we get " + str + " ready.";this.Text2.innerHTML = "";}function _bhClear(){this.Text1.innerHTML = "";this.Text2.innerHTML = "";}function _bhShow(){this.Div.style.visibility = "visible";}function _bhHide(){this.Div.style.visibility = "hidden";}function CategoryChooser(div, maxSubcats){this.Div = div;this.Init = _ccInit;this.Show = _ccShow;this.Hide = _ccHide;this.AppendBadCat = _ccAppendBadCat;this.ExcludeBtn = _ccExcludeBtn;this.MaxSubcats = maxSubcats;this.FailedSubcats = new Array();}function _ccInit(topics, cats, bottomY){var btn;var btns = new Array();for (var i=0; i= this.MaxSubcats) ? this.MaxSubcats : cats[i].length;for (var j=-1; j=0; j--){var nowBtn = this.Btns[i][j];if (i!=topicInd || this.ExcludeBtn(nowBtn.FullName)){nowBtn.Hide();}else {if (j==catInd+1 && i==topicInd)nowBtn.SetHighlight(true);else nowBtn.SetHighlight(false);nowBtn.style.bottom = bottomY;;bottomY += this.ButtonHeight;nowBtn.Show();}}}var popupHeight= (this.ButtonHeight * this.Btns[topicInd].length);this.Div.style.height = popupHeight;this.Div.style.top = this.BottomY - popupHeight;this.Div.style.visibility = "visible";try{this.Btns[topicInd][catInd+1].focus(); }catch (e){oFooter.SetFocus();}}function _ccHide(){for (var i=0; i= length)wmp.CurrentPosition = length;else wmp.CurrentPosition = currentPos + increment;}}}function _mpShowStatus(s){this.Status.innerHTML = s;}var MGX_ICON_ERROR= 0x10;var MGX_ICON_WARNING= 0x30;var MGX_ICON_INFO= 0x40;var MGX_SIZE_LARGE = 0x0;var MGX_SIZE_SMALL = 0x1;function MessagePopup(){this.Error = _msError;this.Warning = _msWarning;this.Info = _msInfo;this.Confirm = _msConfirm;this.AutoHide = _msAutoHide;}function _msError(msg, caption){alert(msg);}function _msWarning(msg, caption){alert(msg);}function _msInfo(msg, caption){alert(msg);}function _msConfirm(msg){return confirm(msg);}function _msAutoHide(msg){alert(msg);}function NavBar(div){this.Div = div;this.Clear = _nbClear;this.Draw = _nbDraw;this.Refresh = _nbRefresh;this.InitTopics = _nbInitTopics;this.SetFocus = _nbSetFocus;this.SetRatchet = _nbSetRatchet;this.GetThumbIndex = _nbGetThumbIndex;this.InitThumbnails = _nbInitThumbnails;this.GetCatImgClass = _nbGetCatImgClass;this.IsSelectable = _nbIsSelectable;this.Show = _nbShow;this.Hide = _nbHide;}function _nbClear(){clearChildren(this.Div);}function _nbDraw(ind){this.CurrentRatchet = ind;var dividerX = 0;var ob;var css;for (var i=0; i=this.HTML.length)j-=this.HTML.length;ob.innerHTML = this.HTML[j];ob.GUID = this.GUIDs[j];}if (this.Hanger != null && this.HTML.length>this.MenuCount){var j = ind+i;if (j==this.HTML.length)dividerX = this.Hanger.offsetLeft;if (j>=this.HTML.length)j-=this.HTML.length;this.Hanger.innerHTML = imageTag(this.Images[j], 92, 69, "nbThmImg");}if (this.HTML.length>this.MenuCount){this.LeftArrow.innerHTML = " ";this.RightArrow.innerHTML = " ";}else {this.LeftArrow.innerHTML = ""; this.RightArrow.innerHTML = ""; }if (this.Divider != null){this.Divider.style.left = dividerX - (this.Mode == "thumbnails" ? 18 : 8);}this.Refresh();}function _nbRefresh(){if (this.Mode != "thumbnails")return;var doHighlight;for (var i=0; i= 2) ? 2 : titles.length;this.HTML = new Array();this.Images = new Array();this.GUIDs = guids;for (var i=0; i"+ ""+ ""+ imageTag(this.Images[i], 92, 69, "nbThmImg")+ ""+ ""+ ""+ txt+ ""+ ""+ ""+ "";this.HTML[i] = h;}this.LeftArrow = addSpan(this.Div);this.LeftArrow.className = "nbArrSpn";for (var i=0; i"+ " "+ ""+ ""+ txt+ "";this.HTML[i] = h;}var ob;this.LeftArrow = addSpan(this.Div);this.LeftArrow.className = "nbArrSpn";var leftAction;var rightAction;for (var i=0; i Choose Play to begin again.";txt.className = "npMsg";this.SelectableOb = null;}else if (oMediaPlayer.IsPlayingAd){var txt = addSpan(this.Div);txt.innerHTML = "Up next after this advertisement:";txt.className = "npMsg";txt = addSpan(this.Div);txt.innerHTML = oPlaylist.GetCurrent().Title;txt.className = "npUpNxt";var arrw = addSpan(this.Div);arrw.innerHTML = bulletImage();arrw.className = "npArrw";this.MoreInfoBtn = addSpan(this.Div);this.MoreInfoBtn.innerHTML = "More info";InitNavObject(this.MoreInfoBtn,"moreInfoButton","","","","","","","","clickMoreInfo()");this.SelectableOb = this.MoreInfoBtn;}else {if (oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING){var txt = addSpan(this.Div);txt.innerHTML = oPlaylist.GetCurrent().Title;txt.className = "npTitle";var arrw = addSpan(this.Div);arrw.innerHTML = bulletImage();arrw.className = "npArrw";this.MoreInfoBtn = addSpan(this.Div);this.MoreInfoBtn.innerHTML = "More info";InitNavObject(this.MoreInfoBtn,"moreInfoButton","","","","","","","","clickMoreInfo()");this.SelectableOb = this.MoreInfoBtn;}else {var txt = addSpan(this.Div);txt.innerHTML = "Please wait while we get your video ready.";txt.className = "npMsg";this.SelectableOb = null;}}}function _npClear(){clearChildren(this.Div);}function _npShow(){this.Div.style.visibility = "visible";}function _npHide(){this.Div.style.visibility = "hidden";}function _npIsSelectable(){return ((this.Div.style.visibility != "hidden") && (this.SelectableOb!=null));}function OnDeckArea(div) {this.Div = div;this.Init = _odInit;this.Refresh = _odRefresh;this.Hide = _odHide;this.Show = _odShow;this.IsSelectable = _odIsSelectable;}function _odInit(){var ob;ob = addSpan(this.Div);ob.className = "odThumb";this.ThumbSpan = ob;ob = addSpan(this.Div);ob.className = "odTxt1";this.TextSpan1 = ob;ob = addSpan(this.Div);ob.className = "odTxt2";this.TextSpan2 = ob;ob = addSpan(this.Div);ob.className = "odTxt3";this.TextSpan3 = ob;}function _odRefresh(){this.ThumbSpan.innerHTML = "";this.TextSpan1.innerHTML = "";this.TextSpan2.innerHTML = "";this.TextSpan3.innerHTML = "";if (oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING && !oMediaPlayer.IsPlayingAd){if ((oPlaylist.Position == -1) || (oPlaylist.Position+1 >= oPlaylist.Items.length)){this.TextSpan3.innerHTML = "Up next: end of playlist";}else {var currentItem = oPlaylist.Items[oPlaylist.Position+1];this.ThumbSpan.innerHTML = imageTag(currentItem.Thumb, 92, 69, "");this.TextSpan1.innerHTML = "Up next:";this.TextSpan2.innerHTML = currentItem.Title;}}}function _odShow(){this.Div.style.visibility = "visible";}function _odHide(){this.Div.style.visibility = "hidden";}function _odIsSelectable(){return false;}function onBuffering(bStart){if (bStart){}else {refreshStatus();}}var g_ReadyState = 0; var rs_Uninitialized = 0;var rs_Loading = 1;var rs_Interactive = 3;var rs_Complete = 4;var g_clipLoadTimer;var g_adIsLoading;function onReadyStateChange(lReadyState){var hasLoaded = (g_ReadyState == rs_Loading && lReadyState == rs_Complete);refreshStatus();if (hasLoaded){oMediaPlayer.IsLoading = false;window.clearTimeout(g_clipLoadTimer);g_ForceFullStop = false; refreshPlaystateFeedback();oProgressBar.Reset();if (!oMediaPlayer.IsPlayingAd){if (oPlaylist.GetCurrent() != null){trackViewedClip(oPlaylist.GetCurrent().GUID);}}oMediaPlayer.ResetDimensions();}g_ReadyState = lReadyState;}function setClipLoadTimer(seconds, isAd){g_adIsLoading = isAd;var mls = parseInt(seconds)*1000;g_clipLoadTimer = window.setTimeout(function() {checkClipLoad();}, mls);}function checkClipLoad(){window.clearTimeout(g_clipLoadTimer);if(oMediaPlayer.IsLoading) {oMediaPlayer.IsLoading = false;oMediaPlayer.Cancel();if (g_adIsLoading){oMessagePopup.Warning("The advertisement is not available", "");}else {var clip = oPlaylist.GetCurrent();if (clip != null){oMessagePopup.Warning("The video is not available", "");trackViewedClip(clip.GUID);}}postStopAction();return;}}var g_Rewinding = false;var g_ForceFullStop = false;var PLAYSTATE_STOPPED = 0;var PLAYSTATE_PAUSED = 1;var PLAYSTATE_PLAYING = 2;var PLAYSTATE_BUFFERING = 3;var PLAYSTATE_FWD = 4;var PLAYSTATE_REW = 5;var PLAYSTATE_FINISHED = -1;function onPlayStateChange(oldState, newState){refreshStatus();if (oldState == PLAYSTATE_BUFFERING && newState == PLAYSTATE_STOPPED){return;}switch (oMediaPlayer.GetPlayState()){case PLAYSTATE_STOPPED:postStopAction(); break; case PLAYSTATE_BUFFERING: break;case PLAYSTATE_PAUSED:g_Rewinding = false;postPauseAction();break;case PLAYSTATE_PLAYING:g_Rewinding = false;postPlayAction();break;case PLAYSTATE_FINISHED:break;case PLAYSTATE_FWD:g_Rewinding = false;break;case PLAYSTATE_REW:g_Rewinding = true;break;}}function postStopAction(){var l_ForceFullStop = g_ForceFullStop;var l_Rewinding = g_Rewinding;g_ForceFullStop = false;g_Rewinding = false;var action;if (l_ForceFullStop){}else if (l_Rewinding){window.setTimeout(function() {oMediaPlayer.Play();}, 1);}else if (oMediaPlayer.IsPlayingAd){oMediaPlayer.IsPlayingAd = false; playCurrent();}else if (oPlaylist.Position+1 < oPlaylist.Items.length){oPlaylist.MoveNext();playCurrent();}else {onPlaylistEnd();}}function postPlayAction(){}function postPauseAction(){}function playItemAfterAd(ind){if (oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING){if (oMediaPlayer.IsPlayingAd){oPlaylist.MoveTo(ind); }else {oPlaylist.MoveTo(ind-1); oMediaPlayer.Stop();}}else {oPlaylist.MoveTo(ind); playCurrent();}}function playCurrent(){if (oMediaPlayer.IsPlayingAd){if (oMediaPlayer.GetPlayState() != PLAYSTATE_PLAYING)oMediaPlayer.Play();return;}if (oPlaylist.GetCurrent() == null)return;onPrepareToPlay();if (oPlaylist.GetCurrent().GUID != oAdManager.CurrentGUID){oAdManager.CurrentGUID = oPlaylist.GetCurrent().GUID;oAdManager.SetPageGroup(oPlaylist.GetCurrent().PageGroup);oMediaPlayer.IsPlayingAd = oAdManager.EndUserSees=="video";}refreshPlaystateFeedback();iPlayNextTimerId = window.setTimeout(playCurrentB, 100);}function playCurrentB(){window.clearTimeout(iPlayNextTimerId);if (oMediaPlayer.IsPlayingAd){oAdManager.LoadNext();}else {if (oPlaylist.GetCurrent() != null){var url = oPlaylist.GetCurrent().URL;if (url.indexOf("/default.cdnx/") != -1)url += ".asx";oMediaPlayer.PlayMedia(url);oTrackingManager.TrackContentPlay(oPlaylist.GetCurrent());setClipLoadTimer(30, false);}}}function onLoadAdComplete(){oAdManager.ShowLeaveBehind();if (oMediaPlayer.IsPlayingAd){if (oAdManager.ClipSrc==""){postStopAction();}else {oMediaPlayer.PlayMedia(oAdManager.ClipSrc);oTrackingManager.TrackAdPlay(oPlaylist.GetCurrent(), oAdManager.TrackingImgId);setClipLoadTimer(15, true);}}}function ProgressBar(div){this.Div = div;this.Init = _pbInit;this.Refresh = _pbRefresh;this.Reset = _pbReset;this.Hide = _pbHide;this.Show = _pbShow;this.SetStatus = _pbSetStatus;}function _pbInit(player, barWidth){var h = ""+ ""+ ""+ ""+ ""+ ""+ ""+ "
"+ ""+ ""+ ""+ ""+ ""+ "
";this.Div.innerHTML = h;this.Htc = pbHtc;this.Text1 = pbTxt1;this.Text2 = pbTxt2;this.StatusText = pbTxt3;this.Visible = false;this.Player = player;this.BarWidth = barWidth;}function _pbReset(){if (this.Visible){this.Text1.innerHTML = "00:00";this.Duration = Math.floor(this.Player.GetDuration());var mm = Math.floor(this.Duration/60);var ss = this.Duration - mm*60;this.Text2.innerHTML= ((mm < 10) ? "0" + mm : mm)+ ":"+ ((ss < 10) ? "0" + ss : ss);this.Htc.percentComplete = 0;this.Refresh();}}function _pbRefresh(){window.clearTimeout(this.TimerId);if (this.Visible){try{var mls = this.Player.GetMediaPosition();var sec = Math.floor(mls/1000);var mm = Math.floor(sec/60);var ss = sec - mm*60;if (mm == -1){this.Text1.innerHTML = "00:00";}else {this.Text1.innerHTML= ((mm < 10) ? "0" + mm : mm)+ ":"+ ((ss < 10) ? "0" + ss : ss);}this.Htc.percentComplete = Math.round(sec/this.Duration*100);}catch (exception){this.Text1.innerHTML = "00:00";this.Htc.percentComplete = 0;}this.TimerId = window.setTimeout(function() {oProgressBar.Refresh();}, 1000);}}function _pbHide(){clearTimeout(this.TimerId);this.Div.style.visibility = "hidden";this.Visible = false;}function _pbShow(){this.Visible = true;this.Reset();this.Div.style.visibility = "visible";}function _pbSetStatus(s){this.StatusText.innerHTML = s;}function SlideShow(slidePanel, abstractDiv){this.SlidePanel = slidePanel;this.AbstractDiv = abstractDiv;this.Init = _ssInit;this.Clear = _ssClear;this.Next = _ssNext;this.Hide = _ssHide;this.Show = _ssShow;this.ShowAbstract = _ssShowAbstract;this.PanelIsSelectable = _ssPanelIsSelectable;this.AbstractIsSelectable = _ssAbstractIsSelectable;}function _ssInit(slideHtml, abstractHtml){this.Clear();this.AbstractHtml = abstractHtml;this.Slides = new Array();var slide;for (var i=0; i");return toOb.appendChild(btn);}function bulletImage(){var h = " h){wordsThatFit = i-1;break;}}for (var i=0; i 0);showSkip = (oPlaylist.Position < oPlaylist.Items.length-1);}}this.Rew.style.display = (showRew) ? "inline" : "none"; this.Fwd.style.display = (showFwd) ? "inline" : "none"; this.Prev.style.display = (showPrev) ? "inline" : "none"; this.Next.style.display = (showSkip) ? "inline" : "none";if((nowFocusOb==this.Rew || nowFocusOb==this.Fwd || nowFocusOb==this.Prev || nowFocusOb==this.Next)&&(nowFocusOb.style.display == "none")&&(this.Div.style.visibility != "hidden")){if (showSkip) this.Next.focus();else if (showPrev) this.Prev.focus();else if (showFwd) this.Fwd.focus();else if (showRew) this.Rew.focus();else this.Stop.focus();}}catch (error){}}function _vcPlayingView(){this.Div.className = "vcDiv vcDivPlaying";this.FullScreenBtn.style.display = "inline";this.NormalViewBtn.style.display = "none";this.Mute.style.display = "none";this.UnMute.style.display = "none";this.Play.style.display = "inline";this.Pause.style.display = "inline";this.Stop.style.display = "inline";this.Rew.style.display = "none";this.Fwd.style.display = "none";this.Prev.style.display = "inline";this.Next.style.display = "inline";}function _vcFullScreenView(){this.Div.className = "vcDiv vcDivFullScrn";this.FullScreenBtn.style.display = "none";this.NormalViewBtn.style.display = "inline";this.RefreshMute();this.Play.style.display = "inline";this.Pause.style.display = "inline";this.Stop.style.display = "inline";this.Rew.style.display = "inline";this.Fwd.style.display = "inline";this.Prev.style.display = "inline";this.Next.style.display = "inline";}function _vcShow(){this.Div.style.visibility = "visible";this.HideShowBtns();}function _vcHide(){this.Div.style.visibility = "hidden";}function _vcIsSelectable(){return (this.Div.style.visibility != "hidden");}function _vcClickMute(){oMediaPlayer.Player.Mute = !oMediaPlayer.Player.Mute;oVideoControls.RefreshMute();if (oMediaPlayer.Player.Mute)oVideoControls.UnMute.focus();else oVideoControls.Mute.focus();}function _vcRefreshMute(){if (oMediaPlayer.Player.Mute){this.Mute.style.display = "none";this.UnMute.style.display = "inline";}else {this.Mute.style.display = "inline";this.UnMute.style.display = "none";}}function _vcClickPlay(){switch (oMediaPlayer.GetPlayState()){case PLAYSTATE_PLAYING:break;case PLAYSTATE_PAUSED:case PLAYSTATE_FWD:case PLAYSTATE_REW:case PLAYSTATE_STOPPED:oMediaPlayer.Play();refreshPlaystateFeedback();break;default:if (oPlaylist.Position == -1)oPlaylist.Position = 0;playCurrent();break;}}function _vcClickPause(){if (oMediaPlayer.GetPlayState() == PLAYSTATE_PAUSED){oMediaPlayer.Play();}else {try{oMediaPlayer.Pause();}catch (error){}}}function _vcClickStop(){window.clearTimeout(g_clipLoadTimer);if (oMediaPlayer.IsLoading){oMediaPlayer.Cancel();oMediaPlayer.IsLoading = false;}else if (oMediaPlayer.GetPlayState() == PLAYSTATE_STOPPED){}else {try{if (oMediaPlayer.GetPlayState() != PLAYSTATE_BUFFERING) g_ForceFullStop = true;oMediaPlayer.Stop();oMediaPlayer.SetMediaPosition(0);oBrandingArea.Refresh();oVideoMetadata.Refresh(true);oNowPlaying.Refresh(true);}catch (error){}}}function _vcClickRew(){oMediaPlayer.Rew();}function _vcClickFwd(){oMediaPlayer.Fwd();}function _vcClickPrev(){playItemAfterAd(oPlaylist.Position-1);}function _vcClickNext(){if (oPlaylist.Position+1 < oPlaylist.Items.length){g_ForceFullStop = true;oMediaPlayer.Stop();oPlaylist.MoveNext();playCurrent();}else {}}function VideoMetadata(div, innerDiv) {this.Div = div;this.InnerDiv = innerDiv;this.Init = _vmInit;this.Refresh = _vmRefresh;this.Clear = _vmClear;this.Hide = _vmHide;this.Show = _vmShow;this.IsSelectable = _vmIsSelectable;this.GetSelectableOb = _vmGetSelectableOb;}function _vmInit(){}function _vmRefresh(userStopped){this.Clear();if(oPlaylist.GetCurrent() == null)return;if (userStopped){var txt = addSpan(this.InnerDiv);txt.innerHTML = "You have stopped the video.

Choose Play to begin again.";txt.className = "vmTxt1";this.SelectableOb = null;}else if (oMediaPlayer.IsPlayingAd){var txt = addSpan(this.InnerDiv);txt.innerHTML = "Up next after this advertisement:";txt.className = "vmTxt1";txt = addSpan(this.InnerDiv);txt.innerHTML = oPlaylist.GetCurrent().Title;txt.className = "vmTxt2";this.SelectableOb = null;}else {if (oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING){var title = addSpan(this.InnerDiv);title.innerHTML = oPlaylist.GetCurrent().Title;title.className = "vmTxt3";var abstract = addSpan(this.InnerDiv);abstract.innerHTML = oPlaylist.GetCurrent().Caption;abstract.className = "vmTxt4";var urls = oPlaylist.GetCurrent().LinkUrls;var text = oPlaylist.GetCurrent().LinkText;var addedLink = false;for (var i=0; i 0){var i = this.Items[this.Items.length-1];if (i[0]==topicInd && i[1]==catInd && i[2]==videoSize && i[3]==navView){return;}if (i[0]==topicInd && i[1]==catInd && i[2]==videoSize && i[3]==navView){return;}}this.Items[this.Items.length] = new Array(topicInd, catInd, videoSize, navView);}function _bmRemoveLast(){var a = new Array();for (var i=0; i< this.Items.length-1; i++){a[i] = this.Items[i];}this.Items = a;}var PLAYLIST_MAX = 1000;var g_nowNavView;var NAV_VIEW_HOME = 0;var NAV_VIEW_BROWSE = 1;var NAV_VIEW_PLAYLIST = 2;var g_nowTopicInd = -1;var g_nowCatInd = -1;var g_bBlockInput = false;var g_types;var g_GUIDs;var g_PGs;var g_PSs;var g_IDs;var g_sources;var g_headlines;var g_captions;var g_imageTypes;var g_imageUrls;var g_videoPaths;var g_articleUrls;var g_relatedLinkUrls;var g_relatedLinkText;function setMetaDataGlobals(types, GUIDs, PGs, PSs, IDs, sources, headlines, captions, imageTypes, imageUrls, videoPaths, articleUrls, relatedLinkUrls, relatedLinkText){g_types = (types != null) ? types : new Array();g_GUIDs = (GUIDs != null) ? GUIDs : new Array();g_PGs = (PGs != null) ? PGs : new Array();g_PSs = (PSs != null) ? PSs : new Array();g_IDs = (IDs != null) ? IDs : new Array();g_sources = (sources != null) ? sources : new Array();g_headlines = (headlines != null) ? headlines : new Array();g_captions = (captions != null) ? captions : new Array();g_imageTypes = (imageTypes != null) ? imageTypes : new Array();g_imageUrls = (imageUrls != null) ? imageUrls : new Array();g_videoPaths = (videoPaths != null) ? videoPaths : new Array();g_articleUrls = (articleUrls != null) ? articleUrls : new Array();g_relatedLinkUrls = (relatedLinkUrls != null) ? relatedLinkUrls : new Array();g_relatedLinkText = (relatedLinkText != null) ? relatedLinkText : new Array();}function catHasClipsNotInPlaylist(){var t_GUIDs = new Array();var j = 0;for (var i=g_GUIDs.length-1; i>=0; i--){if (g_videoPaths[i] != ""){t_GUIDs[j] = g_GUIDs[i];j++;}}var clipsToAdd = false;for (var i=0; i=0; i--){if (g_videoPaths[i] != ""){t_GUIDs[j] = g_GUIDs[i];t_videoPaths[j] = g_videoPaths[i];t_headlines[j] = g_headlines[i];t_captions[j] = g_captions[i];t_imageUrls[j] = g_imageUrls[i];t_sources[j] = g_sources[i];t_relatedLinkUrls[j] = g_relatedLinkUrls[i];t_relatedLinkText[j] = g_relatedLinkText[i];t_PGs[j] = g_PGs[i];t_PSs[j] = g_PSs[i];t_IDs[j] = g_IDs[i];j++;}}oPlaylist.AddAll(t_GUIDs, t_videoPaths, t_headlines, t_captions, t_imageUrls, t_sources, t_relatedLinkUrls, t_relatedLinkText, t_PGs, t_PSs, t_IDs);}var p_types = new Array();var p_titles = new Array();var p_slideHtml = new Array();var p_abstractHtml = new Array();var p_metdataHtml = new Array();var p_userWeatherCity;var p_userWeatherConditionImg;var p_stockDirection;function setPersonalDataGlobals(types, titles, slideHtml, abstractHtml, metdataHtml, userWeatherCity, userWeatherConditionImg, stockDirection){p_types = types;p_titles = titles;p_slideHtml = slideHtml;p_abstractHtml = abstractHtml;p_metdataHtml = metdataHtml;p_userWeatherCity = userWeatherCity;p_userWeatherConditionImg = userWeatherConditionImg;p_stockDirection = stockDirection;}function addPersonalDataToGlobals(){var topicName = (g_nowCatInd == -1) ? g_topics[g_nowTopicInd] : g_cats[g_nowTopicInd][g_nowCatInd];var newType = "";if ((topicName == "Weather") && (p_userWeatherCity!=null)){newType = "Weather";}if (newType != ""){for (var i=g_types.length; i>0; i--){g_types[i] = g_types[i-1];g_GUIDs[i] = g_GUIDs[i-1];g_PGs[i] = g_PGs[i-1];g_PSs[i] = g_PSs[i-1];g_IDs[i] = g_IDs[i-1];g_sources[i] = g_sources[i-1];g_headlines[i] = g_headlines[i-1];g_captions[i] = g_captions[i-1];g_imageTypes[i] = g_imageTypes[i-1];g_imageUrls[i] = g_imageUrls[i-1];g_videoPaths[i] = g_videoPaths[i-1];g_articleUrls[i] = g_articleUrls[i-1];g_relatedLinkUrls[i] = g_relatedLinkUrls[i-1];g_relatedLinkText[i] = g_relatedLinkText[i-1];}g_types[0] = newType;g_GUIDs[0] = "";g_videoPaths[0] = "";}}function addSlideshowToPlaylist(firstInd){var a = (firstInd==null) ? 0 : firstInd;var t_GUIDs = new Array();var t_videoPaths = new Array();var t_headlines = new Array();var t_captions = new Array();var t_imageUrls = new Array();var t_sources = new Array();var t_relatedLinkUrls = new Array();var t_relatedLinkText = new Array();var t_PGs = new Array();var t_PSs = new Array();var t_IDs = new Array();var j = 0;for (var i=g_scGuids.length-1; i>=0; i--){if (i!=a){t_GUIDs[j] = g_scGuids[i];t_videoPaths[j] = g_scVideoUrls[i];t_headlines[j] = g_scHeadlines[i];t_captions[j] = g_scCaptions[i];t_imageUrls[j] = g_scImageUrls[i];t_sources[j] = g_scSources[i];t_relatedLinkUrls[j] = g_scRelatedLinkUrls[i];t_relatedLinkText[j] = g_scRelatedLinkText[i];t_PGs[j] = g_scPGs[i];t_PSs[j] = g_scPSs[i];t_IDs[j] = g_scIDs[i];j++;}}oPlaylist.AddAll(t_GUIDs, t_videoPaths, t_headlines, t_captions, t_imageUrls, t_sources, t_relatedLinkUrls, t_relatedLinkText, t_PGs, t_PSs, t_IDs);oPlaylist.PutNext(g_scGuids[a], g_scVideoUrls[a], g_scHeadlines[a], g_scCaptions[a], g_scImageUrls[a], g_scSources[a], g_scRelatedLinkUrls[a], g_scRelatedLinkText[a], g_scPGs[a], g_scPSs[a], g_scIDs[a]);}function handleThumbClick(ind, isLoading){var i = (ind + oNavBar.CurrentRatchet) % oNavBar.HTML.length;if (g_types[i] == "Weather"){showWeather();return;}if (g_types[i] == "Stocks"){showStocks();return;} var inPlaylistAtPos = oPlaylist.IndexOf(g_GUIDs[i]); var isPlaying = (oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING); var currentItemIsAd = oMediaPlayer.IsPlayingAd;if (inPlaylistAtPos != -1){if (currentItemIsAd){oMessagePopup.AutoHide("The selected video will play after the advertisement");playItemAfterAd(inPlaylistAtPos);return;}if (inPlaylistAtPos == oPlaylist.Position){if (isLoading){oMessagePopup.AutoHide("The selected video is currently loading");return;}else if (isPlaying){oMessagePopup.AutoHide("The selected video is currently playing");return;}}oMessagePopup.AutoHide("Preparing to play the selected video");playItemAfterAd(inPlaylistAtPos);return;}if (!oPlaylist.PutLast(g_GUIDs[i], g_videoPaths[i], g_headlines[i], g_captions[i], g_imageUrls[i], g_sources[i], g_relatedLinkUrls[i], g_relatedLinkText[i], g_PGs[i], g_PSs[i], g_IDs[i]))return;onPlayListChange();if (isLoading || isPlaying){oMessagePopup.AutoHide("Adding the selected video to the playlist");return;}oMessagePopup.AutoHide("Preparing to play the selected video");playItemAfterAd(oPlaylist.Items.length-1);}function getTopic_Cat(topicInd, catInd){return (catInd==-1) ? topicInd : topicInd + "_" + catInd;}function ImagePreloader() {this.Init = _ipInit;this.Start = _ipStart;this.GetNext = _ipGetNext;this.ImageOb = new Image();this.ImageOb.onload = function(){ oImagePreloader.GetNext() };this.LoadFunction = function(){ oImagePreloader.ImageOb.src = oImagePreloader.Images[oImagePreloader.NowInd]; };this.TimerId = null;}function _ipInit(imageArray){this.Images = imageArray;}function _ipStart(){this.NowInd = -1;this.GetNext();}function _ipGetNext(){window.clearTimeout(this.TimerId);this.NowInd++;if (this.NowInd <= this.Images.length-1){this.TimerId = window.setTimeout(this.LoadFunction, 1);}}function JsPreloader() {this.Init = _jsInit;this.Load = _jsLoad;this.LoadNext = _jsLoadNext;this.OnComplete = _jsOnComplete;this.Urls = new Array();this.NowLoading = -1;}function _jsInit(topicIds, catIds, client){this.TopicIds = topicIds;this.CatIds = catIds;this.Client = client;}function _jsLoad(nowTopicInd, nowCatInd){this.Urls = new Array();this.NowLoading = -1;this.NowTopic = nowTopicInd;this.NowCat = nowCatInd;var idArray = new Array();if (nowTopicInd == -1){idArray = this.TopicIds;}else if (nowCatInd == -1){idArray = this.CatIds[nowTopicInd];}if (idArray != null){for (var i=0; iind; i--){this.Items[i] = this.Items[i-1];} this.Items[ind] = item;if (inPlaylistAtPos != -1){if (inPlaylistAtPos <= ind){this.Remove(inPlaylistAtPos);if (this.Position > 0)this.Position = this.Position-1;}else {this.Remove(inPlaylistAtPos+1);}}return this.OK;}oMessagePopup.Warning("The video was not added to your playlist because your list is full. The maximum number of videos your playlist can contain is " + this.MaxLength + ".", "");return this.MAX;}function _plRemove(ind){var tmpArr = new Array();var tmpInd = 0;for (var i=0; i=0 ; i--){item = new PlaylistItem(t_GUIDs[i], t_videoPaths[i], t_headlines[i], t_captions[i], t_imageUrls[i], t_sources[i], t_relatedLinkUrls[i], t_relatedLinkText[i], t_PGs[i], t_PSs[i], t_IDs[i]);if (oPlaylist.Insert(item, 0) != oPlaylist.OK)return;}var startItemGuid = getStartupParam("i");if (startItemGuid != ""){var url = urlToGuidLookup(g_startUpParams);loadUrl(url, addItemByGuid);}else {DeviceSpecialStart();}}catch (oError){DeviceDefaultStart();}}}function addItemByGuid(){if (XmlHttp.readyState==4) {try{if (XmlHttp.responseText == ""){DeviceDefaultStart();return;}eval(XmlHttp.responseText);var item;for (var i=t_GUIDs.length-1; i>=0 ; i--){item = new PlaylistItem(t_GUIDs[i], t_videoPaths[i], t_headlines[i], t_captions[i], t_imageUrls[i], t_sources[i], t_relatedLinkUrls[i], t_relatedLinkText[i], t_PGs[i], t_PSs[i], t_IDs[i]);if (oPlaylist.Insert(item, 0) != oPlaylist.OK)return;}DeviceSpecialStart();}catch (oError){DeviceDefaultStart();}}}function getInitialNavView(){var t_topicName = (getStartupParam("m")!="") ? getStartupParam("m") : getStartupParam("menu");var t_categoryName = (getStartupParam("mi")!="") ? getStartupParam("mi") : getStartupParam("menuItem");if (t_topicName!= null){var loadCategory = false;var initTopic = -1;var initCat = -1;for (var a=0; a0; i--){child = ob.children(i-1);ob.removeChild(child);}}function addDiv(ob){var newDiv = document.createElement("DIV");return ob.appendChild(newDiv);}function loadUrl(url, callBackFunction){XmlHttp = new ActiveXObject("Microsoft.XMLHTTP");XmlHttp.open("GET", url, true);XmlHttp.onreadystatechange = callBackFunction;XmlHttp.send(null);}function imageTag(src, w, h, className){var tag = " 0);var t_vidSize;if (!t_playing){t_vidSize = VIDEOSIZE_NONE;}else if (t_navView == NAV_VIEW_HOME){t_vidSize = VIDEOSIZE_MEDIUM;}else {t_vidSize = VIDEOSIZE_SMALL;_playAfterThumbnailLoad = true;t_playing = false;}setVideoSize(t_vidSize);setNavView(t_navView);refreshFooter();updateBacklist();if (t_playing){oPlaylist.MoveTo(0);playCurrent();}}function setVideoSize(videoSize){if (g_nowVideoSize == videoSize)return;g_nowVideoSize = videoSize;window.clearTimeout(iFullScreenTimerId);switch (videoSize){case VIDEOSIZE_NONE:setBodyBg("131517");toggleSlideshow(SLIDESHOW_ON);oMediaPlayer.SetDimensions(0, 0, 0, 0, 0, 0, 0, 0);oAdManager.SetPos(202, 418);oAdManager.Show();oBanner.Show();oBkg1.Show();oBkg2.Hide();oBrandingArea.Hide();oBrowseHeader.Show();oCategoryChooser.Hide();oFullScreenPanel.Hide();oMediaPlayer.Hide();oNavBar.Show();oNowPlaying.Hide();oOnDeckArea.Hide();oProgressBar.Hide();oSlideShow.Show();oVideoMetadata.Hide();oVideoControls.Hide();break;case VIDEOSIZE_SMALL:setBodyBg("131517");toggleSlideshow(SLIDESHOW_OFF);oBrandingArea.SetDimensions(41, 10, 35, 243);oMediaPlayer.SetDimensions(385, 41, 160, 120, 3, 3, 3, 3);oAdManager.SetPos(171, 422);oAdManager.Show();oBanner.Show();oBkg1.Show();oBkg2.Hide();oBrandingArea.Show();oBrowseHeader.Show();oCategoryChooser.Hide();oFullScreenPanel.Hide();oMediaPlayer.Show(true);oNavBar.Show();oNowPlaying.Hide();oOnDeckArea.Hide();oProgressBar.Hide();oSlideShow.Hide();oVideoMetadata.Show();oVideoControls.Hide();oMediaPlayer.Div.focus();break;case VIDEOSIZE_MEDIUM:setBodyBg("131517");toggleSlideshow(SLIDESHOW_OFF);oBrandingArea.SetDimensions(51, 20, 29, 201);oMediaPlayer.SetDimensions(226, 41, 320, 240, 3, 3, 3, 3);oAdManager.SetPos(315, 16);oAdManager.Show();oBanner.Show();oBkg1.Hide();oBkg2.Show();oBrandingArea.Show();oBrowseHeader.Hide();oCategoryChooser.Hide();oFullScreenPanel.Hide();oMediaPlayer.Show(true);oNavBar.Hide();oNowPlaying.Show();oOnDeckArea.Show();oProgressBar.Show();oSlideShow.Hide();oVideoMetadata.Hide();oVideoControls.PlayingView();oVideoControls.Show();oVideoControls.Play.focus();break;case VIDEOSIZE_LARGE:setBodyBg("000000");toggleSlideshow(SLIDESHOW_OFF);oMediaPlayer.SetDimensions(66, 0, 428, 321, 0, 66, 0, 66);oAdManager.Hide();oBanner.Hide();oBkg1.Hide();oBkg2.Hide();oBrandingArea.Hide();oBrowseHeader.Hide();oCategoryChooser.Hide();oFullScreenPanel.Show();oMediaPlayer.Show(false);oNavBar.Hide();oNowPlaying.Hide();oOnDeckArea.Hide();oProgressBar.Hide();oSlideShow.Hide();oVideoMetadata.Hide();oVideoControls.FullScreenView();oVideoControls.Show();oVideoControls.Play.focus();startFsCountdown();break;case VIDEOSIZE_FULL:setBodyBg("000000");toggleSlideshow(SLIDESHOW_OFF);oMediaPlayer.SetDimensions(0, 0, 560, 384, 0, 0, 0, 0);oAdManager.Hide();oBanner.Hide();oBkg1.Hide();oBkg2.Hide();oBrandingArea.Hide();oBrowseHeader.Hide();oCategoryChooser.Hide();oFullScreenPanel.Hide();oMediaPlayer.Show(false);oNavBar.Hide();oNowPlaying.Hide();oOnDeckArea.Hide();oProgressBar.Hide();oSlideShow.Hide();oVideoMetadata.Hide();oVideoControls.Hide();break;}oBanner.Refresh();refreshStatus();}function setBodyBg(clr){document.body.style.background = clr;}function refreshStatus(){var ps = oMediaPlayer.GetPlayState();var str;if (g_ReadyState < rs_Complete)str = "Connecting";else if (ps == PLAYSTATE_BUFFERING)str = "Loading";else if (ps == PLAYSTATE_STOPPED)str = "Stopped";else if (ps == PLAYSTATE_PLAYING)str = "Playing";else if (ps == PLAYSTATE_PAUSED)str = "Paused";else if (ps == PLAYSTATE_FWD)str = "Fast-forwarding";else if (ps == PLAYSTATE_REW)str = "Rewinding";else str = "";switch(g_nowVideoSize){case VIDEOSIZE_MEDIUM:oProgressBar.SetStatus(str);break;case VIDEOSIZE_LARGE:oVideoControls.SetStatus(str);break;}}function startFsCountdown(){window.clearTimeout(iFullScreenTimerId);iFullScreenTimerId = window.setTimeout(goFullScreen, 15000);}function goFullScreen(){setVideoSize(VIDEOSIZE_FULL);refreshFooter();updateBacklist();}function setNavView(view){g_nowNavView = view;switch (view){case NAV_VIEW_HOME:g_nowTopicInd = -1;g_nowCatInd = -1;setMetaDataGlobals(null, null, null, null, null, null, null, null, null, null, null, null, null, null);oBrowseHeader.Clear();oJsPreloader.Load(g_nowTopicInd, g_nowCatInd);oNavBar.Clear();oNavBar.InitTopics(g_topics);oNavBar.SetFocus();break;case NAV_VIEW_PLAYLIST:var t_types = new Array();var t_GUIDs = new Array();var t_headlines = new Array();var t_captions = new Array();var t_imageUrls = new Array();var t_videoPaths = new Array();for (var i=0; i oNavBar.MenuCount)oNavBar.SetRatchet(oPlaylist.Position);else oNavBar.SetRatchet(0);oNavBar.SetFocus();if (_playAfterThumbnailLoad){_playAfterThumbnailLoad = false;oPlaylist.MoveTo(0);playCurrent();}break;case NAV_VIEW_BROWSE:var topicId = (g_nowCatInd == -1) ? g_topicIds[g_nowTopicInd] : g_catIds[g_nowTopicInd][g_nowCatInd];var topicName = (g_nowCatInd == -1) ? g_topics[g_nowTopicInd] : g_cats[g_nowTopicInd][g_nowCatInd];oNavBar.Clear();oCategoryChooser.Hide();oBrowseHeader.ShowLoadingMessage(topicName);var url = urlToJsLoader(topicId, "Anduril");loadUrl(url, BrowseLoadComplete);break;default:break;}oBanner.Refresh();}function BrowseLoadComplete(){if (XmlHttp.readyState==4) {try{eval(XmlHttp.responseText);setMetaDataGlobals(t_types, t_GUIDs, t_PGs, t_PSs, t_IDs, t_sources, t_headlines, t_captions, t_imageTypes, t_imageUrls, t_videoPaths, t_articleUrls, t_relatedLinkUrls, t_relatedLinkText);oImagePreloader.Init(g_imageUrls);oImagePreloader.Start();completeBrowseView();}catch (error){var topicName = (g_nowCatInd == -1) ? g_topics[g_nowTopicInd] : g_cats[g_nowTopicInd][g_nowCatInd];var badCat = getTopic_Cat(g_nowTopicInd, g_nowCatInd);oCategoryChooser.AppendBadCat(badCat);alert("The " + topicName + " category is currently unavailable. Please try again later.");setNavView(NAV_VIEW_HOME);}refreshFooter();if (_playAfterThumbnailLoad){_playAfterThumbnailLoad = false;oPlaylist.MoveTo(0);playCurrent();}}}function completeBrowseView(){var headerText= ""+ g_topics[g_nowTopicInd]+ " — "+ ((g_nowCatInd == -1) ? "All" : g_cats[g_nowTopicInd][g_nowCatInd])+ "";var itemCount = g_headlines.length;oBrowseHeader.MediaCount = itemCount;oBrowseHeader.SetText1(headerText);oJsPreloader.Load(g_nowTopicInd, g_nowCatInd);oNavBar.InitThumbnails(g_headlines, g_imageUrls, g_GUIDs);oNavBar.SetFocus();}function refreshFooter(){switch (g_nowVideoSize){case VIDEOSIZE_MEDIUM:oFooter.DrawPlayingView();break;case VIDEOSIZE_LARGE:oFooter.Hide();break;case VIDEOSIZE_FULL:oFooter.Hide();break;default:switch (g_nowNavView){case NAV_VIEW_HOME:oFooter.DrawHomeView();break;case NAV_VIEW_PLAYLIST:oFooter.DrawPlaylistView();break;default:oFooter.DrawBrowseView();break;}break;}}function refreshPlaystateFeedback(){oBrandingArea.Refresh();oNowPlaying.Refresh(false);oNavBar.Refresh();oOnDeckArea.Refresh();oVideoMetadata.Refresh(false);oVideoControls.HideShowBtns();}function toggleSlideshow(setting){g_nowSlideshowMode = setting;if (g_nowSlideshowMode == SLIDESHOW_ON){var slides = new Array();for (var i=0; i';}var abstracts = new Array();for (var i=0; i" + "

" + "

" + g_ssCaptions[i] ;var h2 = truncateToHeight(295, 135, "20px", h1);abstracts[i]= ""+ h2+ "

";}oSlideShow.Init(slides, abstracts);iSlideShowTimerId = window.setTimeout(nextSlide, iSlideShowInterval);}else {window.clearTimeout(iSlideShowTimerId);}}function nextSlide(){window.clearTimeout(iSlideShowTimerId);oSlideShow.Next();iSlideShowTimerId = window.setTimeout(nextSlide, iSlideShowInterval);}function updateBacklist(){oBacklistManager.Append(g_nowTopicInd, g_nowCatInd, g_nowVideoSize, g_nowNavView);}function videoGoBack(){if (oCategoryChooser.Div.style.visibility == "visible"){oCategoryChooser.Hide();oFooter.SetFocus();return;}if (oBacklistManager.Items.length<2){if (okToLeaveApp()){oPlaylist.RemoveAll();oMediaPlayer.Stop();return false;}else {return true;}}var prevState = oBacklistManager.Items[oBacklistManager.Items.length -2];var prevTopic = prevState[0];var prevCat = prevState[1];var prevVidSize = prevState[2];var prevNavView = prevState[3];oBacklistManager.RemoveLast();if ((prevNavView == NAV_VIEW_PLAYLIST) && (oPlaylist.Items.length == 0))return videoGoBack();if (prevVidSize >= VIDEOSIZE_LARGE && oMediaPlayer.GetPlayState() == PLAYSTATE_STOPPED)return videoGoBack();if ((prevVidSize == VIDEOSIZE_NONE) && (g_nowSlideshowMode != SLIDESHOW_ON))prevVidSize = VIDEOSIZE_SMALL;if (oPlaylist.Items.length == 0)prevVidSize = VIDEOSIZE_NONE;if ((g_nowTopicInd == prevTopic) && (g_nowCatInd == prevCat) && (g_nowVideoSize == prevVidSize) && (g_nowNavView == prevNavView))return videoGoBack();g_nowTopicInd = prevTopic;g_nowCatInd = prevCat;setVideoSize(prevVidSize);setNavView(prevNavView);refreshFooter();return true;}function clickHelp(){if (okToLeaveApp())CallPaneHelp(PH_topicTOC,'MSNTV_TRS_TOC_Videos.htm');}function clickSlide(){var a = oSlideShow.Slides[oSlideShow.CurrentSlide].ShowcaseIndex;addSlideshowToPlaylist(a);oMessagePopup.AutoHide("Adding top videos to the playlist and preparing to play");setVideoSize(VIDEOSIZE_MEDIUM);setNavView(NAV_VIEW_PLAYLIST);refreshFooter();updateBacklist();playItemAfterAd(oPlaylist.Position+1);}function clickPlayTop(){clickSlide();}function clickPlayAll(){var topicName = (g_nowCatInd == -1) ? g_topics[g_nowTopicInd] : g_cats[g_nowTopicInd][g_nowCatInd];if (catHasClipsNotInPlaylist()){oMessagePopup.AutoHide("Adding all " + htmlDecode(topicName) + " videos to the playlist and preparing to play");addCategoryToPlaylist();setVideoSize(VIDEOSIZE_MEDIUM);updateBacklist();refreshFooter();playItemAfterAd(oPlaylist.Position+1);}else {clickThumb(0);}}function clickIcon(i){var iconInd = (i + oNavBar.CurrentRatchet) % oNavBar.HTML.length; try{var nowIcon = eval("menuItem_" + i);var ob;if (nowIcon.offsetLeft < 230){if (oVideoMetadata.IsSelectable())ob = oVideoMetadata.GetSelectableOb();if (oSlideShow.AbstractIsSelectable())ob = oSlideShow.AbstractDiv.Button;if (oOnDeckArea.IsSelectable())ob = oOnDeckArea.LinkSpan;}else {if (oAdManager.IsSelectable())ob = oAdManager.SelectableOb();if (oSlideShow.PanelIsSelectable())ob = oSlideShow.SlidePanel;if (oMediaPlayer.IsSelectable())ob = oMediaPlayer.Div;}if (ob!=null)ob.focus();}catch (e){}if (iconInd == oNavBar.HTML.length-1){clickPlaylistButton();}else {g_nowTopicInd = iconInd;g_nowCatInd = -1;setNavView(NAV_VIEW_BROWSE);updateBacklist();}}function overThumb(i){if (g_nowNavView != NAV_VIEW_HOME){var h = "(" + oNavBar.GetThumbIndex(i) + " of " + oBrowseHeader.MediaCount + ")";oBrowseHeader.SetText2(h);}}function clickBrowseButton(){oCategoryChooser.Show(g_nowTopicInd, g_nowCatInd);}function overBrowseButton(){oCategoryChooser.Hide();}function offBrowseButton(){oCategoryChooser.Hide();oNavBar.SetFocus();}function clickPip(){switch (g_nowVideoSize){case VIDEOSIZE_SMALL:setVideoSize(VIDEOSIZE_MEDIUM);updateBacklist();refreshFooter();break;case VIDEOSIZE_MEDIUM:setVideoSize(VIDEOSIZE_LARGE);updateBacklist();refreshFooter();break;}}function clickMoreInfo(){setVideoSize(VIDEOSIZE_SMALL);refreshFooter();updateBacklist();}function clickNormalView(){setVideoSize(VIDEOSIZE_MEDIUM);refreshFooter();updateBacklist();oVideoControls.Play.focus();}function clickBrwsBtn(i,j){oFooter.SetFocus();toCat(i,j);}function toCat(a,b){g_nowTopicInd = a;g_nowCatInd = b;setNavView(NAV_VIEW_BROWSE);updateBacklist();}function clickPlaylistButton(){if (oPlaylist.Items.length == 0){alert("Your playlist is empty. To add videos to your playlist, first choose a category, then find the video you want to add and press OK on your keyboard or remote control.");return;}if (g_nowVideoSize == VIDEOSIZE_MEDIUM)setVideoSize(VIDEOSIZE_SMALL);g_nowTopicInd = -1;g_nowCatInd = -1;setNavView(NAV_VIEW_PLAYLIST);refreshFooter();updateBacklist();}function clickHomeButton(){if (g_nowVideoSize == VIDEOSIZE_MEDIUM)setVideoSize(VIDEOSIZE_SMALL);setNavView(NAV_VIEW_HOME);refreshFooter();updateBacklist();}function clickDeleteAll(){if (oMessagePopup.Confirm("Are you sure you want to empty your playlist?")){oPlaylist.RemoveAll();g_ForceFullStop = true;oMediaPlayer.Stop();onPlaylistEnd();}}function clickAd(){DeviceClickAway(oAdManager.GetClickThroughUrl());}function clickFullScreen(){setVideoSize(VIDEOSIZE_LARGE);updateBacklist();refreshFooter();}function clickRelatedLink(url, ind){var trackingUrl = oTrackingManager.TrackRelatedLink(url, ind, oPlaylist.GetCurrent());DeviceClickAway(trackingUrl);}function onPlayListChange(){refreshPlaystateFeedback();}function onPrepareToPlay(){if (g_nowVideoSize == VIDEOSIZE_NONE){setVideoSize(VIDEOSIZE_SMALL);updateBacklist();refreshFooter();}}function onPlaylistEnd(){setNavView(NAV_VIEW_HOME);setVideoSize(VIDEOSIZE_NONE);refreshFooter();updateBacklist();oNavBar.Refresh();oNavBar.SetFocus();}function onLogError(){}function trackViewedClip(guid){var url = urlToUserActivity();url += "action=saveGuid&guid=" + guid;loadUrl(url, onTrackClip);}function onTrackClip(){}function ratchetNavBar(dir, i){if (oNavBar.HTML.length > oNavBar.MenuCount){if (dir=='l')if (oNavBar.CurrentRatchet==0)oNavBar.Draw(oNavBar.HTML.length-1);else oNavBar.Draw(oNavBar.CurrentRatchet-1);else if (oNavBar.CurrentRatchet==oNavBar.HTML.length-1)oNavBar.Draw(0);else oNavBar.Draw(oNavBar.CurrentRatchet+1);}if (g_nowNavView != NAV_VIEW_HOME){var h = "(" + oNavBar.GetThumbIndex(i) + " of " + oBrowseHeader.MediaCount + ")";oBrowseHeader.SetText2(h);}}function clickThumb(ind){handleThumbClick(ind, oMediaPlayer.IsLoading);} \ No newline at end of file diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.778/localhost-1700/Home/Anduril/CssTransforms/en-us/Home.css b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.778/localhost-1700/Home/Anduril/CssTransforms/en-us/Home.css new file mode 100644 index 00000000..281e46fa --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.778/localhost-1700/Home/Anduril/CssTransforms/en-us/Home.css @@ -0,0 +1,444 @@ +body { + font-family: Segoe; + margin: 0px; +} + +td { + padding: 0px; +} + +table { + border-collapse: collapse; + border: 0px; + border-spacing: 0px; + padding: 0px; +} + +@media all { + IE\:CLIENTCAPS { + behavior: url(#default#clientCaps) + } +} + +div.textMenu { + position: absolute; + left: 0; + top: 0px; + width: 560; + height: 34px; + background-color: #4F91D9; +} + +table.textMenuTbl { + width: 560px; + height: 34px; +} + +#helpIcon { + position: relative; + top: 0px; + left: 4px; + margin-left: 4px; + behavior: url(#default#alphaImageLoader); + width: 20px; + height: 20px; +} + +.TextMenuLink { + font-size: 16px; +} + +a.TextMenuLink:link, +a.TextMenuLink:visited, +a.TextMenuLink:hover { + color: #d2e4ee; +} + +.TextMenuLinkSimulation { + font-size: 16px; + display: inline-block; + color: #d2e4ee; +} + +td.leftGradientTD { + width: 280px; + height: 34px; + behavior: url(#default#gradient); + startColor: #1b5bb3; + endcolor: #4f91d9; + angle: 90; +} + +td.rightGradientTD { + width: 280px; + height: 34px; + behavior: url(#default#gradient); + startcolor: #4f91d9; + endColor: #1b5bb3; + angle: 90; +} + +div.infoPaneDiv { + position: absolute; + z-index: 1; + left: 0px; + top: 37px; + width: 100%; + height: 242px; + background-image: url(/Images/Home/HomeBG.jpg); + background-repeat: no-repeat; +} + +div.promoImgDiv { + position: absolute; + top: 0px; + width: 178px; + height: 135px; + background-color: transparent; +} + +div.personalPanelDiv { + position: absolute; + top: 135px; + left: 3px; + width: 178px; + height: 99px; + behavior: url(#default#gradient); + starttransparency: 100%; + endtransparency: 100%; + angle: 0; +} + +div.promoPanelDiv { + position: absolute; + left: 189px; + top: 136px; +} + +table.wthrTbl { + width: 174px; + height: 104px; +} + +td.wthrCityCell { + width: 160px; + height: 18px; + text-align: left; +} + +.wthrCityText { + font-size: 18px; + zoom: 95%; + font-weight: bold; + color: #020e29; + width: 160px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +td.wthrTempCond { + width: 85px; + height: 61px; + text-align: left; +} + +td.wthrTempCell { + height: 22px; + text-align: left; +} + +.wthrTempTxt { + font-size: 21px; + font-weight: bold; + color: #14224b; +} + +td.wthrCondCell { + height: 39px; + text-align: left; +} + +.wthrCondTxt { + font-size: 18px; + zoom: 95%; + color: #14224b; + overflow: hidden; + white-space: nowrap; + width: 85px; + text-overflow: ellipsis +} + +td.wthrCondIcon { + width: 65px; + height: 61px; +} + +td.wthrProvider { + width: 160px; + height: 21px; + font-size: 18px; + zoom: 70%; +} + +.stocksTbl { + position: absolute; + top: 0px; + left: 0px; + width: 178px; + height: 102px; + table-layout: fixed; +} + +.stocksRow { + height: 25px; +} + +.stocksCell { + font-size: 18px; + zoom: 95%; + color: #14224b; +} + +.stocksRule { + background-color: #6eb695; + height: 2px; +} + +.critPxTbl { + margin: 0px; + width: 178px; + height: 107px; + table-layout: fixed; +} + +.critPxHeading { + font-size: 18px; + zoom: 95%; + color: #020e29; + font-weight: bold; +} + +.critPxShowTitle { + font-size: 18px; + zoom: 95%; + color: #14224b; + width: 160px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.critPxTime { + font-size: 18px; + zoom: 90%; + color: #14224b; +} + +div.newsHdlnTitleDiv { + position: absolute; + left: 0px; + top: -28px; + width: 265px; + height: 22px; +} + +span.newsHdlnTitleText { + font-size: 21px; + color: #824107; + font-weight: bold; + vertical-align: middle; +} + +div.clockDiv { + position: absolute; + left: 350px; + top: 10px; + width: 200px; + height: 21px; + text-align: right; + font-size: 16px; +} + +a.clockLink { + font-size: 16px; +} + + a.clockLink:link, + a.clockLink:visited, + a.clockLink:hover { + color: #020e29; + } + +div.newsHdlnDiv { + position: absolute; + left: 189px; + top: 33px; + width: 355px; + height: 78px; +} + +td.newsHdlnCell { + height: 24px; +} + +a.newsHdlnLink { + font-size: 18px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + width: 347px; +} + + a.newsHdlnLink:link, + a.newsHdlnLink:visited, + a.newsHdlnLink:hover { + color: #020e29; + } + +a.newsHdlnLinkShort { + font-size: 18px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + width: 337px; +} + + a.newsHdlnLinkShort:link, + a.newsHdlnLinkShort:visited, + a.newsHdlnLinkShort:hover { + color: #020e29; + } + +div.moreNewsDiv { + position: absolute; + left: 161px; + top: 71px; + width: 200px; +} + +a.moreNewsLink, +a.moreNewsLink:link, +a.moreNewsLink:visited, +a.moreNewsLink:hover { + font-size: 18px; + color: #0b1d60; +} + +table.MoreUsingLinkTable { + height: 26px; +} + +td.promoHdlnTitle { + font-size: 21px; + font-weight: bold; +} + +td.promoHdlnCell { + height: 26px; +} + +a.promoHdlnLink { + font-size: 18px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + width: 357px; +} + + a.promoHdlnLink:link, + a.promoHdlnLink:visited, + a.promoHdlnLink:hover { + color: #020e29; + } + +div.searchDiv { + position: absolute; + top: 275px; + left: 0px; + width: 100%; + height: 39px; +} + +div.searchCenterDiv { + position: absolute; + top: 4px; + left: 0px; + width: 560x; + height: 33px; + background-color: #1381e0; +} + +table.searchTbl { + width: 560px; + height: 33px; + background-color: transparent; +} + +a.searchLink { + font-size: 18px; + font-weight: bold; +} + + a.searchLink:link, + a.searchLink:visited, + a.searchLink:hover { + color: #f2f2f2; + } + +.searchLabelText { + font-size: 18px; + color: #f2f2f2; +} + +input.searchField { + background-color: #485364; + color: white; +} + +.searchFieldText { + font-size: 14px; + color: #f2f2f2; +} + +.searchTopRule { + position: absolute; + left: 0; + top: 0px; + width: 560; + height: 2px; + background-color: #0c7faa; +} + +.searchBotRule { + position: absolute; + top: 308; + left: 0; + width: 560; + height: 2px; + background-color: #1c4373; +} + +div.iconNavBar { + position: absolute; + top: 314px; + left: 0; + width: 100%; + height: 70px +} + +table.iconNavBarMasterTbl { + width: 560px; + height: 70px; + background-image: url(/Images/Home/HomeLaunchBarBG.jpg); +} + +table.iconNavBarTbl { + height: 70px; + background-color: transparent; +} + +td.iconNavBarTblFrameCell { + width: 560px; + height: 61px; +} diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.778/localhost-1700/Home/Anduril/JsTransforms/en-us/Home.js b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.778/localhost-1700/Home/Anduril/JsTransforms/en-us/Home.js new file mode 100644 index 00000000..3133e85e --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.778/localhost-1700/Home/Anduril/JsTransforms/en-us/Home.js @@ -0,0 +1,229 @@ +var sBaseUrls; +var iRotateDuration; +var sCurrentlyLoadingUrl = ""; +var iCurrentBaseUrlIndex = 0; +var sLoadedUrls = "|"; +var sNextUrlParams = ""; +var sPanelUrls = new Array(); +var sRotationArray; +var iRotationIndex = -1; +var oMasterPanel; +var oCurrentPanel; +var iRotateTimerID = null; + +function InitRotator(masterDivId, delayDuration, urls) { + oMasterPanel = masterDivId; + iRotateDuration = delayDuration; + sBaseUrls = urls; + oCurrentPanel = oMasterPanel.children(0); + var ctUrl = GetClickThroughUrl(oCurrentPanel.innerHTML); + oCurrentPanel.clickThroughUrl = ctUrl; +} + +function LoadRotator() { + if (oMasterPanel != null) CreateNextPanel(); +} + +function ClickRotator() { + var url = oCurrentPanel.clickThroughUrl; + if (url != null && url.length > 0) location.href = oCurrentPanel.clickThroughUrl; +} + +function CreateNextPanel() { + var url = GetNextUrlToLoad(); + if (url != "") { + sLoadedUrls = sLoadedUrls + url + "|"; + GetUrlData(url); + } else { + CreatesRotationArray(); + if (sRotationArray.length > 0) StartRotate(); + } +} + +function GetNextUrlToLoad() { + if (iCurrentBaseUrlIndex >= sBaseUrls.length) return ""; + var url = sBaseUrls[iCurrentBaseUrlIndex]; + if (sNextUrlParams != "") { + var spacerChar = url.indexOf("?") > -1 ? "&" : "?"; + url = url + spacerChar + sNextUrlParams; + sNextUrlParams = ""; + } + if (sLoadedUrls.indexOf("|" + url + "|") != -1) { + iCurrentBaseUrlIndex = iCurrentBaseUrlIndex + 1; + return GetNextUrlToLoad(); + } else { + return url; + } +} + +function GetUrlData(url) { + sCurrentlyLoadingUrl = url; + XmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); + XmlHttp.open("GET", url, true); + XmlHttp.onreadystatechange = GetUrlCallback; + XmlHttp.send(null); +} + +function GetUrlCallback() { + if (XmlHttp.readyState == 4) { + var responseText = XmlHttp.responseText; + var feedbackStart = responseText.indexOf(""); + var feedbackEnd = responseText.indexOf(""); + var feedbackString = ""; + if ((feedbackStart != -1) && (feedbackEnd != -1)) { + feedbackString = responseText.substring(feedbackStart, feedbackEnd); + feedbackString = feedbackString.substring(feedbackString.indexOf(">") + 1); + } + var ctUrl = GetClickThroughUrl(responseText); + if ((feedbackString != "NODISPLAY") && (ctUrl != "")) { + var panel = AddPanel(); + panel.style.display = "none"; + panel.innerHTML = responseText; + panel.id = sCurrentlyLoadingUrl; + panel.clickThroughUrl = ctUrl; + sPanelUrls[sPanelUrls.length] = sCurrentlyLoadingUrl; + sNextUrlParams = feedbackString; + } + CreateNextPanel(); + } +} + +function AddPanel() { + var newPanel = document.createElement("DIV"); + return oMasterPanel.appendChild(newPanel); +} + +function GetClickThroughUrl(html) { + var ctUrlStart = html.indexOf(""); + var ctUrlEnd = html.indexOf(""); + var ctUrl = ""; + if ((ctUrlStart != -1) && (ctUrlEnd != -1)) { + ctUrl = html.substring(ctUrlStart, ctUrlEnd); + ctUrl = ctUrl.substring(ctUrl.indexOf(">") + 1); + } + return ctUrl; +} + +function CreatesRotationArray() { + var subrotations; + var rotationCount = 1; + var validBaseUrlCount = 0; + var validsBaseUrls = new Array(); + for (var i = 0; i < sBaseUrls.length; i++) { + subrotations = 0; + for (var j = 0; j < sPanelUrls.length; j++) { + if (sPanelUrls[j].indexOf(sBaseUrls[i]) > -1) { + subrotations++; + } + } + if (subrotations > 0) { + rotationCount *= subrotations; + validsBaseUrls[validBaseUrlCount++] = sBaseUrls[i]; + } + } + rotationCount *= validBaseUrlCount; + sRotationArray = new Array(rotationCount); + for (var a = 0; a < validBaseUrlCount; a++) { + var nowBaseUrl = validsBaseUrls[a]; + var allSubRotations = GetAllSubRotations(nowBaseUrl, sPanelUrls); + for (var b = 0; b < rotationCount; b += validBaseUrlCount) { + var nowInd = a + b; + if (b == 0) sRotationArray[nowInd] = allSubRotations[0]; + else { + var lastSubrotation = sRotationArray[a + b - validBaseUrlCount]; + sRotationArray[nowInd] = GetNextSubrotation(allSubRotations, lastSubrotation); + } + } + } +} + +function GetAllSubRotations(baseUrl, sPanelUrls) { + var subUrls = new Array(); + var j = 0; + for (var i = 0; i < sPanelUrls.length; i++) { + if (sPanelUrls[i].indexOf(baseUrl) != -1) subUrls[j++] = sPanelUrls[i]; + } + return subUrls; +} + +function GetNextSubrotation(subrotations, lastSubrotation) { + for (var i = 0; i < subrotations.length; i++) { + if (lastSubrotation == subrotations[i]) { + if (i == subrotations.length - 1) return subrotations[0]; + else + return subrotations[i + 1]; + } + } + return ""; +} + +function StartRotate() { + iRotateTimerID = window.setTimeout(Rotate, iRotateDuration); +} + +function StopRotate() { + window.clearTimeout(iRotateTimerID); +} + +function Rotate() { + StopRotate(); + oCurrentPanel.style.display = "none"; + if (iRotationIndex == sRotationArray.length - 1) iRotationIndex = 0; + else + iRotationIndex++; + oCurrentPanel = document.getElementById(sRotationArray[iRotationIndex]); + oCurrentPanel.style.display = "block"; + if (sRotationArray.length > 1) StartRotate(); +} +var monthArray = new Array("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"); +var clockRefreshMS = 1000; + +function constructDateTime() { + now = new Date(); + var hours = now.getHours(); + var minutes = now.getMinutes(); + var minutesStr = ""; + var ampm = (hours >= 12) ? "PM" : "AM"; + if (hours > 12) hours -= 12; + if (hours == 0) hours = 12; + if (minutes < 10) { + minutesStr = "0" + minutes; + } else { + minutesStr = minutes; + } + return monthArray[now.getMonth()] + " " + now.getDate() + ", " + now.getYear(); +} + +function formClockLink() { + return "" + constructDateTime() + ""; +} + +function showClock() { + clockID.innerHTML = formClockLink(); +} + +function AssignClockEvents() { + clockID.onmouseover = StopClock; + clockID.onmouseout = StartClock; +} + +function StopClock() { + window.clearInterval(clockTimerID); +} +var clockTimerID = 0; + +function StartClock() { + clockTimerID = window.setInterval(showClock, clockRefreshMS); +} +var pageLoaded = false; + +function onLoadProcess() { + pageLoaded = true; +} + +function initPage() { + onLoadProcess(); + LoadRotator(); + AssignClockEvents(); + StartClock(); +} \ No newline at end of file diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.778/localhost-1700/Home/Anduril/JsTransforms/en-us/Scripts.js b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.778/localhost-1700/Home/Anduril/JsTransforms/en-us/Scripts.js new file mode 100644 index 00000000..49eb3799 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.778/localhost-1700/Home/Anduril/JsTransforms/en-us/Scripts.js @@ -0,0 +1 @@ +function submitReplace(f){var url = f.action + "?";for (var i=0; i -1)return true;}return false;}function isAllAlph(s){s = s.toLowerCase();for (var i=0; i -1)return true;}return false;}function isAllNums(s){for (var i=0; i 0; length--){var func = loadHandlerArray[length-1];func();}}function callCGif(url){var i = new Image();i.src = url;} \ No newline at end of file diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.778/localhost-1700/MSNVideo/Anduril/CSSTransforms/en-us/Main.css b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.778/localhost-1700/MSNVideo/Anduril/CSSTransforms/en-us/Main.css new file mode 100644 index 00000000..274224cc --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.778/localhost-1700/MSNVideo/Anduril/CSSTransforms/en-us/Main.css @@ -0,0 +1 @@ +DIV{position:absolute;}.bodyDiv{width:560;height:384;overflow:hidden;}.bkg1{position:absolute;top:34;width:560;height:216;background-image:url(/Images/MSNVideo/ContentBg.jpg);}.bkg2{position:absolute;top:34;width:560;height:325;background-color:131517;}.bkg2spn1{position:absolute;top:9;left:16;width:530;height:265;background-color:010408;}.bkg2spn2{position:absolute;top:274;left:16;width:530;height:46;background-image:url(/Shared/Anduril/Images/en-us/_debug/Panels/Images/PanelPlayerLargeBG.jpg);}.bkg2spn3{position:absolute;top:320;left:16;width:530;height:6;background-color:16181A;}a{color:ffffff;}.bannerDiv{position:absolute;width:560;height:33;background-image:url(/Images/MSNVideo/Header.jpg);}.bannerLogo{position:absolute;left:22;top:6;font:bold 20;}.bannerHelp{position:absolute;left:469;top:6;font:18;}.bannerHelpImg{position:relative;left:4px;margin-left:4px;width:20;height:20;background-repeat: no-repeat;behavior:url(#default#alphaImageLoader);background:url(/Shared/Anduril/Images/en-us/_debug/Shared/Images/Icon_Help_RelatedLink.png);}.mediaPlayerDiv{position:absolute;}#mpStatusDiv{position:absolute;left:100;top:300;width:400;height:100;color:F2F2F2;}#pbDiv{position:absolute;top:285;left:226;width:320;height:25;color:87A3CA;}#pbTxt3{font-size:16;overflow: hidden; text-overflow:ellipsis; white-space:nowrap;width:115;}.vcDiv{position:absolute;width:320;height:46;}.vcDivPlaying{top:308;left:226;}.vcDivFullScrn{top:331px;left:15;}.vcBtn{position:relative;width:39;height:46;behavior:url(#default#alphaImageLoader);}.vcMuteBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlMute.png); }.vcUnmuteBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlUnmute.png); }.vcPlayBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlPlay.png); }.vcPauseBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlPause.png); }.vcStopBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlStop.png); }.vcRewBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlRew.png); }.vcFwdBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlFF.png); }.vcPrevBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlPrev.png); }.vcNextBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlNext.png); }.vcFullScrn{position:absolute;left:200;top:12;font:16;}.vcNormView{position:absolute;left:385;top:24;font:16;}.vcStatus{position:absolute;left:392;top:3;width:151;white-space:nowrap;font-size:16;color:F2F2F2;}.brandingDiv{width:560;height:384;}.brandingAreaImage{position:absolute;}.vmDiv{position:absolute;top:80;height:146;left:15;width:348;overflow:hidden;}.videoMetadataInnerDiv{width:323;padding-bottom:16;}.vmTxt1{width:323;color:F2F2F2;padding-bottom:18;font:16;}.vmTxt2{width:323;color:87A3CA;font:bold 18;}.vmTxt3{width:323;color:87A3CA;font:bold 18;line-height:16px;padding-bottom:16;}.vmTxt4{width:323;color:87A3CA;padding-bottom:16;font:16;line-height:16px;}.vmLink{width:307;height:16;color:87A3CA;font:16;line-height:16px;overflow: hidden; text-overflow:ellipsis; white-space:nowrap;}.vmArrw{width:15;}.nowPlayingDiv{position:absolute;top:51;left:15;width:200;font:16;line-height:16px;text-align:top;}.npMsg{padding-left:10;width:200;color:F2F2F2;padding-bottom:18;}.npUpNxt{padding:0 0 18 10;width:200;color:87A3CA;}.npTitle{padding:39 0 15 10;width:200;color:87A3CA;}.npArrw{margin-left:10;width:12;}.onDeckDiv{position:absolute;left:25;width:190;top:212;height:69;font:16;color:87A3CA;line-height:16px;}.odThumb{width:92;height:69;}.odTxt1{position:absolute;left:98;width:92;height:22;overflow:hidden;}.odTxt2{position:absolute;left:98;width:92;top:22;height:49;overflow:hidden;}.odTxt3{width:190;height:69;}.amDiv{position:absolute;width:124;height:34;padding:2;}.ssPanel{position:absolute;top:45;left:340;width:200;height:150;}.ssAbstract{position:absolute;top:45;left:16;}.ssAbstractTxt{position:absolute;left:7;height:135;width:295;overflow:hidden;}.ssBtn{position:absolute;top:150;font:16;}.navBarDiv{text-align:left;position:absolute;top:240;height:118;width:560;overflow-x:hidden; white-space:nowrap;vertical-align:top;}.navBarDivIcon{background-image:url(/Images/MSNVideo/NavBgIcon.jpg);}.navBarDivThmb{background-image:url(/Images/MSNVideo/NavBgThmb.jpg);}.nbIcnSpn{width:120;height:110;margin:8 0 0 9;}.nbIcnTab{background-repeat: no-repeat;behavior:url(#default#alphaImageLoader);margin:0 9 0 9; width:111;height:106;letter-spacing:-0.2mm;}.nbArrSpn{width:22;height:118;padding:45 2 57 2; }.nbArrw{width:18;height:18;background-repeat: no-repeat;behavior:url(#default#alphaImageLoader);}.nbArrw_l{background:url(/Shared/Anduril/Images/en-us/_debug/Shared/Images/ScrollIndicatorLeftGlobal.png);}.nbArrw_r{background:url(/Shared/Anduril/Images/en-us/_debug/Shared/Images/ScrollIndicatorRightGlobal.png);}.nbThmSpn{margin:33 0 10 0;height:75;vertical-align:top;overflow:hidden;}.nbThmSpnWide{width:189;margin-right:20;}.nbThmSpnNrrw{width:98;}.nbThmSpnHilite{width:189;background-color:212A39;margin-right:20;}.nbThmTbl{position:relative;table-layout:fixed;height:70;}.nbThmTblA{color:F2F2F2;}.nbThmTblB{color:7C92B1;}.nbThmImg{width:92;height:70;}.nbThmTxt{width:91;height:64;overflow:hidden;font:16;line-height:16px;}.nbThmDvdrIcon{position:absolute;width:20;height:20;z-index:500;top:52;background-image:url(/Images/MSNVideo/EndDivider.gif);}.nbThmDvdrThmb{position:absolute;behavior:url(#default#alphaImageLoader);background:url(/Images/MSNVideo/ThumbnailDivider.png);width:15;height:106;z-index:500;top:20;}.nbVertDvdr{position:absolute;width:4;height:98;top:12;background-image:url(/Images/MSNVideo/VerticalDivider.jpg);}.browseHeaderDiv{position:absolute;top:247;left:23;width:545;height:25;font:16;color:87A3CA;z-index:2;}.browseHeaderTxt1{}.browseHeaderTxt2{margin-left:6;}.browseHeaderArrw{position:absolute;left:400;}.browseHeaderLink{position:absolute;left:415;}.footerDiv{position:absolute;top:358;height:28;width:560;background:292B2B;padding:5 15 0 15;z-index:2;overflow:hidden;text-align:right;}.footArrw{padding:0 8 0 15; }.footBtn{padding-top:3;font:16;color:F2F2F2;}.fullScreenPanelDiv{position:absolute;top:323;height:61;width:560;}.fspBkg{position:absolute;height:61;}.fspLeft{width:15;background-image:url(/Shared/Anduril/Images/en-us/_debug/Panels/Images/PanelPlayerSmallLeftSide.jpg);}.fspCenter{left:15;width:530;background-image:url(/Shared/Anduril/Images/en-us/_debug/Panels/Images/PanelPlayerSmallMiddleStretch.jpg);}.fspRight{width:15;left:545;background-image:url(/Shared/Anduril/Images/en-us/_debug/Panels/Images/PanelPlayerSmallRightSide.jpg);}.brwsCatDiv{position:absolute;width:205;z-index:10;left:15;}.popup{position:absolute;padding:3 0 0 7;width:205;height:26;font:16;color:001332;behavior:url(#default#alphaImageLoader);overflow: hidden; text-overflow:ellipsis; white-space:nowrap;}.popupTop{background:url(/Images/MSNVideo/VideoPopupTop.png);}.popupTopHL{color:05529D;font-weight:bold;letter-spacing:-0.2mm;}.popupBttm{top:0;left:15;text-align:left;letter-spacing:-0.2mm;overflow: hidden; text-overflow:ellipsis; white-space:nowrap;background:url(/Images/MSNVideo/VideoPopupBttm.png);} \ No newline at end of file diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.778/localhost-1700/MSNVideo/Anduril/JsTransforms/en-us/Main.js b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.778/localhost-1700/MSNVideo/Anduril/JsTransforms/en-us/Main.js new file mode 100644 index 00000000..db077819 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.778/localhost-1700/MSNVideo/Anduril/JsTransforms/en-us/Main.js @@ -0,0 +1 @@ +function Background(div){this.Div = div;this.Draw1 = _bkDraw1;this.Draw2 = _bkDraw2;this.Show = _bkShow;this.Hide = _bkHide;this.Clear = _bkClear;}function _bkDraw1(){this.Div.className = "bkg1";this.Clear();}function _bkDraw2(){this.Div.className = "bkg2";this.Clear();var spn1 = addSpan(this.Div);spn1.className = "bkg2spn1";var spn2 = addSpan(this.Div);spn2.className = "bkg2spn2";var spn3 = addSpan(this.Div);spn3.className = "bkg2spn3";}function _bkShow(){this.Div.style.visibility = "visible";}function _bkHide(){this.Div.style.visibility = "hidden";}function _bkClear(){clearChildren(this.Div);}function Banner(div) {this.Div = div;this.Init = _baInit;this.Refresh = _baRefresh;this.Hide = _baHide;this.Show = _baShow;this.IsSelectable = _baIsSelectable;}function _baInit(){this.TextSpan = addSpan(this.Div);this.TextSpan.className = "bannerLogo";this.HelpBtn = addSpan(this.Div);this.HelpBtn.innerHTML = "Help ";InitNavObject(this.HelpBtn,"helpBtn","bannerHelp","","","","","","","clickHelp()");}function _baRefresh(){var txt = "MSN Video";if (g_nowVideoSize == VIDEOSIZE_SMALL){if (g_nowNavView == NAV_VIEW_PLAYLIST){txt += " — Playlist";}else if (g_nowNavView == NAV_VIEW_BROWSE){txt += " — " + g_topics[g_nowTopicInd];}}this.TextSpan.innerHTML = txt;}function _baHide(){this.Div.style.visibility = "hidden";}function _baShow(){this.Div.style.visibility = "visible";}function _baIsSelectable(){return (this.Div.style.visibility != "hidden");}function BrandingArea(div, cssClass) {this.Div = div;this.Clear = _brClear;this.Init = _brInit;this.Refresh = _brRefresh;this.Hide = _brHide;this.Show = _brShow;this.SetDimensions = _brSetDimensions;this.Div.className = cssClass;}function _brClear(){clearChildren(this.Div);}function _brInit(){this.Image = addImg(this.Div);this.Image.className = "brandingAreaImage";this.Image.src = "/Images/Shared/s.gif";}function _brSetDimensions(t, l, h, w){this.Image.style.top = t;this.Image.style.left = l;this.Image.style.height = h;this.Image.style.width = w;}function _brRefresh(){if (oPlaylist.Position==-1 || oMediaPlayer.IsPlayingAd || oMediaPlayer.GetPlayState()!=PLAYSTATE_PLAYING)this.Image.src = "/Images/Shared/s.gif";else if (oPlaylist.GetCurrent() != null)this.Image.src = "http://video.msn.com/s/us/sc/i/MSNTV/src/" + oPlaylist.GetCurrent().Source + ".gif";}function _brHide(){this.Div.style.visibility = "hidden";}function _brShow(){this.Div.style.visibility = "visible";}function BrowseHeader(div) {this.Div = div;this.Init = _bhInit;this.SetText1 = _bhSetText1;this.SetText2 = _bhSetText2;this.ShowLoadingMessage = _bhShowLoadingMessage;this.Clear = _bhClear;this.Hide = _bhHide;this.Show = _bhShow;}function _bhInit(){var ob;ob = addSpan(this.Div);ob.className = "browseHeaderTxt1";this.Text1 = ob;ob = addSpan(this.Div);ob.className = "browseHeaderTxt2";this.Text2 = ob;}function _bhSetText1(h){this.Text1.innerHTML = h;}function _bhSetText2(h){this.Text2.innerHTML = h;}function _bhShowLoadingMessage(str){this.Text1.innerHTML = "Please wait while we get " + str + " ready.";this.Text2.innerHTML = "";}function _bhClear(){this.Text1.innerHTML = "";this.Text2.innerHTML = "";}function _bhShow(){this.Div.style.visibility = "visible";}function _bhHide(){this.Div.style.visibility = "hidden";}function CategoryChooser(div, maxSubcats){this.Div = div;this.Init = _ccInit;this.Show = _ccShow;this.Hide = _ccHide;this.AppendBadCat = _ccAppendBadCat;this.ExcludeBtn = _ccExcludeBtn;this.MaxSubcats = maxSubcats;this.FailedSubcats = new Array();}function _ccInit(topics, cats, bottomY){var btn;var btns = new Array();for (var i=0; i= this.MaxSubcats) ? this.MaxSubcats : cats[i].length;for (var j=-1; j=0; j--){var nowBtn = this.Btns[i][j];if (i!=topicInd || this.ExcludeBtn(nowBtn.FullName)){nowBtn.Hide();}else {if (j==catInd+1 && i==topicInd)nowBtn.SetHighlight(true);else nowBtn.SetHighlight(false);nowBtn.style.bottom = bottomY;;bottomY += this.ButtonHeight;nowBtn.Show();}}}var popupHeight= (this.ButtonHeight * this.Btns[topicInd].length);this.Div.style.height = popupHeight;this.Div.style.top = this.BottomY - popupHeight;this.Div.style.visibility = "visible";try{this.Btns[topicInd][catInd+1].focus(); }catch (e){oFooter.SetFocus();}}function _ccHide(){for (var i=0; i= length)wmp.CurrentPosition = length;else wmp.CurrentPosition = currentPos + increment;}}}function _mpShowStatus(s){this.Status.innerHTML = s;}var MGX_ICON_ERROR= 0x10;var MGX_ICON_WARNING= 0x30;var MGX_ICON_INFO= 0x40;var MGX_SIZE_LARGE = 0x0;var MGX_SIZE_SMALL = 0x1;function MessagePopup(){this.Error = _msError;this.Warning = _msWarning;this.Info = _msInfo;this.Confirm = _msConfirm;this.AutoHide = _msAutoHide;}function _msError(msg, caption){alert(msg);}function _msWarning(msg, caption){alert(msg);}function _msInfo(msg, caption){alert(msg);}function _msConfirm(msg){return confirm(msg);}function _msAutoHide(msg){alert(msg);}function NavBar(div){this.Div = div;this.Clear = _nbClear;this.Draw = _nbDraw;this.Refresh = _nbRefresh;this.InitTopics = _nbInitTopics;this.SetFocus = _nbSetFocus;this.SetRatchet = _nbSetRatchet;this.GetThumbIndex = _nbGetThumbIndex;this.InitThumbnails = _nbInitThumbnails;this.IsSelectable = _nbIsSelectable;this.Show = _nbShow;this.Hide = _nbHide;}function _nbClear(){this.Div.className = "navBarDiv navBarDivThmb";clearChildren(this.Div);}function _nbDraw(ind){this.CurrentRatchet = ind;var dividerX = -100;var ob;var css;for (var i=0; i=this.HTML.length)j-=this.HTML.length;ob.innerHTML = this.HTML[j];ob.GUID = this.GUIDs[j];}if (this.Hanger != null && this.HTML.length>this.MenuCount){var j = ind+i;if (j==this.HTML.length)dividerX = this.Hanger.offsetLeft;if (j>=this.HTML.length)j-=this.HTML.length;this.Hanger.innerHTML = imageTag(this.Images[j], 92, 69, "nbThmImg");}if (this.HTML.length>this.MenuCount){this.LeftArrow.innerHTML = " ";this.RightArrow.innerHTML = " ";}else {this.LeftArrow.innerHTML = ""; this.RightArrow.innerHTML = ""; }if (this.Divider != null){this.Divider.style.left = dividerX - (this.Mode == "thumbnails" ? 18 : 24);}this.Refresh();}function _nbRefresh(){if (this.Mode != "thumbnails")return;var doHighlight;for (var i=0; i= 2) ? 2 : titles.length;this.Div.className = "navBarDiv navBarDivThmb";this.HTML = new Array();this.Images = new Array();this.GUIDs = guids;for (var i=0; i"+ ""+ ""+ imageTag(this.Images[i], 92, 69, "nbThmImg")+ ""+ ""+ ""+ txt+ ""+ ""+ ""+ "";this.HTML[i] = h;}this.LeftArrow = addSpan(this.Div);this.LeftArrow.className = "nbArrSpn";for (var i=0; i"+ ""+ ""+ txt + ""+ ""+ "";this.HTML[i] = h;}var ob;this.LeftArrow = addSpan(this.Div);this.LeftArrow.className = "nbArrSpn";var leftAction;var rightAction;for (var i=0; i Choose Play to begin again.";txt.className = "npMsg";this.SelectableOb = null;}else if (oMediaPlayer.IsPlayingAd){var txt = addSpan(this.Div);txt.innerHTML = "Up next after this advertisement:";txt.className = "npMsg";txt = addSpan(this.Div);txt.innerHTML = oPlaylist.GetCurrent().Title;txt.className = "npUpNxt";var arrw = addSpan(this.Div);arrw.innerHTML = bulletImage();arrw.className = "npArrw";this.MoreInfoBtn = addSpan(this.Div);this.MoreInfoBtn.innerHTML = "More info";InitNavObject(this.MoreInfoBtn,"moreInfoButton","","","","","","","","clickMoreInfo()");this.SelectableOb = this.MoreInfoBtn;}else {if (oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING){var txt = addSpan(this.Div);txt.innerHTML = oPlaylist.GetCurrent().Title;txt.className = "npTitle";var arrw = addSpan(this.Div);arrw.innerHTML = bulletImage();arrw.className = "npArrw";this.MoreInfoBtn = addSpan(this.Div);this.MoreInfoBtn.innerHTML = "More info";InitNavObject(this.MoreInfoBtn,"moreInfoButton","","","","","","","","clickMoreInfo()");this.SelectableOb = this.MoreInfoBtn;}else {var txt = addSpan(this.Div);txt.innerHTML = "Please wait while we get your video ready.";txt.className = "npMsg";this.SelectableOb = null;}}}function _npClear(){clearChildren(this.Div);}function _npShow(){this.Div.style.visibility = "visible";}function _npHide(){this.Div.style.visibility = "hidden";}function _npIsSelectable(){return ((this.Div.style.visibility != "hidden") && (this.SelectableOb!=null));}function OnDeckArea(div) {this.Div = div;this.Init = _odInit;this.Refresh = _odRefresh;this.Hide = _odHide;this.Show = _odShow;this.IsSelectable = _odIsSelectable;}function _odInit(){var ob;ob = addSpan(this.Div);ob.className = "odThumb";this.ThumbSpan = ob;ob = addSpan(this.Div);ob.className = "odTxt1";this.TextSpan1 = ob;ob = addSpan(this.Div);ob.className = "odTxt2";this.TextSpan2 = ob;ob = addSpan(this.Div);ob.className = "odTxt3";this.TextSpan3 = ob;}function _odRefresh(){this.ThumbSpan.innerHTML = "";this.TextSpan1.innerHTML = "";this.TextSpan2.innerHTML = "";this.TextSpan3.innerHTML = "";if (oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING && !oMediaPlayer.IsPlayingAd){if ((oPlaylist.Position == -1) || (oPlaylist.Position+1 >= oPlaylist.Items.length)){this.TextSpan3.innerHTML = "Up next: end of playlist";}else {var currentItem = oPlaylist.Items[oPlaylist.Position+1];this.ThumbSpan.innerHTML = imageTag(currentItem.Thumb, 92, 69, "");this.TextSpan1.innerHTML = "Up next:";this.TextSpan2.innerHTML = currentItem.Title;}}}function _odShow(){this.Div.style.visibility = "visible";}function _odHide(){this.Div.style.visibility = "hidden";}function _odIsSelectable(){return false;}function onBuffering(bStart){if (bStart){}else {refreshStatus();}}var g_ReadyState = 0; var rs_Uninitialized = 0;var rs_Loading = 1;var rs_Interactive = 3;var rs_Complete = 4;var g_clipLoadTimer;var g_adIsLoading;function onReadyStateChange(lReadyState){var hasLoaded = (g_ReadyState == rs_Loading && lReadyState == rs_Complete);refreshStatus();if (hasLoaded){oMediaPlayer.IsLoading = false;window.clearTimeout(g_clipLoadTimer);g_ForceFullStop = false; refreshPlaystateFeedback();oProgressBar.Reset();if (!oMediaPlayer.IsPlayingAd){if (oPlaylist.GetCurrent() != null){trackViewedClip(oPlaylist.GetCurrent().GUID);}}oMediaPlayer.ResetDimensions();}g_ReadyState = lReadyState;}function setClipLoadTimer(seconds, isAd){g_adIsLoading = isAd;var mls = parseInt(seconds)*1000;g_clipLoadTimer = window.setTimeout(function() {checkClipLoad();}, mls);}function checkClipLoad(){window.clearTimeout(g_clipLoadTimer);if(oMediaPlayer.IsLoading) {oMediaPlayer.IsLoading = false;oMediaPlayer.Cancel();if (g_adIsLoading){}else {var clip = oPlaylist.GetCurrent();if (clip != null){oMessagePopup.Warning("The video is not available", "");trackViewedClip(clip.GUID);}}postStopAction();return;}}var g_Rewinding = false;var g_ForceFullStop = false;var PLAYSTATE_STOPPED = 0;var PLAYSTATE_PAUSED = 1;var PLAYSTATE_PLAYING = 2;var PLAYSTATE_BUFFERING = 3;var PLAYSTATE_FWD = 4;var PLAYSTATE_REW = 5;var PLAYSTATE_FINISHED = -1;function onPlayStateChange(oldState, newState){refreshStatus();if (oldState == PLAYSTATE_BUFFERING && newState == PLAYSTATE_STOPPED){return;}switch (oMediaPlayer.GetPlayState()){case PLAYSTATE_STOPPED:postStopAction(); break; case PLAYSTATE_BUFFERING: break;case PLAYSTATE_PAUSED:g_Rewinding = false;postPauseAction();break;case PLAYSTATE_PLAYING:g_Rewinding = false;postPlayAction();break;case PLAYSTATE_FINISHED:break;case PLAYSTATE_FWD:g_Rewinding = false;break;case PLAYSTATE_REW:g_Rewinding = true;break;}}function postStopAction(){var l_ForceFullStop = g_ForceFullStop;var l_Rewinding = g_Rewinding;g_ForceFullStop = false;g_Rewinding = false;var action;if (l_ForceFullStop){}else if (l_Rewinding){window.setTimeout(function() {oMediaPlayer.Play();}, 1);}else if (oMediaPlayer.IsPlayingAd){oMediaPlayer.IsPlayingAd = false; playCurrent();}else if (oPlaylist.Position+1 < oPlaylist.Items.length){oPlaylist.MoveNext();playCurrent();}else {onPlaylistEnd();}}function postPlayAction(){}function postPauseAction(){}function playItemAfterAd(ind){if (oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING){if (oMediaPlayer.IsPlayingAd){oPlaylist.MoveTo(ind); }else {oPlaylist.MoveTo(ind-1); oMediaPlayer.Stop();}}else {oPlaylist.MoveTo(ind); playCurrent();}}function playCurrent(){if (oMediaPlayer.IsPlayingAd){if (oMediaPlayer.GetPlayState() != PLAYSTATE_PLAYING)oMediaPlayer.Play();return;}if (oPlaylist.GetCurrent() == null)return;onPrepareToPlay();if (oPlaylist.GetCurrent().GUID != oAdManager.CurrentGUID){oAdManager.CurrentGUID = oPlaylist.GetCurrent().GUID;oAdManager.SetPageGroup(oPlaylist.GetCurrent().PageGroup);oMediaPlayer.IsPlayingAd = oAdManager.EndUserSees=="video";}refreshPlaystateFeedback();iPlayNextTimerId = window.setTimeout(playCurrentB, 100);}function playCurrentB(){window.clearTimeout(iPlayNextTimerId);if (oMediaPlayer.IsPlayingAd){oAdManager.LoadNext();}else {if (oPlaylist.GetCurrent() != null){var url = oPlaylist.GetCurrent().URL;if (url.indexOf("/default.cdnx/") != -1)url += ".asx";oMediaPlayer.PlayMedia(url);oTrackingManager.TrackContentPlay(oPlaylist.GetCurrent());setClipLoadTimer(30, false);}}}function onLoadAdComplete(){oAdManager.ShowLeaveBehind();if (oMediaPlayer.IsPlayingAd){if (oAdManager.ClipSrc == "" || oAdManager.ClipSrc.indexOf(".gif") != -1){postStopAction();}else {oMediaPlayer.PlayMedia(oAdManager.ClipSrc);oTrackingManager.TrackAdPlay(oPlaylist.GetCurrent(), oAdManager.TrackingImgId);setClipLoadTimer(15, true);}}}function ProgressBar(div){this.Div = div;this.Init = _pbInit;this.Refresh = _pbRefresh;this.Reset = _pbReset;this.Hide = _pbHide;this.Show = _pbShow;this.SetStatus = _pbSetStatus;}function _pbInit(player, barWidth){var h = ""+ ""+ ""+ ""+ ""+ ""+ ""+ "
"+ ""+ ""+ ""+ ""+ ""+ ""+ ""+ "
";this.Div.innerHTML = h;this.Htc = pbHtc;this.Text1 = pbTxt1;this.Text2 = pbTxt2;this.StatusText = pbTxt3;this.Visible = false;this.Player = player;this.BarWidth = barWidth;}function _pbReset(){if (this.Visible){this.Text1.innerHTML = "00:00";this.Duration = Math.floor(this.Player.GetDuration());var mm = Math.floor(this.Duration/60);var ss = this.Duration - mm*60;this.Text2.innerHTML= ((mm < 10) ? "0" + mm : mm)+ ":"+ ((ss < 10) ? "0" + ss : ss);this.Htc.percentComplete = 0;this.Refresh();}}function _pbRefresh(){window.clearTimeout(this.TimerId);if (this.Visible){try{var mls = this.Player.GetMediaPosition();var sec = Math.floor(mls/1000);var mm = Math.floor(sec/60);var ss = sec - mm*60;if (mm == -1){this.Text1.innerHTML = "00:00";}else {this.Text1.innerHTML= ((mm < 10) ? "0" + mm : mm)+ ":"+ ((ss < 10) ? "0" + ss : ss);}this.Htc.percentComplete = Math.round(sec/this.Duration*100);}catch (exception){this.Text1.innerHTML = "00:00";this.Htc.percentComplete = 0;}this.TimerId = window.setTimeout(function() {oProgressBar.Refresh();}, 1000);}}function _pbHide(){clearTimeout(this.TimerId);this.Div.style.visibility = "hidden";this.Visible = false;}function _pbShow(){this.Visible = true;this.Reset();this.Div.style.visibility = "visible";}function _pbSetStatus(s){this.StatusText.innerHTML = s;}function SlideShow(slidePanel, abstractDiv){this.SlidePanel = slidePanel;this.AbstractDiv = abstractDiv;this.Init = _ssInit;this.Clear = _ssClear;this.Next = _ssNext;this.Hide = _ssHide;this.Show = _ssShow;this.ShowAbstract = _ssShowAbstract;this.PanelIsSelectable = _ssPanelIsSelectable;this.AbstractIsSelectable = _ssAbstractIsSelectable;}function _ssInit(slideHtml, abstractHtml){this.Clear();this.AbstractHtml = abstractHtml;this.Slides = new Array();var slide;for (var i=0; i");return toOb.appendChild(btn);}function bulletImage(){var h = " h){doTruncate = true;break;}htmlThatFits = textGauge.innerHTML;}}textGauge.style.display = "none";if (doTruncate){var tHtml = htmlThatFits;var lastChar = (tHtml.charAt(tHtml.length-2) == ",") ? tHtml.length-2 : tHtml.length-1;tHtml = tHtml.substring(0,lastChar);return (tHtml == "") ? "" : tHtml + "…";}else {return html;}}function truncateWord(w, maxChars){var s = "";var c = "";for (var i=0; i 0);showSkip = (oPlaylist.Position < oPlaylist.Items.length-1);}}this.Rew.style.display = (showRew) ? "inline" : "none"; this.Fwd.style.display = (showFwd) ? "inline" : "none"; this.Prev.style.display = (showPrev) ? "inline" : "none"; this.Next.style.display = (showSkip) ? "inline" : "none";if((nowFocusOb==this.Rew || nowFocusOb==this.Fwd || nowFocusOb==this.Prev || nowFocusOb==this.Next)&&(nowFocusOb.style.display == "none")&&(this.Div.style.visibility != "hidden")){if (showSkip) this.Next.focus();else if (showPrev) this.Prev.focus();else if (showFwd) this.Fwd.focus();else if (showRew) this.Rew.focus();else this.Stop.focus();}}catch (error){}}function _vcPlayingView(){this.Div.className = "vcDiv vcDivPlaying";this.FullScreenBtn.style.display = "inline";this.NormalViewBtn.style.display = "none";this.Mute.style.display = "none";this.UnMute.style.display = "none";this.Play.style.display = "inline";this.Pause.style.display = "inline";this.Stop.style.display = "inline";this.Rew.style.display = "none";this.Fwd.style.display = "none";this.Prev.style.display = "inline";this.Next.style.display = "inline";}function _vcFullScreenView(){this.Div.className = "vcDiv vcDivFullScrn";this.FullScreenBtn.style.display = "none";this.NormalViewBtn.style.display = "inline";this.RefreshMute();this.Play.style.display = "inline";this.Pause.style.display = "inline";this.Stop.style.display = "inline";this.Rew.style.display = "inline";this.Fwd.style.display = "inline";this.Prev.style.display = "inline";this.Next.style.display = "inline";}function _vcShow(){this.Div.style.visibility = "visible";this.HideShowBtns();}function _vcHide(){this.Div.style.visibility = "hidden";}function _vcIsSelectable(){return (this.Div.style.visibility != "hidden");}function _vcClickMute(){oMediaPlayer.Player.Mute = !oMediaPlayer.Player.Mute;oVideoControls.RefreshMute();if (oMediaPlayer.Player.Mute)oVideoControls.UnMute.focus();else oVideoControls.Mute.focus();}function _vcRefreshMute(){if (oMediaPlayer.Player.Mute){this.Mute.style.display = "none";this.UnMute.style.display = "inline";}else {this.Mute.style.display = "inline";this.UnMute.style.display = "none";}}function _vcClickPlay(){switch (oMediaPlayer.GetPlayState()){case PLAYSTATE_PLAYING:break;case PLAYSTATE_PAUSED:case PLAYSTATE_FWD:case PLAYSTATE_REW:case PLAYSTATE_STOPPED:oMediaPlayer.Play();refreshPlaystateFeedback();break;default:if (oPlaylist.Position == -1)oPlaylist.Position = 0;playCurrent();break;}}function _vcClickPause(){if (oMediaPlayer.GetPlayState() == PLAYSTATE_PAUSED){oMediaPlayer.Play();}else {try{oMediaPlayer.Pause();}catch (error){}}}function _vcClickStop(){window.clearTimeout(g_clipLoadTimer);if (oMediaPlayer.IsLoading){oMediaPlayer.Cancel();oMediaPlayer.IsLoading = false;}else if (oMediaPlayer.GetPlayState() == PLAYSTATE_STOPPED){}else {try{if (oMediaPlayer.GetPlayState() != PLAYSTATE_BUFFERING) g_ForceFullStop = true;oMediaPlayer.Stop();oMediaPlayer.SetMediaPosition(0);oBrandingArea.Refresh();oVideoMetadata.Refresh(true);oNowPlaying.Refresh(true);}catch (error){}}}function _vcClickRew(){oMediaPlayer.Rew();}function _vcClickFwd(){oMediaPlayer.Fwd();}function _vcClickPrev(){playItemAfterAd(oPlaylist.Position-1);}function _vcClickNext(){if (oPlaylist.Position+1 < oPlaylist.Items.length){g_ForceFullStop = true;oMediaPlayer.Stop();oPlaylist.MoveNext();playCurrent();}else {}}function VideoMetadata(div, innerDiv) {this.Div = div;this.InnerDiv = innerDiv;this.Init = _vmInit;this.Refresh = _vmRefresh;this.Clear = _vmClear;this.Hide = _vmHide;this.Show = _vmShow;this.IsSelectable = _vmIsSelectable;this.GetSelectableOb = _vmGetSelectableOb;}function _vmInit(){}function _vmRefresh(userStopped){this.Clear();if(oPlaylist.GetCurrent() == null)return;if (userStopped){var txt = addSpan(this.InnerDiv);txt.innerHTML = "You have stopped the video.

Choose Play to begin again.";txt.className = "vmTxt1";this.SelectableOb = null;}else if (oMediaPlayer.IsPlayingAd){var txt = addSpan(this.InnerDiv);txt.innerHTML = "Up next after this advertisement:";txt.className = "vmTxt1";txt = addSpan(this.InnerDiv);txt.innerHTML = oPlaylist.GetCurrent().Title;txt.className = "vmTxt2";this.SelectableOb = null;}else {if (oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING){var title = addSpan(this.InnerDiv);title.innerHTML = oPlaylist.GetCurrent().Title;title.className = "vmTxt3";var abstract = addSpan(this.InnerDiv);abstract.innerHTML = oPlaylist.GetCurrent().Caption;abstract.className = "vmTxt4";var urls = oPlaylist.GetCurrent().LinkUrls;var text = oPlaylist.GetCurrent().LinkText;var addedLink = false;for (var i=0; i 0){var i = this.Items[this.Items.length-1];if (i[0]==topicInd && i[1]==catInd && i[2]==videoSize && i[3]==navView){return;}if (i[0]==topicInd && i[1]==catInd && i[2]==videoSize && i[3]==navView){return;}}this.Items[this.Items.length] = new Array(topicInd, catInd, videoSize, navView);}function _bmRemoveLast(){var a = new Array();for (var i=0; i< this.Items.length-1; i++){a[i] = this.Items[i];}this.Items = a;}function DataFetcher(){this.Init = _dfInit;this.GetData = _dfGetData;this.OnLoad = _dfOnLoad;this.Cancel = _dfCancel;this.AppendToQueue = _dfAppendToQueue;this.PushToQueue = _dfPushToQueue;this.ClearQueue = _dfClearQueue;this.DomDoc = new ActiveXObject("Msxml2.DOMDocument");this.DomDoc.onreadystatechange = _dfCheckReadyState;this.DomDoc.async = true;}function _dfInit(){this.UrlQueue = new Array();this.OnSucceedQueue = new Array();this.OnFailQueue = new Array();}function _dfGetData(url, onSucceed, onFail){if (this.Url != null){this.PushToQueue(this.Url, this.OnSucceed, this.OnFail);}this.Url = url;this.OnSucceed = onSucceed;this.OnFail = onFail;this.DomDoc.load(url);}function _dfOnLoad(){this.Data = this.DomDoc.text;var f = (this.DomDoc.parseError.errorCode != 0) ? this.OnFail : this.OnSucceed;this.Url = null;this.OnSucceed = null;this.OnFail = null;f.call();if (this.UrlQueue.length != 0){this.GetData(this.UrlQueue[0], this.OnSucceedQueue[0], this.OnFailQueue[0]);var a1 = new Array();var a2 = new Array();var a3 = new Array();for (var i=0; i=0; i--){if (g_videoPaths[i] != ""){t_GUIDs[j] = g_GUIDs[i];j++;}}var clipsToAdd = false;for (var i=0; i=0; i--){if (g_videoPaths[i] != ""){t_GUIDs[j] = g_GUIDs[i];t_videoPaths[j] = g_videoPaths[i];t_headlines[j] = g_headlines[i];t_captions[j] = g_captions[i];t_imageUrls[j] = g_imageUrls[i];t_sources[j] = g_sources[i];t_relatedLinkUrls[j] = g_relatedLinkUrls[i];t_relatedLinkText[j] = g_relatedLinkText[i];t_PGs[j] = g_PGs[i];t_PSs[j] = g_PSs[i];t_IDs[j] = g_IDs[i];j++;}}oPlaylist.AddAll(t_GUIDs, t_videoPaths, t_headlines, t_captions, t_imageUrls, t_sources, t_relatedLinkUrls, t_relatedLinkText, t_PGs, t_PSs, t_IDs);}var p_types = new Array();var p_titles = new Array();var p_slideHtml = new Array();var p_abstractHtml = new Array();var p_metdataHtml = new Array();var p_userWeatherCity;var p_userWeatherConditionImg;var p_stockDirection;function setPersonalDataGlobals(types, titles, slideHtml, abstractHtml, metdataHtml, userWeatherCity, userWeatherConditionImg, stockDirection){p_types = types;p_titles = titles;p_slideHtml = slideHtml;p_abstractHtml = abstractHtml;p_metdataHtml = metdataHtml;p_userWeatherCity = userWeatherCity;p_userWeatherConditionImg = userWeatherConditionImg;p_stockDirection = stockDirection;}function addPersonalDataToGlobals(){var topicName = (g_nowCatInd == -1) ? g_topics[g_nowTopicInd] : g_cats[g_nowTopicInd][g_nowCatInd];var newType = "";if ((topicName == "Weather") && (p_userWeatherCity!=null)){newType = "Weather";}if (newType != ""){for (var i=g_types.length; i>0; i--){g_types[i] = g_types[i-1];g_GUIDs[i] = g_GUIDs[i-1];g_PGs[i] = g_PGs[i-1];g_PSs[i] = g_PSs[i-1];g_IDs[i] = g_IDs[i-1];g_sources[i] = g_sources[i-1];g_headlines[i] = g_headlines[i-1];g_captions[i] = g_captions[i-1];g_imageTypes[i] = g_imageTypes[i-1];g_imageUrls[i] = g_imageUrls[i-1];g_videoPaths[i] = g_videoPaths[i-1];g_articleUrls[i] = g_articleUrls[i-1];g_relatedLinkUrls[i] = g_relatedLinkUrls[i-1];g_relatedLinkText[i] = g_relatedLinkText[i-1];}g_types[0] = newType;g_GUIDs[0] = "";g_videoPaths[0] = "";}}function addSlideshowToPlaylist(firstInd){var a = (firstInd==null) ? 0 : firstInd;var t_GUIDs = new Array();var t_videoPaths = new Array();var t_headlines = new Array();var t_captions = new Array();var t_imageUrls = new Array();var t_sources = new Array();var t_relatedLinkUrls = new Array();var t_relatedLinkText = new Array();var t_PGs = new Array();var t_PSs = new Array();var t_IDs = new Array();var j = 0;for (var i=g_scGuids.length-1; i>=0; i--){if (i!=a){t_GUIDs[j] = g_scGuids[i];t_videoPaths[j] = g_scVideoUrls[i];t_headlines[j] = g_scHeadlines[i];t_captions[j] = g_scCaptions[i];t_imageUrls[j] = g_scImageUrls[i];t_sources[j] = g_scSources[i];t_relatedLinkUrls[j] = g_scRelatedLinkUrls[i];t_relatedLinkText[j] = g_scRelatedLinkText[i];t_PGs[j] = g_scPGs[i];t_PSs[j] = g_scPSs[i];t_IDs[j] = g_scIDs[i];j++;}}oPlaylist.AddAll(t_GUIDs, t_videoPaths, t_headlines, t_captions, t_imageUrls, t_sources, t_relatedLinkUrls, t_relatedLinkText, t_PGs, t_PSs, t_IDs);oPlaylist.PutNext(g_scGuids[a], g_scVideoUrls[a], g_scHeadlines[a], g_scCaptions[a], g_scImageUrls[a], g_scSources[a], g_scRelatedLinkUrls[a], g_scRelatedLinkText[a], g_scPGs[a], g_scPSs[a], g_scIDs[a]);}function handleThumbClick(ind, isLoading){var i = (ind + oNavBar.CurrentRatchet) % oNavBar.HTML.length;if (g_types[i] == "Weather"){showWeather();return;}if (g_types[i] == "Stocks"){showStocks();return;} var inPlaylistAtPos = oPlaylist.IndexOf(g_GUIDs[i]); var isPlaying = (oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING); var currentItemIsAd = oMediaPlayer.IsPlayingAd;if (inPlaylistAtPos != -1){if (currentItemIsAd){oMessagePopup.AutoHide("The selected video will play after the advertisement");playItemAfterAd(inPlaylistAtPos);return;}if (inPlaylistAtPos == oPlaylist.Position){if (isLoading){oMessagePopup.AutoHide("The selected video is currently loading");return;}else if (isPlaying){oMessagePopup.AutoHide("The selected video is currently playing");return;}}oMessagePopup.AutoHide("Preparing to play the selected video");playItemAfterAd(inPlaylistAtPos);return;}if (!oPlaylist.PutLast(g_GUIDs[i], g_videoPaths[i], g_headlines[i], g_captions[i], g_imageUrls[i], g_sources[i], g_relatedLinkUrls[i], g_relatedLinkText[i], g_PGs[i], g_PSs[i], g_IDs[i]))return;onPlayListChange();if (isLoading || isPlaying){oMessagePopup.AutoHide("Adding the selected video to the playlist");return;}oMessagePopup.AutoHide("Preparing to play the selected video");playItemAfterAd(oPlaylist.Items.length-1);}function getTopic_Cat(topicInd, catInd){return (catInd==-1) ? topicInd : topicInd + "_" + catInd;}function ImagePreloader() {this.Init = _ipInit;this.Start = _ipStart;this.GetNext = _ipGetNext;this.ImageOb = new Image();this.ImageOb.onload = function(){ oImagePreloader.GetNext() };this.LoadFunction = function(){ oImagePreloader.ImageOb.src = oImagePreloader.Images[oImagePreloader.NowInd]; };this.TimerId = null;}function _ipInit(imageArray){this.Images = imageArray;}function _ipStart(){this.NowInd = -1;this.GetNext();}function _ipGetNext(){window.clearTimeout(this.TimerId);this.NowInd++;if (this.NowInd <= this.Images.length-1){this.TimerId = window.setTimeout(this.LoadFunction, 1);}}function JsPreloader() {this.Init = _jsInit;this.Load = _jsLoad;this.LoadNext = _jsLoadNext;this.Urls = new Array();this.NowLoading = -1;}function _jsInit(topicIds, catIds, client){this.TopicIds = topicIds;this.CatIds = catIds;this.Client = client;}function _jsLoad(nowTopicInd, nowCatInd){this.Urls = new Array();this.NowLoading = -1;this.NowTopic = nowTopicInd;this.NowCat = nowCatInd;var idArray = new Array();if (nowTopicInd == -1){idArray = this.TopicIds;}else if (nowCatInd == -1){idArray = this.CatIds[nowTopicInd];}if (idArray != null){for (var i=0; iind; i--){this.Items[i] = this.Items[i-1];} this.Items[ind] = item;if (inPlaylistAtPos != -1){if (inPlaylistAtPos <= ind){this.Remove(inPlaylistAtPos);if (this.Position > 0)this.Position = this.Position-1;}else {this.Remove(inPlaylistAtPos+1);}}return this.OK;}oMessagePopup.Warning("The video was not added to your playlist because your list is full. The maximum number of videos your playlist can contain is " + this.MaxLength + ".", "");return this.MAX;}function _plRemove(ind){var tmpArr = new Array();var tmpInd = 0;for (var i=0; i=0 ; i--){item = new PlaylistItem(t_GUIDs[i], t_videoPaths[i], t_headlines[i], t_captions[i], t_imageUrls[i], t_sources[i], t_relatedLinkUrls[i], t_relatedLinkText[i], t_PGs[i], t_PSs[i], t_IDs[i]);if (oPlaylist.Insert(item, 0) != oPlaylist.OK)return;}var startItemGuid = getStartupParam("i");if (startItemGuid == "") startItemGuid = getStartupParam("g");if (startItemGuid != ""){var url = urlToGuidLookup(g_startUpParams);oDataFetcher.GetData(url, onGetItemByGuid, onGetItemByGuidFail);}else {DeviceSpecialStart();}}}catch (e){onGetPlaylistFail();}}function onGetPlaylistFail(){if ((getStartupParam("g")!="") || (getStartupParam("i")!="") || (getStartupParam("r")!="") || (getStartupParam("prepend")!="") || (getStartupParam("replace")!="")){var url = urlToGuidLookup(g_startUpParams);oDataFetcher.GetData(url, onGetItemByGuid, onGetItemByGuidFail);}else {DeviceDefaultStart();}}function onGetItemByGuid(){try{if (oDataFetcher.Data == ""){onGetItemByGuidFail();return;}eval(oDataFetcher.Data);var item;for (var i=t_GUIDs.length-1; i>=0 ; i--){item = new PlaylistItem(t_GUIDs[i], t_videoPaths[i], t_headlines[i], t_captions[i], t_imageUrls[i], t_sources[i], t_relatedLinkUrls[i], t_relatedLinkText[i], t_PGs[i], t_PSs[i], t_IDs[i]);if (oPlaylist.Insert(item, 0) != oPlaylist.OK)return;}DeviceSpecialStart();}catch (oError){onGetItemByGuidFail();}}function onGetItemByGuidFail(){DeviceDefaultStart();}function getInitialNavView(){var t_topicName = (getStartupParam("m")!="") ? getStartupParam("m") : getStartupParam("menu");var t_categoryName = (getStartupParam("mi")!="") ? getStartupParam("mi") : getStartupParam("menuItem");if (t_topicName!= null){var loadCategory = false;var initTopic = -1;var initCat = -1;for (var a=0; a0; i--){child = ob.children(i-1);ob.removeChild(child);}}function addDiv(ob){var newDiv = document.createElement("DIV");return ob.appendChild(newDiv);}function imageTag(src, w, h, className){var tag = " 0);var t_vidSize;if (!t_playing){t_vidSize = VIDEOSIZE_NONE;}else if (t_navView == NAV_VIEW_HOME){t_vidSize = VIDEOSIZE_MEDIUM;}else {t_vidSize = VIDEOSIZE_SMALL;_playAfterThumbnailLoad = true;t_playing = false;}setVideoSize(t_vidSize);setNavView(t_navView);refreshFooter();updateBacklist();if (t_playing){oPlaylist.MoveTo(0);playCurrent();}}function setVideoSize(videoSize){if (g_nowVideoSize == videoSize)return;g_nowVideoSize = videoSize;window.clearTimeout(iFullScreenTimerId);switch (videoSize){case VIDEOSIZE_NONE:setBodyBg("131517");toggleSlideshow(SLIDESHOW_ON);oMediaPlayer.SetDimensions(0, 0, 0, 0, 0, 0, 0, 0);oAdManager.SetPos(202, 418);oAdManager.Show();oBanner.Show();oBkg1.Show();oBkg2.Hide();oBrandingArea.Hide();oBrowseHeader.Show();oCategoryChooser.Hide();oFullScreenPanel.Hide();oMediaPlayer.Hide();oNavBar.Show();oNowPlaying.Hide();oOnDeckArea.Hide();oProgressBar.Hide();oSlideShow.Show();oVideoMetadata.Hide();oVideoControls.Hide();break;case VIDEOSIZE_SMALL:setBodyBg("131517");toggleSlideshow(SLIDESHOW_OFF);oBrandingArea.SetDimensions(41, 10, 35, 243);oMediaPlayer.SetDimensions(385, 41, 160, 120, 3, 3, 3, 3);oAdManager.SetPos(171, 422);oAdManager.Show();oBanner.Show();oBkg1.Show();oBkg2.Hide();oBrandingArea.Show();oBrowseHeader.Show();oCategoryChooser.Hide();oFullScreenPanel.Hide();oMediaPlayer.Show(true);oNavBar.Show();oNowPlaying.Hide();oOnDeckArea.Hide();oProgressBar.Hide();oSlideShow.Hide();oVideoMetadata.Show();oVideoControls.Hide();oMediaPlayer.Div.focus();break;case VIDEOSIZE_MEDIUM:setBodyBg("131517");toggleSlideshow(SLIDESHOW_OFF);oBrandingArea.SetDimensions(51, 20, 29, 201);oMediaPlayer.SetDimensions(226, 41, 320, 240, 3, 3, 3, 3);oAdManager.SetPos(315, 16);oAdManager.Show();oBanner.Show();oBkg1.Hide();oBkg2.Show();oBrandingArea.Show();oBrowseHeader.Hide();oCategoryChooser.Hide();oFullScreenPanel.Hide();oMediaPlayer.Show(true);oNavBar.Hide();oNowPlaying.Show();oOnDeckArea.Show();oProgressBar.Show();oSlideShow.Hide();oVideoMetadata.Hide();oVideoControls.PlayingView();oVideoControls.Show();oVideoControls.Play.focus();break;case VIDEOSIZE_LARGE:setBodyBg("000000");oMediaPlayer.SetDimensions(42, 0, 476, 357, 0, 66, 0, 66);oAdManager.Hide();oBanner.Hide();oBkg1.Hide();oBkg2.Hide();oBrandingArea.Hide();oBrowseHeader.Hide();oCategoryChooser.Hide();oFullScreenPanel.Show();oMediaPlayer.Show(false);oNavBar.Hide();oNowPlaying.Hide();oOnDeckArea.Hide();oProgressBar.Hide();oSlideShow.Hide();oVideoMetadata.Hide();oVideoControls.FullScreenView();oVideoControls.Show();oVideoControls.Play.focus();startFsCountdown();break;case VIDEOSIZE_FULL:setBodyBg("000000");toggleSlideshow(SLIDESHOW_OFF);oMediaPlayer.SetDimensions(0, 0, 560, 420, 0, 0, 0, 0);oAdManager.Hide();oBanner.Hide();oBkg1.Hide();oBkg2.Hide();oBrandingArea.Hide();oBrowseHeader.Hide();oCategoryChooser.Hide();oFullScreenPanel.Hide();oMediaPlayer.Show(false);oNavBar.Hide();oNowPlaying.Hide();oOnDeckArea.Hide();oProgressBar.Hide();oSlideShow.Hide();oVideoMetadata.Hide();oVideoControls.Hide();break;}oBanner.Refresh();refreshStatus();}function setBodyBg(clr){document.body.style.background = clr;}function refreshStatus(){var ps = oMediaPlayer.GetPlayState();var str;if (g_ReadyState < rs_Complete)str = "Connecting";else if (ps == PLAYSTATE_BUFFERING)str = "Loading";else if (ps == PLAYSTATE_STOPPED)str = "Stopped";else if (ps == PLAYSTATE_PLAYING)str = "Playing";else if (ps == PLAYSTATE_PAUSED)str = "Paused";else if (ps == PLAYSTATE_FWD)str = "Fast-forwarding";else if (ps == PLAYSTATE_REW)str = "Rewinding";else str = "";switch(g_nowVideoSize){case VIDEOSIZE_MEDIUM:oProgressBar.SetStatus(str);break;case VIDEOSIZE_LARGE:oVideoControls.SetStatus(str);break;}}function startFsCountdown(){window.clearTimeout(iFullScreenTimerId);iFullScreenTimerId = window.setTimeout(goFullScreen, 15000);}function goFullScreen(){setVideoSize(VIDEOSIZE_FULL);refreshFooter();updateBacklist();}function setNavView(view){oDataFetcher.ClearQueue();g_nowNavView = view;switch (view){case NAV_VIEW_HOME:g_nowTopicInd = -1;g_nowCatInd = -1;setMetaDataGlobals(null, null, null, null, null, null, null, null, null, null, null, null, null, null);oBrowseHeader.Clear();oNavBar.Clear();oNavBar.InitTopics(g_topics);oNavBar.SetFocus();break;case NAV_VIEW_PLAYLIST:var t_types = new Array();var t_GUIDs = new Array();var t_headlines = new Array();var t_captions = new Array();var t_imageUrls = new Array();var t_videoPaths = new Array();for (var i=0; i oNavBar.MenuCount)oNavBar.SetRatchet(oPlaylist.Position);else oNavBar.SetRatchet(0);oNavBar.SetFocus();if (_playAfterThumbnailLoad){_playAfterThumbnailLoad = false;oPlaylist.MoveTo(0);playCurrent();}break;case NAV_VIEW_BROWSE:var topicId = (g_nowCatInd == -1) ? g_topicIds[g_nowTopicInd] : g_catIds[g_nowTopicInd][g_nowCatInd];var topicName = (g_nowCatInd == -1) ? g_topics[g_nowTopicInd] : g_cats[g_nowTopicInd][g_nowCatInd];oNavBar.Clear();oCategoryChooser.Hide();oBrowseHeader.ShowLoadingMessage(topicName);var url = urlToJsLoader(topicId, "Anduril");oDataFetcher.GetData(url, onBrowseLoadComplete, onBrowseLoadFail);break;default:break;}oBanner.Refresh();}function onBrowseLoadComplete(){try{eval(oDataFetcher.Data);setMetaDataGlobals(t_types, t_GUIDs, t_PGs, t_PSs, t_IDs, t_sources, t_headlines, t_captions, t_imageTypes, t_imageUrls, t_videoPaths, t_articleUrls, t_relatedLinkUrls, t_relatedLinkText);oImagePreloader.Init(g_imageUrls);oImagePreloader.Start();completeBrowseView();}catch (error){onBrowseLoadFail();}refreshFooter();if (_playAfterThumbnailLoad){_playAfterThumbnailLoad = false;oPlaylist.MoveTo(0);playCurrent();}}function onBrowseLoadFail(){var topicName = (g_nowCatInd == -1) ? g_topics[g_nowTopicInd] : g_cats[g_nowTopicInd][g_nowCatInd];var badCat = getTopic_Cat(g_nowTopicInd, g_nowCatInd);oCategoryChooser.AppendBadCat(badCat);alert("The " + topicName + " category is currently unavailable. Please try again later.");setNavView(NAV_VIEW_HOME);}function completeBrowseView(){var headerText= ""+ g_topics[g_nowTopicInd]+ " — "+ ((g_nowCatInd == -1) ? "All" : g_cats[g_nowTopicInd][g_nowCatInd])+ "";var itemCount = g_headlines.length;oBrowseHeader.MediaCount = itemCount;oBrowseHeader.SetText1(headerText);oNavBar.InitThumbnails(g_headlines, g_imageUrls, g_GUIDs, g_topics[g_nowTopicInd]);oNavBar.SetFocus();}function refreshFooter(){switch (g_nowVideoSize){case VIDEOSIZE_MEDIUM:oFooter.DrawPlayingView();break;case VIDEOSIZE_LARGE:oFooter.Hide();break;case VIDEOSIZE_FULL:oFooter.Hide();break;default:switch (g_nowNavView){case NAV_VIEW_HOME:oFooter.DrawHomeView();break;case NAV_VIEW_PLAYLIST:oFooter.DrawPlaylistView();break;default:oFooter.DrawBrowseView();break;}break;}}function refreshPlaystateFeedback(){oBrandingArea.Refresh();oNowPlaying.Refresh(false);oNavBar.Refresh();oOnDeckArea.Refresh();oVideoMetadata.Refresh(false);oVideoControls.HideShowBtns();}function toggleSlideshow(setting){g_nowSlideshowMode = setting;if (g_nowSlideshowMode == SLIDESHOW_ON){var slides = new Array();for (var i=0; i';}var abstracts = new Array();for (var i=0; i" + "

" + "

" + g_ssCaptions[i] ;var h2 = truncateToHeight(295, 135, "20px", h1);abstracts[i]= ""+ h2+ "

";}oSlideShow.Init(slides, abstracts);iSlideShowTimerId = window.setTimeout(nextSlide, iSlideShowInterval);}else {window.clearTimeout(iSlideShowTimerId);}}function nextSlide(){window.clearTimeout(iSlideShowTimerId);oSlideShow.Next();iSlideShowTimerId = window.setTimeout(nextSlide, iSlideShowInterval);}function updateBacklist(){oBacklistManager.Append(g_nowTopicInd, g_nowCatInd, g_nowVideoSize, g_nowNavView);}function videoGoBack(){if (oCategoryChooser.Div.style.visibility == "visible"){oCategoryChooser.Hide();oFooter.SetFocus();return;}if (oBacklistManager.Items.length<2){if (okToLeaveApp()){oPlaylist.RemoveAll();oMediaPlayer.Stop();return false;}else {return true;}}var prevState = oBacklistManager.Items[oBacklistManager.Items.length -2];var prevTopic = prevState[0];var prevCat = prevState[1];var prevVidSize = prevState[2];var prevNavView = prevState[3];oBacklistManager.RemoveLast();if ((prevNavView == NAV_VIEW_PLAYLIST) && (oPlaylist.Items.length == 0))return videoGoBack();if (prevVidSize >= VIDEOSIZE_LARGE && oMediaPlayer.GetPlayState() == PLAYSTATE_STOPPED)return videoGoBack();if ((prevVidSize == VIDEOSIZE_NONE) && (g_nowSlideshowMode != SLIDESHOW_ON))prevVidSize = VIDEOSIZE_SMALL;if (oPlaylist.Items.length == 0)prevVidSize = VIDEOSIZE_NONE;if ((g_nowTopicInd == prevTopic) && (g_nowCatInd == prevCat) && (g_nowVideoSize == prevVidSize) && (g_nowNavView == prevNavView))return videoGoBack();g_nowTopicInd = prevTopic;g_nowCatInd = prevCat;setVideoSize(prevVidSize);setNavView(prevNavView);refreshFooter();return true;}function clickHelp(){if (okToLeaveApp())CallPaneHelp(PH_topicTOC,'MSNTV_TRS_TOC_Videos.htm');}function clickSlide(){var a = oSlideShow.Slides[oSlideShow.CurrentSlide].ShowcaseIndex;addSlideshowToPlaylist(a);oMessagePopup.AutoHide("Adding top videos to the playlist and preparing to play");setVideoSize(VIDEOSIZE_MEDIUM);setNavView(NAV_VIEW_PLAYLIST);refreshFooter();updateBacklist();playItemAfterAd(oPlaylist.Position+1);}function clickPlayTop(){clickSlide();}function clickPlayAll(){var topicName = (g_nowCatInd == -1) ? g_topics[g_nowTopicInd] : g_cats[g_nowTopicInd][g_nowCatInd];if (catHasClipsNotInPlaylist()){oMessagePopup.AutoHide("Adding all " + htmlDecode(topicName) + " videos to the playlist and preparing to play");addCategoryToPlaylist();setVideoSize(VIDEOSIZE_MEDIUM);updateBacklist();refreshFooter();playItemAfterAd(oPlaylist.Position+1);}else {clickThumb(0);}}function clickIcon(i){var iconInd = (i + oNavBar.CurrentRatchet) % oNavBar.HTML.length; try{var nowIcon = eval("menuItem_" + i);var ob;if (nowIcon.offsetLeft < 230){if (oVideoMetadata.IsSelectable())ob = oVideoMetadata.GetSelectableOb();if (oSlideShow.AbstractIsSelectable())ob = oSlideShow.AbstractDiv.Button;if (oOnDeckArea.IsSelectable())ob = oOnDeckArea.LinkSpan;}else {if (oAdManager.IsSelectable())ob = oAdManager.SelectableOb();if (oSlideShow.PanelIsSelectable())ob = oSlideShow.SlidePanel;if (oMediaPlayer.IsSelectable())ob = oMediaPlayer.Div;}if (ob!=null)ob.focus();}catch (e){}if (iconInd == oNavBar.HTML.length-1){clickPlaylistButton();}else {g_nowTopicInd = iconInd;g_nowCatInd = -1;setNavView(NAV_VIEW_BROWSE);updateBacklist();}}function overThumb(i){if (g_nowNavView != NAV_VIEW_HOME){var h = "(" + oNavBar.GetThumbIndex(i) + " of " + oBrowseHeader.MediaCount + ")";oBrowseHeader.SetText2(h);}}function clickBrowseButton(){oCategoryChooser.Show(g_nowTopicInd, g_nowCatInd);}function overBrowseButton(){oCategoryChooser.Hide();}function offBrowseButton(){oCategoryChooser.Hide();oNavBar.SetFocus();}function clickPip(){switch (g_nowVideoSize){case VIDEOSIZE_SMALL:setVideoSize(VIDEOSIZE_MEDIUM);updateBacklist();refreshFooter();break;case VIDEOSIZE_MEDIUM:setVideoSize(VIDEOSIZE_LARGE);updateBacklist();refreshFooter();break;}}function clickMoreInfo(){setVideoSize(VIDEOSIZE_SMALL);refreshFooter();updateBacklist();}function clickNormalView(){setVideoSize(VIDEOSIZE_MEDIUM);refreshFooter();updateBacklist();oVideoControls.Play.focus();}function clickBrwsBtn(i,j){oFooter.SetFocus();toCat(i,j);}function toCat(a,b){g_nowTopicInd = a;g_nowCatInd = b;setNavView(NAV_VIEW_BROWSE);updateBacklist();}function clickPlaylistButton(){if (oPlaylist.Items.length == 0){alert("Your playlist is empty. To add videos to your playlist, first choose a category, then find the video you want to add and press OK on your keyboard or remote control.");return;}if (g_nowVideoSize == VIDEOSIZE_MEDIUM)setVideoSize(VIDEOSIZE_SMALL);g_nowTopicInd = -1;g_nowCatInd = -1;setNavView(NAV_VIEW_PLAYLIST);refreshFooter();updateBacklist();}function clickHomeButton(){if (g_nowVideoSize == VIDEOSIZE_MEDIUM)setVideoSize(VIDEOSIZE_SMALL);setNavView(NAV_VIEW_HOME);refreshFooter();updateBacklist();}function clickDeleteAll(){if (oMessagePopup.Confirm("Are you sure you want to empty your playlist?")){oPlaylist.RemoveAll();g_ForceFullStop = true;oMediaPlayer.Stop();onPlaylistEnd();oMediaPlayer.IsPlayingAd = false;}}function clickAd(){DeviceClickAway(oAdManager.GetClickThroughUrl());}function clickFullScreen(){setVideoSize(VIDEOSIZE_LARGE);updateBacklist();refreshFooter();}function clickRelatedLink(url, ind){var trackingUrl = oTrackingManager.TrackRelatedLink(url, ind, oPlaylist.GetCurrent());DeviceClickAway(trackingUrl);}function onPlayListChange(){refreshPlaystateFeedback();}function onPrepareToPlay(){if (g_nowVideoSize == VIDEOSIZE_NONE){setVideoSize(VIDEOSIZE_SMALL);updateBacklist();refreshFooter();}}function onPlaylistEnd(){setNavView(NAV_VIEW_HOME);setVideoSize(VIDEOSIZE_NONE);refreshFooter();updateBacklist();oNavBar.Refresh();oNavBar.SetFocus();}function trackViewedClip(guid){var url = urlToUserActivity();url += "action=saveGuid&guid=" + guid;oDataFetcher.GetData(url, onTrackClip, onTrackClipFail);}function onTrackClip(){}function onTrackClipFail(){}function ratchetNavBar(dir, i){if (oNavBar.HTML.length > oNavBar.MenuCount){if (dir=='l')if (oNavBar.CurrentRatchet==0)oNavBar.Draw(oNavBar.HTML.length-1);else oNavBar.Draw(oNavBar.CurrentRatchet-1);else if (oNavBar.CurrentRatchet==oNavBar.HTML.length-1)oNavBar.Draw(0);else oNavBar.Draw(oNavBar.CurrentRatchet+1);}if (g_nowNavView != NAV_VIEW_HOME){var h = "(" + oNavBar.GetThumbIndex(i) + " of " + oBrowseHeader.MediaCount + ")";oBrowseHeader.SetText2(h);}}function clickThumb(ind){handleThumbClick(ind, oMediaPlayer.IsLoading);} \ No newline at end of file diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.778/localhost-1700/Shared/Anduril/CssTransforms/en-us/Styles.css b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.778/localhost-1700/Shared/Anduril/CssTransforms/en-us/Styles.css new file mode 100644 index 00000000..1b0ae161 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.778/localhost-1700/Shared/Anduril/CssTransforms/en-us/Styles.css @@ -0,0 +1 @@ +TD.abTxt{padding-bottom:15;font:18 Segoe;color:#1D1D1D}TD.abLnks{vertical-align:bottom;text-align:right;}ul{margin-top:-2px;margin-bottom:15px;}ul li{margin-left:-24px;margin-bottom:5px;}ul li span.li{position:relative;top:2px;left:-4px;}ul.links{list-style:none;}ul.links li{ position:relative; top:2px; left:-15px; padding-left:13px; background:url(msntv:/Shared/images/BulletCustom.gif) no-repeat; background-position-y:3px;}ul.links li a{ display:inline-block;}TABLE.lotTbl{width:379;table-layout:fixed;}TR.lotR1{height:26;padding-left:8;}TR.lotR2{vertical-align:middle;height:45;font:16 Segoe;}TR.lotR3{height:45;background:#D6D6D7;}TR.lotR5{text-align: right;padding-top:10px;}TD.lotC1{width:110;background: #BFCED6;}TD.lotC2{width:151; background: #BFCED6;}TR.lotSpc{height:10;}TD.lotSpc2{width:2;}TD.lotSpc3{padding-left:8;}TABLE.setTbl{width:379;font:18 Segoe;}TR.setR1{padding-bottom:15;}TR.setR2{padding-bottom:8;}TR.setR3{padding-bottom:15;font:16 Segoe;}TR.setR4{padding-top:15;vertical-align:bottom;text-align:right;}TR.setR5{height:2;background:#919191;} TR.setR6A{}TR.setR6B{background:#BCDEE5;}BODY{margin:0 0 0 0;font:18 Segoe;color: #1D1D1D;behavior: url(/HTC/Shared/FocusBoxKeyHandler.htc);}A:link, A:visited{color: #14224B;text-decoration:none;}SELECT{font:12 Segoe;}SPAN.shrArrw{width:11;height:14;behavior: url(#default#alphaImageLoader);src:/Images/Shared/BulletCustom.png;margin:0 8 0 0;}A.shrLnk1{font:18}A.shrLnk2{font:bold 18;}.shrTxt {font:18}INPUT.shrStngInpt {background-color: #261f4d;color:white; }TABLE.cntr{width:560;height:384;}TABLE.cntrPht{width:560;height:384;behavior: url(#default#gradient);startColor:#B2B2B2;endColor: #EBEBEB;angle: 180;}TR.cntrHdr{height:56;}TR.cntrBdy{height:328;}TD.cntrSdbr{width:151;}TD.cntrSdbr{padding:10 0 10 0;}TD.cntrCnt{width:409;background-color:#E8E9EA;background-image:url(/Images/Shared/CenterBg.jpg);background-repeat:no-repeat;padding:15 0 15 8;}TD.cntrCntPht{width:409;background-repeat:no-repeat;padding:15 0 15 8;}TABLE.cntrHdr{width:542;margin-left:10;}TR.cntrHdrR1{height:29;text-align:right;}TR.cntrHdrR2{height:27;}SPAN.cntrHdrLnks{font:16 Segoe;top:1;color:#E6E6E6}#helpIcon{position: relative;top: 0px;left: 4px;margin-left: 4px;behavior: url(#default#alphaImageLoader);width: 20px;height: 20px;}.helpLink {font-size: 18px;font-weight: normal;display: inline-block;}a.helpLink:link, a.helpLink:visited, a.helpLink:hover {color: #F7F7F7;}SPAN.cntrHdr{top:-3; font:21 Segoe;}SPAN.cntrHdr2{color:#F7F7F7;font-weight: 600;}TABLE.sdbr{font:16 Segoe;color:#1D1D1D;width:151;}TR.sbBtn{height:24;padding-left:10;}TD.sbDiv2{height:1;background:#FFFFFF;}TABLE.sdbrRl{margin:45 10 0 8;border:1px solid;width:133;font:16 Segoe;}TABLE.sdbrPh1{margin:15 10 0 8;border:1px solid;width:133;font:16 Segoe;}DIV.cntntTtl{font:bold 18 Segoe;color:#0F6C1B;height:27;width:379;line-height:85%; }TABLE.cntntTbl{width:379;}.cntrbbModDiv{width:362; height:100;color: #020e29;font-size: 18px;}.cntrbbModBnnr{width:362; height:29;font:bold 21px;}.cntrbbModBnnrImg{width:29;height:22;behavior:url(#default#alphaImageLoader);filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/Images/Home/HomeBBVideo.png', sizingMethod='scale');src=/Images/Home/HomeBBVideo.png;}.cntrbbModBnnrTxt1{color: 434343;padding-right:5;}.cntrbbModImg{width:92;height:69;}.cntrbbModHead{position:absolute;top:95;left:260;width:260; height:23; font-weight:bold;overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}.cntrbbModCptn{position:absolute;left:260;width:260;height:23; overflow: hidden; white-space: nowrap;}.cntrbbModCptn1{top:119;}.cntrbbModCptn2{top:142;text-overflow: ellipsis; }.cntrbbModNoData{position:absolute;top:110;width: 350}DIV.cntntTtlEnt, .cntntTtlGam, .cntntTtlMny, .cntntTtlNws,.cntntTtlPht, .cntntTtlSet, .cntntTtlShp, .cntntTtlSpr, .cntntTtlUsng, .cntntTtlWthr{font:bold 18 Segoe;height:27;width:379;line-height:85%; }TD.cntrSdbrPht{background-color:#B2B2B2;}TD.cntrSdbrEnt, .cntrSdbrGam, .cntrSdbrMny, .cntrSdbrNws, .cntrSdbrSet, .cntrSdbrShp, .cntrSdbrSpr, .cntrSdbrUsng, .cntrSdbrWthr{width:151;padding:10 0 10 0;}TD.cntrHdrEnt { background:url(/Images/Shared/CenterHeaderEntertainment.jpg);}SPAN.hdrTxtEnt { color:#B7D3FD;}TD.sbDiv1Ent { height:1px; background:#275B81;}TD.sbBtnHlFntEnt { color:#A84C0E; font-weight: bold;}TD.cntrSdbrEnt{ background:url(/Images/Shared/CenterSideEntertainment.gif);}DIV.cntntTtlEnt { color:#A84C0E;}TD.cntrHdrGam { background:url(/Images/Shared/CenterHeaderGames.jpg) }SPAN.hdrTxtGam { color:#C2E5FF; }TD.sbDiv1Gam { height:1px; background:#168CD9;}TD.sbBtnHlFntGam { color:#B4571F; font-weight: bold;}TD.cntrSdbrGam { background:url(/Images/Shared/CenterSideGames.gif); }DIV.cntntTtlGam { color:#B4571F;}TD.cntrHdrMny { background:url(/Images/Shared/CenterHeaderMoney.jpg) }SPAN.hdrTxtMny { color:#BAF2C6; }TD.sbDiv1Mny { height:1px; background:#236C24;}TD.sbBtnHlFntMny { color:#A74403; font-weight: bold;}TD.cntrSdbrMny { background:url(/Images/Shared/CenterSideMoney.gif);}DIV.cntntTtlMny { color:#A74403;}SPAN.hdrTxtRad { color:#153A73; }TD.cntrHdrRad { background:url(/Images/Shared/MusicHeaderBG.jpg) }TD.cntrHdrNws { background:url(/Images/Shared/CenterHeaderNews.jpg) }SPAN.hdrTxtNws { color:#9DBBE5; }TD.sbDiv1Nws { height:1px; background:#2D7091;}TD.sbBtnHlFntNws { color:#A84C0E; font-weight: bold;}TD.cntrSdbrNws{ background:url(/Images/Shared/CenterSideNews.gif);}DIV.cntntTtlNws { color:#A84C0E;}TD.cntrHdrPht { background:url(/Images/Shared/PhotoHeader.jpg); }SPAN.hdrTxtPht { color:#B2B2B2; }DIV.cntntTtlPht { color:#CD1F36;}TD.cntrHdrSts { background:url(/Images/Shared/CenterHeader_DEBUG.jpg) }SPAN.hdrTxtStsWthr { color:#BBBBBB; }TD.sbDiv1Set { height:1px; background:#686868;}TD.sbBtnHlFntSet { color:#808080; font-weight: bold;}TD.cntrSdbrSet{ background-color:#808080;}DIV.cntntTtlSet { color:#989898;}TD.cntrHdrShr { background-color:#383838 }SPAN.hdrTxtShr { color:#BBBBBB; }TD.sbDiv1Shr { height:1px; background:#686868;}TD.sbBtnHlFntShr { color:#989898; font-weight: bold;}TD.cntrSdbrShr{ background-color:#808080;}DIV.cntntTtlShr { color:#989898;}TD.cntrHdrShp { background:url(/Images/Shared/CenterHeaderShopping.jpg) }SPAN.hdrTxtShp { color:#CFCBFE; }TD.sbDiv1Shp { height:1px; background:#7E5A96;}TD.sbBtnHlFntShp { color:#A93F26; font-weight: bold;}TD.cntrSdbrShp{background:url(/Images/Shared/CenterSideShopping.gif);}DIV.cntntTtlShp { color:#A93F26;}TD.cntrHdrSpr { background:url(/Images/Shared/CenterHeaderSports.jpg) }SPAN.hdrTxtSpr { color:#FDD8B8; }TD.sbDiv1Spr { height:1px; background:#963E0C;}TD.sbBtnHlFntSpr { color:#943100; font-weight: bold;}TD.cntrSdbrSpr{background:url(/Images/Shared/CenterSideSports.gif);}DIV.cntntTtlSpr { color:#943100; font-weight: bold;}TD.cntrHdrUsng { background:url(/Images/Shared/CenterHeaderUsingMSNTV.jpg) }SPAN.hdrTxtUsng { color:#B7FCDF; }TD.sbDiv1Usng { height:1px; background:#507126;}TD.sbBtnHlFntUsng { color:#9E4701; font-weight: bold;}TD.cntrSdbrUsng{background:url(/Images/Shared/CenterSideUsingMsntv.gif);}DIV.cntntTtlUsng { color:#9E4701;}TD.cntrHdrWthr { background:url(/Images/Shared/CenterHeaderWeather.jpg) }SPAN.hdrTxtWthr { color:#AAE1FF; }TD.sbDiv1Wthr { height:1px; background:#267082;}TD.sbBtnHlFntWthr{ color:#9C4E08; font-weight: bold;}TD.cntrSdbrWthr{ background:url(/Images/Shared/CenterSideWeather.gif);}DIV.cntntTtlWthr { color:#9C4E08;}TR.tsImg{padding-bottom:10; }TD.tsImg1{width:1%;font:10 Segoe;color:#1D1D1D;}TD.tsImg2{width:99%;padding-left:6; }DIV.tsImgLd{padding-top:6;}TR.tsHdlnRw{padding-bottom:6;}TD.tsCol1{width:12;}TD.tsCol2{width:367;}TR.tsLnks{padding-top:10;}TR.tsLnrl{height:2;background:#919191;}TR.tsSpc{height:8;}TABLE.wthTbl{width:379;table-layout:fixed;text-align:center;margin-top:7px;}DIV.wthGrd{width:401;height:26;margin-bottom:10;padding-top:2;font:bold 18;}TABLE.wthTblCC{width:379;table-layout:fixed;text-align:center;}DIV.wthCC{position: relative;top:0;left:0;padding:0 0 7 0;font:18;text-align:left;}SPAN.wthCCimg{position: relative;top:0;left:0;padding-right: 10;height:60;width:68;}SPAN.wthCC1{position: absolute;top:-5px;left:75px;font:36 Segoe;color:#0B9093;}SPAN.wthCC2{position: absolute;top: 40px;left:75px;color:#1D1D1Dmargin-top:15px;}TR.wthR1{height:28;font:18;}TR.wthR2{height:70;}TR.wthR4{text-align:left;padding:10 0 10 0;}TR.wthR5{text-align:right;}TD.wthBrnd{font-size:18px;zoom:70%;}TD.wthC1{width:2px;background:#919191;}TD.wthC2{width:94px;}SPAN.wthLo{font:18;color:#595D75;}DIV.wthInst{padding:0 0 15 0;font:18;width:379;}TABLE.entNws{margin:0 0 0 0;width:379;}TR.entNwsR2{height:25px;}TD.entNwsC1{width:400px;}TD.entNwsC2{width:30px;}TABLE.entMvSrch{margin:8 0 0 8;width:430px;background:#B7D3FD;}TR.entMvSrchR1{height:40px;}TD.entMvSrchC1{width:310px;}TD.entMvSrchC2{width:90px;}TD.entTpTvC1{width:100px;}TD.entTpTvC2{width:10px;}TD.entTpTvC3{width:300px;}TD.entTpTvC4{width:20px;}TABLE.entTvPt{margin:8 0 0 8;width:379;font-size:12;table-layout:fixed;}TABLE.entMvShw{margin:8 0 0 8;width:430px;}TD.entMvShwC1{width:400px;}TABLE.entPhts{margin:8 0 0 8;width:379;height:100px;}TD.mnystkcolspc {width:2;}TD.mnystkcol1 {width:75; background: #BBCEB0;}TD.mnystkcol2 {width:100; background: #BBCEB0;}TD.mnystkcol3 {width:110; background: #BBCEB0;}TD.mnystkcol4 {width:88; background: #BBCEB0;}TD.mnyDsclm{text-align:right;padding-top:10;padding-bottom:15;font-size:10;}TD.mnyDtlLnk{text-align:right;padding-bottom:15;}TD.mnyQlInst{padding-bottom:15;font:18;}TR.mnyBtnRw{vertical-align:bottom;text-align:right;}TD.mnyImg{padding-right:6;padding-left:6; }TR.mnyTR1{height: 90;}TR.mnyTr2{padding-top:10;}.mnyImageUp{behavior: url(#default#alphaImageLoader);src:/Images/Money/HomeStocksUpArrow.png;height:24px;width:14px;} .mnyImageDn{behavior: url(#default#alphaImageLoader);src:/Images/Money/HomeStocksDnArrow.png;height:24px;width:14px;} .eSextImgBorder {border: 1px solid black;width: 80;height: 80;}A.eSextTitle, .eSextTitle{font-size: 18px;font-weight: bold;}A.eSextLink, .eSextLink{font-size: 18px;font-weight: bold;} A.eSextMerchant, .eSextMerchant {font-size: 18px;}.eSextPromo {color: #ff6600;font-size: 18px;}.eSextPrice {font-size: 18px;font-weight: bold;}SPAN.usgCatLft {width:175;padding-left: 8;padding-bottom: 8;}SPAN.usgCatRt {width:175; padding-right: 8; padding-bottom: 8;}SPAN.usgCatTtl{color:#A84C0E;font:18px;font-weight:bold;background:#C7D1BE;width:181px;height:26px;vertical-align:middle;padding-left:8;}TABLE.usgTbl{width:379;}TABLE.usgCatTbl{background:#D3DACC;border:1px solid;border-color:#9A9A9A;width:379;}TABLE.usgLgTbl{width:198;}TABLE.usgSmTbl{width:183;}TD.usgTd2{padding-bottom:8;}TR.usgTr1{height:15;}TR.usgBtnRw{vertical-align:bottom;text-align:right;padding-top:15;}A.usgMainTtl, A.usgMainTtl:visited, A.usgMainTtl:active, A.usgMainTtl:hover{color:#9E4701;font-weight: bold;}.usgTipsIcon{behavior: url(#default#alphaImageLoader);src: /Images/UsingMsntv/CenterIconTips.png;height:42px;width:43px;} .usgNwsIcon{behavior: url(#default#alphaImageLoader);src: /Images/UsingMsntv/CenterIconNewsletter.png;height:42px;width:43px;}.usgTTTIcon{behavior: url(#default#alphaImageLoader);src: /Images/UsingMsntv/CenterIconTTT.png;height:42px;width:43px;} .usgImg{width:178;height:135;margin-right: 10px;}.usgTxt{color: #01682F}.cntntTtlUsng2{font:bold 18 Segoe;color:#9E4701;width:191;line-height:85%; }TR.gmsTr1{height:70;}TD.gmsTd1{width:60;}TD.gmsTd2{width:6;}TD.gmsTd3{width:343;}.stationCategoryHeader{color: #A73D0D;padding-bottom:5px;}.radioRule{width:550px;background-color: #97B7D3;height: 2px;position:relative;left:-12px;}ul.radLinks {list-style:none;}ul.radLinks{position:relative;top:2px;left:-30px;padding-left:15px; behavior: url(#default#alphaImageLoader);background:url(/Images/Shared/BulletCustom.png) no-repeat;background-position-y:3px;}TD.radcntrCnt{width:537px;height: 323;background-image:url(/Images/radio/MusicRadioHomePageBG3.jpg);padding: 15 8 0 15;}TD.radCnt{padding: 15 8 13 15;}DIV.radCntr{width:560;height: 380px;}TABLE.radHmBtmTbl{padding: 0 7 0 238}.radTd1{position:absolute;top:25px;left:0px;width:170px;padding-right:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.radTd2{position:absolute;top:25px;left:180px;width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}TD.radTd3{width:130 px;}TD.radBr{width:394px;}DIV.radSt{width:143px;}TD.radSB{left:403px; position:absolute; width:142pxbackground-color: #E3E9F4;}TD.radMain{width:369px; position:absolutebehavior: url(#default#gradient);startcolor: #E3E94F;endcolor: #B2C4DF;angle: 180;}.radPlus{position:absolute;left:238px;top:274;width:300px;height:98px;behavior: url(#default#gradient);startcolor: #C7EEFF;endcolor: #C7EEFF;starttransparency: 50%;endtransparency: 60%;border-style:solid;border-color:4163A3;border-width:1px;}.radPlsHdr{position:relative;top:10px;height:24px;behavior:url(#default#gradient);startColor:#2E5399;endcolor:#E9F8FF;angle:90;}.radPlusHdrTxt{position:relative;top:3px;left:14px;color:FFFFFF;}.radPlusTxt{position:relative;top:15px;left:14px;}.radPlusLnk{position:relative;top:20px;left:14px;}SPAN.radHdr{color:E6E6E6;font-size:21px;}DIV.cntrHdrRad { background: url(/Images/Shared/MusicHeader.jpg) no-repeat;top:0px; left:0px; height:56px; width:100%;}TD.cntrHdrRad2 { background: url(/Images/Shared/MusicHeader.jpg) no-repeat;top:0px; left:0px; height:56px; width:100%;}.radHdrLinks {font-size: 18px;font-weight: normal;display: inline-block;}a.radHdrLinks:link, a.radHdrLinks:visited, a.radHdrLinks:hover {color: #163973;}DIV.cntrRadHdr { font-family: segoe; color: #A93D0D; font-size: 20px; font-weight: bold;padding-bottom:2px;}.radStationAddRemTitle{width:325px; padding-left:8px}.cntrRadTxt { font-family: segoe; font-size: 18px; vertical-align:top;font-color:#213764;}a.cntrRadTxt:link, a.cntrRadTxt:visited a.cntrRadTxt:hover{font-color:#213764;} .cntrRadFvHmTxt { font-family: segoe; font-size: 18px; vertical-align:top;font-color:#2B2C29;}.cntrRadWmpTitleTxt { font-family: segoe; font-size: 18px; font-weight:bold; color:white }.cntrRadWmpTitleVal { font-family: segoe; font-size: 18px; font-weight:bold; color: #73DDA0 }hr.radDvdr{height:2px;width: 100%;border:#97B7D3 solid 2px;margin-top: 0px;margin-bottom: 0px;}.radInst{width:100%; padding-bottom:15px;}.sideBarBkg{position: absolute;top: 56px;right: 0px;width: 27%;height: 324px;padding-right: 8px;padding-left: 6px;padding-top: 10px;background-color:#D7EDFE;}.sideBarLclBkg{position: absolute;top: 56px;right: 0px;width: 27%;height: 324px;padding-right: 8px;padding-left: 6px;padding-top: 10px;background-color:#D7EDFE;}.sideBarButton{height: 26px;width: 100%;display: block;text-align:left;margin: 0 0 4px 0;}#scrollAreaLg{position: absolute;top: 0px;left: 0px;width: 100%;height: 324px;padding: 15 20 10 15;bottom: 0px;/*height: 1px; will be overridden (because of the bottom value) once the HTC loads */overflow-y: auto;behavior: url(/Shared/Anduril/HTC/en-us/ScrollingDIV.htc);}.scrollAreaBkg{position: relative;top: 0px;left: 0px;width: 73%;height: 324px;behavior: url(#default#gradient);startColor: #BDEAFF; endcolor: #D7ECFD;angle:180;}.scrollAreaLclBkg{position: relative;top: 0px;left: 0px;width: 73%;height: 324px;behavior: url(#default#gradient);startColor:#BDEAFF;endcolor: #D7ECFD;angle:180;}#stateScroll, #cityScroll{position: absolute;top: 0px;left: 0px;width: 100%;height: 300px;padding: 10 0 0 5;bottom: 0px;/*height: 1px; will be overridden (because of the bottom value) once the HTC loads */overflow-y: auto;behavior: url(/Shared/Anduril/HTC/en-us/ScrollingDIV.htc);}.scrollAreaBkgLft{position: absolute;top: 105px;left: 0px;width: 167px;height: 210px;margin-left:15px;background-color: #E1F5FE;border-color:#97B7D3;border-style:solid;border-width:1px;}.scrollAreaBkgRt{position: absolute;top: 105px;left: 190px;width: 214px;height: 210px;margin-right:22px;background-color: #E1F5FE;border-color:#97B7D3;border-style:solid;border-width:1px;}.cityList{display:none;}.lclTitleLft{position:absolute;top:80px;left:15px;height:26px;width:167;behavior:url(#default#gradient);startColor:#33508A;endcolor:#A3B8D5;angle:90;color:FFFFFF;padding-left:5px;padding-top:3px;}.lclTitleRt{position:absolute;top:80px;left:190px;height:26px;width:214;behavior:url(#default#gradient);startColor:#33508A;endcolor:#A3B8D5;angle:90;color:FFFFFF;padding-left:5px;padding-top:3px;display:none;overflow: hidden; text-overflow:ellipsis; white-space:nowrap;}.radLclInst{padding: 15 0 15 15;width:100%; }.radLclLnk{color:#ED3B0D}#favoriteDiv{width:185;}div.favLink{line-height:.95;width:185;margin:3 0 0 3;padding:2 2 2 2;display:none;}.upsellTextArea{padding: 15 0 15 15;} \ No newline at end of file diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.778/localhost-1700/Shared/Anduril/CssTransforms/en-us/Styles2.css b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.778/localhost-1700/Shared/Anduril/CssTransforms/en-us/Styles2.css new file mode 100644 index 00000000..88b5446f --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.778/localhost-1700/Shared/Anduril/CssTransforms/en-us/Styles2.css @@ -0,0 +1 @@ +TD.abTxt{padding-bottom:15;font:18 Segoe;color:#1D1D1D}TD.abLnks{vertical-align:bottom;text-align:right;}ul{margin-top:-2px;margin-bottom:15px;}ul li{margin-left:-24px;margin-bottom:5px;}ul li span.li{position:relative;top:2px;left:-4px;}ul.links{list-style:none;}ul.links li{ position:relative; top:2px; left:-15px; padding-left:13px; background:url(msntv:/Shared/images/BulletCustom.gif) no-repeat; background-position-y:3px;}ul.links li a{ display:inline-block;}TABLE.lotTbl{width:379;table-layout:fixed;}TR.lotR1{height:26;padding-left:8;}TR.lotR2{vertical-align:middle;height:45;font:16 Segoe;}TR.lotR3{height:45;background:#D6D6D7;}TR.lotR5{text-align: right;padding-top:10px;}TD.lotC1{width:110;background: #BFCED6;}TD.lotC2{width:151; background: #BFCED6;}TR.lotSpc{height:10;}TD.lotSpc2{width:2;}TD.lotSpc3{padding-left:8;}TABLE.setTbl{width:379;font:18 Segoe;}TR.setR1{padding-bottom:15;}TR.setR2{padding-bottom:8;}TR.setR3{padding-bottom:15;font:16 Segoe;}TR.setR4{padding-top:15;vertical-align:bottom;text-align:right;}TR.setR5{height:2;background:#919191;} TR.setR6A{}TR.setR6B{background:#BCDEE5;}BODY{margin:0 0 0 0;font:18 Segoe;color: #1D1D1D;behavior: url(/HTC/Shared/FocusBoxKeyHandler.htc);}A:link, A:visited{color: #14224B;text-decoration:none;}SELECT{font:12 Segoe;}SPAN.shrArrw{bottom:5px;position:relative;behavior: url(#default#alphaImageLoader);src:msntv:/Images/BulletCustom.png;margin:0 8 0 0;}A.shrLnk1{font:18}A.shrLnk2{font:bold 18;}.shrTxt {font:18}INPUT.shrStngInpt {background-color: #261f4d;color:white; }TABLE.cntr{width:560;height:384;}TABLE.cntrPht{width:560;height:384;behavior: url(#default#gradient);startColor:#B2B2B2;endColor: #EBEBEB;angle: 180;}TR.cntrHdr{height:56;}TR.cntrBdy{height:328;}TD.cntrSdbr{width:151;}TD.cntrSdbr{padding:10 0 10 0;}TD.cntrCnt{width:409;background-color:#E8E9EA;background-image:url(/Images/Shared/CenterBg.jpg);background-repeat:no-repeat;padding:15 0 15 8;}TD.cntrCntPht{width:409;background-repeat:no-repeat;padding:15 0 15 8;}TABLE.cntrHdr{width:542;margin-left:10;}TR.cntrHdrR1{height:29;text-align:right;}TR.cntrHdrR2{height:27;}SPAN.cntrHdrLnks{font:16 Segoe;top:1;color:#E6E6E6}#helpIcon{position: relative;top: 0px;left: 4px;margin-left: 4px;behavior: url(#default#alphaImageLoader);width: 20px;height: 20px;}.helpLink {font-size: 18px;font-weight: normal;display: inline-block;}a.helpLink:link, a.helpLink:visited, a.helpLink:hover {color: #F7F7F7;}SPAN.cntrHdr{top:-3; font:21 Segoe;}SPAN.cntrHdr2{color:#F7F7F7;font-weight: 600;}TABLE.sdbr{font:16 Segoe;color:#1D1D1D;width:151;}TR.sbBtn{height:24;padding-left:10;}TD.sbDiv2{height:1;background:#FFFFFF;}TABLE.sdbrRl{margin:45 10 0 8;border:1px solid;width:133;font:16 Segoe;}TABLE.sdbrPh1{margin:15 10 0 8;border:1px solid;width:133;font:16 Segoe;}DIV.cntntTtl{font:bold 18 Segoe;color:#0F6C1B;height:27;width:379;line-height:85%; }TABLE.cntntTbl{width:379;}.cntrbbModDiv{width:362; height:100;color: #020e29;font-size: 18px;}.cntrbbModBnnr{width:362; height:29;font:bold 21px;}.cntrbbModBnnrImg{width:29;height:22;behavior:url(#default#alphaImageLoader);filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/Images/Home/HomeBBVideo.png', sizingMethod='scale');src=/Images/Home/HomeBBVideo.png;}.cntrbbModBnnrTxt1{color: 434343;padding-right:5;}.cntrbbModImg{width:92;height:69;}.cntrbbModHead{position:absolute;top:95;left:260;width:260; height:23; font-weight:bold;overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}.cntrbbModCptn{position:absolute;left:260;width:260;height:23; overflow: hidden; white-space: nowrap;}.cntrbbModCptn1{top:119;}.cntrbbModCptn2{top:142;text-overflow: ellipsis; }.cntrbbModNoData{position:absolute;top:110;width: 350}DIV.cntntTtlEnt, .cntntTtlGam, .cntntTtlMny, .cntntTtlNws,.cntntTtlPht, .cntntTtlSet, .cntntTtlShp, .cntntTtlSpr, .cntntTtlUsng, .cntntTtlWthr{font:bold 18 Segoe;height:27;width:379;line-height:85%; }TD.cntrSdbrPht{background-color:#B2B2B2;}TD.cntrSdbrEnt, .cntrSdbrGam, .cntrSdbrMny, .cntrSdbrNws, .cntrSdbrSet, .cntrSdbrShp, .cntrSdbrSpr, .cntrSdbrUsng, .cntrSdbrWthr{width:151;padding:10 0 10 0;}TD.cntrHdrEnt { background:url(/Images/Shared/CenterHeaderEntertainment.jpg);}SPAN.hdrTxtEnt { color:#B7D3FD;}TD.sbDiv1Ent { height:1px; background:#275B81;}TD.sbBtnHlFntEnt { color:#A84C0E; font-weight: bold;}TD.cntrSdbrEnt{ background:url(/Images/Shared/CenterSideEntertainment.gif);}DIV.cntntTtlEnt { color:#A84C0E;}TD.cntrHdrGam { background:url(/Images/Shared/CenterHeaderGames.jpg) }SPAN.hdrTxtGam { color:#C2E5FF; }TD.sbDiv1Gam { height:1px; background:#168CD9;}TD.sbBtnHlFntGam { color:#B4571F; font-weight: bold;}TD.cntrSdbrGam { background:url(/Images/Shared/CenterSideGames.gif); }DIV.cntntTtlGam { color:#B4571F;}TD.cntrHdrMny { background:url(/Images/Shared/CenterHeaderMoney.jpg) }SPAN.hdrTxtMny { color:#BAF2C6; }TD.sbDiv1Mny { height:1px; background:#236C24;}TD.sbBtnHlFntMny { color:#A74403; font-weight: bold;}TD.cntrSdbrMny { background:url(/Images/Shared/CenterSideMoney.gif);}DIV.cntntTtlMny { color:#A74403;}SPAN.hdrTxtRad { color:#153A73; }TD.cntrHdrRad { background:url(/Images/Shared/MusicHeaderBG.jpg) }TD.cntrHdrNws { background:url(/Images/Shared/CenterHeaderNews.jpg) }SPAN.hdrTxtNws { color:#9DBBE5; }TD.sbDiv1Nws { height:1px; background:#2D7091;}TD.sbBtnHlFntNws { color:#A84C0E; font-weight: bold;}TD.cntrSdbrNws{ background:url(/Images/Shared/CenterSideNews.gif);}DIV.cntntTtlNws { color:#A84C0E;}TD.cntrHdrPht { background:url(/Images/Shared/PhotoHeader.jpg); }SPAN.hdrTxtPht { color:#B2B2B2; }DIV.cntntTtlPht { color:#CD1F36;}TD.cntrHdrSts { background:url(/Images/Shared/CenterHeader_DEBUG.jpg) }SPAN.hdrTxtStsWthr { color:#BBBBBB; }TD.sbDiv1Set { height:1px; background:#686868;}TD.sbBtnHlFntSet { color:#808080; font-weight: bold;}TD.cntrSdbrSet{ background-color:#808080;}DIV.cntntTtlSet { color:#989898;}TD.cntrHdrShr { background-color:#383838 }SPAN.hdrTxtShr { color:#BBBBBB; }TD.sbDiv1Shr { height:1px; background:#686868;}TD.sbBtnHlFntShr { color:#989898; font-weight: bold;}TD.cntrSdbrShr{ background-color:#808080;}DIV.cntntTtlShr { color:#989898;}TD.cntrHdrShp { background:url(/Images/Shared/CenterHeaderShopping.jpg) }SPAN.hdrTxtShp { color:#CFCBFE; }TD.sbDiv1Shp { height:1px; background:#7E5A96;}TD.sbBtnHlFntShp { color:#A93F26; font-weight: bold;}TD.cntrSdbrShp{background:url(/Images/Shared/CenterSideShopping.gif);}DIV.cntntTtlShp { color:#A93F26;}TD.cntrHdrSpr { background:url(/Images/Shared/CenterHeaderSports.jpg) }SPAN.hdrTxtSpr { color:#FDD8B8; }TD.sbDiv1Spr { height:1px; background:#963E0C;}TD.sbBtnHlFntSpr { color:#943100; font-weight: bold;}TD.cntrSdbrSpr{background:url(/Images/Shared/CenterSideSports.gif);}DIV.cntntTtlSpr { color:#943100; font-weight: bold;}TD.cntrHdrUsng { background:url(/Images/Shared/CenterHeaderUsingMSNTV.jpg) }SPAN.hdrTxtUsng { color:#B7FCDF; }TD.sbDiv1Usng { height:1px; background:#507126;}TD.sbBtnHlFntUsng { color:#9E4701; font-weight: bold;}TD.cntrSdbrUsng{background:url(/Images/Shared/CenterSideUsingMsntv.gif);}DIV.cntntTtlUsng { color:#9E4701;}TD.cntrHdrWthr { background:url(/Images/Shared/CenterHeaderWeather.jpg) }SPAN.hdrTxtWthr { color:#AAE1FF; }TD.sbDiv1Wthr { height:1px; background:#267082;}TD.sbBtnHlFntWthr{ color:#9C4E08; font-weight: bold;}TD.cntrSdbrWthr{ background:url(/Images/Shared/CenterSideWeather.gif);}DIV.cntntTtlWthr { color:#9C4E08;}TR.tsImg{padding-bottom:10; }TD.tsImg1{width:1%;font:10 Segoe;color:#1D1D1D;}TD.tsImg2{width:99%;padding-left:6; }DIV.tsImgLd{padding-top:6;}TR.tsHdlnRw{padding-bottom:6;}TD.tsCol1{width:12;}TD.tsCol2{width:367;}TR.tsLnks{padding-top:10;}TR.tsLnrl{height:2;background:#919191;}TR.tsSpc{height:8;}TABLE.wthTbl{width:379;table-layout:fixed;text-align:center;margin-top:7px;}DIV.wthGrd{width:401;height:26;margin-bottom:10;padding-top:2;font:bold 18;}TABLE.wthTblCC{width:379;table-layout:fixed;text-align:center;}DIV.wthCC{position: relative;top:0;left:0;padding:0 0 7 0;font:18;text-align:left;}SPAN.wthCCimg{position: relative;top:0;left:0;padding-right: 10;height:60;width:68;}SPAN.wthCC1{position: absolute;top:-5px;left:75px;font:36 Segoe;color:#0B9093;}SPAN.wthCC2{position: absolute;top: 40px;left:75px;color:#1D1D1Dmargin-top:15px;}TR.wthR1{height:28;font:18;}TR.wthR2{height:70;}TR.wthR4{text-align:left;padding:10 0 10 0;}TR.wthR5{text-align:right;}TD.wthBrnd{font-size:18px;zoom:70%;}TD.wthC1{width:2px;background:#919191;}TD.wthC2{width:94px;}SPAN.wthLo{font:18;color:#595D75;}DIV.wthInst{padding:0 0 15 0;font:18;width:379;}TABLE.entNws{margin:0 0 0 0;width:379;}TR.entNwsR2{height:25px;}TD.entNwsC1{width:400px;}TD.entNwsC2{width:30px;}TABLE.entMvSrch{margin:8 0 0 8;width:430px;background:#B7D3FD;}TR.entMvSrchR1{height:40px;}TD.entMvSrchC1{width:310px;}TD.entMvSrchC2{width:90px;}TD.entTpTvC1{width:100px;}TD.entTpTvC2{width:10px;}TD.entTpTvC3{width:300px;}TD.entTpTvC4{width:20px;}TABLE.entTvPt{margin:8 0 0 8;width:379;font-size:12;table-layout:fixed;}TABLE.entMvShw{margin:8 0 0 8;width:430px;}TD.entMvShwC1{width:400px;}TABLE.entPhts{margin:8 0 0 8;width:379;height:100px;}TD.mnystkcolspc {width:2;}TD.mnystkcol1 {width:75; background: #BBCEB0;}TD.mnystkcol2 {width:100; background: #BBCEB0;}TD.mnystkcol3 {width:110; background: #BBCEB0;}TD.mnystkcol4 {width:88; background: #BBCEB0;}TD.mnyDsclm{text-align:right;padding-top:10;padding-bottom:15;font-size:10;}TD.mnyDtlLnk{text-align:right;padding-bottom:15;}TD.mnyQlInst{padding-bottom:15;font:18;}TR.mnyBtnRw{vertical-align:bottom;text-align:right;}TD.mnyImg{padding-right:6;padding-left:6; }TR.mnyTR1{height: 90;}TR.mnyTr2{padding-top:10;}.mnyImageUp{behavior: url(#default#alphaImageLoader);src:/Images/Money/HomeStocksUpArrow.png;height:24px;width:14px;} .mnyImageDn{behavior: url(#default#alphaImageLoader);src:/Images/Money/HomeStocksDnArrow.png;height:24px;width:14px;} .eSextImgBorder {border: 1px solid black;width: 80;height: 80;}A.eSextTitle, .eSextTitle{font-size: 18px;font-weight: bold;}A.eSextLink, .eSextLink{font-size: 18px;font-weight: bold;} A.eSextMerchant, .eSextMerchant {font-size: 18px;}.eSextPromo {color: #ff6600;font-size: 18px;}.eSextPrice {font-size: 18px;font-weight: bold;}SPAN.usgCatLft {width:175;padding-left: 8;padding-bottom: 8;}SPAN.usgCatRt {width:175; padding-right: 8; padding-bottom: 8;}SPAN.usgCatTtl{color:#A84C0E;font:18px;font-weight:bold;background:#C7D1BE;width:181px;height:26px;vertical-align:middle;padding-left:8;}TABLE.usgTbl{width:379;}TABLE.usgCatTbl{background:#D3DACC;border:1px solid;border-color:#9A9A9A;width:379;}TABLE.usgLgTbl{width:198;}TABLE.usgSmTbl{width:183;}TD.usgTd2{padding-bottom:8;}TR.usgTr1{height:15;}TR.usgBtnRw{vertical-align:bottom;text-align:right;padding-top:15;}A.usgMainTtl, A.usgMainTtl:visited, A.usgMainTtl:active, A.usgMainTtl:hover{color:#9E4701;font-weight: bold;}.usgTipsIcon{behavior: url(#default#alphaImageLoader);src: /Images/UsingMsntv/CenterIconTips.png;height:42px;width:43px;} .usgNwsIcon{behavior: url(#default#alphaImageLoader);src: /Images/UsingMsntv/CenterIconNewsletter.png;height:42px;width:43px;}.usgTTTIcon{behavior: url(#default#alphaImageLoader);src: /Images/UsingMsntv/CenterIconTTT.png;height:42px;width:43px;} .usgImg{width:178;height:135;margin-right: 10px;}.usgTxt{color: #01682F}.cntntTtlUsng2{font:bold 18 Segoe;color:#9E4701;width:191;line-height:85%; }TR.gmsTr1{height:70;}TD.gmsTd1{width:60;}TD.gmsTd2{width:6;}TD.gmsTd3{width:343;}.stationCategoryHeader{color: #A73D0D;padding-bottom:5px;}.radioRule{width:550px;background-color: #97B7D3;height: 2px;position:relative;left:-12px;}ul.radLinks {list-style:none;}ul.radLinks{position:relative;top:2px;left:-30px;padding-left:15px; behavior: url(#default#alphaImageLoader);background:url(/Images/Shared/BulletCustom.png) no-repeat;background-position-y:3px;}TD.radcntrCnt{width:537px;height: 323;background-image:url(/Images/radio/MusicRadioHomePageBG3.jpg);padding: 15 8 0 15;}TD.radCnt{padding: 15 8 13 15;}DIV.radCntr{width:560;height: 380px;}TABLE.radHmBtmTbl{padding: 0 7 0 238}.radTd1{position:absolute;top:25px;left:0px;width:170px;padding-right:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.radTd2{position:absolute;top:25px;left:180px;width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}TD.radTd3{width:130 px;}TD.radBr{width:394px;}DIV.radSt{width:143px;}TD.radSB{left:403px; position:absolute; width:142pxbackground-color: #E3E9F4;}TD.radMain{width:369px; position:absolutebehavior: url(#default#gradient);startcolor: #E3E94F;endcolor: #B2C4DF;angle: 180;}.radPlus{position:absolute;left:238px;top:274;width:300px;height:98px;behavior: url(#default#gradient);startcolor: #C7EEFF;endcolor: #C7EEFF;starttransparency: 50%;endtransparency: 60%;border-style:solid;border-color:4163A3;border-width:1px;}.radPlsHdr{position:relative;top:10px;height:24px;behavior:url(#default#gradient);startColor:#2E5399;endcolor:#E9F8FF;angle:90;}.radPlusHdrTxt{position:relative;top:3px;left:14px;color:FFFFFF;}.radPlusTxt{position:relative;top:15px;left:14px;}.radPlusLnk{position:relative;top:20px;left:14px;}SPAN.radHdr{color:E6E6E6;font-size:21px;}DIV.cntrHdrRad { background: url(/Images/Shared/MusicHeader.jpg) no-repeat;top:0px; left:0px; height:56px; width:100%;}TD.cntrHdrRad2 { background: url(/Images/Shared/MusicHeader.jpg) no-repeat;top:0px; left:0px; height:56px; width:100%;}.radHdrLinks {font-size: 18px;font-weight: normal;display: inline-block;}a.radHdrLinks:link, a.radHdrLinks:visited, a.radHdrLinks:hover {color: #163973;}DIV.cntrRadHdr { font-family: segoe; color: #A93D0D; font-size: 20px; font-weight: bold;padding-bottom:2px;}.radStationAddRemTitle{width:325px; padding-left:8px}.cntrRadTxt { font-family: segoe; font-size: 18px; vertical-align:top;font-color:#213764;}a.cntrRadTxt:link, a.cntrRadTxt:visited a.cntrRadTxt:hover{font-color:#213764;} .cntrRadFvHmTxt { font-family: segoe; font-size: 18px; vertical-align:top;font-color:#2B2C29;}.cntrRadWmpTitleTxt { font-family: segoe; font-size: 18px; font-weight:bold; color:white }.cntrRadWmpTitleVal { font-family: segoe; font-size: 18px; font-weight:bold; color: #73DDA0 }hr.radDvdr{height:2px;width: 100%;border:#97B7D3 solid 2px;margin-top: 0px;margin-bottom: 0px;}.radInst{width:100%; padding-bottom:15px;}.sideBarBkg{position: absolute;top: 56px;right: 0px;width: 27%;height: 324px;padding-right: 8px;padding-left: 6px;padding-top: 10px;background-color:#D7EDFE;}.sideBarLclBkg{position: absolute;top: 56px;right: 0px;width: 27%;height: 324px;padding-right: 8px;padding-left: 6px;padding-top: 10px;background-color:#D7EDFE;}.sideBarButton{height: 26px;width: 100%;display: block;text-align:left;margin: 0 0 4px 0;}#scrollAreaLg{position: absolute;top: 0px;left: 0px;width: 100%;height: 324px;padding: 15 20 10 15;bottom: 0px;/*height: 1px; will be overridden (because of the bottom value) once the HTC loads */overflow-y: auto;behavior: url(/Shared/Anduril/HTC/en-us/ScrollingDIV.htc);}.scrollAreaBkg{position: relative;top: 0px;left: 0px;width: 73%;height: 324px;behavior: url(#default#gradient);startColor: #BDEAFF; endcolor: #D7ECFD;angle:180;}.scrollAreaLclBkg{position: relative;top: 0px;left: 0px;width: 73%;height: 324px;behavior: url(#default#gradient);startColor:#BDEAFF;endcolor: #D7ECFD;angle:180;}#stateScroll, #cityScroll{position: absolute;top: 0px;left: 0px;width: 100%;height: 300px;padding: 10 0 0 5;bottom: 0px;/*height: 1px; will be overridden (because of the bottom value) once the HTC loads */overflow-y: auto;behavior: url(/Shared/Anduril/HTC/en-us/ScrollingDIV.htc);}.scrollAreaBkgLft{position: absolute;top: 105px;left: 0px;width: 167px;height: 210px;margin-left:15px;background-color: #E1F5FE;border-color:#97B7D3;border-style:solid;border-width:1px;}.scrollAreaBkgRt{position: absolute;top: 105px;left: 190px;width: 214px;height: 210px;margin-right:22px;background-color: #E1F5FE;border-color:#97B7D3;border-style:solid;border-width:1px;}.cityList{display:none;}.lclTitleLft{position:absolute;top:80px;left:15px;height:26px;width:167;behavior:url(#default#gradient);startColor:#33508A;endcolor:#A3B8D5;angle:90;color:FFFFFF;padding-left:5px;padding-top:3px;}.lclTitleRt{position:absolute;top:80px;left:190px;height:26px;width:214;behavior:url(#default#gradient);startColor:#33508A;endcolor:#A3B8D5;angle:90;color:FFFFFF;padding-left:5px;padding-top:3px;display:none;overflow: hidden; text-overflow:ellipsis; white-space:nowrap;}.radLclInst{padding: 15 0 15 15;width:100%; }.radLclLnk{color:#ED3B0D}#favoriteDiv{width:185;}div.favLink{line-height:.95;width:185;margin:3 0 0 3;padding:2 2 2 2;display:none;}.upsellTextArea{padding: 15 0 15 15;} \ No newline at end of file diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.778/localhost-1700/Shared/Anduril/JsTransforms/en-us/Home.js b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.778/localhost-1700/Shared/Anduril/JsTransforms/en-us/Home.js new file mode 100644 index 00000000..03a89dfa --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.778/localhost-1700/Shared/Anduril/JsTransforms/en-us/Home.js @@ -0,0 +1 @@ +var sBaseUrls; var iRotateDuration; var sCurrentlyLoadingUrl = "";var iCurrentBaseUrlIndex = 0;var sLoadedUrls = "|";var sNextUrlParams = "";var sPanelUrls = new Array();var sRotationArray;var iRotationIndex = -1;var oMasterPanel;var oCurrentPanel;var iRotateTimerID = null;function InitRotator(masterDivId, delayDuration, urls){oMasterPanel = masterDivId;iRotateDuration = delayDuration;sBaseUrls = urls;oCurrentPanel = oMasterPanel.children(0);var ctUrl = GetClickThroughUrl(oCurrentPanel.innerHTML);oCurrentPanel.clickThroughUrl = ctUrl;}function LoadRotator(){if (oMasterPanel != null)CreateNextPanel();}function ClickRotator(){var url = oCurrentPanel.clickThroughUrl;if (url != null && url.length > 0)location.href = oCurrentPanel.clickThroughUrl;}function CreateNextPanel(){var url = GetNextUrlToLoad();if (url != ""){sLoadedUrls = sLoadedUrls + url + "|";GetUrlData(url);}else {CreatesRotationArray();if (sRotationArray.length > 0)StartRotate();}}function GetNextUrlToLoad(){if (iCurrentBaseUrlIndex >= sBaseUrls.length)return "";var url = sBaseUrls[iCurrentBaseUrlIndex];if (sNextUrlParams != ""){var spacerChar = url.indexOf("?") > -1 ? "&" : "?";url = url + spacerChar + sNextUrlParams;sNextUrlParams = "";}if (sLoadedUrls.indexOf("|" + url + "|") != -1){iCurrentBaseUrlIndex = iCurrentBaseUrlIndex+1;return GetNextUrlToLoad();}else {return url;}}function GetUrlData(url){sCurrentlyLoadingUrl = url;XmlHttp = new ActiveXObject("Microsoft.XMLHTTP");XmlHttp.open("GET", url, true);XmlHttp.onreadystatechange = GetUrlCallback;XmlHttp.send(null);}function GetUrlCallback(){if (XmlHttp.readyState==4) {var responseText = XmlHttp.responseText;var feedbackStart = responseText.indexOf("");var feedbackEnd = responseText.indexOf("");var feedbackString = "";if ((feedbackStart!=-1) && (feedbackEnd!=-1)){feedbackString = responseText.substring(feedbackStart,feedbackEnd);feedbackString = feedbackString.substring(feedbackString.indexOf(">")+1);}var ctUrl = GetClickThroughUrl(responseText);if ((feedbackString != "NODISPLAY") && (ctUrl != "")){var panel = AddPanel();panel.style.display = "none";panel.innerHTML = responseText;panel.id = sCurrentlyLoadingUrl;panel.clickThroughUrl = ctUrl;sPanelUrls[sPanelUrls.length] = sCurrentlyLoadingUrl;sNextUrlParams = feedbackString;}CreateNextPanel();}}function AddPanel(){var newPanel = document.createElement("DIV");return oMasterPanel.appendChild(newPanel);}function GetClickThroughUrl(html){var ctUrlStart = html.indexOf("");var ctUrlEnd = html.indexOf("");var ctUrl = "";if ((ctUrlStart!=-1) && (ctUrlEnd!=-1)){ctUrl = html.substring(ctUrlStart,ctUrlEnd);ctUrl = ctUrl.substring(ctUrl.indexOf(">")+1);}return ctUrl;}function CreatesRotationArray(){var subrotations;var rotationCount = 1;var validBaseUrlCount = 0;var validsBaseUrls = new Array();for (var i=0; i-1){subrotations++;}}if (subrotations > 0){rotationCount *= subrotations;validsBaseUrls[validBaseUrlCount++] = sBaseUrls[i];}}rotationCount *= validBaseUrlCount;sRotationArray = new Array(rotationCount);for (var a=0; a 1)StartRotate();}var monthArray = new Array("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec");var clockRefreshMS = 1000;function constructDateTime(){now = new Date();var hours = now.getHours();var minutes = now.getMinutes();var minutesStr = "";var ampm = (hours >= 12) ? "PM":"AM";if (hours > 12) hours -= 12;if (hours == 0) hours = 12;if (minutes < 10){minutesStr = "0" + minutes;}else {minutesStr = minutes;}return monthArray[now.getMonth()] + " " + now.getDate()+ ", " + now.getYear();}function formClockLink(){return "" + constructDateTime() + "";}function showClock(){clockID.innerHTML = formClockLink();}function AssignClockEvents(){clockID.onmouseover = StopClock;clockID.onmouseout = StartClock;}function StopClock(){window.clearInterval(clockTimerID);}var clockTimerID = 0;function StartClock(){clockTimerID = window.setInterval(showClock, clockRefreshMS);}var pageLoaded = false;function onLoadProcess(){pageLoaded = true;}function initPage(){onLoadProcess();LoadRotator();AssignClockEvents();StartClock();} \ No newline at end of file diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.778/localhost-1700/Shared/Anduril/JsTransforms/en-us/Scripts.js b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.778/localhost-1700/Shared/Anduril/JsTransforms/en-us/Scripts.js new file mode 100644 index 00000000..49eb3799 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.778/localhost-1700/Shared/Anduril/JsTransforms/en-us/Scripts.js @@ -0,0 +1 @@ +function submitReplace(f){var url = f.action + "?";for (var i=0; i -1)return true;}return false;}function isAllAlph(s){s = s.toLowerCase();for (var i=0; i -1)return true;}return false;}function isAllNums(s){for (var i=0; i 0; length--){var func = loadHandlerArray[length-1];func();}}function callCGif(url){var i = new Image();i.src = url;} \ No newline at end of file diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.778/localhost-1700/Shared/BaseClient/JsTransforms/en-us/PaneHelp.js b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.778/localhost-1700/Shared/BaseClient/JsTransforms/en-us/PaneHelp.js new file mode 100644 index 00000000..306293ec --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.778/localhost-1700/Shared/BaseClient/JsTransforms/en-us/PaneHelp.js @@ -0,0 +1 @@ +var PH_search = 0;var PH_specificPage = 1;var PH_TOC = 2;var PH_topicTOC = 3;var PH_diploma = 4;var helpServer = "help.msn.com/resources/targeted/en-us/msntvv1/content/"; function constructBaseURL(pageURL){if (navigator.userAgent.indexOf("STB") > 0){helpServer = window.external.SafeGetServiceURL('help::help');}return helpServer + "?page=";}var clientVerAppendStr = getClientVerAppendStr();function getClientVerAppendStr(){var agent = navigator.userAgent;var startOfVersionIndex = agent.indexOf("MSNTV");if (startOfVersionIndex == -1){return "";}else {startOfVersionIndex = startOfVersionIndex + 6;var endOfVersionIndex = agent.indexOf(";", startOfVersionIndex);var clientVersion = parseFloat(agent.substring(startOfVersionIndex, endOfVersionIndex));if (clientVersion <= 4.0)return "";else if (clientVersion == 4.1)return "_v11";else if (clientVersion == 4.2)return "_v12";else if (clientVersion == 4.3)return "_v13";else if (clientVersion == 5.0)return "_v20";else if (clientVersion == 5.1)return "_v21";else return "_v21";}}function insertVersionInFilename(filename){return filename;}function CallPaneHelp(hmode){if (hmode == PH_topicTOC){PaneHelpURL = constructBaseURL(arguments[1]) + insertVersionInFilename(arguments[1]);}else if (hmode == PH_diploma){PaneHelpURL = constructBaseURL(arguments[1]) + insertVersionInFilename(arguments[1]);if (arguments[2])PaneHelpURL += "?jumpURL=" + escape(arguments[2]);else PaneHelpURL += "?retURL=" + encodeURIComponent(window.location.href);}else if (hmode == PH_TOC){PaneHelpURL = constructBaseURL('MSNTV_ALTTOC_main.htm') + insertVersionInFilename('MSNTV_ALTTOC_main.htm');}else if (hmode == PH_search){alert("Help search is not supported");return;}else if (hmode == PH_specificPage){PaneHelpURL = constructBaseURL(arguments[1]) + insertVersionInFilename(arguments[1]);PaneHelpURL += "?retURL=" + encodeURIComponent(window.location.href);}top.location = PaneHelpURL;} \ No newline at end of file diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.794/localhost-1700/MSNVideo/Anduril/CSSTransforms/en-us/Main.css b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.794/localhost-1700/MSNVideo/Anduril/CSSTransforms/en-us/Main.css new file mode 100644 index 00000000..274224cc --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.794/localhost-1700/MSNVideo/Anduril/CSSTransforms/en-us/Main.css @@ -0,0 +1 @@ +DIV{position:absolute;}.bodyDiv{width:560;height:384;overflow:hidden;}.bkg1{position:absolute;top:34;width:560;height:216;background-image:url(/Images/MSNVideo/ContentBg.jpg);}.bkg2{position:absolute;top:34;width:560;height:325;background-color:131517;}.bkg2spn1{position:absolute;top:9;left:16;width:530;height:265;background-color:010408;}.bkg2spn2{position:absolute;top:274;left:16;width:530;height:46;background-image:url(/Shared/Anduril/Images/en-us/_debug/Panels/Images/PanelPlayerLargeBG.jpg);}.bkg2spn3{position:absolute;top:320;left:16;width:530;height:6;background-color:16181A;}a{color:ffffff;}.bannerDiv{position:absolute;width:560;height:33;background-image:url(/Images/MSNVideo/Header.jpg);}.bannerLogo{position:absolute;left:22;top:6;font:bold 20;}.bannerHelp{position:absolute;left:469;top:6;font:18;}.bannerHelpImg{position:relative;left:4px;margin-left:4px;width:20;height:20;background-repeat: no-repeat;behavior:url(#default#alphaImageLoader);background:url(/Shared/Anduril/Images/en-us/_debug/Shared/Images/Icon_Help_RelatedLink.png);}.mediaPlayerDiv{position:absolute;}#mpStatusDiv{position:absolute;left:100;top:300;width:400;height:100;color:F2F2F2;}#pbDiv{position:absolute;top:285;left:226;width:320;height:25;color:87A3CA;}#pbTxt3{font-size:16;overflow: hidden; text-overflow:ellipsis; white-space:nowrap;width:115;}.vcDiv{position:absolute;width:320;height:46;}.vcDivPlaying{top:308;left:226;}.vcDivFullScrn{top:331px;left:15;}.vcBtn{position:relative;width:39;height:46;behavior:url(#default#alphaImageLoader);}.vcMuteBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlMute.png); }.vcUnmuteBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlUnmute.png); }.vcPlayBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlPlay.png); }.vcPauseBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlPause.png); }.vcStopBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlStop.png); }.vcRewBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlRew.png); }.vcFwdBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlFF.png); }.vcPrevBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlPrev.png); }.vcNextBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlNext.png); }.vcFullScrn{position:absolute;left:200;top:12;font:16;}.vcNormView{position:absolute;left:385;top:24;font:16;}.vcStatus{position:absolute;left:392;top:3;width:151;white-space:nowrap;font-size:16;color:F2F2F2;}.brandingDiv{width:560;height:384;}.brandingAreaImage{position:absolute;}.vmDiv{position:absolute;top:80;height:146;left:15;width:348;overflow:hidden;}.videoMetadataInnerDiv{width:323;padding-bottom:16;}.vmTxt1{width:323;color:F2F2F2;padding-bottom:18;font:16;}.vmTxt2{width:323;color:87A3CA;font:bold 18;}.vmTxt3{width:323;color:87A3CA;font:bold 18;line-height:16px;padding-bottom:16;}.vmTxt4{width:323;color:87A3CA;padding-bottom:16;font:16;line-height:16px;}.vmLink{width:307;height:16;color:87A3CA;font:16;line-height:16px;overflow: hidden; text-overflow:ellipsis; white-space:nowrap;}.vmArrw{width:15;}.nowPlayingDiv{position:absolute;top:51;left:15;width:200;font:16;line-height:16px;text-align:top;}.npMsg{padding-left:10;width:200;color:F2F2F2;padding-bottom:18;}.npUpNxt{padding:0 0 18 10;width:200;color:87A3CA;}.npTitle{padding:39 0 15 10;width:200;color:87A3CA;}.npArrw{margin-left:10;width:12;}.onDeckDiv{position:absolute;left:25;width:190;top:212;height:69;font:16;color:87A3CA;line-height:16px;}.odThumb{width:92;height:69;}.odTxt1{position:absolute;left:98;width:92;height:22;overflow:hidden;}.odTxt2{position:absolute;left:98;width:92;top:22;height:49;overflow:hidden;}.odTxt3{width:190;height:69;}.amDiv{position:absolute;width:124;height:34;padding:2;}.ssPanel{position:absolute;top:45;left:340;width:200;height:150;}.ssAbstract{position:absolute;top:45;left:16;}.ssAbstractTxt{position:absolute;left:7;height:135;width:295;overflow:hidden;}.ssBtn{position:absolute;top:150;font:16;}.navBarDiv{text-align:left;position:absolute;top:240;height:118;width:560;overflow-x:hidden; white-space:nowrap;vertical-align:top;}.navBarDivIcon{background-image:url(/Images/MSNVideo/NavBgIcon.jpg);}.navBarDivThmb{background-image:url(/Images/MSNVideo/NavBgThmb.jpg);}.nbIcnSpn{width:120;height:110;margin:8 0 0 9;}.nbIcnTab{background-repeat: no-repeat;behavior:url(#default#alphaImageLoader);margin:0 9 0 9; width:111;height:106;letter-spacing:-0.2mm;}.nbArrSpn{width:22;height:118;padding:45 2 57 2; }.nbArrw{width:18;height:18;background-repeat: no-repeat;behavior:url(#default#alphaImageLoader);}.nbArrw_l{background:url(/Shared/Anduril/Images/en-us/_debug/Shared/Images/ScrollIndicatorLeftGlobal.png);}.nbArrw_r{background:url(/Shared/Anduril/Images/en-us/_debug/Shared/Images/ScrollIndicatorRightGlobal.png);}.nbThmSpn{margin:33 0 10 0;height:75;vertical-align:top;overflow:hidden;}.nbThmSpnWide{width:189;margin-right:20;}.nbThmSpnNrrw{width:98;}.nbThmSpnHilite{width:189;background-color:212A39;margin-right:20;}.nbThmTbl{position:relative;table-layout:fixed;height:70;}.nbThmTblA{color:F2F2F2;}.nbThmTblB{color:7C92B1;}.nbThmImg{width:92;height:70;}.nbThmTxt{width:91;height:64;overflow:hidden;font:16;line-height:16px;}.nbThmDvdrIcon{position:absolute;width:20;height:20;z-index:500;top:52;background-image:url(/Images/MSNVideo/EndDivider.gif);}.nbThmDvdrThmb{position:absolute;behavior:url(#default#alphaImageLoader);background:url(/Images/MSNVideo/ThumbnailDivider.png);width:15;height:106;z-index:500;top:20;}.nbVertDvdr{position:absolute;width:4;height:98;top:12;background-image:url(/Images/MSNVideo/VerticalDivider.jpg);}.browseHeaderDiv{position:absolute;top:247;left:23;width:545;height:25;font:16;color:87A3CA;z-index:2;}.browseHeaderTxt1{}.browseHeaderTxt2{margin-left:6;}.browseHeaderArrw{position:absolute;left:400;}.browseHeaderLink{position:absolute;left:415;}.footerDiv{position:absolute;top:358;height:28;width:560;background:292B2B;padding:5 15 0 15;z-index:2;overflow:hidden;text-align:right;}.footArrw{padding:0 8 0 15; }.footBtn{padding-top:3;font:16;color:F2F2F2;}.fullScreenPanelDiv{position:absolute;top:323;height:61;width:560;}.fspBkg{position:absolute;height:61;}.fspLeft{width:15;background-image:url(/Shared/Anduril/Images/en-us/_debug/Panels/Images/PanelPlayerSmallLeftSide.jpg);}.fspCenter{left:15;width:530;background-image:url(/Shared/Anduril/Images/en-us/_debug/Panels/Images/PanelPlayerSmallMiddleStretch.jpg);}.fspRight{width:15;left:545;background-image:url(/Shared/Anduril/Images/en-us/_debug/Panels/Images/PanelPlayerSmallRightSide.jpg);}.brwsCatDiv{position:absolute;width:205;z-index:10;left:15;}.popup{position:absolute;padding:3 0 0 7;width:205;height:26;font:16;color:001332;behavior:url(#default#alphaImageLoader);overflow: hidden; text-overflow:ellipsis; white-space:nowrap;}.popupTop{background:url(/Images/MSNVideo/VideoPopupTop.png);}.popupTopHL{color:05529D;font-weight:bold;letter-spacing:-0.2mm;}.popupBttm{top:0;left:15;text-align:left;letter-spacing:-0.2mm;overflow: hidden; text-overflow:ellipsis; white-space:nowrap;background:url(/Images/MSNVideo/VideoPopupBttm.png);} \ No newline at end of file diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.794/localhost-1700/MSNVideo/Anduril/JsTransforms/en-us/Main.js b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.794/localhost-1700/MSNVideo/Anduril/JsTransforms/en-us/Main.js new file mode 100644 index 00000000..4f07b451 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.794/localhost-1700/MSNVideo/Anduril/JsTransforms/en-us/Main.js @@ -0,0 +1 @@ +function Background(div){this.Div = div;this.Draw1 = _bkDraw1;this.Draw2 = _bkDraw2;this.Show = _bkShow;this.Hide = _bkHide;this.Clear = _bkClear;}function _bkDraw1(){this.Div.className = "bkg1";this.Clear();}function _bkDraw2(){this.Div.className = "bkg2";this.Clear();var spn1 = addSpan(this.Div);spn1.className = "bkg2spn1";var spn2 = addSpan(this.Div);spn2.className = "bkg2spn2";var spn3 = addSpan(this.Div);spn3.className = "bkg2spn3";}function _bkShow(){this.Div.style.visibility = "visible";}function _bkHide(){this.Div.style.visibility = "hidden";}function _bkClear(){clearChildren(this.Div);}function Banner(div) {this.Div = div;this.Init = _baInit;this.Refresh = _baRefresh;this.Hide = _baHide;this.Show = _baShow;this.IsSelectable = _baIsSelectable;}function _baInit(){this.TextSpan = addSpan(this.Div);this.TextSpan.className = "bannerLogo";this.HelpBtn = addSpan(this.Div);this.HelpBtn.innerHTML = "Help ";InitNavObject(this.HelpBtn,"helpBtn","bannerHelp","","","","","","","clickHelp()");}function _baRefresh(){var txt = "MSN Video";if (g_nowVideoSize == VIDEOSIZE_SMALL){if (g_nowNavView == NAV_VIEW_PLAYLIST){txt += " — Playlist";}else if (g_nowNavView == NAV_VIEW_BROWSE){txt += " — " + g_topics[g_nowTopicInd];}}this.TextSpan.innerHTML = txt;}function _baHide(){this.Div.style.visibility = "hidden";}function _baShow(){this.Div.style.visibility = "visible";}function _baIsSelectable(){return (this.Div.style.visibility != "hidden");}function BrandingArea(div, cssClass) {this.Div = div;this.Clear = _brClear;this.Init = _brInit;this.Refresh = _brRefresh;this.Hide = _brHide;this.Show = _brShow;this.SetDimensions = _brSetDimensions;this.Div.className = cssClass;}function _brClear(){clearChildren(this.Div);}function _brInit(){this.Image = addImg(this.Div);this.Image.className = "brandingAreaImage";this.Image.src = "/Images/Shared/s.gif";}function _brSetDimensions(t, l, h, w){this.Image.style.top = t;this.Image.style.left = l;this.Image.style.height = h;this.Image.style.width = w;}function _brRefresh(){if (oPlaylist.Position==-1 || oMediaPlayer.IsPlayingAd || oMediaPlayer.GetPlayState()!=PLAYSTATE_PLAYING)this.Image.src = "/Images/Shared/s.gif";else if (oPlaylist.GetCurrent() != null)this.Image.src = "http://video.msn.com/s/us/sc/i/MSNTV/src/" + oPlaylist.GetCurrent().Source + ".gif";}function _brHide(){this.Div.style.visibility = "hidden";}function _brShow(){this.Div.style.visibility = "visible";}function BrowseHeader(div) {this.Div = div;this.Init = _bhInit;this.SetText1 = _bhSetText1;this.SetText2 = _bhSetText2;this.ShowLoadingMessage = _bhShowLoadingMessage;this.Clear = _bhClear;this.Hide = _bhHide;this.Show = _bhShow;}function _bhInit(){var ob;ob = addSpan(this.Div);ob.className = "browseHeaderTxt1";this.Text1 = ob;ob = addSpan(this.Div);ob.className = "browseHeaderTxt2";this.Text2 = ob;}function _bhSetText1(h){this.Text1.innerHTML = h;}function _bhSetText2(h){this.Text2.innerHTML = h;}function _bhShowLoadingMessage(str){this.Text1.innerHTML = "Please wait while we get " + str + " ready.";this.Text2.innerHTML = "";}function _bhClear(){this.Text1.innerHTML = "";this.Text2.innerHTML = "";}function _bhShow(){this.Div.style.visibility = "visible";}function _bhHide(){this.Div.style.visibility = "hidden";}function CategoryChooser(div, maxSubcats){this.Div = div;this.Init = _ccInit;this.Show = _ccShow;this.Hide = _ccHide;this.AppendBadCat = _ccAppendBadCat;this.ExcludeBtn = _ccExcludeBtn;this.MaxSubcats = maxSubcats;this.FailedSubcats = new Array();}function _ccInit(topics, cats, bottomY){var btn;var btns = new Array();for (var i=0; i= this.MaxSubcats) ? this.MaxSubcats : cats[i].length;for (var j=-1; j=0; j--){var nowBtn = this.Btns[i][j];if (i!=topicInd || this.ExcludeBtn(nowBtn.FullName)){nowBtn.Hide();}else {if (j==catInd+1 && i==topicInd)nowBtn.SetHighlight(true);else nowBtn.SetHighlight(false);nowBtn.style.bottom = bottomY;;bottomY += this.ButtonHeight;nowBtn.Show();}}}var popupHeight= (this.ButtonHeight * this.Btns[topicInd].length);this.Div.style.height = popupHeight;this.Div.style.top = this.BottomY - popupHeight;this.Div.style.visibility = "visible";try{this.Btns[topicInd][catInd+1].focus(); }catch (e){oFooter.SetFocus();}}function _ccHide(){for (var i=0; i= length)wmp.CurrentPosition = length;else wmp.CurrentPosition = currentPos + increment;}}}function _mpShowStatus(s){this.Status.innerHTML = s;}var MGX_ICON_ERROR= 0x10;var MGX_ICON_WARNING= 0x30;var MGX_ICON_INFO= 0x40;var MGX_SIZE_LARGE = 0x0;var MGX_SIZE_SMALL = 0x1;function MessagePopup(){this.Error = _msError;this.Warning = _msWarning;this.Info = _msInfo;this.Confirm = _msConfirm;this.AutoHide = _msAutoHide;}function _msError(msg, caption){alert(msg);}function _msWarning(msg, caption){alert(msg);}function _msInfo(msg, caption){alert(msg);}function _msConfirm(msg){return confirm(msg);}function _msAutoHide(msg){alert(msg);}function NavBar(div){this.Div = div;this.Clear = _nbClear;this.Draw = _nbDraw;this.Refresh = _nbRefresh;this.InitTopics = _nbInitTopics;this.SetFocus = _nbSetFocus;this.SetRatchet = _nbSetRatchet;this.GetThumbIndex = _nbGetThumbIndex;this.InitThumbnails = _nbInitThumbnails;this.IsSelectable = _nbIsSelectable;this.Show = _nbShow;this.Hide = _nbHide;}function _nbClear(){this.Div.className = "navBarDiv navBarDivThmb";clearChildren(this.Div);}function _nbDraw(ind){this.CurrentRatchet = ind;var dividerX = -100;var ob;var css;for (var i=0; i=this.HTML.length)j-=this.HTML.length;ob.innerHTML = this.HTML[j];ob.GUID = this.GUIDs[j];}if (this.Hanger != null && this.HTML.length>this.MenuCount){var j = ind+i;if (j==this.HTML.length)dividerX = this.Hanger.offsetLeft;if (j>=this.HTML.length)j-=this.HTML.length;this.Hanger.innerHTML = imageTag(this.Images[j], 92, 69, "nbThmImg");}if (this.HTML.length>this.MenuCount){this.LeftArrow.innerHTML = " ";this.RightArrow.innerHTML = " ";}else {this.LeftArrow.innerHTML = ""; this.RightArrow.innerHTML = ""; }if (this.Divider != null){this.Divider.style.left = dividerX - (this.Mode == "thumbnails" ? 18 : 24);}this.Refresh();}function _nbRefresh(){if (this.Mode != "thumbnails")return;var doHighlight;for (var i=0; i= 2) ? 2 : titles.length;this.Div.className = "navBarDiv navBarDivThmb";this.HTML = new Array();this.Images = new Array();this.GUIDs = guids;for (var i=0; i"+ ""+ ""+ imageTag(this.Images[i], 92, 69, "nbThmImg")+ ""+ ""+ ""+ txt+ ""+ ""+ ""+ "";this.HTML[i] = h;}this.LeftArrow = addSpan(this.Div);this.LeftArrow.className = "nbArrSpn";for (var i=0; i"+ ""+ ""+ txt + ""+ ""+ "";this.HTML[i] = h;}var ob;this.LeftArrow = addSpan(this.Div);this.LeftArrow.className = "nbArrSpn";var leftAction;var rightAction;for (var i=0; i Choose Play to begin again.";txt.className = "npMsg";this.SelectableOb = null;}else if (oMediaPlayer.IsPlayingAd){var txt = addSpan(this.Div);txt.innerHTML = "Up next after this advertisement:";txt.className = "npMsg";txt = addSpan(this.Div);txt.innerHTML = oPlaylist.GetCurrent().Title;txt.className = "npUpNxt";var arrw = addSpan(this.Div);arrw.innerHTML = bulletImage();arrw.className = "npArrw";this.MoreInfoBtn = addSpan(this.Div);this.MoreInfoBtn.innerHTML = "More info";InitNavObject(this.MoreInfoBtn,"moreInfoButton","","","","","","","","clickMoreInfo()");this.SelectableOb = this.MoreInfoBtn;}else {if (oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING){var txt = addSpan(this.Div);txt.innerHTML = oPlaylist.GetCurrent().Title;txt.className = "npTitle";var arrw = addSpan(this.Div);arrw.innerHTML = bulletImage();arrw.className = "npArrw";this.MoreInfoBtn = addSpan(this.Div);this.MoreInfoBtn.innerHTML = "More info";InitNavObject(this.MoreInfoBtn,"moreInfoButton","","","","","","","","clickMoreInfo()");this.SelectableOb = this.MoreInfoBtn;}else {var txt = addSpan(this.Div);txt.innerHTML = "Please wait while we get your video ready.";txt.className = "npMsg";this.SelectableOb = null;}}}function _npClear(){clearChildren(this.Div);}function _npShow(){this.Div.style.visibility = "visible";}function _npHide(){this.Div.style.visibility = "hidden";}function _npIsSelectable(){return ((this.Div.style.visibility != "hidden") && (this.SelectableOb!=null));}function OnDeckArea(div) {this.Div = div;this.Init = _odInit;this.Refresh = _odRefresh;this.Hide = _odHide;this.Show = _odShow;this.IsSelectable = _odIsSelectable;}function _odInit(){var ob;ob = addSpan(this.Div);ob.className = "odThumb";this.ThumbSpan = ob;ob = addSpan(this.Div);ob.className = "odTxt1";this.TextSpan1 = ob;ob = addSpan(this.Div);ob.className = "odTxt2";this.TextSpan2 = ob;ob = addSpan(this.Div);ob.className = "odTxt3";this.TextSpan3 = ob;}function _odRefresh(){this.ThumbSpan.innerHTML = "";this.TextSpan1.innerHTML = "";this.TextSpan2.innerHTML = "";this.TextSpan3.innerHTML = "";if (oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING && !oMediaPlayer.IsPlayingAd){if ((oPlaylist.Position == -1) || (oPlaylist.Position+1 >= oPlaylist.Items.length)){this.TextSpan3.innerHTML = "Up next: end of playlist";}else {var currentItem = oPlaylist.Items[oPlaylist.Position+1];this.ThumbSpan.innerHTML = imageTag(currentItem.Thumb, 92, 69, "");this.TextSpan1.innerHTML = "Up next:";this.TextSpan2.innerHTML = currentItem.Title;}}}function _odShow(){this.Div.style.visibility = "visible";}function _odHide(){this.Div.style.visibility = "hidden";}function _odIsSelectable(){return false;}function onBuffering(bStart){if (bStart){}else {refreshStatus();}}var g_ReadyState = 0; var rs_Uninitialized = 0;var rs_Loading = 1;var rs_Interactive = 3;var rs_Complete = 4;var g_clipLoadTimer;var g_adIsLoading;function onReadyStateChange(lReadyState){var hasLoaded = (g_ReadyState == rs_Loading && lReadyState == rs_Complete);refreshStatus();if (hasLoaded){oMediaPlayer.IsLoading = false;window.clearTimeout(g_clipLoadTimer);g_ForceFullStop = false; refreshPlaystateFeedback();oProgressBar.Reset();if (!oMediaPlayer.IsPlayingAd){if (oPlaylist.GetCurrent() != null){trackViewedClip(oPlaylist.GetCurrent().GUID);}}oMediaPlayer.ResetDimensions();}g_ReadyState = lReadyState;}function setClipLoadTimer(seconds, isAd){g_adIsLoading = isAd;var mls = parseInt(seconds)*1000;g_clipLoadTimer = window.setTimeout(function() {checkClipLoad();}, mls);}function checkClipLoad(){window.clearTimeout(g_clipLoadTimer);if(oMediaPlayer.IsLoading) {oMediaPlayer.IsLoading = false;oMediaPlayer.Cancel();if (g_adIsLoading){}else {var clip = oPlaylist.GetCurrent();if (clip != null){oMessagePopup.Warning("The video is not available", "");trackViewedClip(clip.GUID);}}postStopAction();return;}}var g_Rewinding = false;var g_ForceFullStop = false;var PLAYSTATE_STOPPED = 0;var PLAYSTATE_PAUSED = 1;var PLAYSTATE_PLAYING = 2;var PLAYSTATE_BUFFERING = 3;var PLAYSTATE_FWD = 4;var PLAYSTATE_REW = 5;var PLAYSTATE_FINISHED = -1;function onPlayStateChange(oldState, newState){refreshStatus();if (oldState == PLAYSTATE_BUFFERING && newState == PLAYSTATE_STOPPED){return;}switch (oMediaPlayer.GetPlayState()){case PLAYSTATE_STOPPED:postStopAction(); break; case PLAYSTATE_BUFFERING: break;case PLAYSTATE_PAUSED:g_Rewinding = false;postPauseAction();break;case PLAYSTATE_PLAYING:g_Rewinding = false;postPlayAction();break;case PLAYSTATE_FINISHED:break;case PLAYSTATE_FWD:g_Rewinding = false;break;case PLAYSTATE_REW:g_Rewinding = true;break;}}function postStopAction(){var l_ForceFullStop = g_ForceFullStop;var l_Rewinding = g_Rewinding;g_ForceFullStop = false;g_Rewinding = false;var action;if (l_ForceFullStop){}else if (l_Rewinding){window.setTimeout(function() {oMediaPlayer.Play();}, 1);}else if (oMediaPlayer.IsPlayingAd){oMediaPlayer.IsPlayingAd = false; playCurrent();}else if (oPlaylist.Position+1 < oPlaylist.Items.length){oPlaylist.MoveNext();playCurrent();}else {onPlaylistEnd();}}function postPlayAction(){}function postPauseAction(){}function playItemAfterAd(ind){if (oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING){if (oMediaPlayer.IsPlayingAd){oPlaylist.MoveTo(ind); }else {oPlaylist.MoveTo(ind-1); oMediaPlayer.Stop();}}else {oPlaylist.MoveTo(ind); playCurrent();}}function playCurrent(){if (oMediaPlayer.IsPlayingAd){if (oMediaPlayer.GetPlayState() != PLAYSTATE_PLAYING)oMediaPlayer.Play();return;}if (oPlaylist.GetCurrent() == null)return;onPrepareToPlay();if (oPlaylist.GetCurrent().GUID != oAdManager.CurrentGUID){oAdManager.CurrentGUID = oPlaylist.GetCurrent().GUID;oAdManager.SetPageGroup(oPlaylist.GetCurrent().PageGroup);oMediaPlayer.IsPlayingAd = oAdManager.EndUserSees=="video";}refreshPlaystateFeedback();iPlayNextTimerId = window.setTimeout(playCurrentB, 100);}function playCurrentB(){window.clearTimeout(iPlayNextTimerId);if (oMediaPlayer.IsPlayingAd){oAdManager.LoadNext();}else {if (oPlaylist.GetCurrent() != null){var url = oPlaylist.GetCurrent().URL;if (url.indexOf("/default.cdnx/") != -1)url += ".asx";oMediaPlayer.PlayMedia(url);oTrackingManager.TrackContentPlay(oPlaylist.GetCurrent());setClipLoadTimer(30, false);}}}function onLoadAdComplete(){oAdManager.ShowLeaveBehind();if (oMediaPlayer.IsPlayingAd){if (oAdManager.ClipSrc == "" || oAdManager.ClipSrc.indexOf(".gif") != -1){postStopAction();}else {oMediaPlayer.PlayMedia(oAdManager.ClipSrc);oTrackingManager.TrackAdPlay(oPlaylist.GetCurrent(), oAdManager.TrackingImgId);setClipLoadTimer(15, true);}}}function ProgressBar(div){this.Div = div;this.Init = _pbInit;this.Refresh = _pbRefresh;this.Reset = _pbReset;this.Hide = _pbHide;this.Show = _pbShow;this.SetStatus = _pbSetStatus;}function _pbInit(player, barWidth){var h = ""+ ""+ ""+ ""+ ""+ ""+ ""+ "
"+ ""+ ""+ ""+ ""+ ""+ ""+ ""+ "
";this.Div.innerHTML = h;this.Htc = pbHtc;this.Text1 = pbTxt1;this.Text2 = pbTxt2;this.StatusText = pbTxt3;this.Visible = false;this.Player = player;this.BarWidth = barWidth;}function _pbReset(){if (this.Visible){this.Text1.innerHTML = "00:00";this.Duration = Math.floor(this.Player.GetDuration());var mm = Math.floor(this.Duration/60);var ss = this.Duration - mm*60;this.Text2.innerHTML= ((mm < 10) ? "0" + mm : mm)+ ":"+ ((ss < 10) ? "0" + ss : ss);this.Htc.percentComplete = 0;this.Refresh();}}function _pbRefresh(){window.clearTimeout(this.TimerId);if (this.Visible){try{var mls = this.Player.GetMediaPosition();var sec = Math.floor(mls/1000);var mm = Math.floor(sec/60);var ss = sec - mm*60;if (mm == -1){this.Text1.innerHTML = "00:00";}else {this.Text1.innerHTML= ((mm < 10) ? "0" + mm : mm)+ ":"+ ((ss < 10) ? "0" + ss : ss);}this.Htc.percentComplete = Math.round(sec/this.Duration*100);}catch (exception){this.Text1.innerHTML = "00:00";this.Htc.percentComplete = 0;}this.TimerId = window.setTimeout(function() {oProgressBar.Refresh();}, 1000);}}function _pbHide(){clearTimeout(this.TimerId);this.Div.style.visibility = "hidden";this.Visible = false;}function _pbShow(){this.Visible = true;this.Reset();this.Div.style.visibility = "visible";}function _pbSetStatus(s){this.StatusText.innerHTML = s;}function SlideShow(slidePanel, abstractDiv){this.SlidePanel = slidePanel;this.AbstractDiv = abstractDiv;this.Init = _ssInit;this.Clear = _ssClear;this.Next = _ssNext;this.Hide = _ssHide;this.Show = _ssShow;this.ShowAbstract = _ssShowAbstract;this.PanelIsSelectable = _ssPanelIsSelectable;this.AbstractIsSelectable = _ssAbstractIsSelectable;}function _ssInit(slideHtml, abstractHtml){this.Clear();this.AbstractHtml = abstractHtml;this.Slides = new Array();var slide;for (var i=0; i");return toOb.appendChild(btn);}function bulletImage(){var h = " h){doTruncate = true;break;}htmlThatFits = textGauge.innerHTML;}}textGauge.style.display = "none";if (doTruncate){var tHtml = htmlThatFits;var lastChar = (tHtml.charAt(tHtml.length-2) == ",") ? tHtml.length-2 : tHtml.length-1;tHtml = tHtml.substring(0,lastChar);return (tHtml == "") ? "" : tHtml + "…";}else {return html;}}function truncateWord(w, maxChars){var s = "";var c = "";for (var i=0; i 0);showSkip = (oPlaylist.Position < oPlaylist.Items.length-1);}}this.Rew.style.display = (showRew) ? "inline" : "none"; this.Fwd.style.display = (showFwd) ? "inline" : "none"; this.Prev.style.display = (showPrev) ? "inline" : "none"; this.Next.style.display = (showSkip) ? "inline" : "none";if((nowFocusOb==this.Rew || nowFocusOb==this.Fwd || nowFocusOb==this.Prev || nowFocusOb==this.Next)&&(nowFocusOb.style.display == "none")&&(this.Div.style.visibility != "hidden")){if (showSkip) this.Next.focus();else if (showPrev) this.Prev.focus();else if (showFwd) this.Fwd.focus();else if (showRew) this.Rew.focus();else this.Stop.focus();}}catch (error){}}function _vcPlayingView(){this.Div.className = "vcDiv vcDivPlaying";this.FullScreenBtn.style.display = "inline";this.NormalViewBtn.style.display = "none";this.Mute.style.display = "none";this.UnMute.style.display = "none";this.Play.style.display = "inline";this.Pause.style.display = "inline";this.Stop.style.display = "inline";this.Rew.style.display = "none";this.Fwd.style.display = "none";this.Prev.style.display = "inline";this.Next.style.display = "inline";}function _vcFullScreenView(){this.Div.className = "vcDiv vcDivFullScrn";this.FullScreenBtn.style.display = "none";this.NormalViewBtn.style.display = "inline";this.RefreshMute();this.Play.style.display = "inline";this.Pause.style.display = "inline";this.Stop.style.display = "inline";this.Rew.style.display = "inline";this.Fwd.style.display = "inline";this.Prev.style.display = "inline";this.Next.style.display = "inline";}function _vcShow(){this.Div.style.visibility = "visible";this.HideShowBtns();}function _vcHide(){this.Div.style.visibility = "hidden";}function _vcIsSelectable(){return (this.Div.style.visibility != "hidden");}function _vcClickMute(){oMediaPlayer.Player.Mute = !oMediaPlayer.Player.Mute;oVideoControls.RefreshMute();if (oMediaPlayer.Player.Mute)oVideoControls.UnMute.focus();else oVideoControls.Mute.focus();}function _vcRefreshMute(){if (oMediaPlayer.Player.Mute){this.Mute.style.display = "none";this.UnMute.style.display = "inline";}else {this.Mute.style.display = "inline";this.UnMute.style.display = "none";}}function _vcClickPlay(){switch (oMediaPlayer.GetPlayState()){case PLAYSTATE_PLAYING:break;case PLAYSTATE_PAUSED:case PLAYSTATE_FWD:case PLAYSTATE_REW:case PLAYSTATE_STOPPED:oMediaPlayer.Play();refreshPlaystateFeedback();break;default:if (oPlaylist.Position == -1)oPlaylist.Position = 0;playCurrent();break;}}function _vcClickPause(){if (oMediaPlayer.GetPlayState() == PLAYSTATE_PAUSED){oMediaPlayer.Play();}else {try{oMediaPlayer.Pause();}catch (error){}}}function _vcClickStop(){window.clearTimeout(g_clipLoadTimer);if (oMediaPlayer.IsLoading){oMediaPlayer.Cancel();oMediaPlayer.IsLoading = false;}else if (oMediaPlayer.GetPlayState() == PLAYSTATE_STOPPED){}else {try{if (oMediaPlayer.GetPlayState() != PLAYSTATE_BUFFERING) g_ForceFullStop = true;oMediaPlayer.Stop();oMediaPlayer.SetMediaPosition(0);oBrandingArea.Refresh();oVideoMetadata.Refresh(true);oNowPlaying.Refresh(true);}catch (error){}}}function _vcClickRew(){oMediaPlayer.Rew();}function _vcClickFwd(){oMediaPlayer.Fwd();}function _vcClickPrev(){playItemAfterAd(oPlaylist.Position-1);}function _vcClickNext(){if (oPlaylist.Position+1 < oPlaylist.Items.length){g_ForceFullStop = true;oMediaPlayer.Stop();oPlaylist.MoveNext();playCurrent();}else {}}function VideoMetadata(div, innerDiv) {this.Div = div;this.InnerDiv = innerDiv;this.Init = _vmInit;this.Refresh = _vmRefresh;this.Clear = _vmClear;this.Hide = _vmHide;this.Show = _vmShow;this.IsSelectable = _vmIsSelectable;this.GetSelectableOb = _vmGetSelectableOb;}function _vmInit(){}function _vmRefresh(userStopped){this.Clear();if(oPlaylist.GetCurrent() == null)return;if (userStopped){var txt = addSpan(this.InnerDiv);txt.innerHTML = "You have stopped the video.

Choose Play to begin again.";txt.className = "vmTxt1";this.SelectableOb = null;}else if (oMediaPlayer.IsPlayingAd){var txt = addSpan(this.InnerDiv);txt.innerHTML = "Up next after this advertisement:";txt.className = "vmTxt1";txt = addSpan(this.InnerDiv);txt.innerHTML = oPlaylist.GetCurrent().Title;txt.className = "vmTxt2";this.SelectableOb = null;}else {if (oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING){var title = addSpan(this.InnerDiv);title.innerHTML = oPlaylist.GetCurrent().Title;title.className = "vmTxt3";var abstract = addSpan(this.InnerDiv);abstract.innerHTML = oPlaylist.GetCurrent().Caption;abstract.className = "vmTxt4";var urls = oPlaylist.GetCurrent().LinkUrls;var text = oPlaylist.GetCurrent().LinkText;var addedLink = false;for (var i=0; i 0){var i = this.Items[this.Items.length-1];if (i[0]==topicInd && i[1]==catInd && i[2]==videoSize && i[3]==navView){return;}if (i[0]==topicInd && i[1]==catInd && i[2]==videoSize && i[3]==navView){return;}}this.Items[this.Items.length] = new Array(topicInd, catInd, videoSize, navView);}function _bmRemoveLast(){var a = new Array();for (var i=0; i< this.Items.length-1; i++){a[i] = this.Items[i];}this.Items = a;}function DataFetcher(){this.Init = _dfInit;this.GetData = _dfGetData;this.OnLoad = _dfOnLoad;this.Cancel = _dfCancel;this.AppendToQueue = _dfAppendToQueue;this.PushToQueue = _dfPushToQueue;this.ClearQueue = _dfClearQueue;this.DomDoc = new ActiveXObject("Msxml2.DOMDocument");this.DomDoc.onreadystatechange = _dfCheckReadyState;this.DomDoc.async = true;}function _dfInit(){this.UrlQueue = new Array();this.OnSucceedQueue = new Array();this.OnFailQueue = new Array();}function _dfGetData(url, onSucceed, onFail){if (this.Url != null){this.PushToQueue(this.Url, this.OnSucceed, this.OnFail);}this.Url = url;this.OnSucceed = onSucceed;this.OnFail = onFail;this.DomDoc.load(url);}function _dfOnLoad(){this.Data = this.DomDoc.text;var f = (this.DomDoc.parseError.errorCode != 0) ? this.OnFail : this.OnSucceed;this.Url = null;this.OnSucceed = null;this.OnFail = null;f.call();if (this.UrlQueue.length != 0){this.GetData(this.UrlQueue[0], this.OnSucceedQueue[0], this.OnFailQueue[0]);var a1 = new Array();var a2 = new Array();var a3 = new Array();for (var i=0; i=0; i--){if (g_videoPaths[i] != ""){t_GUIDs[j] = g_GUIDs[i];j++;}}var clipsToAdd = false;for (var i=0; i=0; i--){if (g_videoPaths[i] != ""){t_GUIDs[j] = g_GUIDs[i];t_videoPaths[j] = g_videoPaths[i];t_headlines[j] = g_headlines[i];t_captions[j] = g_captions[i];t_imageUrls[j] = g_imageUrls[i];t_sources[j] = g_sources[i];t_relatedLinkUrls[j] = g_relatedLinkUrls[i];t_relatedLinkText[j] = g_relatedLinkText[i];t_PGs[j] = g_PGs[i];t_PSs[j] = g_PSs[i];t_IDs[j] = g_IDs[i];j++;}}oPlaylist.AddAll(t_GUIDs, t_videoPaths, t_headlines, t_captions, t_imageUrls, t_sources, t_relatedLinkUrls, t_relatedLinkText, t_PGs, t_PSs, t_IDs);}var p_types = new Array();var p_titles = new Array();var p_slideHtml = new Array();var p_abstractHtml = new Array();var p_metdataHtml = new Array();var p_userWeatherCity;var p_userWeatherConditionImg;var p_stockDirection;function setPersonalDataGlobals(types, titles, slideHtml, abstractHtml, metdataHtml, userWeatherCity, userWeatherConditionImg, stockDirection){p_types = types;p_titles = titles;p_slideHtml = slideHtml;p_abstractHtml = abstractHtml;p_metdataHtml = metdataHtml;p_userWeatherCity = userWeatherCity;p_userWeatherConditionImg = userWeatherConditionImg;p_stockDirection = stockDirection;}function addPersonalDataToGlobals(){var topicName = (g_nowCatInd == -1) ? g_topics[g_nowTopicInd] : g_cats[g_nowTopicInd][g_nowCatInd];var newType = "";if ((topicName == "Weather") && (p_userWeatherCity!=null)){newType = "Weather";}if (newType != ""){for (var i=g_types.length; i>0; i--){g_types[i] = g_types[i-1];g_GUIDs[i] = g_GUIDs[i-1];g_PGs[i] = g_PGs[i-1];g_PSs[i] = g_PSs[i-1];g_IDs[i] = g_IDs[i-1];g_sources[i] = g_sources[i-1];g_headlines[i] = g_headlines[i-1];g_captions[i] = g_captions[i-1];g_imageTypes[i] = g_imageTypes[i-1];g_imageUrls[i] = g_imageUrls[i-1];g_videoPaths[i] = g_videoPaths[i-1];g_articleUrls[i] = g_articleUrls[i-1];g_relatedLinkUrls[i] = g_relatedLinkUrls[i-1];g_relatedLinkText[i] = g_relatedLinkText[i-1];}g_types[0] = newType;g_GUIDs[0] = "";g_videoPaths[0] = "";}}function addSlideshowToPlaylist(firstInd){var a = (firstInd==null) ? 0 : firstInd;var t_GUIDs = new Array();var t_videoPaths = new Array();var t_headlines = new Array();var t_captions = new Array();var t_imageUrls = new Array();var t_sources = new Array();var t_relatedLinkUrls = new Array();var t_relatedLinkText = new Array();var t_PGs = new Array();var t_PSs = new Array();var t_IDs = new Array();var j = 0;for (var i=g_scGuids.length-1; i>=0; i--){if (i!=a){t_GUIDs[j] = g_scGuids[i];t_videoPaths[j] = g_scVideoUrls[i];t_headlines[j] = g_scHeadlines[i];t_captions[j] = g_scCaptions[i];t_imageUrls[j] = g_scImageUrls[i];t_sources[j] = g_scSources[i];t_relatedLinkUrls[j] = g_scRelatedLinkUrls[i];t_relatedLinkText[j] = g_scRelatedLinkText[i];t_PGs[j] = g_scPGs[i];t_PSs[j] = g_scPSs[i];t_IDs[j] = g_scIDs[i];j++;}}oPlaylist.AddAll(t_GUIDs, t_videoPaths, t_headlines, t_captions, t_imageUrls, t_sources, t_relatedLinkUrls, t_relatedLinkText, t_PGs, t_PSs, t_IDs);oPlaylist.PutNext(g_scGuids[a], g_scVideoUrls[a], g_scHeadlines[a], g_scCaptions[a], g_scImageUrls[a], g_scSources[a], g_scRelatedLinkUrls[a], g_scRelatedLinkText[a], g_scPGs[a], g_scPSs[a], g_scIDs[a]);}function handleThumbClick(ind, isLoading){var i = (ind + oNavBar.CurrentRatchet) % oNavBar.HTML.length;if (g_types[i] == "Weather"){showWeather();return;}if (g_types[i] == "Stocks"){showStocks();return;} var inPlaylistAtPos = oPlaylist.IndexOf(g_GUIDs[i]); var isPlaying = (oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING); var currentItemIsAd = oMediaPlayer.IsPlayingAd;if (inPlaylistAtPos != -1){if (currentItemIsAd){oMessagePopup.AutoHide("The selected video will play after the advertisement");playItemAfterAd(inPlaylistAtPos);return;}if (inPlaylistAtPos == oPlaylist.Position){if (isLoading){oMessagePopup.AutoHide("The selected video is currently loading");return;}else if (isPlaying){oMessagePopup.AutoHide("The selected video is currently playing");return;}}oMessagePopup.AutoHide("Preparing to play the selected video");playItemAfterAd(inPlaylistAtPos);return;}if (!oPlaylist.PutLast(g_GUIDs[i], g_videoPaths[i], g_headlines[i], g_captions[i], g_imageUrls[i], g_sources[i], g_relatedLinkUrls[i], g_relatedLinkText[i], g_PGs[i], g_PSs[i], g_IDs[i]))return;onPlayListChange();if (isLoading || isPlaying){oMessagePopup.AutoHide("Adding the selected video to the playlist");return;}oMessagePopup.AutoHide("Preparing to play the selected video");playItemAfterAd(oPlaylist.Items.length-1);}function getTopic_Cat(topicInd, catInd){return (catInd==-1) ? topicInd : topicInd + "_" + catInd;}function ImagePreloader() {this.Init = _ipInit;this.Start = _ipStart;this.GetNext = _ipGetNext;this.ImageOb = new Image();this.ImageOb.onload = function(){ oImagePreloader.GetNext() };this.LoadFunction = function(){ oImagePreloader.ImageOb.src = oImagePreloader.Images[oImagePreloader.NowInd]; };this.TimerId = null;}function _ipInit(imageArray){this.Images = imageArray;}function _ipStart(){this.NowInd = -1;this.GetNext();}function _ipGetNext(){window.clearTimeout(this.TimerId);this.NowInd++;if (this.NowInd <= this.Images.length-1){this.TimerId = window.setTimeout(this.LoadFunction, 1);}}function JsPreloader() {this.Init = _jsInit;this.Load = _jsLoad;this.LoadNext = _jsLoadNext;this.Urls = new Array();this.NowLoading = -1;}function _jsInit(topicIds, catIds, client){this.TopicIds = topicIds;this.CatIds = catIds;this.Client = client;}function _jsLoad(nowTopicInd, nowCatInd){this.Urls = new Array();this.NowLoading = -1;this.NowTopic = nowTopicInd;this.NowCat = nowCatInd;var idArray = new Array();if (nowTopicInd == -1){idArray = this.TopicIds;}else if (nowCatInd == -1){idArray = this.CatIds[nowTopicInd];}if (idArray != null){for (var i=0; iind; i--){this.Items[i] = this.Items[i-1];} this.Items[ind] = item;if (inPlaylistAtPos != -1){if (inPlaylistAtPos <= ind){this.Remove(inPlaylistAtPos);if (this.Position > 0)this.Position = this.Position-1;}else {this.Remove(inPlaylistAtPos+1);}}return this.OK;}oMessagePopup.Warning("The video was not added to your playlist because your list is full. The maximum number of videos your playlist can contain is " + this.MaxLength + ".", "");return this.MAX;}function _plRemove(ind){var tmpArr = new Array();var tmpInd = 0;for (var i=0; i=0 ; i--){item = new PlaylistItem(t_GUIDs[i], t_videoPaths[i], t_headlines[i], t_captions[i], t_imageUrls[i], t_sources[i], t_relatedLinkUrls[i], t_relatedLinkText[i], t_PGs[i], t_PSs[i], t_IDs[i]);if (oPlaylist.Insert(item, 0) != oPlaylist.OK)return;}var startItemGuid = getStartupParam("i");if (startItemGuid == "") startItemGuid = getStartupParam("g");if (startItemGuid != ""){var url = urlToGuidLookup(g_startUpParams);oDataFetcher.GetData(url, onGetItemByGuid, onGetItemByGuidFail);}else {DeviceSpecialStart();}}}catch (e){onGetPlaylistFail();}}function onGetPlaylistFail(){if ((getStartupParam("g")!="") || (getStartupParam("i")!="") || (getStartupParam("r")!="") || (getStartupParam("prepend")!="") || (getStartupParam("replace")!="")){var url = urlToGuidLookup(g_startUpParams);oDataFetcher.GetData(url, onGetItemByGuid, onGetItemByGuidFail);}else {DeviceDefaultStart();}}function onGetItemByGuid(){try{if (oDataFetcher.Data == ""){onGetItemByGuidFail();return;}eval(oDataFetcher.Data);var item;for (var i=t_GUIDs.length-1; i>=0 ; i--){item = new PlaylistItem(t_GUIDs[i], t_videoPaths[i], t_headlines[i], t_captions[i], t_imageUrls[i], t_sources[i], t_relatedLinkUrls[i], t_relatedLinkText[i], t_PGs[i], t_PSs[i], t_IDs[i]);if (oPlaylist.Insert(item, 0) != oPlaylist.OK)return;}DeviceSpecialStart();}catch (oError){onGetItemByGuidFail();}}function onGetItemByGuidFail(){DeviceDefaultStart();}function getInitialNavView(){var t_topicName = (getStartupParam("m")!="") ? getStartupParam("m") : getStartupParam("menu");var t_categoryName = (getStartupParam("mi")!="") ? getStartupParam("mi") : getStartupParam("menuItem");if (t_topicName!= null){var loadCategory = false;var initTopic = -1;var initCat = -1;for (var a=0; a0; i--){child = ob.children(i-1);ob.removeChild(child);}}function addDiv(ob){var newDiv = document.createElement("DIV");return ob.appendChild(newDiv);}function imageTag(src, w, h, className){var tag = " 0);var t_vidSize;if (!t_playing){t_vidSize = VIDEOSIZE_NONE;}else if (t_navView == NAV_VIEW_HOME){t_vidSize = VIDEOSIZE_MEDIUM;}else {t_vidSize = VIDEOSIZE_SMALL;_playAfterThumbnailLoad = true;t_playing = false;}setVideoSize(t_vidSize);setNavView(t_navView);refreshFooter();updateBacklist();if (t_playing){oPlaylist.MoveTo(0);playCurrent();}}function setVideoSize(videoSize){if (g_nowVideoSize == videoSize)return;g_nowVideoSize = videoSize;window.clearTimeout(iFullScreenTimerId);switch (videoSize){case VIDEOSIZE_NONE:setBodyBg("131517");toggleSlideshow(SLIDESHOW_ON);oMediaPlayer.SetDimensions(0, 0, 0, 0, 0, 0, 0, 0);oAdManager.SetPos(202, 418);oAdManager.Show();oBanner.Show();oBkg1.Show();oBkg2.Hide();oBrandingArea.Hide();oBrowseHeader.Show();oCategoryChooser.Hide();oFullScreenPanel.Hide();oMediaPlayer.Hide();oNavBar.Show();oNowPlaying.Hide();oOnDeckArea.Hide();oProgressBar.Hide();oSlideShow.Show();oVideoMetadata.Hide();oVideoControls.Hide();break;case VIDEOSIZE_SMALL:setBodyBg("131517");toggleSlideshow(SLIDESHOW_OFF);oBrandingArea.SetDimensions(41, 10, 35, 243);oMediaPlayer.SetDimensions(385, 41, 160, 120, 3, 3, 3, 3);oAdManager.SetPos(171, 422);oAdManager.Show();oBanner.Show();oBkg1.Show();oBkg2.Hide();oBrandingArea.Show();oBrowseHeader.Show();oCategoryChooser.Hide();oFullScreenPanel.Hide();oMediaPlayer.Show(true);oNavBar.Show();oNowPlaying.Hide();oOnDeckArea.Hide();oProgressBar.Hide();oSlideShow.Hide();oVideoMetadata.Show();oVideoControls.Hide();oMediaPlayer.Div.focus();break;case VIDEOSIZE_MEDIUM:setBodyBg("131517");toggleSlideshow(SLIDESHOW_OFF);oBrandingArea.SetDimensions(51, 20, 29, 201);oMediaPlayer.SetDimensions(226, 41, 320, 240, 3, 3, 3, 3);oAdManager.SetPos(315, 16);oAdManager.Show();oBanner.Show();oBkg1.Hide();oBkg2.Show();oBrandingArea.Show();oBrowseHeader.Hide();oCategoryChooser.Hide();oFullScreenPanel.Hide();oMediaPlayer.Show(true);oNavBar.Hide();oNowPlaying.Show();oOnDeckArea.Show();oProgressBar.Show();oSlideShow.Hide();oVideoMetadata.Hide();oVideoControls.PlayingView();oVideoControls.Show();oVideoControls.Play.focus();break;case VIDEOSIZE_LARGE:setBodyBg("000000");oMediaPlayer.SetDimensions(66, 0, 428, 321, 0, 66, 0, 66);oAdManager.Hide();oBanner.Hide();oBkg1.Hide();oBkg2.Hide();oBrandingArea.Hide();oBrowseHeader.Hide();oCategoryChooser.Hide();oFullScreenPanel.Show();oMediaPlayer.Show(false);oNavBar.Hide();oNowPlaying.Hide();oOnDeckArea.Hide();oProgressBar.Hide();oSlideShow.Hide();oVideoMetadata.Hide();oVideoControls.FullScreenView();oVideoControls.Show();oVideoControls.Play.focus();startFsCountdown();break;case VIDEOSIZE_FULL:setBodyBg("000000");toggleSlideshow(SLIDESHOW_OFF);oMediaPlayer.SetDimensions(0, 0, 560, 384, 0, 0, 0, 0);oAdManager.Hide();oBanner.Hide();oBkg1.Hide();oBkg2.Hide();oBrandingArea.Hide();oBrowseHeader.Hide();oCategoryChooser.Hide();oFullScreenPanel.Hide();oMediaPlayer.Show(false);oNavBar.Hide();oNowPlaying.Hide();oOnDeckArea.Hide();oProgressBar.Hide();oSlideShow.Hide();oVideoMetadata.Hide();oVideoControls.Hide();break;}oBanner.Refresh();refreshStatus();}function setBodyBg(clr){document.body.style.background = clr;}function refreshStatus(){var ps = oMediaPlayer.GetPlayState();var str;if (g_ReadyState < rs_Complete)str = "Connecting";else if (ps == PLAYSTATE_BUFFERING)str = "Loading";else if (ps == PLAYSTATE_STOPPED)str = "Stopped";else if (ps == PLAYSTATE_PLAYING)str = "Playing";else if (ps == PLAYSTATE_PAUSED)str = "Paused";else if (ps == PLAYSTATE_FWD)str = "Fast-forwarding";else if (ps == PLAYSTATE_REW)str = "Rewinding";else str = "";switch(g_nowVideoSize){case VIDEOSIZE_MEDIUM:oProgressBar.SetStatus(str);break;case VIDEOSIZE_LARGE:oVideoControls.SetStatus(str);break;}}function startFsCountdown(){window.clearTimeout(iFullScreenTimerId);iFullScreenTimerId = window.setTimeout(goFullScreen, 15000);}function goFullScreen(){setVideoSize(VIDEOSIZE_FULL);refreshFooter();updateBacklist();}function setNavView(view){oDataFetcher.ClearQueue();g_nowNavView = view;switch (view){case NAV_VIEW_HOME:g_nowTopicInd = -1;g_nowCatInd = -1;setMetaDataGlobals(null, null, null, null, null, null, null, null, null, null, null, null, null, null);oBrowseHeader.Clear();oNavBar.Clear();oNavBar.InitTopics(g_topics);oNavBar.SetFocus();break;case NAV_VIEW_PLAYLIST:var t_types = new Array();var t_GUIDs = new Array();var t_headlines = new Array();var t_captions = new Array();var t_imageUrls = new Array();var t_videoPaths = new Array();for (var i=0; i oNavBar.MenuCount)oNavBar.SetRatchet(oPlaylist.Position);else oNavBar.SetRatchet(0);oNavBar.SetFocus();if (_playAfterThumbnailLoad){_playAfterThumbnailLoad = false;oPlaylist.MoveTo(0);playCurrent();}break;case NAV_VIEW_BROWSE:var topicId = (g_nowCatInd == -1) ? g_topicIds[g_nowTopicInd] : g_catIds[g_nowTopicInd][g_nowCatInd];var topicName = (g_nowCatInd == -1) ? g_topics[g_nowTopicInd] : g_cats[g_nowTopicInd][g_nowCatInd];oNavBar.Clear();oCategoryChooser.Hide();oBrowseHeader.ShowLoadingMessage(topicName);var url = urlToJsLoader(topicId, "Anduril");oDataFetcher.GetData(url, onBrowseLoadComplete, onBrowseLoadFail);break;default:break;}oBanner.Refresh();}function onBrowseLoadComplete(){try{eval(oDataFetcher.Data);setMetaDataGlobals(t_types, t_GUIDs, t_PGs, t_PSs, t_IDs, t_sources, t_headlines, t_captions, t_imageTypes, t_imageUrls, t_videoPaths, t_articleUrls, t_relatedLinkUrls, t_relatedLinkText);oImagePreloader.Init(g_imageUrls);oImagePreloader.Start();completeBrowseView();}catch (error){onBrowseLoadFail();}refreshFooter();if (_playAfterThumbnailLoad){_playAfterThumbnailLoad = false;oPlaylist.MoveTo(0);playCurrent();}}function onBrowseLoadFail(){var topicName = (g_nowCatInd == -1) ? g_topics[g_nowTopicInd] : g_cats[g_nowTopicInd][g_nowCatInd];var badCat = getTopic_Cat(g_nowTopicInd, g_nowCatInd);oCategoryChooser.AppendBadCat(badCat);alert("The " + topicName + " category is currently unavailable. Please try again later.");setNavView(NAV_VIEW_HOME);}function completeBrowseView(){var headerText= ""+ g_topics[g_nowTopicInd]+ " — "+ ((g_nowCatInd == -1) ? "All" : g_cats[g_nowTopicInd][g_nowCatInd])+ "";var itemCount = g_headlines.length;oBrowseHeader.MediaCount = itemCount;oBrowseHeader.SetText1(headerText);oNavBar.InitThumbnails(g_headlines, g_imageUrls, g_GUIDs, g_topics[g_nowTopicInd]);oNavBar.SetFocus();}function refreshFooter(){switch (g_nowVideoSize){case VIDEOSIZE_MEDIUM:oFooter.DrawPlayingView();break;case VIDEOSIZE_LARGE:oFooter.Hide();break;case VIDEOSIZE_FULL:oFooter.Hide();break;default:switch (g_nowNavView){case NAV_VIEW_HOME:oFooter.DrawHomeView();break;case NAV_VIEW_PLAYLIST:oFooter.DrawPlaylistView();break;default:oFooter.DrawBrowseView();break;}break;}}function refreshPlaystateFeedback(){oBrandingArea.Refresh();oNowPlaying.Refresh(false);oNavBar.Refresh();oOnDeckArea.Refresh();oVideoMetadata.Refresh(false);oVideoControls.HideShowBtns();}function toggleSlideshow(setting){g_nowSlideshowMode = setting;if (g_nowSlideshowMode == SLIDESHOW_ON){var slides = new Array();for (var i=0; i';}var abstracts = new Array();for (var i=0; i" + "

" + "

" + g_ssCaptions[i] ;var h2 = truncateToHeight(295, 135, "20px", h1);abstracts[i]= ""+ h2+ "

";}oSlideShow.Init(slides, abstracts);iSlideShowTimerId = window.setTimeout(nextSlide, iSlideShowInterval);}else {window.clearTimeout(iSlideShowTimerId);}}function nextSlide(){window.clearTimeout(iSlideShowTimerId);oSlideShow.Next();iSlideShowTimerId = window.setTimeout(nextSlide, iSlideShowInterval);}function updateBacklist(){oBacklistManager.Append(g_nowTopicInd, g_nowCatInd, g_nowVideoSize, g_nowNavView);}function videoGoBack(){if (oCategoryChooser.Div.style.visibility == "visible"){oCategoryChooser.Hide();oFooter.SetFocus();return;}if (oBacklistManager.Items.length<2){if (okToLeaveApp()){oPlaylist.RemoveAll();oMediaPlayer.Stop();return false;}else {return true;}}var prevState = oBacklistManager.Items[oBacklistManager.Items.length -2];var prevTopic = prevState[0];var prevCat = prevState[1];var prevVidSize = prevState[2];var prevNavView = prevState[3];oBacklistManager.RemoveLast();if ((prevNavView == NAV_VIEW_PLAYLIST) && (oPlaylist.Items.length == 0))return videoGoBack();if (prevVidSize >= VIDEOSIZE_LARGE && oMediaPlayer.GetPlayState() == PLAYSTATE_STOPPED)return videoGoBack();if ((prevVidSize == VIDEOSIZE_NONE) && (g_nowSlideshowMode != SLIDESHOW_ON))prevVidSize = VIDEOSIZE_SMALL;if (oPlaylist.Items.length == 0)prevVidSize = VIDEOSIZE_NONE;if ((g_nowTopicInd == prevTopic) && (g_nowCatInd == prevCat) && (g_nowVideoSize == prevVidSize) && (g_nowNavView == prevNavView))return videoGoBack();g_nowTopicInd = prevTopic;g_nowCatInd = prevCat;setVideoSize(prevVidSize);setNavView(prevNavView);refreshFooter();return true;}function clickHelp(){if (okToLeaveApp())CallPaneHelp(PH_topicTOC,'MSNTV_TRS_TOC_Videos.htm');}function clickSlide(){var a = oSlideShow.Slides[oSlideShow.CurrentSlide].ShowcaseIndex;addSlideshowToPlaylist(a);oMessagePopup.AutoHide("Adding top videos to the playlist and preparing to play");setVideoSize(VIDEOSIZE_MEDIUM);setNavView(NAV_VIEW_PLAYLIST);refreshFooter();updateBacklist();playItemAfterAd(oPlaylist.Position+1);}function clickPlayTop(){clickSlide();}function clickPlayAll(){var topicName = (g_nowCatInd == -1) ? g_topics[g_nowTopicInd] : g_cats[g_nowTopicInd][g_nowCatInd];if (catHasClipsNotInPlaylist()){oMessagePopup.AutoHide("Adding all " + htmlDecode(topicName) + " videos to the playlist and preparing to play");addCategoryToPlaylist();setVideoSize(VIDEOSIZE_MEDIUM);updateBacklist();refreshFooter();playItemAfterAd(oPlaylist.Position+1);}else {clickThumb(0);}}function clickIcon(i){var iconInd = (i + oNavBar.CurrentRatchet) % oNavBar.HTML.length; try{var nowIcon = eval("menuItem_" + i);var ob;if (nowIcon.offsetLeft < 230){if (oVideoMetadata.IsSelectable())ob = oVideoMetadata.GetSelectableOb();if (oSlideShow.AbstractIsSelectable())ob = oSlideShow.AbstractDiv.Button;if (oOnDeckArea.IsSelectable())ob = oOnDeckArea.LinkSpan;}else {if (oAdManager.IsSelectable())ob = oAdManager.SelectableOb();if (oSlideShow.PanelIsSelectable())ob = oSlideShow.SlidePanel;if (oMediaPlayer.IsSelectable())ob = oMediaPlayer.Div;}if (ob!=null)ob.focus();}catch (e){}if (iconInd == oNavBar.HTML.length-1){clickPlaylistButton();}else {g_nowTopicInd = iconInd;g_nowCatInd = -1;setNavView(NAV_VIEW_BROWSE);updateBacklist();}}function overThumb(i){if (g_nowNavView != NAV_VIEW_HOME){var h = "(" + oNavBar.GetThumbIndex(i) + " of " + oBrowseHeader.MediaCount + ")";oBrowseHeader.SetText2(h);}}function clickBrowseButton(){oCategoryChooser.Show(g_nowTopicInd, g_nowCatInd);}function overBrowseButton(){oCategoryChooser.Hide();}function offBrowseButton(){oCategoryChooser.Hide();oNavBar.SetFocus();}function clickPip(){switch (g_nowVideoSize){case VIDEOSIZE_SMALL:setVideoSize(VIDEOSIZE_MEDIUM);updateBacklist();refreshFooter();break;case VIDEOSIZE_MEDIUM:setVideoSize(VIDEOSIZE_LARGE);updateBacklist();refreshFooter();break;}}function clickMoreInfo(){setVideoSize(VIDEOSIZE_SMALL);refreshFooter();updateBacklist();}function clickNormalView(){setVideoSize(VIDEOSIZE_MEDIUM);refreshFooter();updateBacklist();oVideoControls.Play.focus();}function clickBrwsBtn(i,j){oFooter.SetFocus();toCat(i,j);}function toCat(a,b){g_nowTopicInd = a;g_nowCatInd = b;setNavView(NAV_VIEW_BROWSE);updateBacklist();}function clickPlaylistButton(){if (oPlaylist.Items.length == 0){alert("Your playlist is empty. To add videos to your playlist, first choose a category, then find the video you want to add and press OK on your keyboard or remote control.");return;}if (g_nowVideoSize == VIDEOSIZE_MEDIUM)setVideoSize(VIDEOSIZE_SMALL);g_nowTopicInd = -1;g_nowCatInd = -1;setNavView(NAV_VIEW_PLAYLIST);refreshFooter();updateBacklist();}function clickHomeButton(){if (g_nowVideoSize == VIDEOSIZE_MEDIUM)setVideoSize(VIDEOSIZE_SMALL);setNavView(NAV_VIEW_HOME);refreshFooter();updateBacklist();}function clickDeleteAll(){if (oMessagePopup.Confirm("Are you sure you want to empty your playlist?")){oPlaylist.RemoveAll();g_ForceFullStop = true;oMediaPlayer.Stop();onPlaylistEnd();oMediaPlayer.IsPlayingAd = false;}}function clickAd(){DeviceClickAway(oAdManager.GetClickThroughUrl());}function clickFullScreen(){setVideoSize(VIDEOSIZE_LARGE);updateBacklist();refreshFooter();}function clickRelatedLink(url, ind){var trackingUrl = oTrackingManager.TrackRelatedLink(url, ind, oPlaylist.GetCurrent());DeviceClickAway(trackingUrl);}function onPlayListChange(){refreshPlaystateFeedback();}function onPrepareToPlay(){if (g_nowVideoSize == VIDEOSIZE_NONE){setVideoSize(VIDEOSIZE_SMALL);updateBacklist();refreshFooter();}}function onPlaylistEnd(){setNavView(NAV_VIEW_HOME);setVideoSize(VIDEOSIZE_NONE);refreshFooter();updateBacklist();oNavBar.Refresh();oNavBar.SetFocus();}function trackViewedClip(guid){var url = urlToUserActivity();url += "action=saveGuid&guid=" + guid;oDataFetcher.GetData(url, onTrackClip, onTrackClipFail);}function onTrackClip(){}function onTrackClipFail(){}function ratchetNavBar(dir, i){if (oNavBar.HTML.length > oNavBar.MenuCount){if (dir=='l')if (oNavBar.CurrentRatchet==0)oNavBar.Draw(oNavBar.HTML.length-1);else oNavBar.Draw(oNavBar.CurrentRatchet-1);else if (oNavBar.CurrentRatchet==oNavBar.HTML.length-1)oNavBar.Draw(0);else oNavBar.Draw(oNavBar.CurrentRatchet+1);}if (g_nowNavView != NAV_VIEW_HOME){var h = "(" + oNavBar.GetThumbIndex(i) + " of " + oBrowseHeader.MediaCount + ")";oBrowseHeader.SetText2(h);}}function clickThumb(ind){handleThumbClick(ind, oMediaPlayer.IsLoading);} \ No newline at end of file diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.831/localhost-1700/MSNVideo/MCE/CSSTransforms/en-us/Main.css b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.831/localhost-1700/MSNVideo/MCE/CSSTransforms/en-us/Main.css new file mode 100644 index 00000000..ed3f7f7e --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.831/localhost-1700/MSNVideo/MCE/CSSTransforms/en-us/Main.css @@ -0,0 +1 @@ +.bodyDiv{width:1024;height:768;overflow:hidden;font:Segoe Media Center;}.bkgDiv{position:absolute;left:35;top:45;width:955;height:488;background-image:url(/MSNVideo/MCE/Images/en-us/PlayBg.jpg);}.mceBtn{position:absolute;height:40;}.mceBtn1{width:8;background-repeat:no-repeat;}.mceBtn2{background-repeat:repeat-x;color:F0F0F0;font-size:27;padding:4 0 0 7;}.mceBtn3{width:8;background-repeat:no-repeat;}.mceBtn1_off{background-image:url(/MSNVideo/MCE/Images/en-us/ButtonLeft_NoFocus.gif);}.mceBtn2_off{background-image:url(/MSNVideo/MCE/Images/en-us/Button1pixel_NoFocus.gif);}.mceBtn3_off{background-image:url(/MSNVideo/MCE/Images/en-us/ButtonRight_NoFocus.gif);}.mceBtn1_over{background-image:url(/MSNVideo/MCE/Images/en-us/ButtonLeft_OnFocus.gif);}.mceBtn2_over{background-image:url(/MSNVideo/MCE/Images/en-us/Button1pixel_OnFocus.gif);}.mceBtn3_over{background-image:url(/MSNVideo/MCE/Images/en-us/ButtonRight_OnFocus.gif);}.mceBtn1_press{background-image:url(/MSNVideo/MCE/Images/en-us/ButtonLeft_Pressed.gif);}.mceBtn2_press{background-image:url(/MSNVideo/MCE/Images/en-us/Button1pixel_Pressed.gif);}.mceBtn3_press{background-image:url(/MSNVideo/MCE/Images/en-us/ButtonRight_Pressed.gif);}.transitionDiv{position:absolute;}.adManagerDiv{position:absolute;top:45; right:25;width:250;height:70;}.am_off{padding:5;}.am_over{padding:0;border:solid 5px;border-color:3F6FA2;}.am_pressed{padding:0;border:solid 5px;border-color:158CE5;}.bnTvLogoLg{position:absolute;left:33;top:50;width:340;height:62;background-image:url(/MSNVideo/MCE/Images/en-us/MSNlarge.gif);}.bnMsnLogo{position:absolute;right:470;top:60;width:44;height:35;background-image:url(/MSNVideo/MCE/Images/en-us/MSNVideo.gif);}.bnMsnTxt{position:absolute;right:324;top:62;font:28;color:CFCFCF;}.bnTvLogoSm{position:absolute;right:15;top:694;width:149;height:36;background-image:url(/MSNVideo/MCE/Images/en-us/MSNsmall.gif);}.messagePopupDiv{position:absolute;background:black;}.messagePopupSpan{background:87A3CA;color:black;padding:5;font:22;line-height:.9;}.settingsFrame{position:absolute;left:0;top:119;width:1024;height:414;border-width:0;z-index:200;}.settingsBody{font-family:Segoe Media Center;font-size:30;background:252B58;}.settingsInnerDiv{color:D1F3FE;}.settingsMessageDiv{position:relative;width:1000;padding:20 400 0 60;color:D1D1D1;}.settingsHead{position:relative;width:1000;padding:40 400 0 60;font:bold;color:D1F3FE;}.settingsInstrct{position:relative;width:1000;padding:20 0 0 60;color:D1D1D1;}.settingsSelection{font:bold;color:D1F3FE;}.settingsRsltInstrct{position:relative;width:1000;padding:20 400 0 60;color:D1D1D1;}.settingsInputSpan{position:relative;width:940;margin:20 0 10 60;}.settingsInputFld{padding:5;width:455;height:50;font:30;color:D1D1D1;}.settingsInput_off{background:252B58;}.settingsInput_over{background-color:3F6FA2;}.settingsInput_pressed{background-color:158CE5;}.settingsButtonSpace{position:relative;width:1000;}.settingsScrollArea{position:absolute;left:60;top:175;width:530;height:195;background:000000;padding:10 9 10 20;overflow:hidden;}.settingsResultButtons{position:absolute;left:610;top:330; }.settingsRdBtn {position:relative;font:30;}TR.rdBtnsRw{height:45;}TD.rdBtnsTxt{color:D1D1D1;width:600;padding:0 0 10 45;}.settingsRdBtnOff{background:url(/MSNVideo/MCE/Images/en-us/RadioNoFocus.gif);background-repeat:no-repeat;}.settingsRdBtnOver{background:url(/MSNVideo/MCE/Images/en-us/RadioFocus.gif);background-repeat:no-repeat;}.settingsRdBtnPress{background:url(/MSNVideo/MCE/Images/en-us/RadioPressed.gif);background-repeat:no-repeat;}.settingsRdBtnOff_hl{background:url(/MSNVideo/MCE/Images/en-us/RadioNoFocusInForce.gif);background-repeat:no-repeat;}.settingsRdBtnOver_hl{background:url(/MSNVideo/MCE/Images/en-us/RadioFocusInForce.gif);background-repeat:no-repeat;}.settingsRdBtnPress_hl{background:url(/MSNVideo/MCE/Images/en-us/RadioPressedInForce.gif);background-repeat:no-repeat;}TABLE.settingsScrlArrws{position:absolute;left:540;top:195;}TR.settingsScrlArrwSpc{height:100;}TABLE.scrlArwsTbl{width:27;height:27;}.scrlArwDnDsbld{background-image:url(/MSNVideo/MCE/Images/en-us/ScrollDownDisabled.gif);}.scrlArwDnOff{background-image:url(/MSNVideo/MCE/Images/en-us/ScrollDownNoFocus.gif);}.scrlArwDnOver{background-image:url(/MSNVideo/MCE/Images/en-us/ScrollDownFocus.gif);}.scrlArwDnPress{background-image:url(/MSNVideo/MCE/Images/en-us/ScrollDownPressed.gif);}.scrlArwUpDsbld{background-image:url(/MSNVideo/MCE/Images/en-us/ScrollUpDisabled.gif);}.scrlArwUpOff{background-image:url(/MSNVideo/MCE/Images/en-us/ScrollUpNoFocus.gif);}.scrlArwUpOver{background-image:url(/MSNVideo/MCE/Images/en-us/ScrollUpFocus.gif);}.scrlArwUpPress{background-image:url(/MSNVideo/MCE/Images/en-us/ScrollUpPressed.gif);}.vmDiv{position:absolute;top:119;left:35;width:449; height:280;overflow:hidden;padding:8;z-index:100;color:D1D1D1;}.vmDiv_off{}.vmDiv_over{background:1C212B;}.vmDiv_pressed{}.vmInnerDiv{position:absolute;width:400;}.vmTxt1{width:400;padding-bottom:18;font:30;}.vmTxt2{width:400;font:bold 30;}.vmTxt3{width:400;padding-bottom:16;font:bold 30;}.vmTxt4{width:400;padding-bottom:16;font:30;}.vmLink{width:400;height:36;padding:3 20 4 20;margin-bottom:4;font:27;overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}.vmLink_off{background:90949C;color:FFFFFF;filter:progid:DXImageTransform.Microsoft.Alpha(opacity=60);}.vmLink_over{background:3F6FA2;}.vmLink_pressed{background:158CE5;}.vmScrl{position:absolute;right:4;width:27;height:27;}.vmScrlUp{top:4;}.vmScrlDn{top:249;}.ssPanel{position:absolute;top:114; right:24;width:490;height:370;filter:progid:DXImageTransform.Microsoft.Fade(duration=1,overlap=.1);z-index:300;}.ssPanel_off{}.ssPanel_over{background:3F6FA2;}.ssPanel_pressed{background:158CE5;}.ssAbstract{position:absolute;top:119;left:35;width:449;height:400;z-index:100;}.ssTxt1{font:bold 30;color:D1F3FE;width:449;}.ssTxt2{font:30;color:D1D1D1;width:449;margin-top:10;line-height:36px;}.ssImg{position:absolute;top:5;left:5;width:480;height:360;}.ssBtn{position:absolute;right:509;top:487;z-index:300;}.weatherSlide{position:absolute;top:5;left:5;width:480;height:360;background-image:url(/MSNVideo/MCE/Images/en-us/WeatherSlideshowBg.jpg);}.weatherSlideTitle{position:absolute;top:60;left:20;width:440;font:bold 32;color:C6D7F2;overflow: hidden; text-overflow:ellipsis; white-space:nowrap;}.weatherSlideImage{position:absolute;top:142;left:70;width:144;height:134;}.weatherSlideTemp{position:absolute;left:288;top:162;width:184;text-align:center;font:70;color:2B5385;}.stockSlide{position:absolute;top:5;left:5;width:480;height:360;background-image:url(/MSNVideo/MCE/Images/en-us/StockSlideshowBg.jpg);}.stockSlideTitle{padding:80 0 22 20; width:480;font:bold 32;color:9AD597;}.stckSldCl{height:52;font:30;color:C8DDC7;}.stckSldCl1{width:182;padding-left:20;}.stckSldCl2{text-align:right;width:147;}.stckSldCl3{text-align:right;width:131;}.staticContentDiv{position:absolute;left:0;top:119;width:1024; height:414;background:252B58;z-index:200;}.wthrTileTxt1{height:50;width:1024;padding:25 0 0 35;font:30;color:D1F3FE;}.wthrTileTxt2{height:50;width:1024;padding-left:35;font:bold 30;color:D1F3FE;}.wthrTileCol1{width:35;}.wthrTileCol2{width:111;height:156;text-align:center;}.wthrAttr{width:477;text-align:right;padding-top:3;font:18;color:FFFFFF;}.wthrTileDay{width:107;height:38;background:3E4A92;font:bold 27;color:FFFFFF;padding-top:7;}.wthrTileImg{padding:10 19 7 20;width:107;height:74;background:707B98;}.wthrTileCndtn{width:107;height:60;font:27;color:000000;padding:0 7 0 7;overflow: hidden; background:707B98;}.wthrTileHiLo{width:107;padding-top:10;height:50;background:707B98;font:bold 27;}.wthrTileLo{color:FFFFFF;}.wthrTileHi{color:FAC271;}.wthrBtn1{position:absolute;top:368;left:35;}.wthrBtn2{position:absolute;top:368;left:135;}.stockPopup{width:480;height:360;background-image:url(/MSNVideo/MCE/Images/en-us/StockSlideshowBg.jpg);}.stckHideBtn{position:absolute;top:300;left:35;}.onDeckDiv{position:absolute;top:430;left:35;width:450;height:82;color:C0E0EB;font:27;}.onDeckBkg{position:absolute;top:0;left:0;width:450;height:82;}.onDeckBkg_off{background:90949C;filter:progid:DXImageTransform.Microsoft.Alpha(opacity=60);}.onDeckBkg_over{background:3F6FA2;}.onDeckbKG_pressed{background:158CE5;}.onDeckHead{position:absolute;top:6;width:330;text-align:right;font:bold;}.onDeckThumb{position:absolute;top:6;left:348;width:92;height:69;}.onDeckTitle{position:absolute;left:0;width:330;top:41;height:30;text-align:right;overflow:hidden;text-overflow: ellipsis;}.mpDiv{padding:5;z-index:300;}.mpDiv_off{}.mpDiv_over{background-color:3F6FA2;}.mpDiv_pressed{background-color:158CE5;}.brandingDiv{position:absolute;font:22 Trebuchet MS;color:000B19;top:489;right:35;width:480;height:30;}.nowPlayingTitle{position:absolute;top:370;height:35;left:90;width:400;overflow:hidden;text-overflow:ellipsis;font:20 Trebuchet MS;color:FFFFFF;text-align:right;background:005500;}.browseHeaderDiv{position:absolute;top:538;left:38;width:997;color:A9E7FB;}.browseHeaderTxt1{font:28;}.browseHeaderTxt2{margin-left:12;font:24;}.bhArrw{position:absolute;right:176;top:7;}.bhLink{position:absolute;right:35;font:21 Arial;color:F2F2F2;}.navBarDiv{position:absolute;width:1024;top:533;height:151;overflow:hidden;background-image:url(/MSNVideo/MCE/Images/en-us/NavBg.jpg);background-repeat:repeat-x;}.nbArrIcon{position:absolute;top:70;}.nbArrThmb{margin:70 13 48 14;}.nbArr{width:32;height:32;}.nbArr_l{background-image:url(/MSNVideo/MCE/Images/en-us/ScrollIndicatorLeft.gif);left:5;}.nbArr_r{background-image:url(/MSNVideo/MCE/Images/en-us/ScrollIndicatorRight.gif);}.nbDvdrThmbEnd{position:absolute;top:52;width:7;height:88;background-image:url(/MSNVideo/MCE/Images/en-us/DividerThumbsEnd.gif);}.nbDvdrTpcsEnd{position:absolute;top:60;width:24;height:24;background-image:url(/MSNVideo/MCE/Images/en-us/DividerTopicsEnd.gif);z-index:100;}.nbDvdrTpcs{position:absolute;top:14;width:4;height:120;background-image:url(/MSNVideo/MCE/Images/en-us/DividerTopics.jpg);}.nbIcon{position:absolute;width:233;height:150;z-index:200;}.nbIcon_off{}.nbIcon_over{background-image:url(/MSNVideo/MCE/Images/en-us/HighlightIcon_OnFocus.gif);}.nbIcon_pressed{background-image:url(/MSNVideo/MCE/Images/en-us/HighlightIcon_Pressed.gif);}.nbTopic{margin-top:5;margin-left:5;width:223;height:140;font:30;color:EBEBEB;}.nbTopicO{color:79BCDE;}.nbThumb{margin-top:45;margin-bottom:5;height:100;overflow:hidden;}.nbThumbWide{width:302; }.nbThumbNrrw{width:244; margin-right:58;}.nbThumbCP{color:6AD4F6;}.nbThumbNoCP{color:C0E0EB;}.nbThumbW_off{}.nbThumbW_over{background-image:url(/MSNVideo/MCE/Images/en-us/HighlightThumbnail_OnFocus.gif);}.nbThumbW_pressed{background-image:url(/MSNVideo/MCE/Images/en-us/HighlightThumbnail_Pressed.gif);}.nbThumbN_off{}.nbThumbN_over{background-image:url(/MSNVideo/MCE/Images/en-us/HighlightThumbnail_Narrow_OnFocus.gif);}.nbThumbN_pressed{background-image:url(/MSNVideo/MCE/Images/en-us/HighlightThumbnail_Narrow_Pressed.gif);}.nbThumbDiv{margin-top:3;height:90;width:304;}.nbThumbImg{vertical-align:top;}.thumbImg{margin-top:6;margin-left:7;width:110;height:83;border:1px solid black;}.thumbWthrImg{margin-top:6;margin-left:7;}.nbThumbTxt{padding-left:15;height:90;font:27;line-height:30px;overflow:hidden; }.nbThumbTxtWide{width:180;}.nbThumbTxtNrrw{width:118;white-space:nowrap;text-overflow:ellipsis; }.ftDiv{position:absolute;top:683;height:85; width:1024;padding:8 0 0 35;overflow:hidden;color:F2F2F2;background:12131F;}.ftBrws{position:absolute;left:37;width:345;height:40;color:F0F0F0;font-size:27;padding:4 0 0 15;overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}.ftBrws_off{background-image:url(/MSNVideo/MCE/Images/en-us/Popup_NoFocus.gif);}.ftBrws_over{background-image:url(/MSNVideo/MCE/Images/en-us/Popup_OnFocus.gif);}.ftBrws_press{background-image:url(/MSNVideo/MCE/Images/en-us/Popup_Pressed.gif);}.ftTos{position:absolute;right:43;width:183;height:48;color:F0F0F0;font-size:27;padding:6 0 0 15;}.ftTos_over{background-image:url(/MSNVideo/MCE/Images/en-us/HighlightTos_OnFocus.gif);}.ftTos_pressed{background-image:url(/MSNVideo/MCE/Images/en-us/HighlightTos_Pressed.gif);}.brwsCatDiv{position:absolute;left:37;width:345;z-index:900;}.ccBtn{position:absolute;font:27;width:345;height:40;padding:5 0 0 10;overflow:hidden; text-overflow:ellipsis; white-space:nowrap;color:F0F0F0;}.ccBtnHL{color:73CDF3;}.ccBtnT_of{background-image:url(/MSNVideo/MCE/Images/en-us/PopupTop_NoFocus.gif);}.ccBtnT_ov{background-image:url(/MSNVideo/MCE/Images/en-us/PopupTop_OnFocus.gif);}.ccBtnT_pr{background-image:url(/MSNVideo/MCE/Images/en-us/PopupTop_Pressed.gif);}.ccBtnM_of{background-image:url(/MSNVideo/MCE/Images/en-us/PopupMid_NoFocus.gif);}.ccBtnM_ov{background-image:url(/MSNVideo/MCE/Images/en-us/PopupMid_OnFocus.gif);}.ccBtnM_pr{background-image:url(/MSNVideo/MCE/Images/en-us/PopupMid_Pressed.gif);}.ccBtnB_of{background-image:url(/MSNVideo/MCE/Images/en-us/PopupBttm_NoFocus.gif);}.ccBtnB_ov{background-image:url(/MSNVideo/MCE/Images/en-us/PopupBttm_OnFocus.gif);}.ccBtnB_pr{background-image:url(/MSNVideo/MCE/Images/en-us/PopupBttm_Pressed.gif);} \ No newline at end of file diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.831/localhost-1700/MSNVideo/MCE/JSTransforms/en-us/Main.js b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.831/localhost-1700/MSNVideo/MCE/JSTransforms/en-us/Main.js new file mode 100644 index 00000000..cbec3d14 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.831/localhost-1700/MSNVideo/MCE/JSTransforms/en-us/Main.js @@ -0,0 +1 @@ +function Banner(div) {this.Div = div;this.DrawHomeView = _baDrawHomeView;this.DrawBrowseView = _baDrawBrowseView;this.Clear = _baClear;}function _baDrawHomeView(){this.Clear();var logo = addSpan(this.Div);logo.className = "bnTvLogoLg";var brand = addSpan(this.Div);brand.className = "bnMsnLogo";var txt = addSpan(this.Div);txt.className = "bnMsnTxt";txt.innerHTML = "MSN Video";}function _baDrawBrowseView(){this.Clear();var logo = addSpan(this.Div);logo.className = "bnTvLogoSm";}function _baClear(){clearChildren(this.Div);}function BrowseHeader(div) {this.Div = div;this.Init = _bhInit;this.SetText1 = _bhSetText1;this.SetText2 = _bhSetText2;}function _bhInit(){var ob;this.Text1 = addSpan(this.Div);this.Text1.className = "browseHeaderTxt1";this.Text2 = addSpan(this.Div);this.Text2.className = "browseHeaderTxt2";}function _bhSetText1(h){this.Text1.innerHTML = h;}function _bhSetText2(h){this.Text2.innerHTML = h;}function CategoryChooser(div, maxSubcats){this.Div = div;this.Init = _ccInit;this.Show = _ccShow;this.Hide = _ccHide;this.AppendBadCat = _ccAppendBadCat;this.MaxSubcats = maxSubcats;}function _ccInit(topics, cats, bottomY){var btn;var btns = new Array();for (var i=0; i= this.MaxSubcats) ? this.MaxSubcats : cats[i].length;for (var j=-1; j';var mp = document.getElementById("mediaPlayer");if(!mp || mp.readyState < 4){window.setTimeout("_DEBUG_createMediaPlayerForIE()", 200);return;}}function MessagePopup(){this.Error = _msError;this.Warning = _msWarning;this.Info = _msInfo;this.Confirm = _msConfirm;this.AutoHide = _msAutoHide;}function _msError(msg, caption){this.Info(msg, caption);}function _msWarning(msg, caption){this.Info(msg, caption);}function _msInfo(msg, caption){alert(msg);}function _msConfirm(msg){var c = "Please confirm";return confirm(msg);}function _msAutoHide(msg){do{msg = msg.replace(""", "");}while (msg.indexOf(""") != -1)try{var btns = new Array(1);btns[0] = 1;window.external.MediaCenter().DialogEx(msg, "", btns, 5, false, getAppLocation() + "/Images/Shared/s.gif",_msReturn);}catch (error){alert(msg);}}function MetadataPopup(div) {this.Div = div;this.Init = _mdInit;this.Refresh = _mdRefresh;this.Focus = _mdFocus;this.Show = _mdShow;this.Hide = _mdHide;this.DrawHideButton = _mdDrawHideButton;this.DrawChangeCityButton = _mdDrawChangeCityButton;this.IsSelectable = _mdIsSelectable;}function _mdInit(){}function _mdDrawHideButton(className){var buttonId = "hideBtn";this.HideButton = addSpan(this.Div);this.HideButton.innerHTML = mceButton("Hide", 0, 90);InitNavObject(this.HideButton,buttonId,"navAwayFromOb(oMetadataPopup,0,oMetadataPopup.HideButton)","navAwayFromOb(oMetadataPopup,1,oMetadataPopup.HideButton)","navAwayFromOb(oMetadataPopup,2,oMetadataPopup.HideButton)","navAwayFromOb(oMetadataPopup,3,oMetadataPopup.HideButton)","clickHideMPBtn()","overButton(oMetadataPopup.HideButton)",className,className,className,"","","","","","","offButton(oMetadataPopup.HideButton)");offButton(this.HideButton);}function _mdDrawChangeCityButton(className){var buttonId = "chngCityBtn";this.ChangeButton = addSpan(this.Div);this.ChangeButton.innerHTML = mceButton("Change City", 0, 200);InitNavObject(this.ChangeButton,buttonId,"navAwayFromOb(oMetadataPopup,0,oMetadataPopup.ChangeButton)","navAwayFromOb(oMetadataPopup,1,oMetadataPopup.ChangeButton)","navAwayFromOb(oMetadataPopup,2,oMetadataPopup.ChangeButton)","navAwayFromOb(oMetadataPopup,3,oMetadataPopup.ChangeButton)","changeCity()","overButton(oMetadataPopup.ChangeButton)",className,className,className,"","","","","","","offButton(oMetadataPopup.ChangeButton)");offButton(this.ChangeButton);}function _mdFocus(){this.HideButton.Hover();}function _mdRefresh(html){clearChildren(this.Div);this.Div.innerHTML = html;}function _mdShow(){this.Div.style.visibility = "visible";}function _mdHide(){this.Div.style.visibility = "hidden";}function _mdIsSelectable(){return (this.Div.style.visibility != "hidden");}function NavBar(div){this.Div = div;this.Init = _nbInit;this.Clear = _nbClear;this.Draw = _nbDraw;this.Refresh = _nbRefresh;this.Hover = _nbHover;this.MoveLeft = _nbMoveLeft;this.MoveRight = _nbMoveRight;this.SetRatchet = _nbSetRatchet;this.GetItemIndex = _nbGetItemIndex;this.GetMenuItem = _nbGetMenuItem;this.IsSelectable = _nbIsSelectable;}function NavBarProperties(visibleItems, beginScrollAt, overAction, offAction, clickAction, itemClassBase, arrowClassBase, dividerClassName, dividerOffset){this.VisibleItems = visibleItems;this.BeginScrollAt = beginScrollAt;this.OverAction = overAction;this.OffAction = offAction;this.ClickAction = clickAction;this.ItemClassBase = itemClassBase;this.ArrowClassBase = arrowClassBase;this.DividerClassName = dividerClassName;this.DividerOffset = dividerOffset;}function _nbInit(mode, htmlArray, guidArray, props){this.Mode = mode;this.HTML = htmlArray;this.GUIDs = guidArray;this.Props = props;this.ItemCount = (htmlArray.length >= this.Props.VisibleItems) ? this.Props.VisibleItems : htmlArray.length;this.AllowScrolling = (htmlArray.length >= this.Props.BeginScrollAt);var imgArray = new Array();var count = 0;var regex;var img;if (mode != "icons")regex = /img src=\S*\s/;for (var i=0; i=this.HTML.length)j-=this.HTML.length;ob = this.MenuItems[i];ob.innerHTML = this.HTML[j];ob.GUID = this.GUIDs[j];var firstItem = (j==0 && ind!=0);if (this.Spacers != null)this.Spacers[i].style.left = (firstItem) ? -100 : ob.offsetLeft;if (this.Divider != null)if (firstItem)dividerX = ob.offsetLeft - this.Props.DividerOffset;}this.Divider.style.left = dividerX;this.Refresh();}function _nbRefresh(){try{var ob;for (var i=0; ithis.ItemCount);if (this.Mode == "icons"){ob.ClassOver = "nbIcon nbIcon_over";ob.ClassPressed = "nbIcon nbIcon_pressed";ob.className = (ob == GetCurrentHover()) ? ob.ClassOver : ob.ClassOff;}else {var currentlyPlaying;if (oPlaylist.GetCurrent() == null)currentlyPlaying = false;else if (oMediaPlayer.GetPlayState() != PLAYSTATE_PLAYING || oMediaPlayer.IsPlayingAd)currentlyPlaying = false;else if (oPlaylist.GetCurrent().GUID == ob.GUID)currentlyPlaying = true;else currentlyPlaying = false;setThumbClasses(ob, currentlyPlaying, lastItem);}}}catch (exception) {return;}}function _nbMoveLeft(i){if (!this.AllowScrolling)return;if (this.HTML.length < this.ItemCount)return;if (this.CurrentRatchet==0){this.Draw(this.HTML.length-1);}else {this.Draw(this.CurrentRatchet-1);}eval(this.Props.OverAction + "(0)");}function _nbMoveRight(i){if (!this.AllowScrolling)return;if (this.HTML.length < this.ItemCount)return;if (this.CurrentRatchet==this.HTML.length-1){this.Draw(0);}else {this.Draw(this.CurrentRatchet+1);}eval(this.Props.OverAction + "(" + (this.ItemCount-1) + ")");}function _nbSetRatchet(ind){if (ind == -1){this.Draw(0);}else {this.Draw(ind);}}function _nbGetItemIndex(i){return ((i + this.CurrentRatchet) % this.HTML.length) + 1;}function _nbGetBkgrdImageByStyle(styleName){var s = document.styleSheets[0].rules;for (var i=0;i= oPlaylist.Items.length) || oMediaPlayer.IsPlayingAd){this.Clear();}else {this.CurrentItem = oPlaylist.Items[oPlaylist.Position+1];this.Background.style.visibility = "inherit";this.HeadSpan.innerHTML = "Up next (" + (oPlaylist.Position+2) + " of " + oPlaylist.Items.length + "):";this.TitleSpan.innerHTML = this.CurrentItem.Title;this.ThumbSpan.innerHTML = imageTag(this.CurrentItem.Thumb, 92, 69, "");}}function _odShow(){this.Div.style.visibility = "visible";}function _odHide(){this.Div.style.visibility = "hidden";}function SettingsArea(iframe) {this.Frame = iframe;this.SetPage = _saSetPage;this.Show = _saShow;this.Hide = _saHide;}function _saSetPage(mode){switch (mode){case "Weather":document.all.settingsFrame.src = "/Pages/MSNVideo/Settings.aspx?pid=AddVideoWeatherInput";break;default:document.all.settingsFrame.src = "/Pages/MSNVideo/SettingsEmpty.aspx";break;}}function _saShow() {document.all.settingsFrame.style.visibility = "visible";}function _saHide() {document.all.settingsFrame.style.visibility = "hidden";unRestrictMouse();}function SlideShow(slidePanel, abstractDiv){this.SlidePanel = slidePanel;this.AbstractDiv = abstractDiv;this.Init = _ssInit;this.SetPersonalSlides = _ssSetPersonalSlides;this.Clear = _ssClear;this.Next = _ssNext;this.Hide = _ssHide;this.Show = _ssShow;this.ShowAbstract = _ssShowAbstract;this.PanelIsSelectable = _ssPanelIsSelectable;this.ButtonIsSelectable = _ssButtonIsSelectable;}function _ssInit(slideHtml, abstractHtml){this.Clear();this.TextArea = addSpan(this.AbstractDiv);this.TextArea.className = "ssAbstract";this.Button = addSpan(this.AbstractDiv);this.Button.innerHTML = mceButton("Play Top Videos", 0, 220);this.CurrentSlide = 0;this.Slides = new Array();this.AbstractHtml = new Array();var slide;for (var i=0; i"+ "" + s + ""+ "";}var gMceEnabled;function IsMCEEnabled(){return true;}function _mceInit(){try{window.external.MediaCenter.onReturnFromMediaCenter = _mceOnReturn;gMceEnabled = true;}catch (e){gMceEnabled = false;}}function _mceGetUserZip(){if (gMceEnabled){var mcePostal;try{mcePostal = window.external.MediaCenter().PostalCode;}catch (e){}return mcePostal;}else {return "";}}function _mceStartMenu(){if (gMceEnabled){try{window.external.MediaCenter().NavigateToPage("b8eac38a-7fb8-4559-84b5-42999c6864bd",null);}catch (e){}}}function _mceOnReturn(){if (window.external.MediaCenter().Experience.Type != 2){g_bIgnorePostStop = true;oMediaPlayer.StopMedia();oMediaPlayer.IsPlayingAd = false;DeviceDefaultStart();}}function onScaleEvent(vScale){bodyDiv.style.zoom = vScale;}function mce_mclExists(){try{var loc = location.href.toLowerCase();var i = loc.indexOf("/pages");var appUrl = loc.substring(0,i) + "/pages/msnvideo/main.aspx";return window.external.MediaCenter().DoesMCLExist(0 , appUrl);}catch (error){if (getCookie("MCLEXISTS") == "true")return true;else return false;}}function addToStartMenu(){var showErrorDlg = false;var status;var loc = location.href.toLowerCase();var i = loc.indexOf("/pages");var urlPrefix = loc.substring(0,i);var appName = "MSNTV Today";var appUrl = urlPrefix + "/pages/msnvideo/main.aspx";var imgUrl = urlPrefix + "/msnvideo/MCE/images/en-us/Butterfly.png";var thmbUrl = urlPrefix + "/msnvideo/MCE/images/en-us/ButterflySm.png";try{if (window.external.MediaCenter().DoesMCLExist(0 , appUrl)){oMessagePopup.Warning("A shortcut to MSN Video has already been added to More Programs.", "");return;}status = window.external.MediaCenter().CreateMCL(appName, appUrl, imgUrl, thmbUrl, 0, 0, 0, appName, "Microsoft"); if (status != 0 && status != -2)showErrorDlg = true;}catch (error){showErrorDlg = true;}if (showErrorDlg)oMessagePopup.Warning("There was a problem adding MSN Video to More Programs.", "Sorry");else setCookie("MCLEXISTS", "true", 2592000000); return (status == 0);}function onRemoteEvent(keyChar){if (g_bBlockInput)return true;switch (keyChar){case 0x09: window.focus();return true;case 0x26: return moveU();case 0x28:return moveD();case 0x25:return moveL();case 0x27:return moveR();case 0x0D:return keyClick();case 0x08:if (top.g_nowTopView == TOPVIEW_SETTINGS)return false;else {return videoGoBack();}case 0xA6:return videoGoBack();case 0x21:scroll(-1);return false; case 0x22:scroll(1);return false;case 0x6B:return true; case 0x6D:return true;case 0x1B:doClear();return true;case 0x13:return oVideoControls.Pause();case 0xB0:return oVideoControls.Skip();case 0xB1:return oVideoControls.Replay();case 0xB2:return oVideoControls.Stop();case 0xFA:return oVideoControls.Play();default:return false;}}function DeviceClickAway(url, targetName){if (gMceEnabled){_mceSetDirectXMode(false);switch(_mceGetMajorVersion()){case 6:try{location.replace(url);}catch(e){_mceErrorHandler("DeviceClickAway",e.description);}break;case 7:try{var MCE = window.external.MediaCenter();return MCE.CreateDesktopShortcut(targetName, url);}catch(e){_mceErrorHandler("DeviceClickAway",e.description);}break;}}else {location.href = url;}}function _mceSetDirectXMode(boolValue){try{var MCE = window.external.MediaCenter();MCE.DirectXExclusive = boolValue;}catch(e){_mceErrorHandler("_mceSetDirectXMode",e.description);}}function _mceGetMajorVersion(){try{var MCE = window.external.MediaCenter();return MCE.MajorVersion;}catch(e){_mceErrorHandler("sGetMajorVersion",e.description);}}function _mceErrorHandler(strLocation,strError){}function _mceDialog(strText,strCaption,lngType,lngTimeout,boolModal){try{var MCE = window.external.MediaCenter();MCE.Dialog(strText,strCaption,lngType,lngTimeout,boolModal);}catch(e){alert(strCaption + "\n\n" + strText + "\n\n" + e.description);}}function VideoControls() {this.Init = _vcInit;this.Stop = _vcStop;this.Play = _vcPlay;this.Pause = _vcPause;this.Skip = _vcSkip;this.Replay = _vcReplay;}function _vcInit(){}function _vcStop(){return false;}function _vcPlay(){if (GetCurrentHover().id.indexOf("menuItem_") != -1 && oNavBar.Mode != "icons"){GetCurrentHover().click();return true;}return false;}function _vcPause(){return false;}function _vcSkip(){if (oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING || oMediaPlayer.GetPlayState() == PLAYSTATE_PAUSED){if (oMediaPlayer.IsPlayingAd)return true;}return false;}function _vcReplay(){return false;}function VideoMetadata(div, innerDiv) {this.Div = div;this.InnerDiv = innerDiv;this.Init = _vmInit;this.Refresh = _vmRefresh;this.Clear = _vmClear;this.Hide = _vmHide;this.Show = _vmShow;this.SetFocus = _vmSetFocus;this.FocusOnLink = _vmFocusOnLink;this.FocusOnArea = _vmFocusOnArea;this.ClearFocus = _vmClearFocus;this.InnerMove = _vmInnerMove;this.LinkIsVisible = _vmLinkIsVisible;this.Click = _vmClick;this.Scroll = _vmScroll;this.IsSelectable = _vmIsSelectable;this.GetNearOb = _vmGetNearOb;this.ArrowMouseEvent = _vmArrowMouseEvent;this.SetArrowClass = _vmSetArrowClass;this.ScrollIncr = 30;this.VisibleHeight = this.Div.offsetHeight;}function _vmInit(){}function _vmRefresh(){this.Clear();if(oPlaylist.GetCurrent() != null){if (oMediaPlayer.IsPlayingAd){if (oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING){var txt = addSpan(this.InnerDiv);txt.innerHTML = "Up next after this advertisement:";txt.className = "vmTxt1";txt = addSpan(this.InnerDiv);txt.innerHTML = oPlaylist.GetCurrent().Title;txt.className = "vmTxt2";}else {var txt = addSpan(this.InnerDiv);txt.innerHTML = "Loading advertisement...";txt.className = "vmTxt1";}this.Selectable = false;}else {if (oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING || g_bForceStop){var title = addSpan(this.InnerDiv);title.innerHTML = oPlaylist.GetCurrent().Title;title.className = "vmTxt3";var abstract = addSpan(this.InnerDiv);abstract.innerHTML = oPlaylist.GetCurrent().Caption;abstract.className = "vmTxt4";this.Links = new Array();this.Hrefs = new Array();this.CurrentLink = -1;var urls = oPlaylist.GetCurrent().LinkUrls;var text = oPlaylist.GetCurrent().LinkText;for (var i=0; i 0) || (this.MinScroll < 0));}else {var txt = addSpan(this.InnerDiv);txt.innerHTML = "Please wait while we get your video ready.";txt.className = "vmTxt1";this.Selectable = false;}}}this.Scroll(0);}function _vmSetFocus(){if ((this.CurrentLink == -1) || (!this.LinkIsVisible(this.CurrentLink))){this.FocusOnArea();}else {this.FocusOnLink(this.CurrentLink);}}function _vmFocusOnLink(ind){this.Div.className = "vmDiv vmDiv_off";if (this.CurrentLink != -1)this.Links[this.CurrentLink].className = "vmLink vmLink_off";this.Links[ind].className = "vmLink vmLink_over";this.CurrentLink = ind;}function _vmFocusOnArea(){if (this.CurrentLink != -1)this.Links[this.CurrentLink].className = "vmLink vmLink_off";this.Div.className = "vmDiv vmDiv_over";}function _vmClearFocus(){if (this.CurrentLink != -1)this.Links[this.CurrentLink].className = "vmLink vmLink_off";}function _vmClick(){if ((this.CurrentLink != -1) && this.LinkIsVisible(this.CurrentLink))clickRelatedLink(this.Hrefs[this.CurrentLink], this.CurrentLink);else this.FocusOnArea();}function _vmInnerMove(dir){switch (dir){case 0:if (this.CurrentLink > 0){if (this.LinkIsVisible(this.CurrentLink-1)){this.FocusOnLink(this.CurrentLink-1);return;}}if (this.CurrentScroll < 0){this.Scroll(this.CurrentScroll + this.ScrollIncr);this.SetFocus();return;}break;case 1:if (this.CurrentLink+1 < this.Links.length){if (this.LinkIsVisible(this.CurrentLink+1)){this.FocusOnLink(this.CurrentLink+1);return;}}if (this.CurrentScroll > this.MinScroll){this.Scroll(this.CurrentScroll - this.ScrollIncr);this.SetFocus();return;}break;case 2:break;case 3:break;}var ob = navAwayFromOb(oVideoMetadata,dir,oVideoMetadata.Div);if (ob != null){this.ClearFocus();ob.Hover();}}function _vmLinkIsVisible(ind){if ( (this.Links[ind].offsetTop + this.Links[ind].offsetHeight) < (this.VisibleHeight - this.CurrentScroll) && (this.Links[ind].offsetTop > -(this.CurrentScroll)))return true;else return false;}function _vmScroll(y){this.CurrentScroll = y;this.InnerDiv.style.top = y;if (this.Selectable){this.ScrollUpBtn.Enabled = (y < 0);this.ScrollDownBtn.Enabled = (y > this.MinScroll);this.SetArrowClass(0, "off");this.SetArrowClass(1, "off");}}function _vmIsSelectable(){return ((this.Div.style.visibility != "hidden") && this.Selectable);}function _vmGetNearOb(dir){switch (dir){case 0:if (this.Links.length >0){for (var i=this.Links.length-1; i>=0; i--){if (this.LinkIsVisible(i)){this.FocusOnLink(i);break;}}}break;case 1:case 2: case 3: if (this.Links.length >0){for (var i=0; i 0){var i = this.Items[this.Items.length-1];if (i[0]==topicInd && i[1]==catInd && i[2]==videoSize && i[3]==navView){return;}if (i[0]==topicInd && i[1]==catInd && i[2]==videoSize && i[3]==navView){return;}}this.Items[this.Items.length] = new Array(topicInd, catInd, videoSize, navView);}function _bmRemoveLast(){var a = new Array();for (var i=0; i< this.Items.length-1; i++){a[i] = this.Items[i];}this.Items = a;}function BrandingArea(div, cssClass) {this.Div = div;this.Clear = _brClear;this.Init = _brInit;this.Refresh = _brRefresh;this.Hide = _brHide;this.Show = _brShow;this.Div.className = cssClass;}function _brClear(){clearChildren(this.Div);}function _brInit(){}function _brRefresh(){this.Clear();if (oPlaylist.GetCurrent() == null || oMediaPlayer.IsPlayingAd || oMediaPlayer.GetPlayState()!=PLAYSTATE_PLAYING)return;var ob = addImg(this.Div);ob.className = "brandingAreaImage";ob.src = "http://img.video.msn.com/s/us/sc/i/MSNTV/src/" + oPlaylist.GetCurrent().Source + ".gif";}function _brHide(){this.Div.style.visibility = "hidden";}function _brShow(){this.Div.style.visibility = "visible";}function DataFetcher(){this.Init = _dfInit;this.GetData = _dfGetData;this.OnLoad = _dfOnLoad;this.Cancel = _dfCancel;this.AppendToQueue = _dfAppendToQueue;this.PushToQueue = _dfPushToQueue;this.ClearQueue = _dfClearQueue;this.DomDoc = new ActiveXObject("Msxml2.DOMDocument");this.DomDoc.onreadystatechange = _dfCheckReadyState;this.DomDoc.async = true;}function _dfInit(){this.UrlQueue = new Array();this.OnSucceedQueue = new Array();this.OnFailQueue = new Array();}function _dfGetData(url, onSucceed, onFail){if (this.Url != null){this.PushToQueue(this.Url, this.OnSucceed, this.OnFail);}this.Url = url;this.OnSucceed = onSucceed;this.OnFail = onFail;this.DomDoc.load(url);}function _dfOnLoad(){this.Data = this.DomDoc.text;var f = (this.DomDoc.parseError.errorCode != 0) ? this.OnFail : this.OnSucceed;this.Url = null;this.OnSucceed = null;this.OnFail = null;f.call();if (this.UrlQueue.length != 0){this.GetData(this.UrlQueue[0], this.OnSucceedQueue[0], this.OnFailQueue[0]);var a1 = new Array();var a2 = new Array();var a3 = new Array();for (var i=0; i=0; i--){if (g_videoPaths[i] != ""){t_GUIDs[j] = g_GUIDs[i];j++;}}var clipsToAdd = false;for (var i=0; i=0; i--){if (g_videoPaths[i] != ""){t_GUIDs[j] = g_GUIDs[i];t_videoPaths[j] = g_videoPaths[i];t_headlines[j] = g_headlines[i];t_captions[j] = g_captions[i];t_imageUrls[j] = g_imageUrls[i];t_sources[j] = g_sources[i];t_relatedLinkUrls[j] = g_relatedLinkUrls[i];t_relatedLinkText[j] = g_relatedLinkText[i];t_PGs[j] = g_PGs[i];t_PSs[j] = g_PSs[i];t_IDs[j] = g_IDs[i];j++;}}oPlaylist.AddAll(t_GUIDs, t_videoPaths, t_headlines, t_captions, t_imageUrls, t_sources, t_relatedLinkUrls, t_relatedLinkText, t_PGs, t_PSs, t_IDs);}var p_types = new Array();var p_titles = new Array();var p_slideHtml = new Array();var p_abstractHtml = new Array();var p_metdataHtml = new Array();var p_userWeatherCity;var p_userWeatherConditionImg;var p_stockDirection;function setPersonalDataGlobals(types, titles, slideHtml, abstractHtml, metdataHtml, userWeatherCity, userWeatherConditionImg, stockDirection){p_types = types;p_titles = titles;p_slideHtml = slideHtml;p_abstractHtml = abstractHtml;p_metdataHtml = metdataHtml;p_userWeatherCity = userWeatherCity;p_userWeatherConditionImg = userWeatherConditionImg;p_stockDirection = stockDirection;}function addPersonalDataToGlobals(){var topicName = (g_nowCatInd == -1) ? g_topics[g_nowTopicInd] : g_cats[g_nowTopicInd][g_nowCatInd];var newType = "";if ((topicName == "Weather") && (p_userWeatherCity!=null)){newType = "Weather";}if (newType != ""){for (var i=g_types.length; i>0; i--){g_types[i] = g_types[i-1];g_GUIDs[i] = g_GUIDs[i-1];g_PGs[i] = g_PGs[i-1];g_PSs[i] = g_PSs[i-1];g_IDs[i] = g_IDs[i-1];g_sources[i] = g_sources[i-1];g_headlines[i] = g_headlines[i-1];g_captions[i] = g_captions[i-1];g_imageTypes[i] = g_imageTypes[i-1];g_imageUrls[i] = g_imageUrls[i-1];g_videoPaths[i] = g_videoPaths[i-1];g_articleUrls[i] = g_articleUrls[i-1];g_relatedLinkUrls[i] = g_relatedLinkUrls[i-1];g_relatedLinkText[i] = g_relatedLinkText[i-1];}g_types[0] = newType;g_GUIDs[0] = "";g_videoPaths[0] = "";}}function addSlideshowToPlaylist(firstInd){var a = (firstInd==null) ? 0 : firstInd;var t_GUIDs = new Array();var t_videoPaths = new Array();var t_headlines = new Array();var t_captions = new Array();var t_imageUrls = new Array();var t_sources = new Array();var t_relatedLinkUrls = new Array();var t_relatedLinkText = new Array();var t_PGs = new Array();var t_PSs = new Array();var t_IDs = new Array();var j = 0;for (var i=g_scGuids.length-1; i>=0; i--){if (i!=a){t_GUIDs[j] = g_scGuids[i];t_videoPaths[j] = g_scVideoUrls[i];t_headlines[j] = g_scHeadlines[i];t_captions[j] = g_scCaptions[i];t_imageUrls[j] = g_scImageUrls[i];t_sources[j] = g_scSources[i];t_relatedLinkUrls[j] = g_scRelatedLinkUrls[i];t_relatedLinkText[j] = g_scRelatedLinkText[i];t_PGs[j] = g_scPGs[i];t_PSs[j] = g_scPSs[i];t_IDs[j] = g_scIDs[i];j++;}}oPlaylist.AddAll(t_GUIDs, t_videoPaths, t_headlines, t_captions, t_imageUrls, t_sources, t_relatedLinkUrls, t_relatedLinkText, t_PGs, t_PSs, t_IDs);oPlaylist.PutNext(g_scGuids[a], g_scVideoUrls[a], g_scHeadlines[a], g_scCaptions[a], g_scImageUrls[a], g_scSources[a], g_scRelatedLinkUrls[a], g_scRelatedLinkText[a], g_scPGs[a], g_scPSs[a], g_scIDs[a]);}function handleThumbClick(ind, isLoading){var i = (ind + oNavBar.CurrentRatchet) % oNavBar.HTML.length;if (g_types[i] == "Weather"){showWeather();return;}if (g_types[i] == "Stocks"){showStocks();return;} var inPlaylistAtPos = oPlaylist.IndexOf(g_GUIDs[i]); var isPlaying = (oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING); var currentItemIsAd = oMediaPlayer.IsPlayingAd;if (inPlaylistAtPos != -1){if (currentItemIsAd){oMessagePopup.AutoHide("The selected video will play after the advertisement");playItemAfterAd(inPlaylistAtPos);return;}if (inPlaylistAtPos == oPlaylist.Position){if (isLoading){oMessagePopup.AutoHide("The selected video is currently loading");return;}else if (isPlaying){oMessagePopup.AutoHide("The selected video is currently playing");return;}}oMessagePopup.AutoHide("Preparing to play the selected video");playItemAfterAd(inPlaylistAtPos);return;}if (!oPlaylist.PutLast(g_GUIDs[i], g_videoPaths[i], g_headlines[i], g_captions[i], g_imageUrls[i], g_sources[i], g_relatedLinkUrls[i], g_relatedLinkText[i], g_PGs[i], g_PSs[i], g_IDs[i]))return;onPlayListChange();if (isLoading || isPlaying){oMessagePopup.AutoHide("Adding the selected video to the playlist");return;}oMessagePopup.AutoHide("Preparing to play the selected video");playItemAfterAd(oPlaylist.Items.length-1);}function getTopic_Cat(topicInd, catInd){return (catInd==-1) ? topicInd : topicInd + "_" + catInd;}var o_NavigableObjects = new Array();var o_CurrentHover;var i_navObs = 0;function InitNavObject(ob, obId, upTarget, downTarget, leftTarget, rightTarget, clickAction, overAction, classOff, classOver, classPressed, classDisabled, classOff_hilite, classOver_hilite, classPressed_hilite, scrollParent, scrollIndex, offAction){o_NavigableObjects[i_navObs++] = ob;ob.id = obId;ob.UpTarget = upTarget;ob.DownTarget = downTarget;ob.LeftTarget = leftTarget;ob.RightTarget = rightTarget;ob.ClickAction = clickAction;ob.OverAction = overAction;ob.ClassOff = classOff;ob.ClassOver = classOver;ob.ClassPressed = classPressed;ob.ClassDisabled = classDisabled;ob.ClassOffHilite = classOff_hilite;ob.ClassOverHilite = classOver_hilite;ob.ClassPressedHilite = classPressed_hilite;ob.ScrollParent = scrollParent;ob.ScrollIndex = scrollIndex;ob.OffAction = offAction;ob.Highlighted = false;ob.className = ob.ClassOff;ob.Hover = DeviceHover;ob.Blur = DeviceBlur;ob.Press = DevicePress;ob.Click = DeviceClick;ob.HighlightOn = DeviceHighlightOn;ob.HighlightOff = DeviceHighlightOff;ob.onmouseover = DeviceMouseOver;ob.onmouseout = DeviceMouseOut;ob.onmousedown = DeviceMouseDown;ob.onclick = DeviceMouseClick;ob.onfocus= DeviceOnFocus;ob.onblur= DeviceOnBlur;}function moveU(){try{var ob = eval(GetCurrentHover().UpTarget);return ob.Hover();}catch (e){return false;}}function moveD(){try{var ob = eval(GetCurrentHover().DownTarget);return ob.Hover();}catch (e){return false;}}function moveL(){try{var ob = eval(GetCurrentHover().LeftTarget);return ob.Hover();}catch (e){return false;}}function moveR(){try{var ob = eval(GetCurrentHover().RightTarget);return ob.Hover();}catch (e){return false;}}function keyClick(){try{return GetCurrentHover().click();}catch (e){return false;}}var o_ScrollableObjects = new Array();var i_scrollObsCount = 0;function InitScrollableObject(ob, id, scrollIncrement, visibleItems, totalItems, upArrowId, downArrowId, obNmPrfx, paddingTop){o_ScrollableObjects[i_scrollObsCount++] = ob;ob.Id = id;ob.ScrollIncrement = scrollIncrement;ob.VisibleItems = visibleItems;ob.TotalItems = totalItems;ob.UpArrowId = upArrowId;ob.DownArrowId = downArrowId;ob.ObNamePrefix = obNmPrfx;ob.PaddingTop = paddingTop;ob.HtmlObject = document.all[id];ob.CurrentScroll = 0; }function GetScrollableOb(id){for (var i=0; i scrlOb.VisibleItems-scrlOb.CurrentScroll)DoScroll(scrlOb, scrlOb.VisibleItems-ind);else if (scrlOb.CurrentScroll <= -ind)DoScroll(scrlOb, -(ind-1));}function DoScroll(ob, scr){ob.CurrentScroll=scr;var listItem;for (var i=1; i<=ob.TotalItems; i++){listItem = document.all[ob.ObNamePrefix + i];if ((i <= -ob.CurrentScroll) || (i > ob.VisibleItems-ob.CurrentScroll))listItem.style.display = "none";else listItem.style.display = "block";}if (arrowCount > 0){if (ob.CurrentScroll < 0)enableArrw(ob.UpArrowId);else disableArrw(ob.UpArrowId);if (ob.TotalItems > ob.VisibleItems-ob.CurrentScroll)enableArrw(ob.DownArrowId);else disableArrw(ob.DownArrowId);}}function enableArrw(id){var arrow = GetArrow(id);if (!arrow.Enabled){var htmlOb = document.all[arrow.Id];htmlOb.className = arrow.ClassOff;arrow.Enabled = true;}}function disableArrw(id){var arrow = GetArrow(id);if (arrow.Enabled){var htmlOb = document.all[arrow.Id];htmlOb.className = arrow.ClassDisabled;arrow.Enabled = false;}}function setArrwCls(id,cls){var arrow = GetArrow(id);var htmlOb = document.all[arrow.Id];htmlOb.className = cls;}function arrwOver(id){var arrow = GetArrow(id);if (arrow.Enabled){var htmlOb = document.all[arrow.Id];htmlOb.className = arrow.ClassOver;}}function arrwOut(id){var arrow = GetArrow(id);if (arrow.Enabled){var htmlOb = document.all[arrow.Id];htmlOb.className = arrow.ClassOff;}}function arrwDown(id){var arrow = GetArrow(id);if (arrow.Enabled){var htmlOb = document.all[arrow.Id];htmlOb.className = arrow.ClassPressed;}}function arrwClick(id, dir){var arrow = GetArrow(id);var ob = GetScrollableOb(arrow.ScrollObId);scrollByPage(ob, dir);if (arrow.Enabled){var htmlOb = document.all[arrow.Id];htmlOb.className = arrow.ClassOver;}}function scrollByPage(scrlOb, dir){var newHover = scrlOb.ObNamePrefix;if (dir == 1)newHover += scrlOb.VisibleItems-scrlOb.CurrentScroll;else newHover += 1-scrlOb.CurrentScroll;if (newHover != GetCurrentHover().id){var ob = eval(newHover);ob.Hover();}else {var ind;if (dir == 1)ind = scrlOb.VisibleItems-scrlOb.CurrentScroll + scrlOb.VisibleItems;else ind = -scrlOb.CurrentScroll - scrlOb.VisibleItems;if (ind > scrlOb.TotalItems)ind = scrlOb.TotalItems;else if (ind < 1)ind = 1;var ob = eval(scrlOb.ObNamePrefix + ind);ob.Hover();SetScroll(scrlOb.Id, ind);}}function scroll(dir){var ob = o_ScrollableObjects[0];if (ob !== null){scrollByPage(ob, dir);}}var g_bForceStop = false;function playItemAfterAd(ind){if (oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING){if (oMediaPlayer.IsPlayingAd){oPlaylist.MoveTo(ind); return;}else {g_bIgnorePostStop = true;oMediaPlayer.StopMedia();}}oPlaylist.MoveTo(ind); playCurrent();}function onPlayStateChange(){var newState = oMediaPlayer.GetPlayState();if (newState == oMediaPlayer.GetLastPlayState())return;oMediaPlayer.SetLastPlayState(newState);switch (newState){case PLAYSTATE_STOPPED:case PLAYSTATE_STOPPED_EXT:postStopAction(); break; case PLAYSTATE_BUFFERING: postBufferingAction(); break;case PLAYSTATE_PAUSED:postPauseAction();break;case PLAYSTATE_PLAYING:postPlayAction();break;case PLAYSTATE_FINISHED:break;}}function postStopAction(adFailedToPlay){window.clearTimeout(g_clipLoadTimer);if (adFailedToPlay == null)adFailedToPlay = false;if (oMediaPlayer.GetMediaPosition() != 0 && !adFailedToPlay){g_bForceStop = true;refreshPlaystateFeedback();return;}refreshPlaystateFeedback();var lastVideoWasContent = !oMediaPlayer.IsPlayingAd;oMediaPlayer.IsPlayingAd = false;if (g_bIgnorePostStop){g_bIgnorePostStop = false;return;}if (lastVideoWasContent){if (oPlaylist.Position+1 < oPlaylist.Items.length){oPlaylist.MoveNext();}else {onPlaylistEnd();return;}}if (oPlaylist.Position != -1)playCurrent();}function postPlayAction(){window.clearTimeout(g_clipLoadTimer);g_clipLoadedInTime = true;g_bIgnorePostStop = false; g_bForceStop = false;onPlaybackStart();}function postPauseAction(){}var g_clipLoadTimer;var g_clipLoadedInTime = false;function checkClipLoad(isAd){window.clearTimeout(g_clipLoadTimer);if(!g_clipLoadedInTime){g_bIgnorePostStop = false;if (isAd){postStopAction(true);}else {if (oPlaylist.GetCurrent() != null)postStopAction(false);}return;}}function playCurrent(){if (oMediaPlayer.IsPlayingAd && oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING){return;}if (oPlaylist.GetCurrent() == null)return;onPrepareToPlay();if (oPlaylist.GetCurrent().GUID != oAdManager.CurrentGUID){oAdManager.CurrentGUID = oPlaylist.GetCurrent().GUID;oAdManager.SetPageGroup(oPlaylist.GetCurrent().PageGroup);oMediaPlayer.IsPlayingAd = oAdManager.EndUserSees=="video";}refreshPlaystateFeedback();iPlayNextTimerId = window.setTimeout(playCurrentB, 100);}function playCurrentB(){window.clearTimeout(iPlayNextTimerId);if (oMediaPlayer.IsPlayingAd){oAdManager.LoadNext();}else {if (oPlaylist.GetCurrent() != null){window.clearTimeout(g_clipLoadTimer);g_clipLoadedInTime = false;g_clipLoadTimer = window.setTimeout(function() {checkClipLoad(false); }, 15000);oTrackingManager.TrackContentPlay(oPlaylist.GetCurrent());oMediaPlayer.PlayMedia(oPlaylist.GetCurrent().URL);}}}function onLoadAdComplete(){oAdManager.ShowLeaveBehind();if (oMediaPlayer.IsPlayingAd){if (oAdManager.ClipSrc == "" || oAdManager.ClipSrc.indexOf(".gif") != -1){g_bIgnorePostStop = false;postStopAction(true);}else {g_clipLoadedInTime = false;window.clearTimeout(g_clipLoadTimer);g_clipLoadTimer = window.setTimeout(function() { checkClipLoad(true); }, 15000);oTrackingManager.TrackAdPlay(oPlaylist.GetCurrent(), oAdManager.TrackingImgId);oMediaPlayer.PlayMedia(oAdManager.ClipSrc);}}}function Playlist() {this.Items = new Array();this.Init = _plInit;this.PutNext = _plPutNext;this.PutLast = _plPutLast;this.Insert = _plInsert;this.Remove = _plRemove;this.AddAll = _plAddAll;this.RemoveAll = _plRemoveAll;this.IndexOf = _plIndexOf;this.GetCurrent = _plGetCurrent;this.MoveNext = plMoveNext;this.MoveTo = plMoveTo;this.OK = 0;this.DUPE = 1;this.MAX = 2;}function _plInit(maxLength){this.Position = -1;this.MaxLength = maxLength;onPlayListChange();}function plMoveNext(){if (this.Position < this.Items.length-1){this.Position++;onPlayListChange();}}function plMoveTo(ind){if (ind <= this.Items.length){this.Position = ind;onPlayListChange();}}function _plPutNext(guid, url, title, caption, thumb, source, linkUrls, linkText, pageGroup, ps, id){var item = new PlaylistItem(guid, url, title, caption, thumb, source, linkUrls, linkText, pageGroup, ps, id);return (this.Insert(item, this.Position+1) == this.OK);}function _plPutLast(guid, url, title, caption, thumb, source, linkUrls, linkText, pageGroup, ps, id){var item = new PlaylistItem(guid, url, title, caption, thumb, source, linkUrls, linkText, pageGroup, ps, id);return (this.Insert(item, this.Items.length) == this.OK);}function _plAddAll(guids, urls, titles, captions, thumbs, sources, linkUrls, linkText, pageGroups, pss, ids){var item;for (var i=0; i< guids.length; i++){item = new PlaylistItem(guids[i], urls[i], titles[i], captions[i], thumbs[i], sources[i], linkUrls[i], linkText[i], pageGroups[i], pss[i], ids[i]);if (this.Insert(item, this.Position+1) == this.MAX) return;}}function _plInsert(item, ind){var inPlaylistAtPos = this.IndexOf(item.GUID);if (this.Items.length < this.MaxLength){for (var i=this.Items.length; i>ind; i--){this.Items[i] = this.Items[i-1];} this.Items[ind] = item;if (inPlaylistAtPos != -1){if (inPlaylistAtPos <= ind){this.Remove(inPlaylistAtPos);if (this.Position > 0)this.Position = this.Position-1;}else {this.Remove(inPlaylistAtPos+1);}}return this.OK;}oMessagePopup.Warning("The video was not added to your playlist because your list is full. The maximum number of videos your playlist can contain is " + this.MaxLength + ".", "");return this.MAX;}function _plRemove(ind){var tmpArr = new Array();var tmpInd = 0;for (var i=0; i=0 ; i--){item = new PlaylistItem(t_GUIDs[i], t_videoPaths[i], t_headlines[i], t_captions[i], t_imageUrls[i], t_sources[i], t_relatedLinkUrls[i], t_relatedLinkText[i], t_PGs[i], t_PSs[i], t_IDs[i]);if (oPlaylist.Insert(item, 0) != oPlaylist.OK)return;}var startItemGuid = getStartupParam("i");if (startItemGuid == "") startItemGuid = getStartupParam("g");if (startItemGuid != ""){var url = urlToGuidLookup(g_startUpParams);oDataFetcher.GetData(url, onGetItemByGuid, onGetItemByGuidFail);}else {DeviceSpecialStart();}}}catch (e){onGetPlaylistFail();}}function onGetPlaylistFail(){if ((getStartupParam("g")!="") || (getStartupParam("i")!="") || (getStartupParam("r")!="") || (getStartupParam("prepend")!="") || (getStartupParam("replace")!="")){var url = urlToGuidLookup(g_startUpParams);oDataFetcher.GetData(url, onGetItemByGuid, onGetItemByGuidFail);}else {DeviceDefaultStart();}}function onGetItemByGuid(){try{if (oDataFetcher.Data == ""){onGetItemByGuidFail();return;}eval(oDataFetcher.Data);var item;for (var i=t_GUIDs.length-1; i>=0 ; i--){item = new PlaylistItem(t_GUIDs[i], t_videoPaths[i], t_headlines[i], t_captions[i], t_imageUrls[i], t_sources[i], t_relatedLinkUrls[i], t_relatedLinkText[i], t_PGs[i], t_PSs[i], t_IDs[i]);if (oPlaylist.Insert(item, 0) != oPlaylist.OK)return;}DeviceSpecialStart();}catch (oError){onGetItemByGuidFail();}}function onGetItemByGuidFail(){DeviceDefaultStart();}function getInitialNavView(){var t_topicName = (getStartupParam("m")!="") ? getStartupParam("m") : getStartupParam("menu");var t_categoryName = (getStartupParam("mi")!="") ? getStartupParam("mi") : getStartupParam("menuItem");if (t_topicName!= null){var loadCategory = false;var initTopic = -1;var initCat = -1;for (var a=0; a0; i--){child = ob.children(i-1);ob.removeChild(child);}}function addDiv(ob){var newDiv = document.createElement("DIV");return ob.appendChild(newDiv);}function imageTag(src, w, h, className){var tag = " 1.5){g_bIs16by9 = true;var arrClasses = new Array("bodyDiv", "settingsFrame", "staticContentDiv", "wthrTileTxt1","wthrTileTxt2", "navBarDiv", "ftDiv");setClassWidths(arrClasses, 256, false);setClassWidths(new Array("ssAbstract", "ssTxt1", "ssTxt2", "vmDiv", "vmInnerDiv", "vmTxt1", "vmTxt2", "vmTxt3", "vmTxt4", "vmLink"), 256, false);setClassAttribute(getClass("nbArrThmb"), "margin-left", 2);setClassAttribute(getClass("nbArrThmb"), "margin-right", 2);}oAdManager = new AdManager(adManagerDiv);oBacklistManager = new BacklistManager();oBanner = new Banner(bannerDiv);oBrandingArea = new BrandingArea(brandingDiv, "brandingDiv");oBrowseHeader = new BrowseHeader(browseHeaderDiv);oCategoryChooser = new CategoryChooser(categoryChooserDiv, 20);oDataFetcher = new DataFetcher();oFooter = new Footer(footerDiv);oJsPreloader = new JsPreloader();oMediaPlayer = new MediaPlayer(playerDiv);oMessagePopup = new MessagePopup(messagePopupDiv);oMetadataPopup = new MetadataPopup(staticContentDiv);oNavBar = new NavBar(navBarDiv);oOnDeckArea = new OnDeckArea(onDeckDiv, transitionDiv);oPlaylist = new Playlist();oSlideShow = new SlideShow(slideShowPanel, slideShowAbstract);oSettingsArea = new SettingsArea(settingsFrame);oTrackingManager = new TrackingManager(trackingDiv);oVideoControls = new VideoControls();oVideoMetadata = new VideoMetadata(videoMetadataDiv, videoMetadataInnerDiv);g_bIgnorePostStop = true;oMediaPlayer.StopMedia();oAdManager.Init(240, 60, true);oBrandingArea.Init();oBrowseHeader.Init();oCategoryChooser.Init(g_topics, g_cats, 691);oDataFetcher.Init();oJsPreloader.Init(g_topicIds, g_catIds, "MCE");oMediaPlayer.Init(119, 509+(g_bIs16by9 ? 256:0), 480, 360); oMetadataPopup.Init();oOnDeckArea.Init();oPlaylist.Init(PLAYLIST_MAX);oTrackingManager.Init("MCE");oVideoControls.Init();oVideoMetadata.Init();_mceInit();InitNavObject(adManagerDiv,"adImg","navAwayFromOb(oAdManager,0,oAdManager.Div)","navAwayFromOb(oAdManager,1,oAdManager.Div)","navAwayFromOb(oAdManager,2,oAdManager.Div)","navAwayFromOb(oAdManager,3,oAdManager.Div)","clickAd()","","adManagerDiv am_off","adManagerDiv am_over","adManagerDiv am_pressed","");drawInitialView();iPersonalDataTimerId = window.setTimeout(loadPersonalData, 1000);oTrackingManager.TrackPageView();generatePreloadImageList();if (g_arrImgList.length > 0)PreLoadImgs(g_arrImgList);}function leavePage(){}function DeviceDefaultStart(){drawTop(TOPVIEW_SLIDESHOW);drawBottom(NAV_VIEW_HOME);oAdManager.LoadNext();updateBacklist();}function DeviceSpecialStart(){if (oPlaylist.Items.length > 0){oPlaylist.MoveTo(0);playCurrent();drawTop(TOPVIEW_VIDEO);}else {drawTop(TOPVIEW_SLIDESHOW);}drawBottom(getInitialNavView());updateBacklist();}function drawTop(view){g_nowTopView = view;switch (view){case TOPVIEW_SLIDESHOW:oSlideShow.Init(ssHtmlSlides(), ssHtmlAbstracts());oSlideShow.SetPersonalSlides(p_slideHtml, p_abstractHtml);iSlideShowTimerId = window.setTimeout(nextSlide, iSlideShowInterval);oBrandingArea.Hide();oMediaPlayer.Hide();oMetadataPopup.Hide();oOnDeckArea.Hide();oSettingsArea.Hide();oSlideShow.Show();oVideoMetadata.Hide();break;case TOPVIEW_VIDEO:window.clearTimeout(iSlideShowTimerId);oBrandingArea.Show();oMediaPlayer.Show();oMetadataPopup.Hide();oOnDeckArea.Show();oSettingsArea.Hide();oSlideShow.Hide();oVideoMetadata.Show();break;case TOPVIEW_SETTINGS:window.clearTimeout(iSlideShowTimerId);oBrandingArea.Hide();oMediaPlayer.Hide();oMetadataPopup.Hide();oOnDeckArea.Hide();oSettingsArea.Show();oSlideShow.Hide();oVideoMetadata.Hide();break;}}function drawBottom(view){g_nowNavView = view;oDataFetcher.ClearQueue();switch (view){case NAV_VIEW_HOME:g_nowTopicInd = -1;g_nowCatInd = -1;setMetaDataGlobals(null, null, null, null, null, null, null, null, null, null, null, null, null, null);oBrowseHeader.SetText1("");oBrowseHeader.SetText2("");oBanner.DrawHomeView();oFooter.DrawHomeView();oNavBar.Clear();var start = 4+(g_bIs16by9 ? 1:0);var navBarProps = new NavBarProperties(start, start+1, "overIcon", "offIcon", "clickIcon", "nbIcon", "nbArrIcon nbArr", "nbDvdrTpcsEnd", 10);oNavBar.Init("icons", HtmlArrayForIcons(), new Array(), navBarProps);oNavBar.Hover();oJsPreloader.Load(g_nowTopicInd, g_nowCatInd);break;case NAV_VIEW_BROWSE:var topicId = (g_nowCatInd == -1) ? g_topicIds[g_nowTopicInd] : g_catIds[g_nowTopicInd][g_nowCatInd];var topicName = (g_nowCatInd == -1) ? g_topics[g_nowTopicInd] : g_cats[g_nowTopicInd][g_nowCatInd];oCategoryChooser.Hide();oBrowseHeader.SetText1("Please wait while we get " + topicName + " ready.");oBrowseHeader.SetText2("");oNavBar.Clear();oFooter.Hover();var url = urlToJsLoader(topicId, "MCE");oDataFetcher.GetData(url, onBrowseLoadComplete, onBrowseLoadFail);break;case NAV_VIEW_PLAYLIST:var t_types = new Array();var t_GUIDs = new Array();var t_headlines = new Array();var t_captions = new Array();var t_imageUrls = new Array();var t_videoPaths = new Array();for (var i=0; i oNavBar.ItemCount){oNavBar.SetRatchet(oPlaylist.Position);}else {oNavBar.SetRatchet(0);}oNavBar.Hover();break;}}function onBrowseLoadComplete(){try{eval(oDataFetcher.Data);setMetaDataGlobals(t_types, t_GUIDs, t_PGs, t_PSs, t_IDs, t_sources, t_headlines, t_captions, t_imageTypes, t_imageUrls, t_videoPaths, t_articleUrls, t_relatedLinkUrls, t_relatedLinkText);addPersonalDataToGlobals();completeBrowseView();}catch (exception){setMetaDataGlobals(null, null, null, null, null, null, null, null, null, null, null, null, null, null);addPersonalDataToGlobals();if (g_types.length == 0){var topicName = (g_nowCatInd == -1) ? g_topics[g_nowTopicInd] : g_cats[g_nowTopicInd][g_nowCatInd];if (topicName != null)oMessagePopup.Warning("There are no videos available in the \"" + topicName + "\" category.", "");drawBottom(NAV_VIEW_HOME);}else {completeBrowseView();}}updateBacklist();}function onBrowseLoadFail(){}function completeBrowseView(){var headerText= ""+ g_topics[g_nowTopicInd]+ " — "+ ((g_nowCatInd == -1) ? "All" : g_cats[g_nowTopicInd][g_nowCatInd])+ "";oBanner.DrawBrowseView();oFooter.DrawBrowseView(); oBrowseHeader.MediaCount = g_types.length;oBrowseHeader.SetText1(headerText);oBrowseHeader.SetText2("");oJsPreloader.Load(g_nowTopicInd, g_nowCatInd);var start = 3+(g_bIs16by9 ? 1:0);var navBarProps = new NavBarProperties(start, start+1, "overThumb", "", "clickThumb", "nbThumb", "nbArrThmb nbArr", "nbDvdrThmbEnd", 30);oNavBar.Init("category", HtmlArrayForThumbnails(start), g_GUIDs, navBarProps);oNavBar.Hover();if (oSettingsArea.RestartVideo){oMediaPlayer.PauseMedia(false);oSettingsArea.RestartVideo = false;}}function refreshPlaystateFeedback(){oMetadataPopup.Hide();oBrandingArea.Refresh();oNavBar.Refresh();oOnDeckArea.Refresh();oVideoMetadata.Refresh();}function updateBacklist(){oBacklistManager.Append(g_nowTopicInd, g_nowCatInd, g_nowTopView, g_nowNavView);}function videoGoBack(){if (oCategoryChooser.Div.style.visibility == "visible"){oCategoryChooser.Hide();oFooter.Hover();return true;}if (oBacklistManager.Items.length<2){if (okToLeaveApp()){oPlaylist.RemoveAll();g_bIgnorePostStop = true;oMediaPlayer.StopMedia();return false;}return;}var prevState = oBacklistManager.Items[oBacklistManager.Items.length -2];var prevTopic = prevState[0];var prevCat = prevState[1];var prevVidSize = prevState[2];var prevNavView = prevState[3];oBacklistManager.RemoveLast();if ((prevNavView == NAV_VIEW_PLAYLIST) && (oPlaylist.Items.length == 0)){return videoGoBack();}if ((prevVidSize == TOPVIEW_SLIDESHOW) && (oPlaylist.Items.length != 0))prevVidSize = TOPVIEW_VIDEO;if (oPlaylist.Items.length == 0)prevVidSize = TOPVIEW_SLIDESHOW;if ((g_nowTopicInd == prevTopic) && (g_nowCatInd == prevCat) && (g_nowTopView == prevVidSize) && (g_nowNavView == prevNavView)){return videoGoBack();}var topicName = (prevCat == -1) ? g_topics[prevTopic] : g_cats[prevTopic][prevCat];if (topicName == null && prevNavView == NAV_VIEW_BROWSE)return false;g_nowTopicInd = prevTopic;g_nowCatInd = prevCat;drawTop(prevVidSize);drawBottom(prevNavView);return true;}function HtmlArrayForIcons(){var html = new Array();var cat;var imgClass;for (var i=0; i<=g_topics.length; i++){cat = (i==g_topics.length) ? "Playlist" : g_topics[i];html[i] = ""+ ""+ ""+ ""+ "
"+ cat+ "
";}return html;}function HtmlArrayForThumbnails(divideAfter){var html = new Array();var txt;var img;var h;var tableWidth;var textCellClass;for (var i=0; i=divideAfter){textCellClass = "nbThumbTxt nbThumbTxtNrrw";}else {textCellClass = "nbThumbTxt nbThumbTxtWide";}h= "

"+ ""+ img+ ""+ ""+ txt+ ""+ "
";html[i] = h;}return html;}function loadPersonalData(){window.clearTimeout(iPersonalDataTimerId);var url = urlToPersonalData(_mceGetUserZip());oDataFetcher.GetData(url, firstLoadPersonlData, onLoadPersonalDataFail, true);}function firstLoadPersonlData(){onLoadPersonalData(false);}function reloadPersonlData(){onLoadPersonalData(true);}function onLoadPersonalData(settingsRefresh){try{eval(oDataFetcher.Data);setPersonalDataGlobals(t_types, t_titles, t_slideHtml, t_abstractHtml, t_metdataHtml, t_userWeatherCity, t_userWeatherConditionImg, t_stockDirection);oSlideShow.SetPersonalSlides(p_slideHtml, p_abstractHtml);addPersonalDataToGlobals();if (settingsRefresh)window.setTimeout(onSettingsRefresh,100);}catch (exception){onLoadPersonalDataFail();}}function onLoadPersonalDataFail(){}function nextSlide(){window.clearTimeout(iSlideShowTimerId);oSlideShow.Next();iSlideShowTimerId = window.setTimeout(nextSlide, iSlideShowInterval);}function ssHtmlSlides(){var slides = new Array();for (var i=0; i';}return slides;}function ssHtmlAbstracts(){var abstracts = new Array();for (var i=0; i"+ g_ssHeadlines[i]+ ""+ g_ssCaptions[i]+ "";}return abstracts;}function overButton(ob){ob.children[0].className = "mceBtn mceBtn1 mceBtn1_over";ob.children[1].className = "mceBtn mceBtn2 mceBtn2_over";ob.children[2].className = "mceBtn mceBtn3 mceBtn3_over";}function offButton(ob){ob.children[0].className = "mceBtn mceBtn1 mceBtn1_off";ob.children[1].className = "mceBtn mceBtn2 mceBtn2_off";ob.children[2].className = "mceBtn mceBtn3 mceBtn3_off";}function overIcon(i){var nowMenuItem = oNavBar.GetMenuItem(i);if (nowMenuItem == null)return;var nowIcon = nowMenuItem.children(0);nowIcon.className = "nbTopic nbTopicO";}function offIcon(i){if (g_nowNavView != NAV_VIEW_HOME)return;var nowMenuItem = oNavBar.GetMenuItem(i);if (nowMenuItem == null)return;var nowIcon = nowMenuItem.children(0);nowIcon.className = "nbTopic";}function clickIcon(i){var iconId = oNavBar.GetMenuItem(i).children(0).id;if (iconId == "Playlist"){toPlaylist();}else { var topicInd = (i + oNavBar.CurrentRatchet) % oNavBar.HTML.length;toCat(topicInd,-1);}}function overThumb(i){oBrowseHeader.SetText2("(" + oNavBar.GetItemIndex(i) + " of " + oBrowseHeader.MediaCount + ")");}function setThumbClasses(ob, currentlyPlaying, narrowThumb){var baseClass = "nbThumb"+ (narrowThumb ? " nbThumbNrrw" : " nbThumbWide")+ (currentlyPlaying ? " nbThumbCP" : " nbThumbNoCP");ob.ClassOff = baseClass + (narrowThumb ? " nbThumbN_off" : " nbThumbW_off");ob.ClassOver = baseClass + (narrowThumb ? " nbThumbN_over" : " nbThumbW_over");ob.ClassPressed = baseClass + (narrowThumb ? " nbThumbN_pressed" : " nbThumbW_pressed");ob.className = (ob == GetCurrentHover()) ? ob.ClassOver : ob.ClassOff;}var g_mclWasAdded;function clickAddToStart(){g_mclWasAdded = addToStartMenu();if (g_mclWasAdded)oFooter.DrawHomeView();oFooter.Hover();}function showTos(){DeviceClickAway("http://privacy.msn.com/tou", "MSNTV Today Terms of Use");}function showWeather(){oMetadataPopup.Refresh(p_metdataHtml[0]);oMetadataPopup.DrawHideButton("wthrBtn1");oMetadataPopup.DrawChangeCityButton("wthrBtn2");oMetadataPopup.Show();oMetadataPopup.Focus();}function showStocks(){oMetadataPopup.Refresh(p_metdataHtml[1]);oMetadataPopup.DrawHideButton("stckHideBtn");oMetadataPopup.Show();oMetadataPopup.Focus();}function clickHomeButton(){drawBottom(NAV_VIEW_HOME);updateBacklist();}function clickSlide(){var a = oSlideShow.Slides[oSlideShow.CurrentSlide].ShowcaseIndex;if (a != null){addSlideshowToPlaylist(a);playItemAfterAd(oPlaylist.Position+1);oNavBar.Hover();}else {var ind = oSlideShow.Slides[oSlideShow.CurrentSlide].PersonalIndex;var personalType = p_types[ind];for (var a=0; a";InitNavObject(this.HelpBtn,"helpBtn","bannerHelp","","","","","","","clickHelp()");}function _baRefresh(){var txt = "MSN Video";if (g_nowVideoSize == VIDEOSIZE_SMALL){if (g_nowNavView == NAV_VIEW_PLAYLIST){txt += " — Playlist";}else if (g_nowNavView == NAV_VIEW_BROWSE){txt += " — " + g_topics[g_nowTopicInd];}}this.TextSpan.innerHTML = txt;}function _baHide(){this.Div.style.visibility = "hidden";}function _baShow(){this.Div.style.visibility = "visible";}function _baIsSelectable(){return (this.Div.style.visibility != "hidden");}function BrandingArea(div, cssClass) {this.Div = div;this.Clear = _brClear;this.Init = _brInit;this.Refresh = _brRefresh;this.Hide = _brHide;this.Show = _brShow;this.SetDimensions = _brSetDimensions;this.Div.className = cssClass;}function _brClear(){clearChildren(this.Div);}function _brInit(){this.Image = addImg(this.Div);this.Image.className = "brandingAreaImage";this.Image.src = "/Images/Shared/s.gif";}function _brSetDimensions(t, l, h, w){this.Image.style.top = t;this.Image.style.left = l;this.Image.style.height = h;this.Image.style.width = w;}function _brRefresh(){if (oPlaylist.Position==-1 || oMediaPlayer.IsPlayingAd || oMediaPlayer.GetPlayState()!=PLAYSTATE_PLAYING)this.Image.src = "/Images/Shared/s.gif";else if (oPlaylist.GetCurrent() != null)this.Image.src = "http://img.video.msn.com/s/us/sc/i/MSNTV/src/" + oPlaylist.GetCurrent().Source + ".gif";}function _brHide(){this.Div.style.visibility = "hidden";}function _brShow(){this.Div.style.visibility = "visible";}function BrowseHeader(div) {this.Div = div;this.Init = _bhInit;this.SetText1 = _bhSetText1;this.SetText2 = _bhSetText2;this.ShowLoadingMessage = _bhShowLoadingMessage;this.Clear = _bhClear;this.Hide = _bhHide;this.Show = _bhShow;}function _bhInit(){var ob;ob = addSpan(this.Div);ob.className = "browseHeaderTxt1";this.Text1 = ob;ob = addSpan(this.Div);ob.className = "browseHeaderTxt2";this.Text2 = ob;}function _bhSetText1(h){this.Text1.innerHTML = h;}function _bhSetText2(h){this.Text2.innerHTML = h;}function _bhShowLoadingMessage(str){this.Text1.innerHTML = "Please wait while we get " + str + " ready.";this.Text2.innerHTML = "";}function _bhClear(){this.Text1.innerHTML = "";this.Text2.innerHTML = "";}function _bhShow(){this.Div.style.visibility = "visible";}function _bhHide(){this.Div.style.visibility = "hidden";}function CategoryChooser(div, maxSubcats){this.Div = div;this.Init = _ccInit;this.Show = _ccShow;this.Hide = _ccHide;this.AppendBadCat = _ccAppendBadCat;this.ExcludeBtn = _ccExcludeBtn;this.MaxSubcats = maxSubcats;this.FailedSubcats = new Array();}function _ccInit(topics, cats, bottomY){var btn;var btns = new Array();for (var i=0; i= this.MaxSubcats) ? this.MaxSubcats : cats[i].length;for (var j=-1; j=0; j--){var nowBtn = this.Btns[i][j];if (i!=topicInd || this.ExcludeBtn(nowBtn.FullName)){nowBtn.Hide();}else {if (j==catInd+1 && i==topicInd)nowBtn.SetHighlight(true);else nowBtn.SetHighlight(false);nowBtn.style.bottom = bottomY;;bottomY += this.ButtonHeight;nowBtn.Show();}}}var popupHeight= (this.ButtonHeight * this.Btns[topicInd].length);this.Div.style.height = popupHeight;this.Div.style.top = this.BottomY - popupHeight;this.Div.style.visibility = "visible";try{this.Btns[topicInd][catInd+1].focus(); }catch (e){oFooter.SetFocus();}}function _ccHide(){for (var i=0; i= length)wmp.CurrentPosition = length;else wmp.CurrentPosition = currentPos + increment;}}}function _mpShowStatus(s){this.Status.innerHTML = s;}var MGX_ICON_ERROR= 0x10;var MGX_ICON_WARNING= 0x30;var MGX_ICON_INFO= 0x40;var MGX_SIZE_LARGE = 0x0;var MGX_SIZE_SMALL = 0x1;function MessagePopup(){this.Error = _msError;this.Warning = _msWarning;this.Info = _msInfo;this.Confirm = _msConfirm;this.AutoHide = _msAutoHide;}function _msError(msg, caption){alert(msg);}function _msWarning(msg, caption){alert(msg);}function _msInfo(msg, caption){alert(msg);}function _msConfirm(msg){return confirm(msg);}function _msAutoHide(msg){alert(msg);}function NavBar(div){this.Div = div;this.Clear = _nbClear;this.Draw = _nbDraw;this.Refresh = _nbRefresh;this.InitTopics = _nbInitTopics;this.SetFocus = _nbSetFocus;this.SetRatchet = _nbSetRatchet;this.GetThumbIndex = _nbGetThumbIndex;this.InitThumbnails = _nbInitThumbnails;this.IsSelectable = _nbIsSelectable;this.Show = _nbShow;this.Hide = _nbHide;}function _nbClear(){this.Div.className = "navBarDiv navBarDivThmb";clearChildren(this.Div);}function _nbDraw(ind){this.CurrentRatchet = ind;var dividerX = -100;var ob;var css;for (var i=0; i=this.HTML.length)j-=this.HTML.length;ob.innerHTML = this.HTML[j];ob.GUID = this.GUIDs[j];}if (this.Hanger != null && this.HTML.length>this.MenuCount){var j = ind+i;if (j==this.HTML.length)dividerX = this.Hanger.offsetLeft;if (j>=this.HTML.length)j-=this.HTML.length;this.Hanger.innerHTML = imageTag(this.Images[j], 92, 69, "nbThmImg");}if (this.HTML.length>this.MenuCount){this.LeftArrow.innerHTML = " ";this.RightArrow.innerHTML = " ";}else {this.LeftArrow.innerHTML = ""; this.RightArrow.innerHTML = ""; }if (this.Divider != null){this.Divider.style.left = dividerX - (this.Mode == "thumbnails" ? 18 : 24);}this.Refresh();}function _nbRefresh(){if (this.Mode != "thumbnails")return;var doHighlight;for (var i=0; i= 2) ? 2 : titles.length;this.Div.className = "navBarDiv navBarDivThmb";this.HTML = new Array();this.Images = new Array();this.GUIDs = guids;for (var i=0; i"+ ""+ ""+ imageTag(this.Images[i], 92, 69, "nbThmImg")+ ""+ ""+ ""+ txt+ ""+ ""+ ""+ "";this.HTML[i] = h;}this.LeftArrow = addSpan(this.Div);this.LeftArrow.className = "nbArrSpn";for (var i=0; i"+ ""+ ""+ txt + ""+ ""+ "";this.HTML[i] = h;}var ob;this.LeftArrow = addSpan(this.Div);this.LeftArrow.className = "nbArrSpn";var leftAction;var rightAction;for (var i=0; i Choose Play to begin again.";txt.className = "npMsg";this.SelectableOb = null;}else if (oMediaPlayer.IsPlayingAd){var txt = addSpan(this.Div);txt.innerHTML = "Up next after this advertisement:";txt.className = "npMsg";txt = addSpan(this.Div);txt.innerHTML = oPlaylist.GetCurrent().Title;txt.className = "npUpNxt";var arrw = addSpan(this.Div);arrw.innerHTML = bulletImage();arrw.className = "npArrw";this.MoreInfoBtn = addSpan(this.Div);this.MoreInfoBtn.innerHTML = "More info";InitNavObject(this.MoreInfoBtn,"moreInfoButton","","","","","","","","clickMoreInfo()");this.SelectableOb = this.MoreInfoBtn;}else {if (oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING){var txt = addSpan(this.Div);txt.innerHTML = oPlaylist.GetCurrent().Title;txt.className = "npTitle";var arrw = addSpan(this.Div);arrw.innerHTML = bulletImage();arrw.className = "npArrw";this.MoreInfoBtn = addSpan(this.Div);this.MoreInfoBtn.innerHTML = "More info";InitNavObject(this.MoreInfoBtn,"moreInfoButton","","","","","","","","clickMoreInfo()");this.SelectableOb = this.MoreInfoBtn;}else {var txt = addSpan(this.Div);txt.innerHTML = "Please wait while we get your video ready.";txt.className = "npMsg";this.SelectableOb = null;}}}function _npClear(){clearChildren(this.Div);}function _npShow(){this.Div.style.visibility = "visible";}function _npHide(){this.Div.style.visibility = "hidden";}function _npIsSelectable(){return ((this.Div.style.visibility != "hidden") && (this.SelectableOb!=null));}function OnDeckArea(div) {this.Div = div;this.Init = _odInit;this.Refresh = _odRefresh;this.Hide = _odHide;this.Show = _odShow;this.IsSelectable = _odIsSelectable;}function _odInit(){var ob;ob = addSpan(this.Div);ob.className = "odThumb";this.ThumbSpan = ob;ob = addSpan(this.Div);ob.className = "odTxt1";this.TextSpan1 = ob;ob = addSpan(this.Div);ob.className = "odTxt2";this.TextSpan2 = ob;ob = addSpan(this.Div);ob.className = "odTxt3";this.TextSpan3 = ob;}function _odRefresh(){this.ThumbSpan.innerHTML = "";this.TextSpan1.innerHTML = "";this.TextSpan2.innerHTML = "";this.TextSpan3.innerHTML = "";if (oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING && !oMediaPlayer.IsPlayingAd){if ((oPlaylist.Position == -1) || (oPlaylist.Position+1 >= oPlaylist.Items.length)){this.TextSpan3.innerHTML = "Up next: end of playlist";}else {var currentItem = oPlaylist.Items[oPlaylist.Position+1];this.ThumbSpan.innerHTML = imageTag(currentItem.Thumb, 92, 69, "");this.TextSpan1.innerHTML = "Up next:";this.TextSpan2.innerHTML = currentItem.Title;}}}function _odShow(){this.Div.style.visibility = "visible";}function _odHide(){this.Div.style.visibility = "hidden";}function _odIsSelectable(){return false;}function onBuffering(bStart){if (bStart){}else {refreshStatus();}}var g_ReadyState = 0; var rs_Uninitialized = 0;var rs_Loading = 1;var rs_Interactive = 3;var rs_Complete = 4;var g_clipLoadTimer;var g_adIsLoading;function onReadyStateChange(lReadyState){var hasLoaded = (g_ReadyState == rs_Loading && lReadyState == rs_Complete);refreshStatus();if (hasLoaded){oMediaPlayer.IsLoading = false;window.clearTimeout(g_clipLoadTimer);g_ForceFullStop = false; refreshPlaystateFeedback();oProgressBar.Reset();if (!oMediaPlayer.IsPlayingAd){if (oPlaylist.GetCurrent() != null){trackViewedClip(oPlaylist.GetCurrent().GUID);}}oMediaPlayer.ResetDimensions();}g_ReadyState = lReadyState;}function setClipLoadTimer(seconds, isAd){g_adIsLoading = isAd;var mls = parseInt(seconds)*1000;g_clipLoadTimer = window.setTimeout(function() {checkClipLoad();}, mls);}function checkClipLoad(){window.clearTimeout(g_clipLoadTimer);if(oMediaPlayer.IsLoading) {oMediaPlayer.IsLoading = false;oMediaPlayer.Cancel();if (g_adIsLoading){}else {var clip = oPlaylist.GetCurrent();if (clip != null){oMessagePopup.Warning("The video is not available", "");trackViewedClip(clip.GUID);}}postStopAction();return;}}var g_Rewinding = false;var g_ForceFullStop = false;var PLAYSTATE_STOPPED = 0;var PLAYSTATE_PAUSED = 1;var PLAYSTATE_PLAYING = 2;var PLAYSTATE_BUFFERING = 3;var PLAYSTATE_FWD = 4;var PLAYSTATE_REW = 5;var PLAYSTATE_FINISHED = -1;function onPlayStateChange(oldState, newState){refreshStatus();if (oldState == PLAYSTATE_BUFFERING && newState == PLAYSTATE_STOPPED){return;}switch (oMediaPlayer.GetPlayState()){case PLAYSTATE_STOPPED:postStopAction(); break; case PLAYSTATE_BUFFERING: break;case PLAYSTATE_PAUSED:g_Rewinding = false;postPauseAction();break;case PLAYSTATE_PLAYING:g_Rewinding = false;postPlayAction();break;case PLAYSTATE_FINISHED:break;case PLAYSTATE_FWD:g_Rewinding = false;break;case PLAYSTATE_REW:g_Rewinding = true;break;}}function postStopAction(){var l_ForceFullStop = g_ForceFullStop;var l_Rewinding = g_Rewinding;g_ForceFullStop = false;g_Rewinding = false;var action;if (l_ForceFullStop){}else if (l_Rewinding){window.setTimeout(function() {oMediaPlayer.Play();}, 1);}else if (oMediaPlayer.IsPlayingAd){oMediaPlayer.IsPlayingAd = false; playCurrent();}else if (oPlaylist.Position+1 < oPlaylist.Items.length){oPlaylist.MoveNext();playCurrent();}else {onPlaylistEnd();}}function postPlayAction(){}function postPauseAction(){}function playItemAfterAd(ind){if (oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING){if (oMediaPlayer.IsPlayingAd){oPlaylist.MoveTo(ind); }else {oPlaylist.MoveTo(ind-1); oMediaPlayer.Stop();}}else {oPlaylist.MoveTo(ind); playCurrent();}}function playCurrent(){if (oMediaPlayer.IsPlayingAd){if (oMediaPlayer.GetPlayState() != PLAYSTATE_PLAYING)oMediaPlayer.Play();return;}if (oPlaylist.GetCurrent() == null)return;onPrepareToPlay();if (oPlaylist.GetCurrent().GUID != oAdManager.CurrentGUID){oAdManager.CurrentGUID = oPlaylist.GetCurrent().GUID;oAdManager.SetPageGroup(oPlaylist.GetCurrent().PageGroup);oMediaPlayer.IsPlayingAd = oAdManager.EndUserSees=="video";}refreshPlaystateFeedback();iPlayNextTimerId = window.setTimeout(playCurrentB, 100);}function playCurrentB(){window.clearTimeout(iPlayNextTimerId);if (oMediaPlayer.IsPlayingAd){oAdManager.LoadNext();}else {if (oPlaylist.GetCurrent() != null){var url = oPlaylist.GetCurrent().URL;if (url.indexOf("/default.cdnx/") != -1)url += ".asx";oMediaPlayer.PlayMedia(url);oTrackingManager.TrackContentPlay(oPlaylist.GetCurrent());setClipLoadTimer(30, false);}}}function onLoadAdComplete(){oAdManager.ShowLeaveBehind();if (oMediaPlayer.IsPlayingAd){if (oAdManager.ClipSrc == "" || oAdManager.ClipSrc.indexOf(".gif") != -1){postStopAction();}else {oMediaPlayer.PlayMedia(oAdManager.ClipSrc);oTrackingManager.TrackAdPlay(oPlaylist.GetCurrent(), oAdManager.TrackingImgId);setClipLoadTimer(15, true);}}}function ProgressBar(div){this.Div = div;this.Init = _pbInit;this.Refresh = _pbRefresh;this.Reset = _pbReset;this.Hide = _pbHide;this.Show = _pbShow;this.SetStatus = _pbSetStatus;}function _pbInit(player, barWidth){var h = ""+ ""+ ""+ ""+ ""+ ""+ ""+ "
"+ ""+ ""+ ""+ ""+ ""+ ""+ ""+ "
";this.Div.innerHTML = h;this.Htc = pbHtc;this.Text1 = pbTxt1;this.Text2 = pbTxt2;this.StatusText = pbTxt3;this.Visible = false;this.Player = player;this.BarWidth = barWidth;}function _pbReset(){if (this.Visible){this.Text1.innerHTML = "00:00";this.Duration = Math.floor(this.Player.GetDuration());var mm = Math.floor(this.Duration/60);var ss = this.Duration - mm*60;this.Text2.innerHTML= ((mm < 10) ? "0" + mm : mm)+ ":"+ ((ss < 10) ? "0" + ss : ss);this.Htc.percentComplete = 0;this.Refresh();}}function _pbRefresh(){window.clearTimeout(this.TimerId);if (this.Visible){try{var mls = this.Player.GetMediaPosition();var sec = Math.floor(mls/1000);var mm = Math.floor(sec/60);var ss = sec - mm*60;if (mm == -1){this.Text1.innerHTML = "00:00";}else {this.Text1.innerHTML= ((mm < 10) ? "0" + mm : mm)+ ":"+ ((ss < 10) ? "0" + ss : ss);}this.Htc.percentComplete = Math.round(sec/this.Duration*100);}catch (exception){this.Text1.innerHTML = "00:00";this.Htc.percentComplete = 0;}this.TimerId = window.setTimeout(function() {oProgressBar.Refresh();}, 1000);}}function _pbHide(){clearTimeout(this.TimerId);this.Div.style.visibility = "hidden";this.Visible = false;}function _pbShow(){this.Visible = true;this.Reset();this.Div.style.visibility = "visible";}function _pbSetStatus(s){this.StatusText.innerHTML = s;}function SlideShow(slidePanel, abstractDiv){this.SlidePanel = slidePanel;this.AbstractDiv = abstractDiv;this.Init = _ssInit;this.Clear = _ssClear;this.Next = _ssNext;this.Hide = _ssHide;this.Show = _ssShow;this.ShowAbstract = _ssShowAbstract;this.PanelIsSelectable = _ssPanelIsSelectable;this.AbstractIsSelectable = _ssAbstractIsSelectable;}function _ssInit(slideHtml, abstractHtml){this.Clear();this.AbstractHtml = abstractHtml;this.Slides = new Array();var slide;for (var i=0; i");return toOb.appendChild(btn);}function bulletImage(){var h = " h){doTruncate = true;break;}htmlThatFits = textGauge.innerHTML;}}textGauge.style.display = "none";if (doTruncate){var tHtml = htmlThatFits;var lastChar = (tHtml.charAt(tHtml.length-2) == ",") ? tHtml.length-2 : tHtml.length-1;tHtml = tHtml.substring(0,lastChar);return (tHtml == "") ? "" : tHtml + "…";}else {return html;}}function truncateWord(w, maxChars){var s = "";var c = "";for (var i=0; i 0);showSkip = (oPlaylist.Position < oPlaylist.Items.length-1);}}this.Rew.style.display = (showRew) ? "inline" : "none"; this.Fwd.style.display = (showFwd) ? "inline" : "none"; this.Prev.style.display = (showPrev) ? "inline" : "none"; this.Next.style.display = (showSkip) ? "inline" : "none";if((nowFocusOb==this.Rew || nowFocusOb==this.Fwd || nowFocusOb==this.Prev || nowFocusOb==this.Next)&&(nowFocusOb.style.display == "none")&&(this.Div.style.visibility != "hidden")){if (showSkip) this.Next.focus();else if (showPrev) this.Prev.focus();else if (showFwd) this.Fwd.focus();else if (showRew) this.Rew.focus();else this.Stop.focus();}}catch (error){}}function _vcPlayingView(){this.Div.className = "vcDiv vcDivPlaying";this.FullScreenBtn.style.display = "inline";this.NormalViewBtn.style.display = "none";this.Mute.style.display = "none";this.UnMute.style.display = "none";this.Play.style.display = "inline";this.Pause.style.display = "inline";this.Stop.style.display = "inline";this.Rew.style.display = "none";this.Fwd.style.display = "none";this.Prev.style.display = "inline";this.Next.style.display = "inline";}function _vcFullScreenView(){this.Div.className = "vcDiv vcDivFullScrn";this.FullScreenBtn.style.display = "none";this.NormalViewBtn.style.display = "inline";this.RefreshMute();this.Play.style.display = "inline";this.Pause.style.display = "inline";this.Stop.style.display = "inline";this.Rew.style.display = "inline";this.Fwd.style.display = "inline";this.Prev.style.display = "inline";this.Next.style.display = "inline";}function _vcShow(){this.Div.style.visibility = "visible";this.HideShowBtns();}function _vcHide(){this.Div.style.visibility = "hidden";}function _vcIsSelectable(){return (this.Div.style.visibility != "hidden");}function _vcClickMute(){oMediaPlayer.Player.Mute = !oMediaPlayer.Player.Mute;oVideoControls.RefreshMute();if (oMediaPlayer.Player.Mute)oVideoControls.UnMute.focus();else oVideoControls.Mute.focus();}function _vcRefreshMute(){if (oMediaPlayer.Player.Mute){this.Mute.style.display = "none";this.UnMute.style.display = "inline";}else {this.Mute.style.display = "inline";this.UnMute.style.display = "none";}}function _vcClickPlay(){switch (oMediaPlayer.GetPlayState()){case PLAYSTATE_PLAYING:break;case PLAYSTATE_PAUSED:case PLAYSTATE_FWD:case PLAYSTATE_REW:case PLAYSTATE_STOPPED:oMediaPlayer.Play();refreshPlaystateFeedback();break;default:if (oPlaylist.Position == -1)oPlaylist.Position = 0;playCurrent();break;}}function _vcClickPause(){if (oMediaPlayer.GetPlayState() == PLAYSTATE_PAUSED){oMediaPlayer.Play();}else {try{oMediaPlayer.Pause();}catch (error){}}}function _vcClickStop(){window.clearTimeout(g_clipLoadTimer);if (oMediaPlayer.IsLoading){oMediaPlayer.Cancel();oMediaPlayer.IsLoading = false;}else if (oMediaPlayer.GetPlayState() == PLAYSTATE_STOPPED){}else {try{if (oMediaPlayer.GetPlayState() != PLAYSTATE_BUFFERING) g_ForceFullStop = true;oMediaPlayer.Stop();oMediaPlayer.SetMediaPosition(0);oBrandingArea.Refresh();oVideoMetadata.Refresh(true);oNowPlaying.Refresh(true);}catch (error){}}}function _vcClickRew(){oMediaPlayer.Rew();}function _vcClickFwd(){oMediaPlayer.Fwd();}function _vcClickPrev(){playItemAfterAd(oPlaylist.Position-1);}function _vcClickNext(){if (oPlaylist.Position+1 < oPlaylist.Items.length){g_ForceFullStop = true;oMediaPlayer.Stop();oPlaylist.MoveNext();playCurrent();}else {}}function VideoMetadata(div, innerDiv) {this.Div = div;this.InnerDiv = innerDiv;this.Init = _vmInit;this.Refresh = _vmRefresh;this.Clear = _vmClear;this.Hide = _vmHide;this.Show = _vmShow;this.IsSelectable = _vmIsSelectable;this.GetSelectableOb = _vmGetSelectableOb;}function _vmInit(){}function _vmRefresh(userStopped){this.Clear();if(oPlaylist.GetCurrent() == null)return;if (userStopped){var txt = addSpan(this.InnerDiv);txt.innerHTML = "You have stopped the video.

Choose Play to begin again.";txt.className = "vmTxt1";this.SelectableOb = null;}else if (oMediaPlayer.IsPlayingAd){var txt = addSpan(this.InnerDiv);txt.innerHTML = "Up next after this advertisement:";txt.className = "vmTxt1";txt = addSpan(this.InnerDiv);txt.innerHTML = oPlaylist.GetCurrent().Title;txt.className = "vmTxt2";this.SelectableOb = null;}else {if (oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING){var title = addSpan(this.InnerDiv);title.innerHTML = oPlaylist.GetCurrent().Title;title.className = "vmTxt3";var abstract = addSpan(this.InnerDiv);abstract.innerHTML = oPlaylist.GetCurrent().Caption;abstract.className = "vmTxt4";var urls = oPlaylist.GetCurrent().LinkUrls;var text = oPlaylist.GetCurrent().LinkText;var addedLink = false;for (var i=0; i 0){var i = this.Items[this.Items.length-1];if (i[0]==topicInd && i[1]==catInd && i[2]==videoSize && i[3]==navView){return;}if (i[0]==topicInd && i[1]==catInd && i[2]==videoSize && i[3]==navView){return;}}this.Items[this.Items.length] = new Array(topicInd, catInd, videoSize, navView);}function _bmRemoveLast(){var a = new Array();for (var i=0; i< this.Items.length-1; i++){a[i] = this.Items[i];}this.Items = a;}function DataFetcher(){this.Init = _dfInit;this.GetData = _dfGetData;this.OnLoad = _dfOnLoad;this.Cancel = _dfCancel;this.AppendToQueue = _dfAppendToQueue;this.PushToQueue = _dfPushToQueue;this.ClearQueue = _dfClearQueue;this.DomDoc = new ActiveXObject("Msxml2.DOMDocument");this.DomDoc.onreadystatechange = _dfCheckReadyState;this.DomDoc.async = true;}function _dfInit(){this.UrlQueue = new Array();this.OnSucceedQueue = new Array();this.OnFailQueue = new Array();}function _dfGetData(url, onSucceed, onFail){if (this.Url != null){this.PushToQueue(this.Url, this.OnSucceed, this.OnFail);}this.Url = url;this.OnSucceed = onSucceed;this.OnFail = onFail;this.DomDoc.load(url);}function _dfOnLoad(){this.Data = this.DomDoc.text;var f = (this.DomDoc.parseError.errorCode != 0) ? this.OnFail : this.OnSucceed;this.Url = null;this.OnSucceed = null;this.OnFail = null;f.call();if (this.UrlQueue.length != 0){this.GetData(this.UrlQueue[0], this.OnSucceedQueue[0], this.OnFailQueue[0]);var a1 = new Array();var a2 = new Array();var a3 = new Array();for (var i=0; i=0; i--){if (g_videoPaths[i] != ""){t_GUIDs[j] = g_GUIDs[i];j++;}}var clipsToAdd = false;for (var i=0; i=0; i--){if (g_videoPaths[i] != ""){t_GUIDs[j] = g_GUIDs[i];t_videoPaths[j] = g_videoPaths[i];t_headlines[j] = g_headlines[i];t_captions[j] = g_captions[i];t_imageUrls[j] = g_imageUrls[i];t_sources[j] = g_sources[i];t_relatedLinkUrls[j] = g_relatedLinkUrls[i];t_relatedLinkText[j] = g_relatedLinkText[i];t_PGs[j] = g_PGs[i];t_PSs[j] = g_PSs[i];t_IDs[j] = g_IDs[i];j++;}}oPlaylist.AddAll(t_GUIDs, t_videoPaths, t_headlines, t_captions, t_imageUrls, t_sources, t_relatedLinkUrls, t_relatedLinkText, t_PGs, t_PSs, t_IDs);}var p_types = new Array();var p_titles = new Array();var p_slideHtml = new Array();var p_abstractHtml = new Array();var p_metdataHtml = new Array();var p_userWeatherCity;var p_userWeatherConditionImg;var p_stockDirection;function setPersonalDataGlobals(types, titles, slideHtml, abstractHtml, metdataHtml, userWeatherCity, userWeatherConditionImg, stockDirection){p_types = types;p_titles = titles;p_slideHtml = slideHtml;p_abstractHtml = abstractHtml;p_metdataHtml = metdataHtml;p_userWeatherCity = userWeatherCity;p_userWeatherConditionImg = userWeatherConditionImg;p_stockDirection = stockDirection;}function addPersonalDataToGlobals(){var topicName = (g_nowCatInd == -1) ? g_topics[g_nowTopicInd] : g_cats[g_nowTopicInd][g_nowCatInd];var newType = "";if ((topicName == "Weather") && (p_userWeatherCity!=null)){newType = "Weather";}if (newType != ""){for (var i=g_types.length; i>0; i--){g_types[i] = g_types[i-1];g_GUIDs[i] = g_GUIDs[i-1];g_PGs[i] = g_PGs[i-1];g_PSs[i] = g_PSs[i-1];g_IDs[i] = g_IDs[i-1];g_sources[i] = g_sources[i-1];g_headlines[i] = g_headlines[i-1];g_captions[i] = g_captions[i-1];g_imageTypes[i] = g_imageTypes[i-1];g_imageUrls[i] = g_imageUrls[i-1];g_videoPaths[i] = g_videoPaths[i-1];g_articleUrls[i] = g_articleUrls[i-1];g_relatedLinkUrls[i] = g_relatedLinkUrls[i-1];g_relatedLinkText[i] = g_relatedLinkText[i-1];}g_types[0] = newType;g_GUIDs[0] = "";g_videoPaths[0] = "";}}function addSlideshowToPlaylist(firstInd){var a = (firstInd==null) ? 0 : firstInd;var t_GUIDs = new Array();var t_videoPaths = new Array();var t_headlines = new Array();var t_captions = new Array();var t_imageUrls = new Array();var t_sources = new Array();var t_relatedLinkUrls = new Array();var t_relatedLinkText = new Array();var t_PGs = new Array();var t_PSs = new Array();var t_IDs = new Array();var j = 0;for (var i=g_scGuids.length-1; i>=0; i--){if (i!=a){t_GUIDs[j] = g_scGuids[i];t_videoPaths[j] = g_scVideoUrls[i];t_headlines[j] = g_scHeadlines[i];t_captions[j] = g_scCaptions[i];t_imageUrls[j] = g_scImageUrls[i];t_sources[j] = g_scSources[i];t_relatedLinkUrls[j] = g_scRelatedLinkUrls[i];t_relatedLinkText[j] = g_scRelatedLinkText[i];t_PGs[j] = g_scPGs[i];t_PSs[j] = g_scPSs[i];t_IDs[j] = g_scIDs[i];j++;}}oPlaylist.AddAll(t_GUIDs, t_videoPaths, t_headlines, t_captions, t_imageUrls, t_sources, t_relatedLinkUrls, t_relatedLinkText, t_PGs, t_PSs, t_IDs);oPlaylist.PutNext(g_scGuids[a], g_scVideoUrls[a], g_scHeadlines[a], g_scCaptions[a], g_scImageUrls[a], g_scSources[a], g_scRelatedLinkUrls[a], g_scRelatedLinkText[a], g_scPGs[a], g_scPSs[a], g_scIDs[a]);}function handleThumbClick(ind, isLoading){var i = (ind + oNavBar.CurrentRatchet) % oNavBar.HTML.length;if (g_types[i] == "Weather"){showWeather();return;}if (g_types[i] == "Stocks"){showStocks();return;} var inPlaylistAtPos = oPlaylist.IndexOf(g_GUIDs[i]); var isPlaying = (oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING); var currentItemIsAd = oMediaPlayer.IsPlayingAd;if (inPlaylistAtPos != -1){if (currentItemIsAd){oMessagePopup.AutoHide("The selected video will play after the advertisement");playItemAfterAd(inPlaylistAtPos);return;}if (inPlaylistAtPos == oPlaylist.Position){if (isLoading){oMessagePopup.AutoHide("The selected video is currently loading");return;}else if (isPlaying){oMessagePopup.AutoHide("The selected video is currently playing");return;}}oMessagePopup.AutoHide("Preparing to play the selected video");playItemAfterAd(inPlaylistAtPos);return;}if (!oPlaylist.PutLast(g_GUIDs[i], g_videoPaths[i], g_headlines[i], g_captions[i], g_imageUrls[i], g_sources[i], g_relatedLinkUrls[i], g_relatedLinkText[i], g_PGs[i], g_PSs[i], g_IDs[i]))return;onPlayListChange();if (isLoading || isPlaying){oMessagePopup.AutoHide("Adding the selected video to the playlist");return;}oMessagePopup.AutoHide("Preparing to play the selected video");playItemAfterAd(oPlaylist.Items.length-1);}function getTopic_Cat(topicInd, catInd){return (catInd==-1) ? topicInd : topicInd + "_" + catInd;}function ImagePreloader() {this.Init = _ipInit;this.Start = _ipStart;this.GetNext = _ipGetNext;this.ImageOb = new Image();this.ImageOb.onload = function(){ oImagePreloader.GetNext() };this.LoadFunction = function(){ oImagePreloader.ImageOb.src = oImagePreloader.Images[oImagePreloader.NowInd]; };this.TimerId = null;}function _ipInit(imageArray){this.Images = imageArray;}function _ipStart(){this.NowInd = -1;this.GetNext();}function _ipGetNext(){window.clearTimeout(this.TimerId);this.NowInd++;if (this.NowInd <= this.Images.length-1){this.TimerId = window.setTimeout(this.LoadFunction, 1);}}function JsPreloader() {this.Init = _jsInit;this.Load = _jsLoad;this.LoadNext = _jsLoadNext;this.Urls = new Array();this.NowLoading = -1;}function _jsInit(topicIds, catIds, client){this.TopicIds = topicIds;this.CatIds = catIds;this.Client = client;}function _jsLoad(nowTopicInd, nowCatInd){this.Urls = new Array();this.NowLoading = -1;this.NowTopic = nowTopicInd;this.NowCat = nowCatInd;var idArray = new Array();if (nowTopicInd == -1){idArray = this.TopicIds;}else if (nowCatInd == -1){idArray = this.CatIds[nowTopicInd];}if (idArray != null){for (var i=0; iind; i--){this.Items[i] = this.Items[i-1];} this.Items[ind] = item;if (inPlaylistAtPos != -1){if (inPlaylistAtPos <= ind){this.Remove(inPlaylistAtPos);if (this.Position > 0)this.Position = this.Position-1;}else {this.Remove(inPlaylistAtPos+1);}}return this.OK;}oMessagePopup.Warning("The video was not added to your playlist because your list is full. The maximum number of videos your playlist can contain is " + this.MaxLength + ".", "");return this.MAX;}function _plRemove(ind){var tmpArr = new Array();var tmpInd = 0;for (var i=0; i=0 ; i--){item = new PlaylistItem(t_GUIDs[i], t_videoPaths[i], t_headlines[i], t_captions[i], t_imageUrls[i], t_sources[i], t_relatedLinkUrls[i], t_relatedLinkText[i], t_PGs[i], t_PSs[i], t_IDs[i]);if (oPlaylist.Insert(item, 0) != oPlaylist.OK)return;}var startItemGuid = getStartupParam("i");if (startItemGuid == "") startItemGuid = getStartupParam("g");if (startItemGuid != ""){var url = urlToGuidLookup(g_startUpParams);oDataFetcher.GetData(url, onGetItemByGuid, onGetItemByGuidFail);}else {DeviceSpecialStart();}}}catch (e){onGetPlaylistFail();}}function onGetPlaylistFail(){if ((getStartupParam("g")!="") || (getStartupParam("i")!="") || (getStartupParam("r")!="") || (getStartupParam("prepend")!="") || (getStartupParam("replace")!="")){var url = urlToGuidLookup(g_startUpParams);oDataFetcher.GetData(url, onGetItemByGuid, onGetItemByGuidFail);}else {DeviceDefaultStart();}}function onGetItemByGuid(){try{if (oDataFetcher.Data == ""){onGetItemByGuidFail();return;}eval(oDataFetcher.Data);var item;for (var i=t_GUIDs.length-1; i>=0 ; i--){item = new PlaylistItem(t_GUIDs[i], t_videoPaths[i], t_headlines[i], t_captions[i], t_imageUrls[i], t_sources[i], t_relatedLinkUrls[i], t_relatedLinkText[i], t_PGs[i], t_PSs[i], t_IDs[i]);if (oPlaylist.Insert(item, 0) != oPlaylist.OK)return;}DeviceSpecialStart();}catch (oError){onGetItemByGuidFail();}}function onGetItemByGuidFail(){DeviceDefaultStart();}function getInitialNavView(){var t_topicName = (getStartupParam("m")!="") ? getStartupParam("m") : getStartupParam("menu");var t_categoryName = (getStartupParam("mi")!="") ? getStartupParam("mi") : getStartupParam("menuItem");if (t_topicName!= null){var loadCategory = false;var initTopic = -1;var initCat = -1;for (var a=0; a0; i--){child = ob.children(i-1);ob.removeChild(child);}}function addDiv(ob){var newDiv = document.createElement("DIV");return ob.appendChild(newDiv);}function imageTag(src, w, h, className){var tag = " 0);var t_vidSize;if (!t_playing){t_vidSize = VIDEOSIZE_NONE;}else if (t_navView == NAV_VIEW_HOME){t_vidSize = VIDEOSIZE_MEDIUM;}else {t_vidSize = VIDEOSIZE_SMALL;_playAfterThumbnailLoad = true;t_playing = false;}setVideoSize(t_vidSize);setNavView(t_navView);refreshFooter();updateBacklist();if (t_playing){oPlaylist.MoveTo(0);playCurrent();}}function setVideoSize(videoSize){if (g_nowVideoSize == videoSize)return;g_nowVideoSize = videoSize;window.clearTimeout(iFullScreenTimerId);switch (videoSize){case VIDEOSIZE_NONE:setBodyBg("131517");toggleSlideshow(SLIDESHOW_ON);oMediaPlayer.SetDimensions(0, 0, 0, 0, 0, 0, 0, 0);oAdManager.SetPos(202, 418);oAdManager.Show();oBanner.Show();oBkg1.Show();oBkg2.Hide();oBrandingArea.Hide();oBrowseHeader.Show();oCategoryChooser.Hide();oFullScreenPanel.Hide();oMediaPlayer.Hide();oNavBar.Show();oNowPlaying.Hide();oOnDeckArea.Hide();oProgressBar.Hide();oSlideShow.Show();oVideoMetadata.Hide();oVideoControls.Hide();break;case VIDEOSIZE_SMALL:setBodyBg("131517");toggleSlideshow(SLIDESHOW_OFF);oBrandingArea.SetDimensions(41, 10, 35, 243);oMediaPlayer.SetDimensions(385, 41, 160, 120, 3, 3, 3, 3);oAdManager.SetPos(171, 422);oAdManager.Show();oBanner.Show();oBkg1.Show();oBkg2.Hide();oBrandingArea.Show();oBrowseHeader.Show();oCategoryChooser.Hide();oFullScreenPanel.Hide();oMediaPlayer.Show(true);oNavBar.Show();oNowPlaying.Hide();oOnDeckArea.Hide();oProgressBar.Hide();oSlideShow.Hide();oVideoMetadata.Show();oVideoControls.Hide();oMediaPlayer.Div.focus();break;case VIDEOSIZE_MEDIUM:setBodyBg("131517");toggleSlideshow(SLIDESHOW_OFF);oBrandingArea.SetDimensions(51, 20, 29, 201);oMediaPlayer.SetDimensions(226, 41, 320, 240, 3, 3, 3, 3);oAdManager.SetPos(315, 16);oAdManager.Show();oBanner.Show();oBkg1.Hide();oBkg2.Show();oBrandingArea.Show();oBrowseHeader.Hide();oCategoryChooser.Hide();oFullScreenPanel.Hide();oMediaPlayer.Show(true);oNavBar.Hide();oNowPlaying.Show();oOnDeckArea.Show();oProgressBar.Show();oSlideShow.Hide();oVideoMetadata.Hide();oVideoControls.PlayingView();oVideoControls.Show();oVideoControls.Play.focus();break;case VIDEOSIZE_LARGE:setBodyBg("000000");oMediaPlayer.SetDimensions(42, 0, 476, 357, 0, 66, 0, 66);oAdManager.Hide();oBanner.Hide();oBkg1.Hide();oBkg2.Hide();oBrandingArea.Hide();oBrowseHeader.Hide();oCategoryChooser.Hide();oFullScreenPanel.Show();oMediaPlayer.Show(false);oNavBar.Hide();oNowPlaying.Hide();oOnDeckArea.Hide();oProgressBar.Hide();oSlideShow.Hide();oVideoMetadata.Hide();oVideoControls.FullScreenView();oVideoControls.Show();oVideoControls.Play.focus();startFsCountdown();break;case VIDEOSIZE_FULL:setBodyBg("000000");toggleSlideshow(SLIDESHOW_OFF);oMediaPlayer.SetDimensions(0, 0, 560, 420, 0, 0, 0, 0);oAdManager.Hide();oBanner.Hide();oBkg1.Hide();oBkg2.Hide();oBrandingArea.Hide();oBrowseHeader.Hide();oCategoryChooser.Hide();oFullScreenPanel.Hide();oMediaPlayer.Show(false);oNavBar.Hide();oNowPlaying.Hide();oOnDeckArea.Hide();oProgressBar.Hide();oSlideShow.Hide();oVideoMetadata.Hide();oVideoControls.Hide();break;}oBanner.Refresh();refreshStatus();}function setBodyBg(clr){document.body.style.background = clr;}function refreshStatus(){var ps = oMediaPlayer.GetPlayState();var str;if (g_ReadyState < rs_Complete)str = "Connecting";else if (ps == PLAYSTATE_BUFFERING)str = "Loading";else if (ps == PLAYSTATE_STOPPED)str = "Stopped";else if (ps == PLAYSTATE_PLAYING)str = "Playing";else if (ps == PLAYSTATE_PAUSED)str = "Paused";else if (ps == PLAYSTATE_FWD)str = "Fast-forwarding";else if (ps == PLAYSTATE_REW)str = "Rewinding";else str = "";switch(g_nowVideoSize){case VIDEOSIZE_MEDIUM:oProgressBar.SetStatus(str);break;case VIDEOSIZE_LARGE:oVideoControls.SetStatus(str);break;}}function startFsCountdown(){window.clearTimeout(iFullScreenTimerId);iFullScreenTimerId = window.setTimeout(goFullScreen, 15000);}function goFullScreen(){setVideoSize(VIDEOSIZE_FULL);refreshFooter();updateBacklist();}function setNavView(view){oDataFetcher.ClearQueue();g_nowNavView = view;switch (view){case NAV_VIEW_HOME:g_nowTopicInd = -1;g_nowCatInd = -1;setMetaDataGlobals(null, null, null, null, null, null, null, null, null, null, null, null, null, null);oBrowseHeader.Clear();oNavBar.Clear();oNavBar.InitTopics(g_topics);oNavBar.SetFocus();break;case NAV_VIEW_PLAYLIST:var t_types = new Array();var t_GUIDs = new Array();var t_headlines = new Array();var t_captions = new Array();var t_imageUrls = new Array();var t_videoPaths = new Array();for (var i=0; i oNavBar.MenuCount)oNavBar.SetRatchet(oPlaylist.Position);else oNavBar.SetRatchet(0);oNavBar.SetFocus();if (_playAfterThumbnailLoad){_playAfterThumbnailLoad = false;oPlaylist.MoveTo(0);playCurrent();}break;case NAV_VIEW_BROWSE:var topicId = (g_nowCatInd == -1) ? g_topicIds[g_nowTopicInd] : g_catIds[g_nowTopicInd][g_nowCatInd];var topicName = (g_nowCatInd == -1) ? g_topics[g_nowTopicInd] : g_cats[g_nowTopicInd][g_nowCatInd];oNavBar.Clear();oCategoryChooser.Hide();oBrowseHeader.ShowLoadingMessage(topicName);var url = urlToJsLoader(topicId, "Anduril");oDataFetcher.GetData(url, onBrowseLoadComplete, onBrowseLoadFail);break;default:break;}oBanner.Refresh();}function onBrowseLoadComplete(){try{eval(oDataFetcher.Data);setMetaDataGlobals(t_types, t_GUIDs, t_PGs, t_PSs, t_IDs, t_sources, t_headlines, t_captions, t_imageTypes, t_imageUrls, t_videoPaths, t_articleUrls, t_relatedLinkUrls, t_relatedLinkText);oImagePreloader.Init(g_imageUrls);oImagePreloader.Start();completeBrowseView();}catch (error){onBrowseLoadFail();}refreshFooter();if (_playAfterThumbnailLoad){_playAfterThumbnailLoad = false;oPlaylist.MoveTo(0);playCurrent();}}function onBrowseLoadFail(){var topicName = (g_nowCatInd == -1) ? g_topics[g_nowTopicInd] : g_cats[g_nowTopicInd][g_nowCatInd];var badCat = getTopic_Cat(g_nowTopicInd, g_nowCatInd);oCategoryChooser.AppendBadCat(badCat);alert("The " + topicName + " category is currently unavailable. Please try again later.");setNavView(NAV_VIEW_HOME);}function completeBrowseView(){var headerText= ""+ g_topics[g_nowTopicInd]+ " — "+ ((g_nowCatInd == -1) ? "All" : g_cats[g_nowTopicInd][g_nowCatInd])+ "";var itemCount = g_headlines.length;oBrowseHeader.MediaCount = itemCount;oBrowseHeader.SetText1(headerText);oNavBar.InitThumbnails(g_headlines, g_imageUrls, g_GUIDs, g_topics[g_nowTopicInd]);oNavBar.SetFocus();}function refreshFooter(){switch (g_nowVideoSize){case VIDEOSIZE_MEDIUM:oFooter.DrawPlayingView();break;case VIDEOSIZE_LARGE:oFooter.Hide();break;case VIDEOSIZE_FULL:oFooter.Hide();break;default:switch (g_nowNavView){case NAV_VIEW_HOME:oFooter.DrawHomeView();break;case NAV_VIEW_PLAYLIST:oFooter.DrawPlaylistView();break;default:oFooter.DrawBrowseView();break;}break;}}function refreshPlaystateFeedback(){oBrandingArea.Refresh();oNowPlaying.Refresh(false);oNavBar.Refresh();oOnDeckArea.Refresh();oVideoMetadata.Refresh(false);oVideoControls.HideShowBtns();}function toggleSlideshow(setting){g_nowSlideshowMode = setting;if (g_nowSlideshowMode == SLIDESHOW_ON){var slides = new Array();for (var i=0; i';}var abstracts = new Array();for (var i=0; i" + "

" + "

" + g_ssCaptions[i] ;var h2 = truncateToHeight(295, 135, "20px", h1);abstracts[i]= ""+ h2+ "

";}oSlideShow.Init(slides, abstracts);iSlideShowTimerId = window.setTimeout(nextSlide, iSlideShowInterval);}else {window.clearTimeout(iSlideShowTimerId);}}function nextSlide(){window.clearTimeout(iSlideShowTimerId);oSlideShow.Next();iSlideShowTimerId = window.setTimeout(nextSlide, iSlideShowInterval);}function updateBacklist(){oBacklistManager.Append(g_nowTopicInd, g_nowCatInd, g_nowVideoSize, g_nowNavView);}function videoGoBack(){if (oCategoryChooser.Div.style.visibility == "visible"){oCategoryChooser.Hide();oFooter.SetFocus();return;}if (oBacklistManager.Items.length<2){if (okToLeaveApp()){oPlaylist.RemoveAll();oMediaPlayer.Stop();return false;}else {return true;}}var prevState = oBacklistManager.Items[oBacklistManager.Items.length -2];var prevTopic = prevState[0];var prevCat = prevState[1];var prevVidSize = prevState[2];var prevNavView = prevState[3];oBacklistManager.RemoveLast();if ((prevNavView == NAV_VIEW_PLAYLIST) && (oPlaylist.Items.length == 0))return videoGoBack();if (prevVidSize >= VIDEOSIZE_LARGE && oMediaPlayer.GetPlayState() == PLAYSTATE_STOPPED)return videoGoBack();if ((prevVidSize == VIDEOSIZE_NONE) && (g_nowSlideshowMode != SLIDESHOW_ON))prevVidSize = VIDEOSIZE_SMALL;if (oPlaylist.Items.length == 0)prevVidSize = VIDEOSIZE_NONE;if ((g_nowTopicInd == prevTopic) && (g_nowCatInd == prevCat) && (g_nowVideoSize == prevVidSize) && (g_nowNavView == prevNavView))return videoGoBack();g_nowTopicInd = prevTopic;g_nowCatInd = prevCat;setVideoSize(prevVidSize);setNavView(prevNavView);refreshFooter();return true;}function clickHelp(){if (okToLeaveApp())CallPaneHelp(PH_topicTOC,'MSNTV_TRS_TOC_Videos.htm');}function clickSlide(){var a = oSlideShow.Slides[oSlideShow.CurrentSlide].ShowcaseIndex;addSlideshowToPlaylist(a);oMessagePopup.AutoHide("Adding top videos to the playlist and preparing to play");setVideoSize(VIDEOSIZE_MEDIUM);setNavView(NAV_VIEW_PLAYLIST);refreshFooter();updateBacklist();playItemAfterAd(oPlaylist.Position+1);}function clickPlayTop(){clickSlide();}function clickPlayAll(){var topicName = (g_nowCatInd == -1) ? g_topics[g_nowTopicInd] : g_cats[g_nowTopicInd][g_nowCatInd];if (catHasClipsNotInPlaylist()){oMessagePopup.AutoHide("Adding all " + htmlDecode(topicName) + " videos to the playlist and preparing to play");addCategoryToPlaylist();setVideoSize(VIDEOSIZE_MEDIUM);updateBacklist();refreshFooter();playItemAfterAd(oPlaylist.Position+1);}else {clickThumb(0);}}function clickIcon(i){var iconInd = (i + oNavBar.CurrentRatchet) % oNavBar.HTML.length; try{var nowIcon = eval("menuItem_" + i);var ob;if (nowIcon.offsetLeft < 230){if (oVideoMetadata.IsSelectable())ob = oVideoMetadata.GetSelectableOb();if (oSlideShow.AbstractIsSelectable())ob = oSlideShow.AbstractDiv.Button;if (oOnDeckArea.IsSelectable())ob = oOnDeckArea.LinkSpan;}else {if (oAdManager.IsSelectable())ob = oAdManager.SelectableOb();if (oSlideShow.PanelIsSelectable())ob = oSlideShow.SlidePanel;if (oMediaPlayer.IsSelectable())ob = oMediaPlayer.Div;}if (ob!=null)ob.focus();}catch (e){}if (iconInd == oNavBar.HTML.length-1){clickPlaylistButton();}else {g_nowTopicInd = iconInd;g_nowCatInd = -1;setNavView(NAV_VIEW_BROWSE);updateBacklist();}}function overThumb(i){if (g_nowNavView != NAV_VIEW_HOME){var h = "(" + oNavBar.GetThumbIndex(i) + " of " + oBrowseHeader.MediaCount + ")";oBrowseHeader.SetText2(h);}}function clickBrowseButton(){oCategoryChooser.Show(g_nowTopicInd, g_nowCatInd);}function overBrowseButton(){oCategoryChooser.Hide();}function offBrowseButton(){oCategoryChooser.Hide();oNavBar.SetFocus();}function clickPip(){switch (g_nowVideoSize){case VIDEOSIZE_SMALL:setVideoSize(VIDEOSIZE_MEDIUM);updateBacklist();refreshFooter();break;case VIDEOSIZE_MEDIUM:setVideoSize(VIDEOSIZE_LARGE);updateBacklist();refreshFooter();break;}}function clickMoreInfo(){setVideoSize(VIDEOSIZE_SMALL);refreshFooter();updateBacklist();}function clickNormalView(){setVideoSize(VIDEOSIZE_MEDIUM);refreshFooter();updateBacklist();oVideoControls.Play.focus();}function clickBrwsBtn(i,j){oFooter.SetFocus();toCat(i,j);}function toCat(a,b){g_nowTopicInd = a;g_nowCatInd = b;setNavView(NAV_VIEW_BROWSE);updateBacklist();}function clickPlaylistButton(){if (oPlaylist.Items.length == 0){alert("Your playlist is empty. To add videos to your playlist, first choose a category, then find the video you want to add and press OK on your keyboard or remote control.");return;}if (g_nowVideoSize == VIDEOSIZE_MEDIUM)setVideoSize(VIDEOSIZE_SMALL);g_nowTopicInd = -1;g_nowCatInd = -1;setNavView(NAV_VIEW_PLAYLIST);refreshFooter();updateBacklist();}function clickHomeButton(){if (g_nowVideoSize == VIDEOSIZE_MEDIUM)setVideoSize(VIDEOSIZE_SMALL);setNavView(NAV_VIEW_HOME);refreshFooter();updateBacklist();}function clickDeleteAll(){if (oMessagePopup.Confirm("Are you sure you want to empty your playlist?")){oPlaylist.RemoveAll();g_ForceFullStop = true;oMediaPlayer.Stop();onPlaylistEnd();oMediaPlayer.IsPlayingAd = false;}}function clickAd(){DeviceClickAway(oAdManager.GetClickThroughUrl());}function clickFullScreen(){setVideoSize(VIDEOSIZE_LARGE);updateBacklist();refreshFooter();}function clickRelatedLink(url, ind){var trackingUrl = oTrackingManager.TrackRelatedLink(url, ind, oPlaylist.GetCurrent());DeviceClickAway(trackingUrl);}function onPlayListChange(){refreshPlaystateFeedback();}function onPrepareToPlay(){if (g_nowVideoSize == VIDEOSIZE_NONE){setVideoSize(VIDEOSIZE_SMALL);updateBacklist();refreshFooter();}}function onPlaylistEnd(){setNavView(NAV_VIEW_HOME);setVideoSize(VIDEOSIZE_NONE);refreshFooter();updateBacklist();oNavBar.Refresh();oNavBar.SetFocus();}function trackViewedClip(guid){var url = urlToUserActivity();url += "action=saveGuid&guid=" + guid;oDataFetcher.GetData(url, onTrackClip, onTrackClipFail);}function onTrackClip(){}function onTrackClipFail(){}function ratchetNavBar(dir, i){if (oNavBar.HTML.length > oNavBar.MenuCount){if (dir=='l')if (oNavBar.CurrentRatchet==0)oNavBar.Draw(oNavBar.HTML.length-1);else oNavBar.Draw(oNavBar.CurrentRatchet-1);else if (oNavBar.CurrentRatchet==oNavBar.HTML.length-1)oNavBar.Draw(0);else oNavBar.Draw(oNavBar.CurrentRatchet+1);}if (g_nowNavView != NAV_VIEW_HOME){var h = "(" + oNavBar.GetThumbIndex(i) + " of " + oBrowseHeader.MediaCount + ")";oBrowseHeader.SetText2(h);}}function clickThumb(ind){handleThumbClick(ind, oMediaPlayer.IsLoading);} \ No newline at end of file diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.886/localhost-1700/HomeBB/Anduril/CssTransforms/en-us/Main.css b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.886/localhost-1700/HomeBB/Anduril/CssTransforms/en-us/Main.css new file mode 100644 index 00000000..32371c5d --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.886/localhost-1700/HomeBB/Anduril/CssTransforms/en-us/Main.css @@ -0,0 +1 @@ +.body{margin:0;font-family:Segoe;}.topDiv{width:560;height:277;background-image: url(/Images/HomeBB/BBHomeBG.jpg););}.headerDiv{width:560;height:26;color: #ffffff;}.headerSignOut{position:absolute;top:4px;left:476px;}.headerDate{position:absolute;top:4px;left:358px;}.psContainer{position:absolute;top:26;width:560;height:114;filter:progid:DXImageTransform.Microsoft.Fade(duration=1,overlap=.1);background-image: url(/Images/HomeBB/BBHomeBG.jpg););background-position: 0px -26px;}.psArea{width:560;height:114;display:none;}.psDiv {position:absolute;top:5;height:109;width:172;display:none; overflow:hidden;}.psDiv0{left:10;}.psDiv1{left:194;}.psDiv2{left:378;}.psImgDiv{position:absolute;width:172;height:85;overflow:hidden;border:1px solid;border-color:BECDF8;}.psImg{position:relative;width:172;height:113;top:-8;}.psImgDflt{position:relative;width:172;height:85;}.psCropTxt{position:absolute;top:88;width:172;color:OE296B;overflow: hidden; text-overflow:ellipsis; white-space:nowrap;display:none;}.psMarquee{position:absolute;top:88;width:172;height:21;display:none;}.psError{position:absolute;width:400;height:100;padding:10;display:none;}.rotatorDiv{position:absolute;top:140;width:187;height:117;filter:progid:DXImageTransform.Microsoft.Fade(Overlap=0.2, Duration=0.5);background-image: url(/Images/HomeBB/BBHomeBG.jpg););background-position: 0px -139px;}.rotatorSelect{position:absolute;top:8;left:10;width:171;height:101;}.rotatorPanel{position:absolute;top:5;left:10;width:171;height:101;display:none;font:18;color:202020;}.rotatorNextArea{position:absolute;left:10;top:250;height:20;width:171;}.nextBtn{position:absolute;left:5;height:20px;width:20px;behavior: url(#default#alphaImageLoader);src:/Images/HomeBB/NextBtn.png}.nextTxt{position:absolute;left:30;font:16;color:53545A;}.rotatorHeader{font:17;color:DBFFFF;}.wthrSpan1{font:24;weight:bold;}.wthrSpan2{font:16;color:1D1D1D;}.wthrSpan3{font-size:18px;zoom:70%;}.videoTitle{position:relative;top:0;}.videoImage{position:relative;top:10px;}.videoHeadline{position:relative;top:20px;left:5px;font:18;width:210;color:333333;}.promoText{color:14224B;size:18;}.usgTipsIcon{behavior: url(#default#alphaImageLoader);src: /Images/UsingMsntv/CenterIconTips.png;height:42px;width:43px;} .usgTTTIcon{behavior: url(#default#alphaImageLoader);src: /Images/UsingMsntv/CenterIconTTT.png;height:42px;width:43px;}.usgNwsIcon{behavior: url(#default#alphaImageLoader);src: /Images/UsingMsntv/CenterIconNewsletter.png;height:42px;width:43px;}.titleTxt{font:16;width:81;height:70;overflow:hidden; text-overflow:ellipsis; }.titleTxtPromo{font:16;width:120;height:70;overflow:hidden; text-overflow:ellipsis; }.titleTxtPromoNoImg{font:16;width:170;height:70;overflow:hidden; text-overflow:ellipsis; }.headlineDiv{position:absolute;top:137;left:193;height:137;width:367;overflow-y: auto;behavior: url(/Shared/Anduril/HTC/en-us/ScrollingDIV.htc);padding:8 10 0 0;}.headlineTitle{font:19;color:E0F6FF;weight:bold;}.headlineText{font:18;color:061537;text-decoration:none;text-overflow:ellipsis;}.rotatorStkTxt{font:16;color:14224B;}.rotatorStkRule{background-color: #6eb695;height: 1px;}.searchBarDiv{position:absolute;top:274;width:560;height:34;background-image:url(/Images/HomeBB/HPSearchBG.jpg);}a.searchLink:link, a.searchLink:visited, a.searchLink:hover{color: #f2f2f2;}.searchBarText{position:absolute;top:7px;left:8px;font-weight:bold;color:#f2f2f2;}.searchInput{background-color:#485364;color:white;}.searchBarRule{position:absolute;top:308; left:0;width:560;height:2px; background-color:#1c4373;}.navBarDiv{position:absolute; top:310px;left:0;height:70;width:560;background-image: url(/Images/Home/HomeLaunchBarBG.jpg);} \ No newline at end of file diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.886/localhost-1700/HomeBB/Anduril/JsTransforms/en-us/Main.js b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.886/localhost-1700/HomeBB/Anduril/JsTransforms/en-us/Main.js new file mode 100644 index 00000000..9c584f11 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.886/localhost-1700/HomeBB/Anduril/JsTransforms/en-us/Main.js @@ -0,0 +1 @@ +function Utils(){this.AddDiv = _utAddDiv;this.AddImg = _utAddImg;this.AddSpan = _utAddSpan;this.AddMarquee = _utAddMarquee;this.GetAppLoc = _utGetAppLoc;this.ImageTag = _utImageTag;this.ParseSeconds = _utParseSeconds;this.GetLargeImgUrl = _utGetLargeImgUrl;this.GetCookie = _utGetCookie;this.SetCookie = _utSetCookie;this.GetTimeStr = _utGetTimeStr;this.GetDateStr = _utGetDateStr;}function _utGetAppLoc(){var a = location.href;var b = a.substring(0,a.indexOf('://')+3);var c = a.substring(b.length, a.length);var d = c.substring(0,c.indexOf('/'));return b + d;}function _utAddSpan(ob){var newSpan = document.createElement("SPAN");return ob.appendChild(newSpan);}function _utAddDiv(ob){var newDiv = document.createElement("DIV");return ob.appendChild(newDiv);}function _utAddMarquee(ob, behav, dir, truSpd){var tag = document.createElement("MARQUEE");var newOb = ob.appendChild(tag);newOb.behavior = behav;newOb.direction = dir;newOb.trueSpeed = truSpd;return newOb;}function _utAddImg(ob){var newImg = document.createElement("IMG");return ob.appendChild(newImg);}function _utParseSeconds(sec){var mm = Math.floor(sec/60);var ss = sec - mm*60;if (mm == -1)return "00:00";else return ((mm < 10) ? "0" + mm : mm) + ":" + ((ss < 10) ? "0" + ss : ss);}function _utImageTag(src, w, h, className){var tag = "";this.CropTxt[i].innerHTML = captionArray[i];this.Marquee[i].innerHTML = captionArray[i];var div = eval("this.Div"+i);div.style.display = "block";this.Marquee[i].stop();this.CropTxt[i].style.display = "block";}}function _psOver(i){this.CropTxt[i].style.display = "none";this.Marquee[i].style.display = "block";this.Marquee[i].start();this.NowScrolling = i;}function _psOff(i){this.Marquee[i].stop();this.Marquee[i].style.display = "none";this.CropTxt[i].style.display = "block";}function _psShowDefaultImg(img){img.src = "/Images/HomeBB/defaultVideoPromo.jpg";img.className = "psImgDflt";}function Debugger(div){this.Div = div;this.Init = _dbInit;this.Append = _dbAppend;this.Overwrite = _dbOverwrite;}function _dbInit(){this.Text1 = oUtils.AddSpan(this.Div);this.Text1.className = "dbgTxt dbgTxt1";}function _dbAppend(html){this.Text1.innerHTML += html + "
";}function _dbOverwrite(html){this.Text1.innerHTML = html;}function Rotator(div, nextSpan){this.Div = div;this.NextSpan = nextSpan;this.Init = _roInit;this.Start = _roStart;this.ShowInd = _roShowInd;this.Show = _roShow;this.Hide = _roHide;this.Rotate = _roRotate;this.Click = _roClick;}function _roInit(types, counts, labels, intervalMls){this.Interval = intervalMls;var rotations = new Array();var panelLabels = new Array();var counters = new Array();for (var i=0; i= 1.2);var promoDataHasLoaded = false;var flourishIsDone = false;var flourishTimer;var promoError;var oUtils;var oDataFetcher;var oPromoStage;var oRotator;function init(){var rotatorInterval = 15000;oUtils = new Utils();oDataFetcher = new DataFetcher();oPromoStage = new PromoStage(psContainer, psFlourish, psMainDiv, psDiv0, psDiv1, psDiv2, psErrorDiv);oRotator = new Rotator(rotatorDiv, rotatorNextText);gAppLoc = oUtils.GetAppLoc();gLocalDateStr = oUtils.GetDateStr();gLocalTime = oUtils.GetTimeStr();day.innerHTML = gLocalDateStr;day.style.display = "inline";oDataFetcher.Init();oPromoStage.Init();oRotator.Init(rotationTypes, rotationCounts, rotationLabels, rotatorInterval); var url = "/VideoContent.ashx?contentType=userPlaylist&feature=homepagevideo&time=" + gLocalTime + "&excludeGuids=" + rotatorGuids;oDataFetcher.GetData(url, onLoadVideoPromos, onLoadPromosFail);oRotator.ShowInd(0, true);oRotator.Timer = window.setTimeout(function(){oRotator.Start()}, rotatorInterval);var ck = "bbhomeflourish";if (oUtils.GetCookie(ck) == null){oPromoStage.ShowFlourish();oUtils.SetCookie(ck, "done");}else {flourishIsDone = true; tryShowPromos("");}}function clickSlide(ind){var guids = oPromoStage.Guids;if (guids != null)toVideoApp(guids[ind], guids);}function clickRotatorVideo(guid){var guidstr = rotatorGuids.substring(1,rotatorGuids.length-1);var guids = guidstr.split('|');toVideoApp(guid, guids);}function toVideoApp(firstGuid, allGuids){var s = firstGuid;for (var i=0; i 2){oPromoStage.Load(g_scGuids, g_scImageUrls, g_scHeadlines);}else {promoError = "0";}}catch (error){promoError = "1";}tryShowPromos();}function onLoadPromosFail(){promoDataHasLoaded = true;promoError = "2";tryShowPromos();}function tryShowPromos(){if (promoDataHasLoaded && flourishIsDone){if (promoError != null)oPromoStage.ShowError(promoError);else oPromoStage.ShowPromos();}}function onFlourishEvent(command, args){switch (command){case "endFlourish":flourishIsDone = true; tryShowPromos(); break;}}function handleLoopingDivReady(){}var gScriptLoaded = true; \ No newline at end of file diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.886/localhost-1700/MSNVideo/Anduril/CSSTransforms/en-us/Main.css b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.886/localhost-1700/MSNVideo/Anduril/CSSTransforms/en-us/Main.css new file mode 100644 index 00000000..f6475212 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.886/localhost-1700/MSNVideo/Anduril/CSSTransforms/en-us/Main.css @@ -0,0 +1 @@ +DIV{position:absolute;}.bodyDiv{width:560;height:420;overflow:hidden;}.bkg1{position:absolute;top:34;width:560;height:216;background-image:url(/Images/MSNVideo/ContentBg.jpg);}.bkg2{position:absolute;top:34;width:560;height:325;background-color:131517;}.bkg2spn1{position:absolute;top:9;left:16;width:530;height:265;background-color:010408;}.bkg2spn2{position:absolute;top:274;left:16;width:530;height:46;background-image:url(/Shared/Anduril/Images/en-us/_debug/Panels/Images/PanelPlayerLargeBG.jpg);}.bkg2spn3{position:absolute;top:320;left:16;width:530;height:6;background-color:16181A;}a{color:ffffff;}.bannerDiv{position:absolute;width:560;height:33;background-image:url(/Images/MSNVideo/Header.jpg);}.bannerLogo{position:absolute;left:22;top:6;font:bold 20;}.bannerHelp{position:absolute;left:469;top:6;font:18;}.bannerHelpImg{position:relative;left:4px;margin-left:4px;width:20;height:20;background-repeat: no-repeat;behavior:url(#default#alphaImageLoader);background:url(/Shared/Anduril/Images/en-us/_debug/Shared/Images/Icon_Help_RelatedLink.png);}.mediaPlayerDiv{position:absolute;}#mpStatusDiv{position:absolute;left:100;top:300;width:400;height:100;color:F2F2F2;}#pbDiv{position:absolute;top:285;left:226;width:320;height:25;color:87A3CA;}#pbTxt3{font-size:16;overflow: hidden; text-overflow:ellipsis; white-space:nowrap;width:115;}.vcDiv{position:absolute;width:320;height:46;}.vcDivPlaying{top:308;left:226;}.vcDivFullScrn{top:367;left:15;}.vcBtn{position:relative;width:39;height:46;behavior:url(#default#alphaImageLoader);}.vcMuteBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlMute.png); }.vcUnmuteBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlUnmute.png); }.vcPlayBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlPlay.png); }.vcPauseBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlPause.png); }.vcStopBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlStop.png); }.vcRewBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlRew.png); }.vcFwdBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlFF.png); }.vcPrevBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlPrev.png); }.vcNextBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlNext.png); }.vcFullScrn{position:absolute;left:200;top:12;font:16;}.vcNormView{position:absolute;left:385;top:24;font:16;}.vcStatus{position:absolute;left:392;top:3;width:151;white-space:nowrap;font-size:16;color:F2F2F2;}.brandingDiv{width:560;height:420;}.brandingAreaImage{position:absolute;}.vmDiv{position:absolute;top:80;height:146;left:15;width:348;overflow:hidden;}.videoMetadataInnerDiv{width:323;padding-bottom:16;}.vmTxt1{width:323;color:F2F2F2;padding-bottom:18;font:16;}.vmTxt2{width:323;color:87A3CA;font:bold 18;}.vmTxt3{width:323;color:87A3CA;font:bold 18;line-height:16px;padding-bottom:16;}.vmTxt4{width:323;color:87A3CA;padding-bottom:16;font:16;line-height:16px;}.vmLink{width:307;height:16;color:87A3CA;font:16;line-height:16px;overflow: hidden; text-overflow:ellipsis; white-space:nowrap;}.vmArrw{width:15;}.nowPlayingDiv{position:absolute;top:51;left:15;width:200;font:16;line-height:16px;text-align:top;}.npMsg{padding-left:10;width:200;color:F2F2F2;padding-bottom:18;}.npUpNxt{padding:0 0 18 10;width:200;color:87A3CA;}.npTitle{padding:39 0 15 10;width:200;color:87A3CA;}.npArrw{margin-left:10;width:12;}.onDeckDiv{position:absolute;left:25;width:190;top:212;height:69;font:16;color:87A3CA;line-height:16px;}.odThumb{width:92;height:69;}.odTxt1{position:absolute;left:98;width:92;height:22;overflow:hidden;}.odTxt2{position:absolute;left:98;width:92;top:22;height:49;overflow:hidden;}.odTxt3{width:190;height:69;}.amDiv{position:absolute;width:124;height:34;padding:2;}.ssPanel{position:absolute;top:45;left:340;width:200;height:150;}.ssAbstract{position:absolute;top:45;left:16;}.ssAbstractTxt{position:absolute;left:7;height:135;width:295;overflow:hidden;}.ssBtn{position:absolute;top:150;font:16;}.navBarDiv{text-align:left;position:absolute;top:240;height:118;width:560;overflow-x:hidden; white-space:nowrap;vertical-align:top;}.navBarDivIcon{background-image:url(/Images/MSNVideo/NavBgIcon.jpg);}.navBarDivThmb{background-image:url(/Images/MSNVideo/NavBgThmb.jpg);}.nbIcnSpn{width:120;height:110;margin:8 0 0 9;}.nbIcnTab{background-repeat: no-repeat;behavior:url(#default#alphaImageLoader);margin:0 9 0 9; width:111;height:106;letter-spacing:-0.2mm;}.nbArrSpn{width:22;height:118;padding:45 2 57 2; }.nbArrw{width:18;height:18;background-repeat: no-repeat;behavior:url(#default#alphaImageLoader);}.nbArrw_l{background:url(/Shared/Anduril/Images/en-us/_debug/Shared/Images/ScrollIndicatorLeftGlobal.png);}.nbArrw_r{background:url(/Shared/Anduril/Images/en-us/_debug/Shared/Images/ScrollIndicatorRightGlobal.png);}.nbThmSpn{margin:33 0 10 0;height:75;vertical-align:top;overflow:hidden;}.nbThmSpnWide{width:189;margin-right:20;}.nbThmSpnNrrw{width:98;}.nbThmSpnHilite{width:189;background-color:212A39;margin-right:20;}.nbThmTbl{position:relative;table-layout:fixed;height:70;}.nbThmTblA{color:F2F2F2;}.nbThmTblB{color:7C92B1;}.nbThmImg{width:92;height:70;}.nbThmTxt{width:91;height:64;overflow:hidden;font:16;line-height:16px;}.nbThmDvdrIcon{position:absolute;width:20;height:20;z-index:500;top:52;background-image:url(/Images/MSNVideo/EndDivider.gif);}.nbThmDvdrThmb{position:absolute;behavior:url(#default#alphaImageLoader);background:url(/Images/MSNVideo/ThumbnailDivider.png);width:15;height:106;z-index:500;top:20;}.nbVertDvdr{position:absolute;width:4;height:98;top:12;background-image:url(/Images/MSNVideo/VerticalDivider.jpg);}.browseHeaderDiv{position:absolute;top:247;left:23;width:545;height:25;font:16;color:87A3CA;z-index:2;}.browseHeaderTxt1{}.browseHeaderTxt2{margin-left:6;}.browseHeaderArrw{position:absolute;left:400;}.browseHeaderLink{position:absolute;left:415;}.footerDiv{position:absolute;top:358;height:64;width:560;background:292B2B;padding:5 15 0 15;z-index:2;overflow:hidden;text-align:right;}.footArrw{padding:0 8 0 15; }.footBtn{padding-top:3;font:16;color:F2F2F2;}.fullScreenPanelDiv{position:absolute;top:359;height:61;width:560;}.fspBkg{position:absolute;height:61;}.fspLeft{width:15;background-image:url(/Shared/Anduril/Images/en-us/_debug/Panels/Images/PanelPlayerSmallLeftSide.jpg);}.fspCenter{left:15;width:530;background-image:url(/Shared/Anduril/Images/en-us/_debug/Panels/Images/PanelPlayerSmallMiddleStretch.jpg);}.fspRight{width:15;left:545;background-image:url(/Shared/Anduril/Images/en-us/_debug/Panels/Images/PanelPlayerSmallRightSide.jpg);}.brwsCatDiv{position:absolute;width:205;z-index:10;left:15;}.popup{position:absolute;padding:3 0 0 7;width:205;height:26;font:16;color:001332;behavior:url(#default#alphaImageLoader);overflow: hidden; text-overflow:ellipsis; white-space:nowrap;}.popupTop{background:url(/Images/MSNVideo/VideoPopupTop.png);}.popupTopHL{color:05529D;font-weight:bold;letter-spacing:-0.2mm;}.popupBttm{top:0;left:15;text-align:left;letter-spacing:-0.2mm;overflow: hidden; text-overflow:ellipsis; white-space:nowrap;background:url(/Images/MSNVideo/VideoPopupBttm.png);} \ No newline at end of file diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.886/localhost-1700/MSNVideo/Anduril/JsTransforms/en-us/Main.js b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.886/localhost-1700/MSNVideo/Anduril/JsTransforms/en-us/Main.js new file mode 100644 index 00000000..1c08ece9 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.886/localhost-1700/MSNVideo/Anduril/JsTransforms/en-us/Main.js @@ -0,0 +1 @@ +function Background(div){this.Div = div;this.Draw1 = _bkDraw1;this.Draw2 = _bkDraw2;this.Show = _bkShow;this.Hide = _bkHide;this.Clear = _bkClear;}function _bkDraw1(){this.Div.className = "bkg1";this.Clear();}function _bkDraw2(){this.Div.className = "bkg2";this.Clear();var spn1 = addSpan(this.Div);spn1.className = "bkg2spn1";var spn2 = addSpan(this.Div);spn2.className = "bkg2spn2";var spn3 = addSpan(this.Div);spn3.className = "bkg2spn3";}function _bkShow(){this.Div.style.visibility = "visible";}function _bkHide(){this.Div.style.visibility = "hidden";}function _bkClear(){clearChildren(this.Div);}function Banner(div) {this.Div = div;this.Init = _baInit;this.Refresh = _baRefresh;this.Hide = _baHide;this.Show = _baShow;this.IsSelectable = _baIsSelectable;}function _baInit(){this.TextSpan = addSpan(this.Div);this.TextSpan.className = "bannerLogo";this.HelpBtn = addSpan(this.Div);this.HelpBtn.innerHTML = "Help ";InitNavObject(this.HelpBtn,"helpBtn","bannerHelp","","","","","","","clickHelp()");}function _baRefresh(){var txt = "MSN Video";if (g_nowVideoSize == VIDEOSIZE_SMALL){if (g_nowNavView == NAV_VIEW_PLAYLIST){txt += " — Playlist";}else if (g_nowNavView == NAV_VIEW_BROWSE){txt += " — " + g_topics[g_nowTopicInd];}}this.TextSpan.innerHTML = txt;}function _baHide(){this.Div.style.visibility = "hidden";}function _baShow(){this.Div.style.visibility = "visible";}function _baIsSelectable(){return (this.Div.style.visibility != "hidden");}function BrandingArea(div, cssClass) {this.Div = div;this.Clear = _brClear;this.Init = _brInit;this.Refresh = _brRefresh;this.Hide = _brHide;this.Show = _brShow;this.SetDimensions = _brSetDimensions;this.Div.className = cssClass;}function _brClear(){clearChildren(this.Div);}function _brInit(){this.Image = addImg(this.Div);this.Image.className = "brandingAreaImage";this.Image.src = "/Images/Shared/s.gif";}function _brSetDimensions(t, l, h, w){this.Image.style.top = t;this.Image.style.left = l;this.Image.style.height = h;this.Image.style.width = w;}function _brRefresh(){if (oPlaylist.Position==-1 || oMediaPlayer.IsPlayingAd || oMediaPlayer.GetPlayState()!=PLAYSTATE_PLAYING)this.Image.src = "/Images/Shared/s.gif";else if (oPlaylist.GetCurrent() != null)this.Image.src = "http://img.video.msn.com/s/us/sc/i/MSNTV/src/" + oPlaylist.GetCurrent().Source + ".gif";}function _brHide(){this.Div.style.visibility = "hidden";}function _brShow(){this.Div.style.visibility = "visible";}function BrowseHeader(div) {this.Div = div;this.Init = _bhInit;this.SetText1 = _bhSetText1;this.SetText2 = _bhSetText2;this.ShowLoadingMessage = _bhShowLoadingMessage;this.Clear = _bhClear;this.Hide = _bhHide;this.Show = _bhShow;}function _bhInit(){var ob;ob = addSpan(this.Div);ob.className = "browseHeaderTxt1";this.Text1 = ob;ob = addSpan(this.Div);ob.className = "browseHeaderTxt2";this.Text2 = ob;}function _bhSetText1(h){this.Text1.innerHTML = h;}function _bhSetText2(h){this.Text2.innerHTML = h;}function _bhShowLoadingMessage(str){this.Text1.innerHTML = "Please wait while we get " + str + " ready.";this.Text2.innerHTML = "";}function _bhClear(){this.Text1.innerHTML = "";this.Text2.innerHTML = "";}function _bhShow(){this.Div.style.visibility = "visible";}function _bhHide(){this.Div.style.visibility = "hidden";}function CategoryChooser(div, maxSubcats){this.Div = div;this.Init = _ccInit;this.Show = _ccShow;this.Hide = _ccHide;this.AppendBadCat = _ccAppendBadCat;this.ExcludeBtn = _ccExcludeBtn;this.MaxSubcats = maxSubcats;this.FailedSubcats = new Array();}function _ccInit(topics, cats, bottomY){var btn;var btns = new Array();for (var i=0; i= this.MaxSubcats) ? this.MaxSubcats : cats[i].length;for (var j=-1; j=0; j--){var nowBtn = this.Btns[i][j];if (i!=topicInd || this.ExcludeBtn(nowBtn.FullName)){nowBtn.Hide();}else {if (j==catInd+1 && i==topicInd)nowBtn.SetHighlight(true);else nowBtn.SetHighlight(false);nowBtn.style.bottom = bottomY;;bottomY += this.ButtonHeight;nowBtn.Show();}}}var popupHeight= (this.ButtonHeight * this.Btns[topicInd].length);this.Div.style.height = popupHeight;this.Div.style.top = this.BottomY - popupHeight;this.Div.style.visibility = "visible";try{this.Btns[topicInd][catInd+1].focus(); }catch (e){oFooter.SetFocus();}}function _ccHide(){for (var i=0; i= length)wmp.CurrentPosition = length;else wmp.CurrentPosition = currentPos + increment;}}}function _mpShowStatus(s){this.Status.innerHTML = s;}var MGX_ICON_ERROR= 0x10;var MGX_ICON_WARNING= 0x30;var MGX_ICON_INFO= 0x40;var MGX_SIZE_LARGE = 0x0;var MGX_SIZE_SMALL = 0x1;function MessagePopup(){this.Error = _msError;this.Warning = _msWarning;this.Info = _msInfo;this.Confirm = _msConfirm;this.AutoHide = _msAutoHide;}function _msError(msg, caption){alert(msg);}function _msWarning(msg, caption){alert(msg);}function _msInfo(msg, caption){alert(msg);}function _msConfirm(msg){return confirm(msg);}function _msAutoHide(msg){alert(msg);}function NavBar(div){this.Div = div;this.Clear = _nbClear;this.Draw = _nbDraw;this.Refresh = _nbRefresh;this.InitTopics = _nbInitTopics;this.SetFocus = _nbSetFocus;this.SetRatchet = _nbSetRatchet;this.GetThumbIndex = _nbGetThumbIndex;this.InitThumbnails = _nbInitThumbnails;this.IsSelectable = _nbIsSelectable;this.Show = _nbShow;this.Hide = _nbHide;}function _nbClear(){this.Div.className = "navBarDiv navBarDivThmb";clearChildren(this.Div);}function _nbDraw(ind){this.CurrentRatchet = ind;var dividerX = -100;var ob;var css;for (var i=0; i=this.HTML.length)j-=this.HTML.length;ob.innerHTML = this.HTML[j];ob.GUID = this.GUIDs[j];}if (this.Hanger != null && this.HTML.length>this.MenuCount){var j = ind+i;if (j==this.HTML.length)dividerX = this.Hanger.offsetLeft;if (j>=this.HTML.length)j-=this.HTML.length;this.Hanger.innerHTML = imageTag(this.Images[j], 92, 69, "nbThmImg");}if (this.HTML.length>this.MenuCount){this.LeftArrow.innerHTML = " ";this.RightArrow.innerHTML = " ";}else {this.LeftArrow.innerHTML = ""; this.RightArrow.innerHTML = ""; }if (this.Divider != null){this.Divider.style.left = dividerX - (this.Mode == "thumbnails" ? 18 : 24);}this.Refresh();}function _nbRefresh(){if (this.Mode != "thumbnails")return;var doHighlight;for (var i=0; i= 2) ? 2 : titles.length;this.Div.className = "navBarDiv navBarDivThmb";this.HTML = new Array();this.Images = new Array();this.GUIDs = guids;for (var i=0; i"+ ""+ ""+ imageTag(this.Images[i], 92, 69, "nbThmImg")+ ""+ ""+ ""+ txt+ ""+ ""+ ""+ "";this.HTML[i] = h;}this.LeftArrow = addSpan(this.Div);this.LeftArrow.className = "nbArrSpn";for (var i=0; i"+ ""+ ""+ txt + ""+ ""+ "";this.HTML[i] = h;}var ob;this.LeftArrow = addSpan(this.Div);this.LeftArrow.className = "nbArrSpn";var leftAction;var rightAction;for (var i=0; i Choose Play to begin again.";txt.className = "npMsg";this.SelectableOb = null;}else if (oMediaPlayer.IsPlayingAd){var txt = addSpan(this.Div);txt.innerHTML = "Up next after this advertisement:";txt.className = "npMsg";txt = addSpan(this.Div);txt.innerHTML = oPlaylist.GetCurrent().Title;txt.className = "npUpNxt";var arrw = addSpan(this.Div);arrw.innerHTML = bulletImage();arrw.className = "npArrw";this.MoreInfoBtn = addSpan(this.Div);this.MoreInfoBtn.innerHTML = "More info";InitNavObject(this.MoreInfoBtn,"moreInfoButton","","","","","","","","clickMoreInfo()");this.SelectableOb = this.MoreInfoBtn;}else {if (oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING){var txt = addSpan(this.Div);txt.innerHTML = oPlaylist.GetCurrent().Title;txt.className = "npTitle";var arrw = addSpan(this.Div);arrw.innerHTML = bulletImage();arrw.className = "npArrw";this.MoreInfoBtn = addSpan(this.Div);this.MoreInfoBtn.innerHTML = "More info";InitNavObject(this.MoreInfoBtn,"moreInfoButton","","","","","","","","clickMoreInfo()");this.SelectableOb = this.MoreInfoBtn;}else {var txt = addSpan(this.Div);txt.innerHTML = "Please wait while we get your video ready.";txt.className = "npMsg";this.SelectableOb = null;}}}function _npClear(){clearChildren(this.Div);}function _npShow(){this.Div.style.visibility = "visible";}function _npHide(){this.Div.style.visibility = "hidden";}function _npIsSelectable(){return ((this.Div.style.visibility != "hidden") && (this.SelectableOb!=null));}function OnDeckArea(div) {this.Div = div;this.Init = _odInit;this.Refresh = _odRefresh;this.Hide = _odHide;this.Show = _odShow;this.IsSelectable = _odIsSelectable;}function _odInit(){var ob;ob = addSpan(this.Div);ob.className = "odThumb";this.ThumbSpan = ob;ob = addSpan(this.Div);ob.className = "odTxt1";this.TextSpan1 = ob;ob = addSpan(this.Div);ob.className = "odTxt2";this.TextSpan2 = ob;ob = addSpan(this.Div);ob.className = "odTxt3";this.TextSpan3 = ob;}function _odRefresh(){this.ThumbSpan.innerHTML = "";this.TextSpan1.innerHTML = "";this.TextSpan2.innerHTML = "";this.TextSpan3.innerHTML = "";if (oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING && !oMediaPlayer.IsPlayingAd){if ((oPlaylist.Position == -1) || (oPlaylist.Position+1 >= oPlaylist.Items.length)){this.TextSpan3.innerHTML = "Up next: end of playlist";}else {var currentItem = oPlaylist.Items[oPlaylist.Position+1];this.ThumbSpan.innerHTML = imageTag(currentItem.Thumb, 92, 69, "");this.TextSpan1.innerHTML = "Up next:";this.TextSpan2.innerHTML = currentItem.Title;}}}function _odShow(){this.Div.style.visibility = "visible";}function _odHide(){this.Div.style.visibility = "hidden";}function _odIsSelectable(){return false;}function onBuffering(bStart){if (bStart){}else {refreshStatus();}}var g_ReadyState = 0; var rs_Uninitialized = 0;var rs_Loading = 1;var rs_Interactive = 3;var rs_Complete = 4;var g_clipLoadTimer;var g_adIsLoading;function onReadyStateChange(lReadyState){var hasLoaded = (g_ReadyState == rs_Loading && lReadyState == rs_Complete);refreshStatus();if (hasLoaded){oMediaPlayer.IsLoading = false;window.clearTimeout(g_clipLoadTimer);g_ForceFullStop = false; refreshPlaystateFeedback();oProgressBar.Reset();if (!oMediaPlayer.IsPlayingAd){if (oPlaylist.GetCurrent() != null){trackViewedClip(oPlaylist.GetCurrent().GUID);}}oMediaPlayer.ResetDimensions();}g_ReadyState = lReadyState;}function setClipLoadTimer(seconds, isAd){g_adIsLoading = isAd;var mls = parseInt(seconds)*1000;g_clipLoadTimer = window.setTimeout(function() {checkClipLoad();}, mls);}function checkClipLoad(){window.clearTimeout(g_clipLoadTimer);if(oMediaPlayer.IsLoading) {oMediaPlayer.IsLoading = false;oMediaPlayer.Cancel();if (g_adIsLoading){}else {var clip = oPlaylist.GetCurrent();if (clip != null){oMessagePopup.Warning("The video is not available", "");trackViewedClip(clip.GUID);}}postStopAction();return;}}var g_Rewinding = false;var g_ForceFullStop = false;var PLAYSTATE_STOPPED = 0;var PLAYSTATE_PAUSED = 1;var PLAYSTATE_PLAYING = 2;var PLAYSTATE_BUFFERING = 3;var PLAYSTATE_FWD = 4;var PLAYSTATE_REW = 5;var PLAYSTATE_FINISHED = -1;function onPlayStateChange(oldState, newState){refreshStatus();if (oldState == PLAYSTATE_BUFFERING && newState == PLAYSTATE_STOPPED){return;}switch (oMediaPlayer.GetPlayState()){case PLAYSTATE_STOPPED:postStopAction(); break; case PLAYSTATE_BUFFERING: break;case PLAYSTATE_PAUSED:g_Rewinding = false;postPauseAction();break;case PLAYSTATE_PLAYING:g_Rewinding = false;postPlayAction();break;case PLAYSTATE_FINISHED:break;case PLAYSTATE_FWD:g_Rewinding = false;break;case PLAYSTATE_REW:g_Rewinding = true;break;}}function postStopAction(){var l_ForceFullStop = g_ForceFullStop;var l_Rewinding = g_Rewinding;g_ForceFullStop = false;g_Rewinding = false;var action;if (l_ForceFullStop){}else if (l_Rewinding){window.setTimeout(function() {oMediaPlayer.Play();}, 1);}else if (oMediaPlayer.IsPlayingAd){oMediaPlayer.IsPlayingAd = false; playCurrent();}else if (oPlaylist.Position+1 < oPlaylist.Items.length){oPlaylist.MoveNext();playCurrent();}else {onPlaylistEnd();}}function postPlayAction(){}function postPauseAction(){}function playItemAfterAd(ind){if (oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING){if (oMediaPlayer.IsPlayingAd){oPlaylist.MoveTo(ind); }else {oPlaylist.MoveTo(ind-1); oMediaPlayer.Stop();}}else {oPlaylist.MoveTo(ind); playCurrent();}}function playCurrent(){if (oMediaPlayer.IsPlayingAd){if (oMediaPlayer.GetPlayState() != PLAYSTATE_PLAYING)oMediaPlayer.Play();return;}if (oPlaylist.GetCurrent() == null)return;onPrepareToPlay();if (oPlaylist.GetCurrent().GUID != oAdManager.CurrentGUID){oAdManager.CurrentGUID = oPlaylist.GetCurrent().GUID;oAdManager.SetPageGroup(oPlaylist.GetCurrent().PageGroup);oMediaPlayer.IsPlayingAd = oAdManager.EndUserSees=="video";}refreshPlaystateFeedback();iPlayNextTimerId = window.setTimeout(playCurrentB, 100);}function playCurrentB(){window.clearTimeout(iPlayNextTimerId);if (oMediaPlayer.IsPlayingAd){oAdManager.LoadNext();}else {if (oPlaylist.GetCurrent() != null){var url = oPlaylist.GetCurrent().URL;if (url.indexOf("/default.cdnx/") != -1)url += ".asx";oMediaPlayer.PlayMedia(url);oTrackingManager.TrackContentPlay(oPlaylist.GetCurrent());setClipLoadTimer(30, false);}}}function onLoadAdComplete(){oAdManager.ShowLeaveBehind();if (oMediaPlayer.IsPlayingAd){if (oAdManager.ClipSrc == "" || oAdManager.ClipSrc.indexOf(".gif") != -1){postStopAction();}else {oMediaPlayer.PlayMedia(oAdManager.ClipSrc);oTrackingManager.TrackAdPlay(oPlaylist.GetCurrent(), oAdManager.TrackingImgId);setClipLoadTimer(15, true);}}}function ProgressBar(div){this.Div = div;this.Init = _pbInit;this.Refresh = _pbRefresh;this.Reset = _pbReset;this.Hide = _pbHide;this.Show = _pbShow;this.SetStatus = _pbSetStatus;}function _pbInit(player, barWidth){var h = ""+ ""+ ""+ ""+ ""+ ""+ ""+ "
"+ ""+ ""+ ""+ ""+ ""+ ""+ ""+ "
";this.Div.innerHTML = h;this.Htc = pbHtc;this.Text1 = pbTxt1;this.Text2 = pbTxt2;this.StatusText = pbTxt3;this.Visible = false;this.Player = player;this.BarWidth = barWidth;}function _pbReset(){if (this.Visible){this.Text1.innerHTML = "00:00";this.Duration = Math.floor(this.Player.GetDuration());var mm = Math.floor(this.Duration/60);var ss = this.Duration - mm*60;this.Text2.innerHTML= ((mm < 10) ? "0" + mm : mm)+ ":"+ ((ss < 10) ? "0" + ss : ss);this.Htc.percentComplete = 0;this.Refresh();}}function _pbRefresh(){window.clearTimeout(this.TimerId);if (this.Visible){try{var mls = this.Player.GetMediaPosition();var sec = Math.floor(mls/1000);var mm = Math.floor(sec/60);var ss = sec - mm*60;if (mm == -1){this.Text1.innerHTML = "00:00";}else {this.Text1.innerHTML= ((mm < 10) ? "0" + mm : mm)+ ":"+ ((ss < 10) ? "0" + ss : ss);}this.Htc.percentComplete = Math.round(sec/this.Duration*100);}catch (exception){this.Text1.innerHTML = "00:00";this.Htc.percentComplete = 0;}this.TimerId = window.setTimeout(function() {oProgressBar.Refresh();}, 1000);}}function _pbHide(){clearTimeout(this.TimerId);this.Div.style.visibility = "hidden";this.Visible = false;}function _pbShow(){this.Visible = true;this.Reset();this.Div.style.visibility = "visible";}function _pbSetStatus(s){this.StatusText.innerHTML = s;}function SlideShow(slidePanel, abstractDiv){this.SlidePanel = slidePanel;this.AbstractDiv = abstractDiv;this.Init = _ssInit;this.Clear = _ssClear;this.Next = _ssNext;this.Hide = _ssHide;this.Show = _ssShow;this.ShowAbstract = _ssShowAbstract;this.PanelIsSelectable = _ssPanelIsSelectable;this.AbstractIsSelectable = _ssAbstractIsSelectable;}function _ssInit(slideHtml, abstractHtml){this.Clear();this.AbstractHtml = abstractHtml;this.Slides = new Array();var slide;for (var i=0; i");return toOb.appendChild(btn);}function bulletImage(){var h = " h){doTruncate = true;break;}htmlThatFits = textGauge.innerHTML;}}textGauge.style.display = "none";if (doTruncate){var tHtml = htmlThatFits;var lastChar = (tHtml.charAt(tHtml.length-2) == ",") ? tHtml.length-2 : tHtml.length-1;tHtml = tHtml.substring(0,lastChar);return (tHtml == "") ? "" : tHtml + "…";}else {return html;}}function truncateWord(w, maxChars){var s = "";var c = "";for (var i=0; i 0);showSkip = (oPlaylist.Position < oPlaylist.Items.length-1);}}this.Rew.style.display = (showRew) ? "inline" : "none"; this.Fwd.style.display = (showFwd) ? "inline" : "none"; this.Prev.style.display = (showPrev) ? "inline" : "none"; this.Next.style.display = (showSkip) ? "inline" : "none";if((nowFocusOb==this.Rew || nowFocusOb==this.Fwd || nowFocusOb==this.Prev || nowFocusOb==this.Next)&&(nowFocusOb.style.display == "none")&&(this.Div.style.visibility != "hidden")){if (showSkip) this.Next.focus();else if (showPrev) this.Prev.focus();else if (showFwd) this.Fwd.focus();else if (showRew) this.Rew.focus();else this.Stop.focus();}}catch (error){}}function _vcPlayingView(){this.Div.className = "vcDiv vcDivPlaying";this.FullScreenBtn.style.display = "inline";this.NormalViewBtn.style.display = "none";this.Mute.style.display = "none";this.UnMute.style.display = "none";this.Play.style.display = "inline";this.Pause.style.display = "inline";this.Stop.style.display = "inline";this.Rew.style.display = "none";this.Fwd.style.display = "none";this.Prev.style.display = "inline";this.Next.style.display = "inline";}function _vcFullScreenView(){this.Div.className = "vcDiv vcDivFullScrn";this.FullScreenBtn.style.display = "none";this.NormalViewBtn.style.display = "inline";this.RefreshMute();this.Play.style.display = "inline";this.Pause.style.display = "inline";this.Stop.style.display = "inline";this.Rew.style.display = "inline";this.Fwd.style.display = "inline";this.Prev.style.display = "inline";this.Next.style.display = "inline";}function _vcShow(){this.Div.style.visibility = "visible";this.HideShowBtns();}function _vcHide(){this.Div.style.visibility = "hidden";}function _vcIsSelectable(){return (this.Div.style.visibility != "hidden");}function _vcClickMute(){oMediaPlayer.Player.Mute = !oMediaPlayer.Player.Mute;oVideoControls.RefreshMute();if (oMediaPlayer.Player.Mute)oVideoControls.UnMute.focus();else oVideoControls.Mute.focus();}function _vcRefreshMute(){if (oMediaPlayer.Player.Mute){this.Mute.style.display = "none";this.UnMute.style.display = "inline";}else {this.Mute.style.display = "inline";this.UnMute.style.display = "none";}}function _vcClickPlay(){switch (oMediaPlayer.GetPlayState()){case PLAYSTATE_PLAYING:break;case PLAYSTATE_PAUSED:case PLAYSTATE_FWD:case PLAYSTATE_REW:case PLAYSTATE_STOPPED:oMediaPlayer.Play();refreshPlaystateFeedback();break;default:if (oPlaylist.Position == -1)oPlaylist.Position = 0;playCurrent();break;}}function _vcClickPause(){if (oMediaPlayer.GetPlayState() == PLAYSTATE_PAUSED){oMediaPlayer.Play();}else {try{oMediaPlayer.Pause();}catch (error){}}}function _vcClickStop(){window.clearTimeout(g_clipLoadTimer);if (oMediaPlayer.IsLoading){oMediaPlayer.Cancel();oMediaPlayer.IsLoading = false;}else if (oMediaPlayer.GetPlayState() == PLAYSTATE_STOPPED){}else {try{if (oMediaPlayer.GetPlayState() != PLAYSTATE_BUFFERING) g_ForceFullStop = true;oMediaPlayer.Stop();oMediaPlayer.SetMediaPosition(0);oBrandingArea.Refresh();oVideoMetadata.Refresh(true);oNowPlaying.Refresh(true);}catch (error){}}}function _vcClickRew(){oMediaPlayer.Rew();}function _vcClickFwd(){oMediaPlayer.Fwd();}function _vcClickPrev(){playItemAfterAd(oPlaylist.Position-1);}function _vcClickNext(){if (oPlaylist.Position+1 < oPlaylist.Items.length){g_ForceFullStop = true;oMediaPlayer.Stop();oPlaylist.MoveNext();playCurrent();}else {}}function VideoMetadata(div, innerDiv) {this.Div = div;this.InnerDiv = innerDiv;this.Init = _vmInit;this.Refresh = _vmRefresh;this.Clear = _vmClear;this.Hide = _vmHide;this.Show = _vmShow;this.IsSelectable = _vmIsSelectable;this.GetSelectableOb = _vmGetSelectableOb;}function _vmInit(){}function _vmRefresh(userStopped){this.Clear();if(oPlaylist.GetCurrent() == null)return;if (userStopped){var txt = addSpan(this.InnerDiv);txt.innerHTML = "You have stopped the video.

Choose Play to begin again.";txt.className = "vmTxt1";this.SelectableOb = null;}else if (oMediaPlayer.IsPlayingAd){var txt = addSpan(this.InnerDiv);txt.innerHTML = "Up next after this advertisement:";txt.className = "vmTxt1";txt = addSpan(this.InnerDiv);txt.innerHTML = oPlaylist.GetCurrent().Title;txt.className = "vmTxt2";this.SelectableOb = null;}else {if (oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING){var title = addSpan(this.InnerDiv);title.innerHTML = oPlaylist.GetCurrent().Title;title.className = "vmTxt3";var abstract = addSpan(this.InnerDiv);abstract.innerHTML = oPlaylist.GetCurrent().Caption;abstract.className = "vmTxt4";var urls = oPlaylist.GetCurrent().LinkUrls;var text = oPlaylist.GetCurrent().LinkText;var addedLink = false;for (var i=0; i 0){var i = this.Items[this.Items.length-1];if (i[0]==topicInd && i[1]==catInd && i[2]==videoSize && i[3]==navView){return;}if (i[0]==topicInd && i[1]==catInd && i[2]==videoSize && i[3]==navView){return;}}this.Items[this.Items.length] = new Array(topicInd, catInd, videoSize, navView);}function _bmRemoveLast(){var a = new Array();for (var i=0; i< this.Items.length-1; i++){a[i] = this.Items[i];}this.Items = a;}function DataFetcher(){this.Init = _dfInit;this.GetData = _dfGetData;this.OnLoad = _dfOnLoad;this.Cancel = _dfCancel;this.AppendToQueue = _dfAppendToQueue;this.PushToQueue = _dfPushToQueue;this.ClearQueue = _dfClearQueue;this.DomDoc = new ActiveXObject("Msxml2.DOMDocument");this.DomDoc.onreadystatechange = _dfCheckReadyState;this.DomDoc.async = true;}function _dfInit(){this.UrlQueue = new Array();this.OnSucceedQueue = new Array();this.OnFailQueue = new Array();}function _dfGetData(url, onSucceed, onFail){if (this.Url != null){this.PushToQueue(this.Url, this.OnSucceed, this.OnFail);}this.Url = url;this.OnSucceed = onSucceed;this.OnFail = onFail;this.DomDoc.load(url);}function _dfOnLoad(){this.Data = this.DomDoc.text;var f = (this.DomDoc.parseError.errorCode != 0) ? this.OnFail : this.OnSucceed;this.Url = null;this.OnSucceed = null;this.OnFail = null;f.call();if (this.UrlQueue.length != 0){this.GetData(this.UrlQueue[0], this.OnSucceedQueue[0], this.OnFailQueue[0]);var a1 = new Array();var a2 = new Array();var a3 = new Array();for (var i=0; i=0; i--){if (g_videoPaths[i] != ""){t_GUIDs[j] = g_GUIDs[i];j++;}}var clipsToAdd = false;for (var i=0; i=0; i--){if (g_videoPaths[i] != ""){t_GUIDs[j] = g_GUIDs[i];t_videoPaths[j] = g_videoPaths[i];t_headlines[j] = g_headlines[i];t_captions[j] = g_captions[i];t_imageUrls[j] = g_imageUrls[i];t_sources[j] = g_sources[i];t_relatedLinkUrls[j] = g_relatedLinkUrls[i];t_relatedLinkText[j] = g_relatedLinkText[i];t_PGs[j] = g_PGs[i];t_PSs[j] = g_PSs[i];t_IDs[j] = g_IDs[i];j++;}}oPlaylist.AddAll(t_GUIDs, t_videoPaths, t_headlines, t_captions, t_imageUrls, t_sources, t_relatedLinkUrls, t_relatedLinkText, t_PGs, t_PSs, t_IDs);}var p_types = new Array();var p_titles = new Array();var p_slideHtml = new Array();var p_abstractHtml = new Array();var p_metdataHtml = new Array();var p_userWeatherCity;var p_userWeatherConditionImg;var p_stockDirection;function setPersonalDataGlobals(types, titles, slideHtml, abstractHtml, metdataHtml, userWeatherCity, userWeatherConditionImg, stockDirection){p_types = types;p_titles = titles;p_slideHtml = slideHtml;p_abstractHtml = abstractHtml;p_metdataHtml = metdataHtml;p_userWeatherCity = userWeatherCity;p_userWeatherConditionImg = userWeatherConditionImg;p_stockDirection = stockDirection;}function addPersonalDataToGlobals(){var topicName = (g_nowCatInd == -1) ? g_topics[g_nowTopicInd] : g_cats[g_nowTopicInd][g_nowCatInd];var newType = "";if ((topicName == "Weather") && (p_userWeatherCity!=null)){newType = "Weather";}if (newType != ""){for (var i=g_types.length; i>0; i--){g_types[i] = g_types[i-1];g_GUIDs[i] = g_GUIDs[i-1];g_PGs[i] = g_PGs[i-1];g_PSs[i] = g_PSs[i-1];g_IDs[i] = g_IDs[i-1];g_sources[i] = g_sources[i-1];g_headlines[i] = g_headlines[i-1];g_captions[i] = g_captions[i-1];g_imageTypes[i] = g_imageTypes[i-1];g_imageUrls[i] = g_imageUrls[i-1];g_videoPaths[i] = g_videoPaths[i-1];g_articleUrls[i] = g_articleUrls[i-1];g_relatedLinkUrls[i] = g_relatedLinkUrls[i-1];g_relatedLinkText[i] = g_relatedLinkText[i-1];}g_types[0] = newType;g_GUIDs[0] = "";g_videoPaths[0] = "";}}function addSlideshowToPlaylist(firstInd){var a = (firstInd==null) ? 0 : firstInd;var t_GUIDs = new Array();var t_videoPaths = new Array();var t_headlines = new Array();var t_captions = new Array();var t_imageUrls = new Array();var t_sources = new Array();var t_relatedLinkUrls = new Array();var t_relatedLinkText = new Array();var t_PGs = new Array();var t_PSs = new Array();var t_IDs = new Array();var j = 0;for (var i=g_scGuids.length-1; i>=0; i--){if (i!=a){t_GUIDs[j] = g_scGuids[i];t_videoPaths[j] = g_scVideoUrls[i];t_headlines[j] = g_scHeadlines[i];t_captions[j] = g_scCaptions[i];t_imageUrls[j] = g_scImageUrls[i];t_sources[j] = g_scSources[i];t_relatedLinkUrls[j] = g_scRelatedLinkUrls[i];t_relatedLinkText[j] = g_scRelatedLinkText[i];t_PGs[j] = g_scPGs[i];t_PSs[j] = g_scPSs[i];t_IDs[j] = g_scIDs[i];j++;}}oPlaylist.AddAll(t_GUIDs, t_videoPaths, t_headlines, t_captions, t_imageUrls, t_sources, t_relatedLinkUrls, t_relatedLinkText, t_PGs, t_PSs, t_IDs);oPlaylist.PutNext(g_scGuids[a], g_scVideoUrls[a], g_scHeadlines[a], g_scCaptions[a], g_scImageUrls[a], g_scSources[a], g_scRelatedLinkUrls[a], g_scRelatedLinkText[a], g_scPGs[a], g_scPSs[a], g_scIDs[a]);}function handleThumbClick(ind, isLoading){var i = (ind + oNavBar.CurrentRatchet) % oNavBar.HTML.length;if (g_types[i] == "Weather"){showWeather();return;}if (g_types[i] == "Stocks"){showStocks();return;} var inPlaylistAtPos = oPlaylist.IndexOf(g_GUIDs[i]); var isPlaying = (oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING); var currentItemIsAd = oMediaPlayer.IsPlayingAd;if (inPlaylistAtPos != -1){if (currentItemIsAd){oMessagePopup.AutoHide("The selected video will play after the advertisement");playItemAfterAd(inPlaylistAtPos);return;}if (inPlaylistAtPos == oPlaylist.Position){if (isLoading){oMessagePopup.AutoHide("The selected video is currently loading");return;}else if (isPlaying){oMessagePopup.AutoHide("The selected video is currently playing");return;}}oMessagePopup.AutoHide("Preparing to play the selected video");playItemAfterAd(inPlaylistAtPos);return;}if (!oPlaylist.PutLast(g_GUIDs[i], g_videoPaths[i], g_headlines[i], g_captions[i], g_imageUrls[i], g_sources[i], g_relatedLinkUrls[i], g_relatedLinkText[i], g_PGs[i], g_PSs[i], g_IDs[i]))return;onPlayListChange();if (isLoading || isPlaying){oMessagePopup.AutoHide("Adding the selected video to the playlist");return;}oMessagePopup.AutoHide("Preparing to play the selected video");playItemAfterAd(oPlaylist.Items.length-1);}function getTopic_Cat(topicInd, catInd){return (catInd==-1) ? topicInd : topicInd + "_" + catInd;}function ImagePreloader() {this.Init = _ipInit;this.Start = _ipStart;this.GetNext = _ipGetNext;this.ImageOb = new Image();this.ImageOb.onload = function(){ oImagePreloader.GetNext() };this.LoadFunction = function(){ oImagePreloader.ImageOb.src = oImagePreloader.Images[oImagePreloader.NowInd]; };this.TimerId = null;}function _ipInit(imageArray){this.Images = imageArray;}function _ipStart(){this.NowInd = -1;this.GetNext();}function _ipGetNext(){window.clearTimeout(this.TimerId);this.NowInd++;if (this.NowInd <= this.Images.length-1){this.TimerId = window.setTimeout(this.LoadFunction, 1);}}function JsPreloader() {this.Init = _jsInit;this.Load = _jsLoad;this.LoadNext = _jsLoadNext;this.Urls = new Array();this.NowLoading = -1;}function _jsInit(topicIds, catIds, client){this.TopicIds = topicIds;this.CatIds = catIds;this.Client = client;}function _jsLoad(nowTopicInd, nowCatInd){this.Urls = new Array();this.NowLoading = -1;this.NowTopic = nowTopicInd;this.NowCat = nowCatInd;var idArray = new Array();if (nowTopicInd == -1){idArray = this.TopicIds;}else if (nowCatInd == -1){idArray = this.CatIds[nowTopicInd];}if (idArray != null){for (var i=0; iind; i--){this.Items[i] = this.Items[i-1];} this.Items[ind] = item;if (inPlaylistAtPos != -1){if (inPlaylistAtPos <= ind){this.Remove(inPlaylistAtPos);if (this.Position > 0)this.Position = this.Position-1;}else {this.Remove(inPlaylistAtPos+1);}}return this.OK;}oMessagePopup.Warning("The video was not added to your playlist because your list is full. The maximum number of videos your playlist can contain is " + this.MaxLength + ".", "");return this.MAX;}function _plRemove(ind){var tmpArr = new Array();var tmpInd = 0;for (var i=0; i=0 ; i--){item = new PlaylistItem(t_GUIDs[i], t_videoPaths[i], t_headlines[i], t_captions[i], t_imageUrls[i], t_sources[i], t_relatedLinkUrls[i], t_relatedLinkText[i], t_PGs[i], t_PSs[i], t_IDs[i]);if (oPlaylist.Insert(item, 0) != oPlaylist.OK)return;}var startItemGuid = getStartupParam("i");if (startItemGuid == "") startItemGuid = getStartupParam("g");if (startItemGuid != ""){var url = urlToGuidLookup(g_startUpParams);oDataFetcher.GetData(url, onGetItemByGuid, onGetItemByGuidFail);}else {DeviceSpecialStart();}}}catch (e){onGetPlaylistFail();}}function onGetPlaylistFail(){if ((getStartupParam("g")!="") || (getStartupParam("i")!="") || (getStartupParam("r")!="") || (getStartupParam("prepend")!="") || (getStartupParam("replace")!="")){var url = urlToGuidLookup(g_startUpParams);oDataFetcher.GetData(url, onGetItemByGuid, onGetItemByGuidFail);}else {DeviceDefaultStart();}}function onGetItemByGuid(){try{if (oDataFetcher.Data == ""){onGetItemByGuidFail();return;}eval(oDataFetcher.Data);var item;for (var i=t_GUIDs.length-1; i>=0 ; i--){item = new PlaylistItem(t_GUIDs[i], t_videoPaths[i], t_headlines[i], t_captions[i], t_imageUrls[i], t_sources[i], t_relatedLinkUrls[i], t_relatedLinkText[i], t_PGs[i], t_PSs[i], t_IDs[i]);if (oPlaylist.Insert(item, 0) != oPlaylist.OK)return;}DeviceSpecialStart();}catch (oError){onGetItemByGuidFail();}}function onGetItemByGuidFail(){DeviceDefaultStart();}function getInitialNavView(){var t_topicName = (getStartupParam("m")!="") ? getStartupParam("m") : getStartupParam("menu");var t_categoryName = (getStartupParam("mi")!="") ? getStartupParam("mi") : getStartupParam("menuItem");if (t_topicName!= null){var loadCategory = false;var initTopic = -1;var initCat = -1;for (var a=0; a0; i--){child = ob.children(i-1);ob.removeChild(child);}}function addDiv(ob){var newDiv = document.createElement("DIV");return ob.appendChild(newDiv);}function imageTag(src, w, h, className){var tag = " 0);var t_vidSize;if (!t_playing){t_vidSize = VIDEOSIZE_NONE;}else if (t_navView == NAV_VIEW_HOME){t_vidSize = VIDEOSIZE_MEDIUM;}else {t_vidSize = VIDEOSIZE_SMALL;_playAfterThumbnailLoad = true;t_playing = false;}setVideoSize(t_vidSize);setNavView(t_navView);refreshFooter();updateBacklist();if (t_playing){oPlaylist.MoveTo(0);playCurrent();}}function setVideoSize(videoSize){if (g_nowVideoSize == videoSize)return;g_nowVideoSize = videoSize;window.clearTimeout(iFullScreenTimerId);switch (videoSize){case VIDEOSIZE_NONE:setBodyBg("131517");toggleSlideshow(SLIDESHOW_ON);oMediaPlayer.SetDimensions(0, 0, 0, 0, 0, 0, 0, 0);oAdManager.SetPos(202, 418);oAdManager.Show();oBanner.Show();oBkg1.Show();oBkg2.Hide();oBrandingArea.Hide();oBrowseHeader.Show();oCategoryChooser.Hide();oFullScreenPanel.Hide();oMediaPlayer.Hide();oNavBar.Show();oNowPlaying.Hide();oOnDeckArea.Hide();oProgressBar.Hide();oSlideShow.Show();oVideoMetadata.Hide();oVideoControls.Hide();break;case VIDEOSIZE_SMALL:setBodyBg("131517");toggleSlideshow(SLIDESHOW_OFF);oBrandingArea.SetDimensions(41, 10, 35, 243);oMediaPlayer.SetDimensions(385, 41, 160, 120, 3, 3, 3, 3);oAdManager.SetPos(171, 422);oAdManager.Show();oBanner.Show();oBkg1.Show();oBkg2.Hide();oBrandingArea.Show();oBrowseHeader.Show();oCategoryChooser.Hide();oFullScreenPanel.Hide();oMediaPlayer.Show(true);oNavBar.Show();oNowPlaying.Hide();oOnDeckArea.Hide();oProgressBar.Hide();oSlideShow.Hide();oVideoMetadata.Show();oVideoControls.Hide();oMediaPlayer.Div.focus();break;case VIDEOSIZE_MEDIUM:setBodyBg("131517");toggleSlideshow(SLIDESHOW_OFF);oBrandingArea.SetDimensions(51, 20, 29, 201);oMediaPlayer.SetDimensions(226, 41, 320, 240, 3, 3, 3, 3);oAdManager.SetPos(315, 16);oAdManager.Show();oBanner.Show();oBkg1.Hide();oBkg2.Show();oBrandingArea.Show();oBrowseHeader.Hide();oCategoryChooser.Hide();oFullScreenPanel.Hide();oMediaPlayer.Show(true);oNavBar.Hide();oNowPlaying.Show();oOnDeckArea.Show();oProgressBar.Show();oSlideShow.Hide();oVideoMetadata.Hide();oVideoControls.PlayingView();oVideoControls.Show();oVideoControls.Play.focus();break;case VIDEOSIZE_LARGE:setBodyBg("000000");oMediaPlayer.SetDimensions(42, 0, 476, 357, 0, 66, 0, 66);oAdManager.Hide();oBanner.Hide();oBkg1.Hide();oBkg2.Hide();oBrandingArea.Hide();oBrowseHeader.Hide();oCategoryChooser.Hide();oFullScreenPanel.Show();oMediaPlayer.Show(false);oNavBar.Hide();oNowPlaying.Hide();oOnDeckArea.Hide();oProgressBar.Hide();oSlideShow.Hide();oVideoMetadata.Hide();oVideoControls.FullScreenView();oVideoControls.Show();oVideoControls.Play.focus();startFsCountdown();break;case VIDEOSIZE_FULL:setBodyBg("000000");toggleSlideshow(SLIDESHOW_OFF);oMediaPlayer.SetDimensions(0, 0, 560, 420, 0, 0, 0, 0);oAdManager.Hide();oBanner.Hide();oBkg1.Hide();oBkg2.Hide();oBrandingArea.Hide();oBrowseHeader.Hide();oCategoryChooser.Hide();oFullScreenPanel.Hide();oMediaPlayer.Show(false);oNavBar.Hide();oNowPlaying.Hide();oOnDeckArea.Hide();oProgressBar.Hide();oSlideShow.Hide();oVideoMetadata.Hide();oVideoControls.Hide();break;}oBanner.Refresh();refreshStatus();}function setBodyBg(clr){document.body.style.background = clr;}function refreshStatus(){var ps = oMediaPlayer.GetPlayState();var str;if (g_ReadyState < rs_Complete)str = "Connecting";else if (ps == PLAYSTATE_BUFFERING)str = "Loading";else if (ps == PLAYSTATE_STOPPED)str = "Stopped";else if (ps == PLAYSTATE_PLAYING)str = "Playing";else if (ps == PLAYSTATE_PAUSED)str = "Paused";else if (ps == PLAYSTATE_FWD)str = "Fast-forwarding";else if (ps == PLAYSTATE_REW)str = "Rewinding";else str = "";switch(g_nowVideoSize){case VIDEOSIZE_MEDIUM:oProgressBar.SetStatus(str);break;case VIDEOSIZE_LARGE:oVideoControls.SetStatus(str);break;}}function startFsCountdown(){window.clearTimeout(iFullScreenTimerId);iFullScreenTimerId = window.setTimeout(goFullScreen, 15000);}function goFullScreen(){setVideoSize(VIDEOSIZE_FULL);refreshFooter();updateBacklist();}function setNavView(view){oDataFetcher.ClearQueue();g_nowNavView = view;switch (view){case NAV_VIEW_HOME:g_nowTopicInd = -1;g_nowCatInd = -1;setMetaDataGlobals(null, null, null, null, null, null, null, null, null, null, null, null, null, null);oBrowseHeader.Clear();oNavBar.Clear();oNavBar.InitTopics(g_topics);oNavBar.SetFocus();break;case NAV_VIEW_PLAYLIST:var t_types = new Array();var t_GUIDs = new Array();var t_headlines = new Array();var t_captions = new Array();var t_imageUrls = new Array();var t_videoPaths = new Array();for (var i=0; i oNavBar.MenuCount)oNavBar.SetRatchet(oPlaylist.Position);else oNavBar.SetRatchet(0);oNavBar.SetFocus();if (_playAfterThumbnailLoad){_playAfterThumbnailLoad = false;oPlaylist.MoveTo(0);playCurrent();}break;case NAV_VIEW_BROWSE:var topicId = (g_nowCatInd == -1) ? g_topicIds[g_nowTopicInd] : g_catIds[g_nowTopicInd][g_nowCatInd];var topicName = (g_nowCatInd == -1) ? g_topics[g_nowTopicInd] : g_cats[g_nowTopicInd][g_nowCatInd];oNavBar.Clear();oCategoryChooser.Hide();oBrowseHeader.ShowLoadingMessage(topicName);var url = urlToJsLoader(topicId, "Anduril");oDataFetcher.GetData(url, onBrowseLoadComplete, onBrowseLoadFail);break;default:break;}oBanner.Refresh();}function onBrowseLoadComplete(){try{eval(oDataFetcher.Data);setMetaDataGlobals(t_types, t_GUIDs, t_PGs, t_PSs, t_IDs, t_sources, t_headlines, t_captions, t_imageTypes, t_imageUrls, t_videoPaths, t_articleUrls, t_relatedLinkUrls, t_relatedLinkText);oImagePreloader.Init(g_imageUrls);oImagePreloader.Start();completeBrowseView();}catch (error){onBrowseLoadFail();}refreshFooter();if (_playAfterThumbnailLoad){_playAfterThumbnailLoad = false;oPlaylist.MoveTo(0);playCurrent();}}function onBrowseLoadFail(){var topicName = (g_nowCatInd == -1) ? g_topics[g_nowTopicInd] : g_cats[g_nowTopicInd][g_nowCatInd];var badCat = getTopic_Cat(g_nowTopicInd, g_nowCatInd);oCategoryChooser.AppendBadCat(badCat);alert("The " + topicName + " category is currently unavailable. Please try again later.");setNavView(NAV_VIEW_HOME);}function completeBrowseView(){var headerText= ""+ g_topics[g_nowTopicInd]+ " — "+ ((g_nowCatInd == -1) ? "All" : g_cats[g_nowTopicInd][g_nowCatInd])+ "";var itemCount = g_headlines.length;oBrowseHeader.MediaCount = itemCount;oBrowseHeader.SetText1(headerText);oNavBar.InitThumbnails(g_headlines, g_imageUrls, g_GUIDs, g_topics[g_nowTopicInd]);oNavBar.SetFocus();}function refreshFooter(){switch (g_nowVideoSize){case VIDEOSIZE_MEDIUM:oFooter.DrawPlayingView();break;case VIDEOSIZE_LARGE:oFooter.Hide();break;case VIDEOSIZE_FULL:oFooter.Hide();break;default:switch (g_nowNavView){case NAV_VIEW_HOME:oFooter.DrawHomeView();break;case NAV_VIEW_PLAYLIST:oFooter.DrawPlaylistView();break;default:oFooter.DrawBrowseView();break;}break;}}function refreshPlaystateFeedback(){oBrandingArea.Refresh();oNowPlaying.Refresh(false);oNavBar.Refresh();oOnDeckArea.Refresh();oVideoMetadata.Refresh(false);oVideoControls.HideShowBtns();}function toggleSlideshow(setting){g_nowSlideshowMode = setting;if (g_nowSlideshowMode == SLIDESHOW_ON){var slides = new Array();for (var i=0; i';}var abstracts = new Array();for (var i=0; i" + "

" + "

" + g_ssCaptions[i] ;var h2 = truncateToHeight(295, 135, "20px", h1);abstracts[i]= ""+ h2+ "

";}oSlideShow.Init(slides, abstracts);iSlideShowTimerId = window.setTimeout(nextSlide, iSlideShowInterval);}else {window.clearTimeout(iSlideShowTimerId);}}function nextSlide(){window.clearTimeout(iSlideShowTimerId);oSlideShow.Next();iSlideShowTimerId = window.setTimeout(nextSlide, iSlideShowInterval);}function updateBacklist(){oBacklistManager.Append(g_nowTopicInd, g_nowCatInd, g_nowVideoSize, g_nowNavView);}function videoGoBack(){if (oCategoryChooser.Div.style.visibility == "visible"){oCategoryChooser.Hide();oFooter.SetFocus();return;}if (oBacklistManager.Items.length<2){if (okToLeaveApp()){oPlaylist.RemoveAll();oMediaPlayer.Stop();return false;}else {return true;}}var prevState = oBacklistManager.Items[oBacklistManager.Items.length -2];var prevTopic = prevState[0];var prevCat = prevState[1];var prevVidSize = prevState[2];var prevNavView = prevState[3];oBacklistManager.RemoveLast();if ((prevNavView == NAV_VIEW_PLAYLIST) && (oPlaylist.Items.length == 0))return videoGoBack();if (prevVidSize >= VIDEOSIZE_LARGE && oMediaPlayer.GetPlayState() == PLAYSTATE_STOPPED)return videoGoBack();if ((prevVidSize == VIDEOSIZE_NONE) && (g_nowSlideshowMode != SLIDESHOW_ON))prevVidSize = VIDEOSIZE_SMALL;if (oPlaylist.Items.length == 0)prevVidSize = VIDEOSIZE_NONE;if ((g_nowTopicInd == prevTopic) && (g_nowCatInd == prevCat) && (g_nowVideoSize == prevVidSize) && (g_nowNavView == prevNavView))return videoGoBack();g_nowTopicInd = prevTopic;g_nowCatInd = prevCat;setVideoSize(prevVidSize);setNavView(prevNavView);refreshFooter();return true;}function clickHelp(){if (okToLeaveApp())CallPaneHelp(PH_topicTOC,'MSNTV_TRS_TOC_Videos.htm');}function clickSlide(){var a = oSlideShow.Slides[oSlideShow.CurrentSlide].ShowcaseIndex;addSlideshowToPlaylist(a);oMessagePopup.AutoHide("Adding top videos to the playlist and preparing to play");setVideoSize(VIDEOSIZE_MEDIUM);setNavView(NAV_VIEW_PLAYLIST);refreshFooter();updateBacklist();playItemAfterAd(oPlaylist.Position+1);}function clickPlayTop(){clickSlide();}function clickPlayAll(){var topicName = (g_nowCatInd == -1) ? g_topics[g_nowTopicInd] : g_cats[g_nowTopicInd][g_nowCatInd];if (catHasClipsNotInPlaylist()){oMessagePopup.AutoHide("Adding all " + htmlDecode(topicName) + " videos to the playlist and preparing to play");addCategoryToPlaylist();setVideoSize(VIDEOSIZE_MEDIUM);updateBacklist();refreshFooter();playItemAfterAd(oPlaylist.Position+1);}else {clickThumb(0);}}function clickIcon(i){var iconInd = (i + oNavBar.CurrentRatchet) % oNavBar.HTML.length; try{var nowIcon = eval("menuItem_" + i);var ob;if (nowIcon.offsetLeft < 230){if (oVideoMetadata.IsSelectable())ob = oVideoMetadata.GetSelectableOb();if (oSlideShow.AbstractIsSelectable())ob = oSlideShow.AbstractDiv.Button;if (oOnDeckArea.IsSelectable())ob = oOnDeckArea.LinkSpan;}else {if (oAdManager.IsSelectable())ob = oAdManager.SelectableOb();if (oSlideShow.PanelIsSelectable())ob = oSlideShow.SlidePanel;if (oMediaPlayer.IsSelectable())ob = oMediaPlayer.Div;}if (ob!=null)ob.focus();}catch (e){}if (iconInd == oNavBar.HTML.length-1){clickPlaylistButton();}else {g_nowTopicInd = iconInd;g_nowCatInd = -1;setNavView(NAV_VIEW_BROWSE);updateBacklist();}}function overThumb(i){if (g_nowNavView != NAV_VIEW_HOME){var h = "(" + oNavBar.GetThumbIndex(i) + " of " + oBrowseHeader.MediaCount + ")";oBrowseHeader.SetText2(h);}}function clickBrowseButton(){oCategoryChooser.Show(g_nowTopicInd, g_nowCatInd);}function overBrowseButton(){oCategoryChooser.Hide();}function offBrowseButton(){oCategoryChooser.Hide();oNavBar.SetFocus();}function clickPip(){switch (g_nowVideoSize){case VIDEOSIZE_SMALL:setVideoSize(VIDEOSIZE_MEDIUM);updateBacklist();refreshFooter();break;case VIDEOSIZE_MEDIUM:setVideoSize(VIDEOSIZE_LARGE);updateBacklist();refreshFooter();break;}}function clickMoreInfo(){setVideoSize(VIDEOSIZE_SMALL);refreshFooter();updateBacklist();}function clickNormalView(){setVideoSize(VIDEOSIZE_MEDIUM);refreshFooter();updateBacklist();oVideoControls.Play.focus();}function clickBrwsBtn(i,j){oFooter.SetFocus();toCat(i,j);}function toCat(a,b){g_nowTopicInd = a;g_nowCatInd = b;setNavView(NAV_VIEW_BROWSE);updateBacklist();}function clickPlaylistButton(){if (oPlaylist.Items.length == 0){alert("Your playlist is empty. To add videos to your playlist, first choose a category, then find the video you want to add and press OK on your keyboard or remote control.");return;}if (g_nowVideoSize == VIDEOSIZE_MEDIUM)setVideoSize(VIDEOSIZE_SMALL);g_nowTopicInd = -1;g_nowCatInd = -1;setNavView(NAV_VIEW_PLAYLIST);refreshFooter();updateBacklist();}function clickHomeButton(){if (g_nowVideoSize == VIDEOSIZE_MEDIUM)setVideoSize(VIDEOSIZE_SMALL);setNavView(NAV_VIEW_HOME);refreshFooter();updateBacklist();}function clickDeleteAll(){if (oMessagePopup.Confirm("Are you sure you want to empty your playlist?")){oPlaylist.RemoveAll();g_ForceFullStop = true;oMediaPlayer.Stop();onPlaylistEnd();oMediaPlayer.IsPlayingAd = false;}}function clickAd(){DeviceClickAway(oAdManager.GetClickThroughUrl());}function clickFullScreen(){setVideoSize(VIDEOSIZE_LARGE);updateBacklist();refreshFooter();}function clickRelatedLink(url, ind){var trackingUrl = oTrackingManager.TrackRelatedLink(url, ind, oPlaylist.GetCurrent());DeviceClickAway(trackingUrl);}function onPlayListChange(){refreshPlaystateFeedback();}function onPrepareToPlay(){if (g_nowVideoSize == VIDEOSIZE_NONE){setVideoSize(VIDEOSIZE_SMALL);updateBacklist();refreshFooter();}}function onPlaylistEnd(){setNavView(NAV_VIEW_HOME);setVideoSize(VIDEOSIZE_NONE);refreshFooter();updateBacklist();oNavBar.Refresh();oNavBar.SetFocus();}function trackViewedClip(guid){var url = urlToUserActivity();url += "action=saveGuid&guid=" + guid;oDataFetcher.GetData(url, onTrackClip, onTrackClipFail);}function onTrackClip(){}function onTrackClipFail(){}function ratchetNavBar(dir, i){if (oNavBar.HTML.length > oNavBar.MenuCount){if (dir=='l')if (oNavBar.CurrentRatchet==0)oNavBar.Draw(oNavBar.HTML.length-1);else oNavBar.Draw(oNavBar.CurrentRatchet-1);else if (oNavBar.CurrentRatchet==oNavBar.HTML.length-1)oNavBar.Draw(0);else oNavBar.Draw(oNavBar.CurrentRatchet+1);}if (g_nowNavView != NAV_VIEW_HOME){var h = "(" + oNavBar.GetThumbIndex(i) + " of " + oBrowseHeader.MediaCount + ")";oBrowseHeader.SetText2(h);}}function clickThumb(ind){handleThumbClick(ind, oMediaPlayer.IsLoading);} \ No newline at end of file diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.886/localhost-1700/Shared/BaseClient/HTCTransforms/en-us/LoopingDIV.htc b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.886/localhost-1700/Shared/BaseClient/HTCTransforms/en-us/LoopingDIV.htc new file mode 100644 index 00000000..d069c583 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.886/localhost-1700/Shared/BaseClient/HTCTransforms/en-us/LoopingDIV.htc @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.886/localhost-1700/Shared/BaseClient/JsTransforms/en-us/PaneHelp.js b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.886/localhost-1700/Shared/BaseClient/JsTransforms/en-us/PaneHelp.js new file mode 100644 index 00000000..3c313644 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.886/localhost-1700/Shared/BaseClient/JsTransforms/en-us/PaneHelp.js @@ -0,0 +1 @@ +var PH_search = 0;var PH_specificPage = 1;var PH_TOC = 2;var PH_topicTOC = 3;var PH_diploma = 4;var helpServer = "help.msn.com/resources/targeted/en-us/msntvv1/content/"; function constructBaseURL(pageURL){if (navigator.userAgent.indexOf("STB") > 0){helpServer = window.external.SafeGetServiceURL('help::help');}return helpServer + "?page=";}var clientVerAppendStr = getClientVerAppendStr();function getClientVerAppendStr(){var agent = navigator.userAgent;var startOfVersionIndex = agent.indexOf("MSNTV");if (startOfVersionIndex == -1){return "";}else {startOfVersionIndex = startOfVersionIndex + 6;var endOfVersionIndex = agent.indexOf(";", startOfVersionIndex);var clientVersion = parseFloat(agent.substring(startOfVersionIndex, endOfVersionIndex));if (clientVersion <= 4.0)return "";else if (clientVersion == 4.1)return "_v11";else if (clientVersion == 4.2)return "_v12";else if (clientVersion == 4.3)return "_v13";else if (clientVersion == 5.0)return "_v20";else if (clientVersion == 5.1)return "_v21";else return "_v21";}}function insertVersionInFilename(filename){return filename;}function CallPaneHelp(hmode){if (hmode == PH_topicTOC){PaneHelpURL = constructBaseURL(arguments[1]) + insertVersionInFilename(arguments[1]);}else if (hmode == PH_diploma){PaneHelpURL = constructBaseURL(arguments[1]) + insertVersionInFilename(arguments[1]);if (arguments[2])PaneHelpURL += "&jumpURL=" + escape(arguments[2]);else PaneHelpURL += "&retURL=" + encodeURIComponent(window.location.href);}else if (hmode == PH_TOC){PaneHelpURL = constructBaseURL('MSNTV_ALTTOC_main.htm') + insertVersionInFilename('MSNTV_ALTTOC_main.htm');}else if (hmode == PH_search){alert("Help search is not supported");return;}else if (hmode == PH_specificPage){PaneHelpURL = constructBaseURL(arguments[1]) + insertVersionInFilename(arguments[1]);PaneHelpURL += "&retURL=" + encodeURIComponent(window.location.href);}top.location = PaneHelpURL;} \ No newline at end of file diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.900/Localhost-1700/HomeBB/Anduril/CssTransforms/en-us/Main.css b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.900/Localhost-1700/HomeBB/Anduril/CssTransforms/en-us/Main.css new file mode 100644 index 00000000..32371c5d --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.900/Localhost-1700/HomeBB/Anduril/CssTransforms/en-us/Main.css @@ -0,0 +1 @@ +.body{margin:0;font-family:Segoe;}.topDiv{width:560;height:277;background-image: url(/Images/HomeBB/BBHomeBG.jpg););}.headerDiv{width:560;height:26;color: #ffffff;}.headerSignOut{position:absolute;top:4px;left:476px;}.headerDate{position:absolute;top:4px;left:358px;}.psContainer{position:absolute;top:26;width:560;height:114;filter:progid:DXImageTransform.Microsoft.Fade(duration=1,overlap=.1);background-image: url(/Images/HomeBB/BBHomeBG.jpg););background-position: 0px -26px;}.psArea{width:560;height:114;display:none;}.psDiv {position:absolute;top:5;height:109;width:172;display:none; overflow:hidden;}.psDiv0{left:10;}.psDiv1{left:194;}.psDiv2{left:378;}.psImgDiv{position:absolute;width:172;height:85;overflow:hidden;border:1px solid;border-color:BECDF8;}.psImg{position:relative;width:172;height:113;top:-8;}.psImgDflt{position:relative;width:172;height:85;}.psCropTxt{position:absolute;top:88;width:172;color:OE296B;overflow: hidden; text-overflow:ellipsis; white-space:nowrap;display:none;}.psMarquee{position:absolute;top:88;width:172;height:21;display:none;}.psError{position:absolute;width:400;height:100;padding:10;display:none;}.rotatorDiv{position:absolute;top:140;width:187;height:117;filter:progid:DXImageTransform.Microsoft.Fade(Overlap=0.2, Duration=0.5);background-image: url(/Images/HomeBB/BBHomeBG.jpg););background-position: 0px -139px;}.rotatorSelect{position:absolute;top:8;left:10;width:171;height:101;}.rotatorPanel{position:absolute;top:5;left:10;width:171;height:101;display:none;font:18;color:202020;}.rotatorNextArea{position:absolute;left:10;top:250;height:20;width:171;}.nextBtn{position:absolute;left:5;height:20px;width:20px;behavior: url(#default#alphaImageLoader);src:/Images/HomeBB/NextBtn.png}.nextTxt{position:absolute;left:30;font:16;color:53545A;}.rotatorHeader{font:17;color:DBFFFF;}.wthrSpan1{font:24;weight:bold;}.wthrSpan2{font:16;color:1D1D1D;}.wthrSpan3{font-size:18px;zoom:70%;}.videoTitle{position:relative;top:0;}.videoImage{position:relative;top:10px;}.videoHeadline{position:relative;top:20px;left:5px;font:18;width:210;color:333333;}.promoText{color:14224B;size:18;}.usgTipsIcon{behavior: url(#default#alphaImageLoader);src: /Images/UsingMsntv/CenterIconTips.png;height:42px;width:43px;} .usgTTTIcon{behavior: url(#default#alphaImageLoader);src: /Images/UsingMsntv/CenterIconTTT.png;height:42px;width:43px;}.usgNwsIcon{behavior: url(#default#alphaImageLoader);src: /Images/UsingMsntv/CenterIconNewsletter.png;height:42px;width:43px;}.titleTxt{font:16;width:81;height:70;overflow:hidden; text-overflow:ellipsis; }.titleTxtPromo{font:16;width:120;height:70;overflow:hidden; text-overflow:ellipsis; }.titleTxtPromoNoImg{font:16;width:170;height:70;overflow:hidden; text-overflow:ellipsis; }.headlineDiv{position:absolute;top:137;left:193;height:137;width:367;overflow-y: auto;behavior: url(/Shared/Anduril/HTC/en-us/ScrollingDIV.htc);padding:8 10 0 0;}.headlineTitle{font:19;color:E0F6FF;weight:bold;}.headlineText{font:18;color:061537;text-decoration:none;text-overflow:ellipsis;}.rotatorStkTxt{font:16;color:14224B;}.rotatorStkRule{background-color: #6eb695;height: 1px;}.searchBarDiv{position:absolute;top:274;width:560;height:34;background-image:url(/Images/HomeBB/HPSearchBG.jpg);}a.searchLink:link, a.searchLink:visited, a.searchLink:hover{color: #f2f2f2;}.searchBarText{position:absolute;top:7px;left:8px;font-weight:bold;color:#f2f2f2;}.searchInput{background-color:#485364;color:white;}.searchBarRule{position:absolute;top:308; left:0;width:560;height:2px; background-color:#1c4373;}.navBarDiv{position:absolute; top:310px;left:0;height:70;width:560;background-image: url(/Images/Home/HomeLaunchBarBG.jpg);} \ No newline at end of file diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.900/Localhost-1700/HomeBB/Anduril/JsTransforms/en-us/Main.xslt b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.900/Localhost-1700/HomeBB/Anduril/JsTransforms/en-us/Main.xslt new file mode 100644 index 00000000..a3025153 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.900/Localhost-1700/HomeBB/Anduril/JsTransforms/en-us/Main.xslt @@ -0,0 +1 @@ +function Utils(){this.AddDiv = _utAddDiv;this.AddImg = _utAddImg;this.AddSpan = _utAddSpan;this.AddMarquee = _utAddMarquee;this.GetAppLoc = _utGetAppLoc;this.ImageTag = _utImageTag;this.ParseSeconds = _utParseSeconds;this.GetLargeImgUrl = _utGetLargeImgUrl;this.GetCookie = _utGetCookie;this.SetCookie = _utSetCookie;this.GetTimeStr = _utGetTimeStr;this.GetDateStr = _utGetDateStr;}function _utGetAppLoc(){var a = location.href;var b = a.substring(0,a.indexOf('://')+3);var c = a.substring(b.length, a.length);var d = c.substring(0,c.indexOf('/'));return b + d;}function _utAddSpan(ob){var newSpan = document.createElement("SPAN");return ob.appendChild(newSpan);}function _utAddDiv(ob){var newDiv = document.createElement("DIV");return ob.appendChild(newDiv);}function _utAddMarquee(ob, behav, dir, truSpd){var tag = document.createElement("MARQUEE");var newOb = ob.appendChild(tag);newOb.behavior = behav;newOb.direction = dir;newOb.trueSpeed = truSpd;return newOb;}function _utAddImg(ob){var newImg = document.createElement("IMG");return ob.appendChild(newImg);}function _utParseSeconds(sec){var mm = Math.floor(sec/60);var ss = sec - mm*60;if (mm == -1)return "00:00";else return ((mm < 10) ? "0" + mm : mm) + ":" + ((ss < 10) ? "0" + ss : ss);}function _utImageTag(src, w, h, className){var tag = "";this.CropTxt[i].innerHTML = captionArray[i];this.Marquee[i].innerHTML = captionArray[i];var div = eval("this.Div"+i);div.style.display = "block";this.Marquee[i].stop();this.CropTxt[i].style.display = "block";}}function _psOver(i){this.CropTxt[i].style.display = "none";this.Marquee[i].style.display = "block";this.Marquee[i].start();this.NowScrolling = i;}function _psOff(i){this.Marquee[i].stop();this.Marquee[i].style.display = "none";this.CropTxt[i].style.display = "block";}function _psShowDefaultImg(img){img.src = "/Images/HomeBB/defaultVideoPromo.jpg";img.className = "psImgDflt";}function Debugger(div){this.Div = div;this.Init = _dbInit;this.Append = _dbAppend;this.Overwrite = _dbOverwrite;}function _dbInit(){this.Text1 = oUtils.AddSpan(this.Div);this.Text1.className = "dbgTxt dbgTxt1";}function _dbAppend(html){this.Text1.innerHTML += html + "
";}function _dbOverwrite(html){this.Text1.innerHTML = html;}function Rotator(div, nextSpan){this.Div = div;this.NextSpan = nextSpan;this.Init = _roInit;this.Start = _roStart;this.ShowInd = _roShowInd;this.Show = _roShow;this.Hide = _roHide;this.Rotate = _roRotate;this.Click = _roClick;}function _roInit(types, counts, labels, intervalMls){this.Interval = intervalMls;var rotations = new Array();var panelLabels = new Array();var counters = new Array();for (var i=0; i= 1.2);var promoDataHasLoaded = false;var flourishIsDone = false;var flourishTimer;var promoError;var oUtils;var oDataFetcher;var oPromoStage;var oRotator;function init(){var rotatorInterval = 15000;oUtils = new Utils();oDataFetcher = new DataFetcher();oPromoStage = new PromoStage(psContainer, psFlourish, psMainDiv, psDiv0, psDiv1, psDiv2, psErrorDiv);oRotator = new Rotator(rotatorDiv, rotatorNextText);gAppLoc = oUtils.GetAppLoc();gLocalDateStr = oUtils.GetDateStr();gLocalTime = oUtils.GetTimeStr();day.innerHTML = gLocalDateStr;day.style.display = "inline";oDataFetcher.Init();oPromoStage.Init();oRotator.Init(rotationTypes, rotationCounts, rotationLabels, rotatorInterval); var url = "/VideoContent.ashx?contentType=userPlaylist&feature=homepagevideo&time=" + gLocalTime + "&excludeGuids=" + rotatorGuids;oDataFetcher.GetData(url, onLoadVideoPromos, onLoadPromosFail);oRotator.ShowInd(0, true);oRotator.Timer = window.setTimeout(function(){oRotator.Start()}, rotatorInterval);var ck = "bbhomeflourish";if (oUtils.GetCookie(ck) == null){oPromoStage.ShowFlourish();oUtils.SetCookie(ck, "done");}else {flourishIsDone = true; tryShowPromos("");}zydecoMessage();}function getCookie(c_name){var c_value = document.cookie;var c_start = c_value.indexOf(" " + c_name + "=");if (c_start == -1){c_start = c_value.indexOf(c_name + "=");}if (c_start == -1){c_value = null;}else {c_start = c_value.indexOf("=", c_start) + 1;var c_end = c_value.indexOf(";", c_start);if (c_end == -1){c_end = c_value.length;}c_value = unescape(c_value.substring(c_start,c_end));}return c_value;}function setZydecoCookie(value){var exdate=new Date();exdate.setDate(exdate.getDate() + 100);var c_value=escape(value) + "; expires="+exdate.toUTCString();document.cookie="zydeco=" + c_value;}function zydecoMessage(){var zydecoCookie=getCookie("zydeco");var msg = "The MSN TV 2 service will be closing on September 30, 2013."+" You should receive an email and letter providing more information."+" Please read the Closure FAQ for details on what"+" you should do before the service ends.";if (zydecoCookie == null){if(window.external.MessageBox(msg, "Important Message", "Cancel;Closure FAQ", 1, 0x30, 0)){window.location.href ="http://www.msntv.com/msntv2/ClosureFAQ.asp";}var zydecoCount = 1;setZydecoCookie(zydecoCount);}}function clickSlide(ind){var guids = oPromoStage.Guids;if (guids != null)toVideoApp(guids[ind], guids);}function clickRotatorVideo(guid){var guidstr = rotatorGuids.substring(1,rotatorGuids.length-1);var guids = guidstr.split('|');toVideoApp(guid, guids);}function toVideoApp(firstGuid, allGuids){var s = firstGuid;for (var i=0; i 2){oPromoStage.Load(g_scGuids, g_scImageUrls, g_scHeadlines);}else {promoError = "0";}}catch (error){promoError = "1";}tryShowPromos();}function onLoadPromosFail(){promoDataHasLoaded = true;promoError = "2";tryShowPromos();}function tryShowPromos(){if (promoDataHasLoaded && flourishIsDone){if (promoError != null)oPromoStage.ShowError(promoError);else oPromoStage.ShowPromos();}}function onFlourishEvent(command, args){switch (command){case "endFlourish":flourishIsDone = true; tryShowPromos(); break;}}function handleLoopingDivReady(){}var gScriptLoaded = true; \ No newline at end of file diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.900/Localhost-1700/MSNVideo/Anduril/CSSTransforms/en-us/Main.css b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.900/Localhost-1700/MSNVideo/Anduril/CSSTransforms/en-us/Main.css new file mode 100644 index 00000000..f6475212 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.900/Localhost-1700/MSNVideo/Anduril/CSSTransforms/en-us/Main.css @@ -0,0 +1 @@ +DIV{position:absolute;}.bodyDiv{width:560;height:420;overflow:hidden;}.bkg1{position:absolute;top:34;width:560;height:216;background-image:url(/Images/MSNVideo/ContentBg.jpg);}.bkg2{position:absolute;top:34;width:560;height:325;background-color:131517;}.bkg2spn1{position:absolute;top:9;left:16;width:530;height:265;background-color:010408;}.bkg2spn2{position:absolute;top:274;left:16;width:530;height:46;background-image:url(/Shared/Anduril/Images/en-us/_debug/Panels/Images/PanelPlayerLargeBG.jpg);}.bkg2spn3{position:absolute;top:320;left:16;width:530;height:6;background-color:16181A;}a{color:ffffff;}.bannerDiv{position:absolute;width:560;height:33;background-image:url(/Images/MSNVideo/Header.jpg);}.bannerLogo{position:absolute;left:22;top:6;font:bold 20;}.bannerHelp{position:absolute;left:469;top:6;font:18;}.bannerHelpImg{position:relative;left:4px;margin-left:4px;width:20;height:20;background-repeat: no-repeat;behavior:url(#default#alphaImageLoader);background:url(/Shared/Anduril/Images/en-us/_debug/Shared/Images/Icon_Help_RelatedLink.png);}.mediaPlayerDiv{position:absolute;}#mpStatusDiv{position:absolute;left:100;top:300;width:400;height:100;color:F2F2F2;}#pbDiv{position:absolute;top:285;left:226;width:320;height:25;color:87A3CA;}#pbTxt3{font-size:16;overflow: hidden; text-overflow:ellipsis; white-space:nowrap;width:115;}.vcDiv{position:absolute;width:320;height:46;}.vcDivPlaying{top:308;left:226;}.vcDivFullScrn{top:367;left:15;}.vcBtn{position:relative;width:39;height:46;behavior:url(#default#alphaImageLoader);}.vcMuteBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlMute.png); }.vcUnmuteBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlUnmute.png); }.vcPlayBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlPlay.png); }.vcPauseBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlPause.png); }.vcStopBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlStop.png); }.vcRewBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlRew.png); }.vcFwdBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlFF.png); }.vcPrevBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlPrev.png); }.vcNextBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlNext.png); }.vcFullScrn{position:absolute;left:200;top:12;font:16;}.vcNormView{position:absolute;left:385;top:24;font:16;}.vcStatus{position:absolute;left:392;top:3;width:151;white-space:nowrap;font-size:16;color:F2F2F2;}.brandingDiv{width:560;height:420;}.brandingAreaImage{position:absolute;}.vmDiv{position:absolute;top:80;height:146;left:15;width:348;overflow:hidden;}.videoMetadataInnerDiv{width:323;padding-bottom:16;}.vmTxt1{width:323;color:F2F2F2;padding-bottom:18;font:16;}.vmTxt2{width:323;color:87A3CA;font:bold 18;}.vmTxt3{width:323;color:87A3CA;font:bold 18;line-height:16px;padding-bottom:16;}.vmTxt4{width:323;color:87A3CA;padding-bottom:16;font:16;line-height:16px;}.vmLink{width:307;height:16;color:87A3CA;font:16;line-height:16px;overflow: hidden; text-overflow:ellipsis; white-space:nowrap;}.vmArrw{width:15;}.nowPlayingDiv{position:absolute;top:51;left:15;width:200;font:16;line-height:16px;text-align:top;}.npMsg{padding-left:10;width:200;color:F2F2F2;padding-bottom:18;}.npUpNxt{padding:0 0 18 10;width:200;color:87A3CA;}.npTitle{padding:39 0 15 10;width:200;color:87A3CA;}.npArrw{margin-left:10;width:12;}.onDeckDiv{position:absolute;left:25;width:190;top:212;height:69;font:16;color:87A3CA;line-height:16px;}.odThumb{width:92;height:69;}.odTxt1{position:absolute;left:98;width:92;height:22;overflow:hidden;}.odTxt2{position:absolute;left:98;width:92;top:22;height:49;overflow:hidden;}.odTxt3{width:190;height:69;}.amDiv{position:absolute;width:124;height:34;padding:2;}.ssPanel{position:absolute;top:45;left:340;width:200;height:150;}.ssAbstract{position:absolute;top:45;left:16;}.ssAbstractTxt{position:absolute;left:7;height:135;width:295;overflow:hidden;}.ssBtn{position:absolute;top:150;font:16;}.navBarDiv{text-align:left;position:absolute;top:240;height:118;width:560;overflow-x:hidden; white-space:nowrap;vertical-align:top;}.navBarDivIcon{background-image:url(/Images/MSNVideo/NavBgIcon.jpg);}.navBarDivThmb{background-image:url(/Images/MSNVideo/NavBgThmb.jpg);}.nbIcnSpn{width:120;height:110;margin:8 0 0 9;}.nbIcnTab{background-repeat: no-repeat;behavior:url(#default#alphaImageLoader);margin:0 9 0 9; width:111;height:106;letter-spacing:-0.2mm;}.nbArrSpn{width:22;height:118;padding:45 2 57 2; }.nbArrw{width:18;height:18;background-repeat: no-repeat;behavior:url(#default#alphaImageLoader);}.nbArrw_l{background:url(/Shared/Anduril/Images/en-us/_debug/Shared/Images/ScrollIndicatorLeftGlobal.png);}.nbArrw_r{background:url(/Shared/Anduril/Images/en-us/_debug/Shared/Images/ScrollIndicatorRightGlobal.png);}.nbThmSpn{margin:33 0 10 0;height:75;vertical-align:top;overflow:hidden;}.nbThmSpnWide{width:189;margin-right:20;}.nbThmSpnNrrw{width:98;}.nbThmSpnHilite{width:189;background-color:212A39;margin-right:20;}.nbThmTbl{position:relative;table-layout:fixed;height:70;}.nbThmTblA{color:F2F2F2;}.nbThmTblB{color:7C92B1;}.nbThmImg{width:92;height:70;}.nbThmTxt{width:91;height:64;overflow:hidden;font:16;line-height:16px;}.nbThmDvdrIcon{position:absolute;width:20;height:20;z-index:500;top:52;background-image:url(/Images/MSNVideo/EndDivider.gif);}.nbThmDvdrThmb{position:absolute;behavior:url(#default#alphaImageLoader);background:url(/Images/MSNVideo/ThumbnailDivider.png);width:15;height:106;z-index:500;top:20;}.nbVertDvdr{position:absolute;width:4;height:98;top:12;background-image:url(/Images/MSNVideo/VerticalDivider.jpg);}.browseHeaderDiv{position:absolute;top:247;left:23;width:545;height:25;font:16;color:87A3CA;z-index:2;}.browseHeaderTxt1{}.browseHeaderTxt2{margin-left:6;}.browseHeaderArrw{position:absolute;left:400;}.browseHeaderLink{position:absolute;left:415;}.footerDiv{position:absolute;top:358;height:64;width:560;background:292B2B;padding:5 15 0 15;z-index:2;overflow:hidden;text-align:right;}.footArrw{padding:0 8 0 15; }.footBtn{padding-top:3;font:16;color:F2F2F2;}.fullScreenPanelDiv{position:absolute;top:359;height:61;width:560;}.fspBkg{position:absolute;height:61;}.fspLeft{width:15;background-image:url(/Shared/Anduril/Images/en-us/_debug/Panels/Images/PanelPlayerSmallLeftSide.jpg);}.fspCenter{left:15;width:530;background-image:url(/Shared/Anduril/Images/en-us/_debug/Panels/Images/PanelPlayerSmallMiddleStretch.jpg);}.fspRight{width:15;left:545;background-image:url(/Shared/Anduril/Images/en-us/_debug/Panels/Images/PanelPlayerSmallRightSide.jpg);}.brwsCatDiv{position:absolute;width:205;z-index:10;left:15;}.popup{position:absolute;padding:3 0 0 7;width:205;height:26;font:16;color:001332;behavior:url(#default#alphaImageLoader);overflow: hidden; text-overflow:ellipsis; white-space:nowrap;}.popupTop{background:url(/Images/MSNVideo/VideoPopupTop.png);}.popupTopHL{color:05529D;font-weight:bold;letter-spacing:-0.2mm;}.popupBttm{top:0;left:15;text-align:left;letter-spacing:-0.2mm;overflow: hidden; text-overflow:ellipsis; white-space:nowrap;background:url(/Images/MSNVideo/VideoPopupBttm.png);} \ No newline at end of file diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.900/Localhost-1700/MSNVideo/Anduril/JsTransforms/en-us/Main.js b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.900/Localhost-1700/MSNVideo/Anduril/JsTransforms/en-us/Main.js new file mode 100644 index 00000000..eff7a138 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.900/Localhost-1700/MSNVideo/Anduril/JsTransforms/en-us/Main.js @@ -0,0 +1 @@ +function Background(div){this.Div = div;this.Draw1 = _bkDraw1;this.Draw2 = _bkDraw2;this.Show = _bkShow;this.Hide = _bkHide;this.Clear = _bkClear;}function _bkDraw1(){this.Div.className = "bkg1";this.Clear();}function _bkDraw2(){this.Div.className = "bkg2";this.Clear();var spn1 = addSpan(this.Div);spn1.className = "bkg2spn1";var spn2 = addSpan(this.Div);spn2.className = "bkg2spn2";var spn3 = addSpan(this.Div);spn3.className = "bkg2spn3";}function _bkShow(){this.Div.style.visibility = "visible";}function _bkHide(){this.Div.style.visibility = "hidden";}function _bkClear(){clearChildren(this.Div);}function Banner(div) {this.Div = div;this.Init = _baInit;this.Refresh = _baRefresh;this.Hide = _baHide;this.Show = _baShow;this.IsSelectable = _baIsSelectable;}function _baInit(){this.TextSpan = addSpan(this.Div);this.TextSpan.className = "bannerLogo";this.HelpBtn = addSpan(this.Div);this.HelpBtn.innerHTML = "Help ";InitNavObject(this.HelpBtn,"helpBtn","bannerHelp","","","","","","","clickHelp()");}function _baRefresh(){var txt = "MSN Video";if (g_nowVideoSize == VIDEOSIZE_SMALL){if (g_nowNavView == NAV_VIEW_PLAYLIST){txt += " — Playlist";}else if (g_nowNavView == NAV_VIEW_BROWSE){txt += " — " + g_topics[g_nowTopicInd];}}this.TextSpan.innerHTML = txt;}function _baHide(){this.Div.style.visibility = "hidden";}function _baShow(){this.Div.style.visibility = "visible";}function _baIsSelectable(){return (this.Div.style.visibility != "hidden");}function BrandingArea(div, cssClass) {this.Div = div;this.Clear = _brClear;this.Init = _brInit;this.Refresh = _brRefresh;this.Hide = _brHide;this.Show = _brShow;this.SetDimensions = _brSetDimensions;this.Div.className = cssClass;}function _brClear(){clearChildren(this.Div);}function _brInit(){this.Image = addImg(this.Div);this.Image.className = "brandingAreaImage";this.Image.src = "/Images/Shared/s.gif";}function _brSetDimensions(t, l, h, w){this.Image.style.top = t;this.Image.style.left = l;this.Image.style.height = h;this.Image.style.width = w;}function _brRefresh(){if (oPlaylist.Position==-1 || oMediaPlayer.IsPlayingAd || oMediaPlayer.GetPlayState()!=PLAYSTATE_PLAYING)this.Image.src = "/Images/Shared/s.gif";else if (oPlaylist.GetCurrent() != null)this.Image.src = "http://img.video.msn.com/s/us/sc/i/MSNTV/src/" + oPlaylist.GetCurrent().Source + ".gif";}function _brHide(){this.Div.style.visibility = "hidden";}function _brShow(){this.Div.style.visibility = "visible";}function BrowseHeader(div) {this.Div = div;this.Init = _bhInit;this.SetText1 = _bhSetText1;this.SetText2 = _bhSetText2;this.ShowLoadingMessage = _bhShowLoadingMessage;this.Clear = _bhClear;this.Hide = _bhHide;this.Show = _bhShow;}function _bhInit(){var ob;ob = addSpan(this.Div);ob.className = "browseHeaderTxt1";this.Text1 = ob;ob = addSpan(this.Div);ob.className = "browseHeaderTxt2";this.Text2 = ob;}function _bhSetText1(h){this.Text1.innerHTML = h;}function _bhSetText2(h){this.Text2.innerHTML = h;}function _bhShowLoadingMessage(str){this.Text1.innerHTML = "Please wait while we get " + str + " ready.";this.Text2.innerHTML = "";}function _bhClear(){this.Text1.innerHTML = "";this.Text2.innerHTML = "";}function _bhShow(){this.Div.style.visibility = "visible";}function _bhHide(){this.Div.style.visibility = "hidden";}function CategoryChooser(div, maxSubcats){this.Div = div;this.Init = _ccInit;this.Show = _ccShow;this.Hide = _ccHide;this.AppendBadCat = _ccAppendBadCat;this.ExcludeBtn = _ccExcludeBtn;this.MaxSubcats = maxSubcats;this.FailedSubcats = new Array();}function _ccInit(topics, cats, bottomY){var btn;var btns = new Array();for (var i=0; i= this.MaxSubcats) ? this.MaxSubcats : cats[i].length;for (var j=-1; j=0; j--){var nowBtn = this.Btns[i][j];if (i!=topicInd || this.ExcludeBtn(nowBtn.FullName)){nowBtn.Hide();}else {if (j==catInd+1 && i==topicInd)nowBtn.SetHighlight(true);else nowBtn.SetHighlight(false);nowBtn.style.bottom = bottomY;;bottomY += this.ButtonHeight;nowBtn.Show();}}}var popupHeight= (this.ButtonHeight * this.Btns[topicInd].length);this.Div.style.height = popupHeight;this.Div.style.top = this.BottomY - popupHeight;this.Div.style.visibility = "visible";try{this.Btns[topicInd][catInd+1].focus(); }catch (e){oFooter.SetFocus();}}function _ccHide(){for (var i=0; i= length)wmp.CurrentPosition = length;else wmp.CurrentPosition = currentPos + increment;}}}function _mpShowStatus(s){this.Status.innerHTML = s;}var MGX_ICON_ERROR= 0x10;var MGX_ICON_WARNING= 0x30;var MGX_ICON_INFO= 0x40;var MGX_SIZE_LARGE = 0x0;var MGX_SIZE_SMALL = 0x1;function MessagePopup(){this.Error = _msError;this.Warning = _msWarning;this.Info = _msInfo;this.Confirm = _msConfirm;this.AutoHide = _msAutoHide;}function _msError(msg, caption){alert(msg);}function _msWarning(msg, caption){alert(msg);}function _msInfo(msg, caption){alert(msg);}function _msConfirm(msg){return confirm(msg);}function _msAutoHide(msg){alert(msg);}function NavBar(div){this.Div = div;this.Clear = _nbClear;this.Draw = _nbDraw;this.Refresh = _nbRefresh;this.InitTopics = _nbInitTopics;this.SetFocus = _nbSetFocus;this.SetRatchet = _nbSetRatchet;this.GetThumbIndex = _nbGetThumbIndex;this.InitThumbnails = _nbInitThumbnails;this.IsSelectable = _nbIsSelectable;this.Show = _nbShow;this.Hide = _nbHide;}function _nbClear(){this.Div.className = "navBarDiv navBarDivThmb";clearChildren(this.Div);}function _nbDraw(ind){this.CurrentRatchet = ind;var dividerX = -100;var ob;var css;for (var i=0; i=this.HTML.length)j-=this.HTML.length;ob.innerHTML = this.HTML[j];ob.GUID = this.GUIDs[j];}if (this.Hanger != null && this.HTML.length>this.MenuCount){var j = ind+i;if (j==this.HTML.length)dividerX = this.Hanger.offsetLeft;if (j>=this.HTML.length)j-=this.HTML.length;this.Hanger.innerHTML = imageTag(this.Images[j], 92, 69, "nbThmImg");}if (this.HTML.length>this.MenuCount){this.LeftArrow.innerHTML = " ";this.RightArrow.innerHTML = " ";}else {this.LeftArrow.innerHTML = ""; this.RightArrow.innerHTML = ""; }if (this.Divider != null){this.Divider.style.left = dividerX - (this.Mode == "thumbnails" ? 18 : 24);}this.Refresh();}function _nbRefresh(){if (this.Mode != "thumbnails")return;var doHighlight;for (var i=0; i= 2) ? 2 : titles.length;this.Div.className = "navBarDiv navBarDivThmb";this.HTML = new Array();this.Images = new Array();this.GUIDs = guids;for (var i=0; i"+ ""+ ""+ imageTag(this.Images[i], 92, 69, "nbThmImg")+ ""+ ""+ ""+ txt+ ""+ ""+ ""+ "";this.HTML[i] = h;}this.LeftArrow = addSpan(this.Div);this.LeftArrow.className = "nbArrSpn";for (var i=0; i"+ ""+ ""+ txt + ""+ ""+ "";this.HTML[i] = h;}var ob;this.LeftArrow = addSpan(this.Div);this.LeftArrow.className = "nbArrSpn";var leftAction;var rightAction;for (var i=0; i Choose Play to begin again.";txt.className = "npMsg";this.SelectableOb = null;}else if (oMediaPlayer.IsPlayingAd){var txt = addSpan(this.Div);txt.innerHTML = "Up next after this advertisement:";txt.className = "npMsg";txt = addSpan(this.Div);txt.innerHTML = oPlaylist.GetCurrent().Title;txt.className = "npUpNxt";var arrw = addSpan(this.Div);arrw.innerHTML = bulletImage();arrw.className = "npArrw";this.MoreInfoBtn = addSpan(this.Div);this.MoreInfoBtn.innerHTML = "More info";InitNavObject(this.MoreInfoBtn,"moreInfoButton","","","","","","","","clickMoreInfo()");this.SelectableOb = this.MoreInfoBtn;}else {if (oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING){var txt = addSpan(this.Div);txt.innerHTML = oPlaylist.GetCurrent().Title;txt.className = "npTitle";var arrw = addSpan(this.Div);arrw.innerHTML = bulletImage();arrw.className = "npArrw";this.MoreInfoBtn = addSpan(this.Div);this.MoreInfoBtn.innerHTML = "More info";InitNavObject(this.MoreInfoBtn,"moreInfoButton","","","","","","","","clickMoreInfo()");this.SelectableOb = this.MoreInfoBtn;}else {var txt = addSpan(this.Div);txt.innerHTML = "Please wait while we get your video ready.";txt.className = "npMsg";this.SelectableOb = null;}}}function _npClear(){clearChildren(this.Div);}function _npShow(){this.Div.style.visibility = "visible";}function _npHide(){this.Div.style.visibility = "hidden";}function _npIsSelectable(){return ((this.Div.style.visibility != "hidden") && (this.SelectableOb!=null));}function OnDeckArea(div) {this.Div = div;this.Init = _odInit;this.Refresh = _odRefresh;this.Hide = _odHide;this.Show = _odShow;this.IsSelectable = _odIsSelectable;}function _odInit(){var ob;ob = addSpan(this.Div);ob.className = "odThumb";this.ThumbSpan = ob;ob = addSpan(this.Div);ob.className = "odTxt1";this.TextSpan1 = ob;ob = addSpan(this.Div);ob.className = "odTxt2";this.TextSpan2 = ob;ob = addSpan(this.Div);ob.className = "odTxt3";this.TextSpan3 = ob;}function _odRefresh(){this.ThumbSpan.innerHTML = "";this.TextSpan1.innerHTML = "";this.TextSpan2.innerHTML = "";this.TextSpan3.innerHTML = "";if (oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING && !oMediaPlayer.IsPlayingAd){if ((oPlaylist.Position == -1) || (oPlaylist.Position+1 >= oPlaylist.Items.length)){this.TextSpan3.innerHTML = "Up next: end of playlist";}else {var currentItem = oPlaylist.Items[oPlaylist.Position+1];this.ThumbSpan.innerHTML = imageTag(currentItem.Thumb, 92, 69, "");this.TextSpan1.innerHTML = "Up next:";this.TextSpan2.innerHTML = currentItem.Title;}}}function _odShow(){this.Div.style.visibility = "visible";}function _odHide(){this.Div.style.visibility = "hidden";}function _odIsSelectable(){return false;}function onBuffering(bStart){if (bStart){}else {refreshStatus();}}var g_ReadyState = 0; var rs_Uninitialized = 0;var rs_Loading = 1;var rs_Interactive = 3;var rs_Complete = 4;var g_clipLoadTimer;var g_adIsLoading;function onReadyStateChange(lReadyState){var hasLoaded = (g_ReadyState == rs_Loading && lReadyState == rs_Complete);refreshStatus();if (hasLoaded){oMediaPlayer.IsLoading = false;window.clearTimeout(g_clipLoadTimer);g_ForceFullStop = false; refreshPlaystateFeedback();oProgressBar.Reset();if (!oMediaPlayer.IsPlayingAd){if (oPlaylist.GetCurrent() != null){trackViewedClip(oPlaylist.GetCurrent().GUID);}}oMediaPlayer.ResetDimensions();}g_ReadyState = lReadyState;}function setClipLoadTimer(seconds, isAd){g_adIsLoading = isAd;var mls = parseInt(seconds)*1000;g_clipLoadTimer = window.setTimeout(function() {checkClipLoad();}, mls);}function checkClipLoad(){window.clearTimeout(g_clipLoadTimer);if(oMediaPlayer.IsLoading) {oMediaPlayer.IsLoading = false;oMediaPlayer.Cancel();if (g_adIsLoading){}else {var clip = oPlaylist.GetCurrent();if (clip = null){oMessagePopup.Warning("The video is not available", "");trackViewedClip(clip.GUID);}}postStopAction();return;}}var g_Rewinding = false;var g_ForceFullStop = false;var PLAYSTATE_STOPPED = 0;var PLAYSTATE_PAUSED = 1;var PLAYSTATE_PLAYING = 2;var PLAYSTATE_BUFFERING = 3;var PLAYSTATE_FWD = 4;var PLAYSTATE_REW = 5;var PLAYSTATE_FINISHED = -1;function onPlayStateChange(oldState, newState){refreshStatus();if (oldState == PLAYSTATE_BUFFERING && newState == PLAYSTATE_STOPPED){return;}switch (oMediaPlayer.GetPlayState()){case PLAYSTATE_STOPPED:postStopAction(); break; case PLAYSTATE_BUFFERING: break;case PLAYSTATE_PAUSED:g_Rewinding = false;postPauseAction();break;case PLAYSTATE_PLAYING:g_Rewinding = false;postPlayAction();break;case PLAYSTATE_FINISHED:break;case PLAYSTATE_FWD:g_Rewinding = false;break;case PLAYSTATE_REW:g_Rewinding = true;break;}}function postStopAction(){var l_ForceFullStop = g_ForceFullStop;var l_Rewinding = g_Rewinding;g_ForceFullStop = false;g_Rewinding = false;var action;if (l_ForceFullStop){}else if (l_Rewinding){window.setTimeout(function() {oMediaPlayer.Play();}, 1);}else if (oMediaPlayer.IsPlayingAd){oMediaPlayer.IsPlayingAd = false; playCurrent();}else if (oPlaylist.Position+1 < oPlaylist.Items.length){oPlaylist.MoveNext();playCurrent();}else {onPlaylistEnd();}}function postPlayAction(){}function postPauseAction(){}function playItemAfterAd(ind){if (oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING){if (oMediaPlayer.IsPlayingAd){oPlaylist.MoveTo(ind); }else {oPlaylist.MoveTo(ind-1); oMediaPlayer.Stop();}}else {oPlaylist.MoveTo(ind); playCurrent();}}function playCurrent(){if (oMediaPlayer.IsPlayingAd){if (oMediaPlayer.GetPlayState() != PLAYSTATE_PLAYING)oMediaPlayer.Play();return;}if (oPlaylist.GetCurrent() == null)return;onPrepareToPlay();if (oPlaylist.GetCurrent().GUID != oAdManager.CurrentGUID){oAdManager.CurrentGUID = oPlaylist.GetCurrent().GUID;oAdManager.SetPageGroup(oPlaylist.GetCurrent().PageGroup);oMediaPlayer.IsPlayingAd = oAdManager.EndUserSees=="video";}refreshPlaystateFeedback();iPlayNextTimerId = window.setTimeout(playCurrentB, 100);}function playCurrentB(){window.clearTimeout(iPlayNextTimerId);if (oMediaPlayer.IsPlayingAd){oAdManager.LoadNext();}else {if (oPlaylist.GetCurrent() != null){var url = oPlaylist.GetCurrent().URL;if (url.indexOf("/default.cdnx/") != -1)url += ".asx";oMediaPlayer.PlayMedia(url);oTrackingManager.TrackContentPlay(oPlaylist.GetCurrent());setClipLoadTimer(30, false);}}}function onLoadAdComplete(){oAdManager.ShowLeaveBehind();if (oMediaPlayer.IsPlayingAd){if (oAdManager.ClipSrc == "" || oAdManager.ClipSrc.indexOf(".gif") != -1){postStopAction();}else {oMediaPlayer.PlayMedia(oAdManager.ClipSrc);oTrackingManager.TrackAdPlay(oPlaylist.GetCurrent(), oAdManager.TrackingImgId);setClipLoadTimer(15, true);}}}function ProgressBar(div){this.Div = div;this.Init = _pbInit;this.Refresh = _pbRefresh;this.Reset = _pbReset;this.Hide = _pbHide;this.Show = _pbShow;this.SetStatus = _pbSetStatus;}function _pbInit(player, barWidth){var h = ""+ ""+ ""+ ""+ ""+ ""+ ""+ "
"+ ""+ ""+ ""+ ""+ ""+ ""+ ""+ "
";this.Div.innerHTML = h;this.Htc = pbHtc;this.Text1 = pbTxt1;this.Text2 = pbTxt2;this.StatusText = pbTxt3;this.Visible = false;this.Player = player;this.BarWidth = barWidth;}function _pbReset(){if (this.Visible){this.Text1.innerHTML = "00:00";this.Duration = Math.floor(this.Player.GetDuration());var mm = Math.floor(this.Duration/60);var ss = this.Duration - mm*60;this.Text2.innerHTML= ((mm < 10) ? "0" + mm : mm)+ ":"+ ((ss < 10) ? "0" + ss : ss);this.Htc.percentComplete = 0;this.Refresh();}}function _pbRefresh(){window.clearTimeout(this.TimerId);if (this.Visible){try{var mls = this.Player.GetMediaPosition();var sec = Math.floor(mls/1000);var mm = Math.floor(sec/60);var ss = sec - mm*60;if (mm == -1){this.Text1.innerHTML = "00:00";}else {this.Text1.innerHTML= ((mm < 10) ? "0" + mm : mm)+ ":"+ ((ss < 10) ? "0" + ss : ss);}this.Htc.percentComplete = Math.round(sec/this.Duration*100);}catch (exception){this.Text1.innerHTML = "00:00";this.Htc.percentComplete = 0;}this.TimerId = window.setTimeout(function() {oProgressBar.Refresh();}, 1000);}}function _pbHide(){clearTimeout(this.TimerId);this.Div.style.visibility = "hidden";this.Visible = false;}function _pbShow(){this.Visible = true;this.Reset();this.Div.style.visibility = "visible";}function _pbSetStatus(s){this.StatusText.innerHTML = s;}function SlideShow(slidePanel, abstractDiv){this.SlidePanel = slidePanel;this.AbstractDiv = abstractDiv;this.Init = _ssInit;this.Clear = _ssClear;this.Next = _ssNext;this.Hide = _ssHide;this.Show = _ssShow;this.ShowAbstract = _ssShowAbstract;this.PanelIsSelectable = _ssPanelIsSelectable;this.AbstractIsSelectable = _ssAbstractIsSelectable;}function _ssInit(slideHtml, abstractHtml){this.Clear();this.AbstractHtml = abstractHtml;this.Slides = new Array();var slide;for (var i=0; i");return toOb.appendChild(btn);}function bulletImage(){var h = " h){doTruncate = true;break;}htmlThatFits = textGauge.innerHTML;}}textGauge.style.display = "none";if (doTruncate){var tHtml = htmlThatFits;var lastChar = (tHtml.charAt(tHtml.length-2) == ",") ? tHtml.length-2 : tHtml.length-1;tHtml = tHtml.substring(0,lastChar);return (tHtml == "") ? "" : tHtml + "…";}else {return html;}}function truncateWord(w, maxChars){var s = "";var c = "";for (var i=0; i 0);showSkip = (oPlaylist.Position < oPlaylist.Items.length-1);}}this.Rew.style.display = (showRew) ? "inline" : "none"; this.Fwd.style.display = (showFwd) ? "inline" : "none"; this.Prev.style.display = (showPrev) ? "inline" : "none"; this.Next.style.display = (showSkip) ? "inline" : "none";if((nowFocusOb==this.Rew || nowFocusOb==this.Fwd || nowFocusOb==this.Prev || nowFocusOb==this.Next)&&(nowFocusOb.style.display == "none")&&(this.Div.style.visibility != "hidden")){if (showSkip) this.Next.focus();else if (showPrev) this.Prev.focus();else if (showFwd) this.Fwd.focus();else if (showRew) this.Rew.focus();else this.Stop.focus();}}catch (error){}}function _vcPlayingView(){this.Div.className = "vcDiv vcDivPlaying";this.FullScreenBtn.style.display = "inline";this.NormalViewBtn.style.display = "none";this.Mute.style.display = "none";this.UnMute.style.display = "none";this.Play.style.display = "inline";this.Pause.style.display = "inline";this.Stop.style.display = "inline";this.Rew.style.display = "none";this.Fwd.style.display = "none";this.Prev.style.display = "inline";this.Next.style.display = "inline";}function _vcFullScreenView(){this.Div.className = "vcDiv vcDivFullScrn";this.FullScreenBtn.style.display = "none";this.NormalViewBtn.style.display = "inline";this.RefreshMute();this.Play.style.display = "inline";this.Pause.style.display = "inline";this.Stop.style.display = "inline";this.Rew.style.display = "inline";this.Fwd.style.display = "inline";this.Prev.style.display = "inline";this.Next.style.display = "inline";}function _vcShow(){this.Div.style.visibility = "visible";this.HideShowBtns();}function _vcHide(){this.Div.style.visibility = "hidden";}function _vcIsSelectable(){return (this.Div.style.visibility != "hidden");}function _vcClickMute(){oMediaPlayer.Player.Mute = !oMediaPlayer.Player.Mute;oVideoControls.RefreshMute();if (oMediaPlayer.Player.Mute)oVideoControls.UnMute.focus();else oVideoControls.Mute.focus();}function _vcRefreshMute(){if (oMediaPlayer.Player.Mute){this.Mute.style.display = "none";this.UnMute.style.display = "inline";}else {this.Mute.style.display = "inline";this.UnMute.style.display = "none";}}function _vcClickPlay(){switch (oMediaPlayer.GetPlayState()){case PLAYSTATE_PLAYING:break;case PLAYSTATE_PAUSED:case PLAYSTATE_FWD:case PLAYSTATE_REW:case PLAYSTATE_STOPPED:oMediaPlayer.Play();refreshPlaystateFeedback();break;default:if (oPlaylist.Position == -1)oPlaylist.Position = 0;playCurrent();break;}}function _vcClickPause(){if (oMediaPlayer.GetPlayState() == PLAYSTATE_PAUSED){oMediaPlayer.Play();}else {try{oMediaPlayer.Pause();}catch (error){}}}function _vcClickStop(){window.clearTimeout(g_clipLoadTimer);if (oMediaPlayer.IsLoading){oMediaPlayer.Cancel();oMediaPlayer.IsLoading = false;}else if (oMediaPlayer.GetPlayState() == PLAYSTATE_STOPPED){}else {try{if (oMediaPlayer.GetPlayState() != PLAYSTATE_BUFFERING) g_ForceFullStop = true;oMediaPlayer.Stop();oMediaPlayer.SetMediaPosition(0);oBrandingArea.Refresh();oVideoMetadata.Refresh(true);oNowPlaying.Refresh(true);}catch (error){}}}function _vcClickRew(){oMediaPlayer.Rew();}function _vcClickFwd(){oMediaPlayer.Fwd();}function _vcClickPrev(){playItemAfterAd(oPlaylist.Position-1);}function _vcClickNext(){if (oPlaylist.Position+1 < oPlaylist.Items.length){g_ForceFullStop = true;oMediaPlayer.Stop();oPlaylist.MoveNext();playCurrent();}else {}}function VideoMetadata(div, innerDiv) {this.Div = div;this.InnerDiv = innerDiv;this.Init = _vmInit;this.Refresh = _vmRefresh;this.Clear = _vmClear;this.Hide = _vmHide;this.Show = _vmShow;this.IsSelectable = _vmIsSelectable;this.GetSelectableOb = _vmGetSelectableOb;}function _vmInit(){}function _vmRefresh(userStopped){this.Clear();if(oPlaylist.GetCurrent() == null)return;if (userStopped){var txt = addSpan(this.InnerDiv);txt.innerHTML = "You have stopped the video.

Choose Play to begin again.";txt.className = "vmTxt1";this.SelectableOb = null;}else if (oMediaPlayer.IsPlayingAd){var txt = addSpan(this.InnerDiv);txt.innerHTML = "Up next after this advertisement:";txt.className = "vmTxt1";txt = addSpan(this.InnerDiv);txt.innerHTML = oPlaylist.GetCurrent().Title;txt.className = "vmTxt2";this.SelectableOb = null;}else {if (oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING){var title = addSpan(this.InnerDiv);title.innerHTML = oPlaylist.GetCurrent().Title;title.className = "vmTxt3";var abstract = addSpan(this.InnerDiv);abstract.innerHTML = oPlaylist.GetCurrent().Caption;abstract.className = "vmTxt4";var urls = oPlaylist.GetCurrent().LinkUrls;var text = oPlaylist.GetCurrent().LinkText;var addedLink = false;for (var i=0; i 0){var i = this.Items[this.Items.length-1];if (i[0]==topicInd && i[1]==catInd && i[2]==videoSize && i[3]==navView){return;}if (i[0]==topicInd && i[1]==catInd && i[2]==videoSize && i[3]==navView){return;}}this.Items[this.Items.length] = new Array(topicInd, catInd, videoSize, navView);}function _bmRemoveLast(){var a = new Array();for (var i=0; i< this.Items.length-1; i++){a[i] = this.Items[i];}this.Items = a;}function DataFetcher(){this.Init = _dfInit;this.GetData = _dfGetData;this.OnLoad = _dfOnLoad;this.Cancel = _dfCancel;this.AppendToQueue = _dfAppendToQueue;this.PushToQueue = _dfPushToQueue;this.ClearQueue = _dfClearQueue;this.DomDoc = new ActiveXObject("Msxml2.DOMDocument");this.DomDoc.onreadystatechange = _dfCheckReadyState;this.DomDoc.async = true;}function _dfInit(){this.UrlQueue = new Array();this.OnSucceedQueue = new Array();this.OnFailQueue = new Array();}function _dfGetData(url, onSucceed, onFail){if (this.Url != null){this.PushToQueue(this.Url, this.OnSucceed, this.OnFail);}this.Url = url;this.OnSucceed = onSucceed;this.OnFail = onFail;this.DomDoc.load(url);}function _dfOnLoad(){this.Data = this.DomDoc.text;var f = (this.DomDoc.parseError.errorCode != 0) ? this.OnFail : this.OnSucceed;this.Url = null;this.OnSucceed = null;this.OnFail = null;f.call();if (this.UrlQueue.length != 0){this.GetData(this.UrlQueue[0], this.OnSucceedQueue[0], this.OnFailQueue[0]);var a1 = new Array();var a2 = new Array();var a3 = new Array();for (var i=0; i=0; i--){if (g_videoPaths[i] != ""){t_GUIDs[j] = g_GUIDs[i];j++;}}var clipsToAdd = false;for (var i=0; i=0; i--){if (g_videoPaths[i] != ""){t_GUIDs[j] = g_GUIDs[i];t_videoPaths[j] = g_videoPaths[i];t_headlines[j] = g_headlines[i];t_captions[j] = g_captions[i];t_imageUrls[j] = g_imageUrls[i];t_sources[j] = g_sources[i];t_relatedLinkUrls[j] = g_relatedLinkUrls[i];t_relatedLinkText[j] = g_relatedLinkText[i];t_PGs[j] = g_PGs[i];t_PSs[j] = g_PSs[i];t_IDs[j] = g_IDs[i];j++;}}oPlaylist.AddAll(t_GUIDs, t_videoPaths, t_headlines, t_captions, t_imageUrls, t_sources, t_relatedLinkUrls, t_relatedLinkText, t_PGs, t_PSs, t_IDs);}var p_types = new Array();var p_titles = new Array();var p_slideHtml = new Array();var p_abstractHtml = new Array();var p_metdataHtml = new Array();var p_userWeatherCity;var p_userWeatherConditionImg;var p_stockDirection;function setPersonalDataGlobals(types, titles, slideHtml, abstractHtml, metdataHtml, userWeatherCity, userWeatherConditionImg, stockDirection){p_types = types;p_titles = titles;p_slideHtml = slideHtml;p_abstractHtml = abstractHtml;p_metdataHtml = metdataHtml;p_userWeatherCity = userWeatherCity;p_userWeatherConditionImg = userWeatherConditionImg;p_stockDirection = stockDirection;}function addPersonalDataToGlobals(){var topicName = (g_nowCatInd == -1) ? g_topics[g_nowTopicInd] : g_cats[g_nowTopicInd][g_nowCatInd];var newType = "";if ((topicName == "Weather") && (p_userWeatherCity!=null)){newType = "Weather";}if (newType != ""){for (var i=g_types.length; i>0; i--){g_types[i] = g_types[i-1];g_GUIDs[i] = g_GUIDs[i-1];g_PGs[i] = g_PGs[i-1];g_PSs[i] = g_PSs[i-1];g_IDs[i] = g_IDs[i-1];g_sources[i] = g_sources[i-1];g_headlines[i] = g_headlines[i-1];g_captions[i] = g_captions[i-1];g_imageTypes[i] = g_imageTypes[i-1];g_imageUrls[i] = g_imageUrls[i-1];g_videoPaths[i] = g_videoPaths[i-1];g_articleUrls[i] = g_articleUrls[i-1];g_relatedLinkUrls[i] = g_relatedLinkUrls[i-1];g_relatedLinkText[i] = g_relatedLinkText[i-1];}g_types[0] = newType;g_GUIDs[0] = "";g_videoPaths[0] = "";}}function addSlideshowToPlaylist(firstInd){var a = (firstInd==null) ? 0 : firstInd;var t_GUIDs = new Array();var t_videoPaths = new Array();var t_headlines = new Array();var t_captions = new Array();var t_imageUrls = new Array();var t_sources = new Array();var t_relatedLinkUrls = new Array();var t_relatedLinkText = new Array();var t_PGs = new Array();var t_PSs = new Array();var t_IDs = new Array();var j = 0;for (var i=g_scGuids.length-1; i>=0; i--){if (i!=a){t_GUIDs[j] = g_scGuids[i];t_videoPaths[j] = g_scVideoUrls[i];t_headlines[j] = g_scHeadlines[i];t_captions[j] = g_scCaptions[i];t_imageUrls[j] = g_scImageUrls[i];t_sources[j] = g_scSources[i];t_relatedLinkUrls[j] = g_scRelatedLinkUrls[i];t_relatedLinkText[j] = g_scRelatedLinkText[i];t_PGs[j] = g_scPGs[i];t_PSs[j] = g_scPSs[i];t_IDs[j] = g_scIDs[i];j++;}}oPlaylist.AddAll(t_GUIDs, t_videoPaths, t_headlines, t_captions, t_imageUrls, t_sources, t_relatedLinkUrls, t_relatedLinkText, t_PGs, t_PSs, t_IDs);oPlaylist.PutNext(g_scGuids[a], g_scVideoUrls[a], g_scHeadlines[a], g_scCaptions[a], g_scImageUrls[a], g_scSources[a], g_scRelatedLinkUrls[a], g_scRelatedLinkText[a], g_scPGs[a], g_scPSs[a], g_scIDs[a]);}function handleThumbClick(ind, isLoading){var i = (ind + oNavBar.CurrentRatchet) % oNavBar.HTML.length;if (g_types[i] == "Weather"){showWeather();return;}if (g_types[i] == "Stocks"){showStocks();return;} var inPlaylistAtPos = oPlaylist.IndexOf(g_GUIDs[i]); var isPlaying = (oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING); var currentItemIsAd = oMediaPlayer.IsPlayingAd;if (inPlaylistAtPos != -1){if (currentItemIsAd){oMessagePopup.AutoHide("The selected video will play after the advertisement");playItemAfterAd(inPlaylistAtPos);return;}if (inPlaylistAtPos == oPlaylist.Position){if (isLoading){oMessagePopup.AutoHide("The selected video is currently loading");return;}else if (isPlaying){oMessagePopup.AutoHide("The selected video is currently playing");return;}}oMessagePopup.AutoHide("Preparing to play the selected video");playItemAfterAd(inPlaylistAtPos);return;}if (!oPlaylist.PutLast(g_GUIDs[i], g_videoPaths[i], g_headlines[i], g_captions[i], g_imageUrls[i], g_sources[i], g_relatedLinkUrls[i], g_relatedLinkText[i], g_PGs[i], g_PSs[i], g_IDs[i]))return;onPlayListChange();if (isLoading || isPlaying){oMessagePopup.AutoHide("Adding the selected video to the playlist");return;}oMessagePopup.AutoHide("Preparing to play the selected video");playItemAfterAd(oPlaylist.Items.length-1);}function getTopic_Cat(topicInd, catInd){return (catInd==-1) ? topicInd : topicInd + "_" + catInd;}function ImagePreloader() {this.Init = _ipInit;this.Start = _ipStart;this.GetNext = _ipGetNext;this.ImageOb = new Image();this.ImageOb.onload = function(){ oImagePreloader.GetNext() };this.LoadFunction = function(){ oImagePreloader.ImageOb.src = oImagePreloader.Images[oImagePreloader.NowInd]; };this.TimerId = null;}function _ipInit(imageArray){this.Images = imageArray;}function _ipStart(){this.NowInd = -1;this.GetNext();}function _ipGetNext(){window.clearTimeout(this.TimerId);this.NowInd++;if (this.NowInd <= this.Images.length-1){this.TimerId = window.setTimeout(this.LoadFunction, 1);}}function JsPreloader() {this.Init = _jsInit;this.Load = _jsLoad;this.LoadNext = _jsLoadNext;this.Urls = new Array();this.NowLoading = -1;}function _jsInit(topicIds, catIds, client){this.TopicIds = topicIds;this.CatIds = catIds;this.Client = client;}function _jsLoad(nowTopicInd, nowCatInd){this.Urls = new Array();this.NowLoading = -1;this.NowTopic = nowTopicInd;this.NowCat = nowCatInd;var idArray = new Array();if (nowTopicInd == -1){idArray = this.TopicIds;}else if (nowCatInd == -1){idArray = this.CatIds[nowTopicInd];}if (idArray != null){for (var i=0; iind; i--){this.Items[i] = this.Items[i-1];} this.Items[ind] = item;if (inPlaylistAtPos != -1){if (inPlaylistAtPos <= ind){this.Remove(inPlaylistAtPos);if (this.Position > 0)this.Position = this.Position-1;}else {this.Remove(inPlaylistAtPos+1);}}return this.OK;}oMessagePopup.Warning("The video was not added to your playlist because your list is full. The maximum number of videos your playlist can contain is " + this.MaxLength + ".", "");return this.MAX;}function _plRemove(ind){var tmpArr = new Array();var tmpInd = 0;for (var i=0; i=0 ; i--){item = new PlaylistItem(t_GUIDs[i], t_videoPaths[i], t_headlines[i], t_captions[i], t_imageUrls[i], t_sources[i], t_relatedLinkUrls[i], t_relatedLinkText[i], t_PGs[i], t_PSs[i], t_IDs[i]);if (oPlaylist.Insert(item, 0) != oPlaylist.OK)return;}var startItemGuid = getStartupParam("i");if (startItemGuid == "") startItemGuid = getStartupParam("g");if (startItemGuid != ""){var url = urlToGuidLookup(g_startUpParams);oDataFetcher.GetData(url, onGetItemByGuid, onGetItemByGuidFail);}else {DeviceSpecialStart();}}}catch (e){onGetPlaylistFail();}}function onGetPlaylistFail(){if ((getStartupParam("g")!="") || (getStartupParam("i")!="") || (getStartupParam("r")!="") || (getStartupParam("prepend")!="") || (getStartupParam("replace")!="")){var url = urlToGuidLookup(g_startUpParams);oDataFetcher.GetData(url, onGetItemByGuid, onGetItemByGuidFail);}else {DeviceDefaultStart();}}function onGetItemByGuid(){try{if (oDataFetcher.Data == ""){onGetItemByGuidFail();return;}eval(oDataFetcher.Data);var item;for (var i=t_GUIDs.length-1; i>=0 ; i--){item = new PlaylistItem(t_GUIDs[i], t_videoPaths[i], t_headlines[i], t_captions[i], t_imageUrls[i], t_sources[i], t_relatedLinkUrls[i], t_relatedLinkText[i], t_PGs[i], t_PSs[i], t_IDs[i]);if (oPlaylist.Insert(item, 0) != oPlaylist.OK)return;}DeviceSpecialStart();}catch (oError){onGetItemByGuidFail();}}function onGetItemByGuidFail(){DeviceDefaultStart();}function getInitialNavView(){var t_topicName = (getStartupParam("m")!="") ? getStartupParam("m") : getStartupParam("menu");var t_categoryName = (getStartupParam("mi")!="") ? getStartupParam("mi") : getStartupParam("menuItem");if (t_topicName!= null){var loadCategory = false;var initTopic = -1;var initCat = -1;for (var a=0; a0; i--){child = ob.children(i-1);ob.removeChild(child);}}function addDiv(ob){var newDiv = document.createElement("DIV");return ob.appendChild(newDiv);}function imageTag(src, w, h, className){var tag = " 0);var t_vidSize;if (!t_playing){t_vidSize = VIDEOSIZE_NONE;}else if (t_navView == NAV_VIEW_HOME){t_vidSize = VIDEOSIZE_MEDIUM;}else {t_vidSize = VIDEOSIZE_SMALL;_playAfterThumbnailLoad = true;t_playing = false;}setVideoSize(t_vidSize);setNavView(t_navView);refreshFooter();updateBacklist();if (t_playing){oPlaylist.MoveTo(0);playCurrent();}}function setVideoSize(videoSize){if (g_nowVideoSize == videoSize)return;g_nowVideoSize = videoSize;window.clearTimeout(iFullScreenTimerId);switch (videoSize){case VIDEOSIZE_NONE:setBodyBg("131517");toggleSlideshow(SLIDESHOW_ON);oMediaPlayer.SetDimensions(0, 0, 0, 0, 0, 0, 0, 0);oAdManager.SetPos(202, 418);oAdManager.Show();oBanner.Show();oBkg1.Show();oBkg2.Hide();oBrandingArea.Hide();oBrowseHeader.Show();oCategoryChooser.Hide();oFullScreenPanel.Hide();oMediaPlayer.Hide();oNavBar.Show();oNowPlaying.Hide();oOnDeckArea.Hide();oProgressBar.Hide();oSlideShow.Show();oVideoMetadata.Hide();oVideoControls.Hide();break;case VIDEOSIZE_SMALL:setBodyBg("131517");toggleSlideshow(SLIDESHOW_OFF);oBrandingArea.SetDimensions(41, 10, 35, 243);oMediaPlayer.SetDimensions(385, 41, 160, 120, 3, 3, 3, 3);oAdManager.SetPos(171, 422);oAdManager.Show();oBanner.Show();oBkg1.Show();oBkg2.Hide();oBrandingArea.Show();oBrowseHeader.Show();oCategoryChooser.Hide();oFullScreenPanel.Hide();oMediaPlayer.Show(true);oNavBar.Show();oNowPlaying.Hide();oOnDeckArea.Hide();oProgressBar.Hide();oSlideShow.Hide();oVideoMetadata.Show();oVideoControls.Hide();oMediaPlayer.Div.focus();break;case VIDEOSIZE_MEDIUM:setBodyBg("131517");toggleSlideshow(SLIDESHOW_OFF);oBrandingArea.SetDimensions(51, 20, 29, 201);oMediaPlayer.SetDimensions(226, 41, 320, 240, 3, 3, 3, 3);oAdManager.SetPos(315, 16);oAdManager.Show();oBanner.Show();oBkg1.Hide();oBkg2.Show();oBrandingArea.Show();oBrowseHeader.Hide();oCategoryChooser.Hide();oFullScreenPanel.Hide();oMediaPlayer.Show(true);oNavBar.Hide();oNowPlaying.Show();oOnDeckArea.Show();oProgressBar.Show();oSlideShow.Hide();oVideoMetadata.Hide();oVideoControls.PlayingView();oVideoControls.Show();oVideoControls.Play.focus();break;case VIDEOSIZE_LARGE:setBodyBg("000000");oMediaPlayer.SetDimensions(42, 0, 476, 357, 0, 66, 0, 66);oAdManager.Hide();oBanner.Hide();oBkg1.Hide();oBkg2.Hide();oBrandingArea.Hide();oBrowseHeader.Hide();oCategoryChooser.Hide();oFullScreenPanel.Show();oMediaPlayer.Show(false);oNavBar.Hide();oNowPlaying.Hide();oOnDeckArea.Hide();oProgressBar.Hide();oSlideShow.Hide();oVideoMetadata.Hide();oVideoControls.FullScreenView();oVideoControls.Show();oVideoControls.Play.focus();startFsCountdown();break;case VIDEOSIZE_FULL:setBodyBg("000000");toggleSlideshow(SLIDESHOW_OFF);oMediaPlayer.SetDimensions(0, 0, 560, 420, 0, 0, 0, 0);oAdManager.Hide();oBanner.Hide();oBkg1.Hide();oBkg2.Hide();oBrandingArea.Hide();oBrowseHeader.Hide();oCategoryChooser.Hide();oFullScreenPanel.Hide();oMediaPlayer.Show(false);oNavBar.Hide();oNowPlaying.Hide();oOnDeckArea.Hide();oProgressBar.Hide();oSlideShow.Hide();oVideoMetadata.Hide();oVideoControls.Hide();break;}oBanner.Refresh();refreshStatus();}function setBodyBg(clr){document.body.style.background = clr;}function refreshStatus(){var ps = oMediaPlayer.GetPlayState();var str;if (g_ReadyState < rs_Complete)str = "Connecting";else if (ps == PLAYSTATE_BUFFERING)str = "Loading";else if (ps == PLAYSTATE_STOPPED)str = "Stopped";else if (ps == PLAYSTATE_PLAYING)str = "Playing";else if (ps == PLAYSTATE_PAUSED)str = "Paused";else if (ps == PLAYSTATE_FWD)str = "Fast-forwarding";else if (ps == PLAYSTATE_REW)str = "Rewinding";else str = "";switch(g_nowVideoSize){case VIDEOSIZE_MEDIUM:oProgressBar.SetStatus(str);break;case VIDEOSIZE_LARGE:oVideoControls.SetStatus(str);break;}}function startFsCountdown(){window.clearTimeout(iFullScreenTimerId);iFullScreenTimerId = window.setTimeout(goFullScreen, 15000);}function goFullScreen(){setVideoSize(VIDEOSIZE_FULL);refreshFooter();updateBacklist();}function setNavView(view){oDataFetcher.ClearQueue();g_nowNavView = view;switch (view){case NAV_VIEW_HOME:g_nowTopicInd = -1;g_nowCatInd = -1;setMetaDataGlobals(null, null, null, null, null, null, null, null, null, null, null, null, null, null);oBrowseHeader.Clear();oNavBar.Clear();oNavBar.InitTopics(g_topics);oNavBar.SetFocus();break;case NAV_VIEW_PLAYLIST:var t_types = new Array();var t_GUIDs = new Array();var t_headlines = new Array();var t_captions = new Array();var t_imageUrls = new Array();var t_videoPaths = new Array();for (var i=0; i oNavBar.MenuCount)oNavBar.SetRatchet(oPlaylist.Position);else oNavBar.SetRatchet(0);oNavBar.SetFocus();if (_playAfterThumbnailLoad){_playAfterThumbnailLoad = false;oPlaylist.MoveTo(0);playCurrent();}break;case NAV_VIEW_BROWSE:var topicId = (g_nowCatInd == -1) ? g_topicIds[g_nowTopicInd] : g_catIds[g_nowTopicInd][g_nowCatInd];var topicName = (g_nowCatInd == -1) ? g_topics[g_nowTopicInd] : g_cats[g_nowTopicInd][g_nowCatInd];oNavBar.Clear();oCategoryChooser.Hide();oBrowseHeader.ShowLoadingMessage(topicName);var url = urlToJsLoader(topicId, "Anduril");oDataFetcher.GetData(url, onBrowseLoadComplete, onBrowseLoadFail);break;default:break;}oBanner.Refresh();}function onBrowseLoadComplete(){try{eval(oDataFetcher.Data);setMetaDataGlobals(t_types, t_GUIDs, t_PGs, t_PSs, t_IDs, t_sources, t_headlines, t_captions, t_imageTypes, t_imageUrls, t_videoPaths, t_articleUrls, t_relatedLinkUrls, t_relatedLinkText);oImagePreloader.Init(g_imageUrls);oImagePreloader.Start();completeBrowseView();}catch (error){onBrowseLoadFail();}refreshFooter();if (_playAfterThumbnailLoad){_playAfterThumbnailLoad = false;oPlaylist.MoveTo(0);playCurrent();}}function onBrowseLoadFail(){var topicName = (g_nowCatInd == -1) ? g_topics[g_nowTopicInd] : g_cats[g_nowTopicInd][g_nowCatInd];var badCat = getTopic_Cat(g_nowTopicInd, g_nowCatInd);oCategoryChooser.AppendBadCat(badCat);alert("The " + topicName + " category is currently unavailable. Please try again later.");setNavView(NAV_VIEW_HOME);}function completeBrowseView(){var headerText= ""+ g_topics[g_nowTopicInd]+ " — "+ ((g_nowCatInd == -1) ? "All" : g_cats[g_nowTopicInd][g_nowCatInd])+ "";var itemCount = g_headlines.length;oBrowseHeader.MediaCount = itemCount;oBrowseHeader.SetText1(headerText);oNavBar.InitThumbnails(g_headlines, g_imageUrls, g_GUIDs, g_topics[g_nowTopicInd]);oNavBar.SetFocus();}function refreshFooter(){switch (g_nowVideoSize){case VIDEOSIZE_MEDIUM:oFooter.DrawPlayingView();break;case VIDEOSIZE_LARGE:oFooter.Hide();break;case VIDEOSIZE_FULL:oFooter.Hide();break;default:switch (g_nowNavView){case NAV_VIEW_HOME:oFooter.DrawHomeView();break;case NAV_VIEW_PLAYLIST:oFooter.DrawPlaylistView();break;default:oFooter.DrawBrowseView();break;}break;}}function refreshPlaystateFeedback(){oBrandingArea.Refresh();oNowPlaying.Refresh(false);oNavBar.Refresh();oOnDeckArea.Refresh();oVideoMetadata.Refresh(false);oVideoControls.HideShowBtns();}function toggleSlideshow(setting){g_nowSlideshowMode = setting;if (g_nowSlideshowMode == SLIDESHOW_ON){var slides = new Array();for (var i=0; i';}var abstracts = new Array();for (var i=0; i" + "

" + "

" + g_ssCaptions[i] ;var h2 = truncateToHeight(295, 135, "20px", h1);abstracts[i]= ""+ h2+ "

";}oSlideShow.Init(slides, abstracts);iSlideShowTimerId = window.setTimeout(nextSlide, iSlideShowInterval);}else {window.clearTimeout(iSlideShowTimerId);}}function nextSlide(){window.clearTimeout(iSlideShowTimerId);oSlideShow.Next();iSlideShowTimerId = window.setTimeout(nextSlide, iSlideShowInterval);}function updateBacklist(){oBacklistManager.Append(g_nowTopicInd, g_nowCatInd, g_nowVideoSize, g_nowNavView);}function videoGoBack(){if (oCategoryChooser.Div.style.visibility == "visible"){oCategoryChooser.Hide();oFooter.SetFocus();return;}if (oBacklistManager.Items.length<2){if (okToLeaveApp()){oPlaylist.RemoveAll();oMediaPlayer.Stop();return false;}else {return true;}}var prevState = oBacklistManager.Items[oBacklistManager.Items.length -2];var prevTopic = prevState[0];var prevCat = prevState[1];var prevVidSize = prevState[2];var prevNavView = prevState[3];oBacklistManager.RemoveLast();if ((prevNavView == NAV_VIEW_PLAYLIST) && (oPlaylist.Items.length == 0))return videoGoBack();if (prevVidSize >= VIDEOSIZE_LARGE && oMediaPlayer.GetPlayState() == PLAYSTATE_STOPPED)return videoGoBack();if ((prevVidSize == VIDEOSIZE_NONE) && (g_nowSlideshowMode != SLIDESHOW_ON))prevVidSize = VIDEOSIZE_SMALL;if (oPlaylist.Items.length == 0)prevVidSize = VIDEOSIZE_NONE;if ((g_nowTopicInd == prevTopic) && (g_nowCatInd == prevCat) && (g_nowVideoSize == prevVidSize) && (g_nowNavView == prevNavView))return videoGoBack();g_nowTopicInd = prevTopic;g_nowCatInd = prevCat;setVideoSize(prevVidSize);setNavView(prevNavView);refreshFooter();return true;}function clickHelp(){if (okToLeaveApp())CallPaneHelp(PH_topicTOC,'MSNTV_TRS_TOC_Videos.htm');}function clickSlide(){var a = oSlideShow.Slides[oSlideShow.CurrentSlide].ShowcaseIndex;addSlideshowToPlaylist(a);oMessagePopup.AutoHide("Adding top videos to the playlist and preparing to play");setVideoSize(VIDEOSIZE_MEDIUM);setNavView(NAV_VIEW_PLAYLIST);refreshFooter();updateBacklist();playItemAfterAd(oPlaylist.Position+1);}function clickPlayTop(){clickSlide();}function clickPlayAll(){var topicName = (g_nowCatInd == -1) ? g_topics[g_nowTopicInd] : g_cats[g_nowTopicInd][g_nowCatInd];if (catHasClipsNotInPlaylist()){oMessagePopup.AutoHide("Adding all " + htmlDecode(topicName) + " videos to the playlist and preparing to play");addCategoryToPlaylist();setVideoSize(VIDEOSIZE_MEDIUM);updateBacklist();refreshFooter();playItemAfterAd(oPlaylist.Position+1);}else {clickThumb(0);}}function clickIcon(i){var iconInd = (i + oNavBar.CurrentRatchet) % oNavBar.HTML.length; try{var nowIcon = eval("menuItem_" + i);var ob;if (nowIcon.offsetLeft < 230){if (oVideoMetadata.IsSelectable())ob = oVideoMetadata.GetSelectableOb();if (oSlideShow.AbstractIsSelectable())ob = oSlideShow.AbstractDiv.Button;if (oOnDeckArea.IsSelectable())ob = oOnDeckArea.LinkSpan;}else {if (oAdManager.IsSelectable())ob = oAdManager.SelectableOb();if (oSlideShow.PanelIsSelectable())ob = oSlideShow.SlidePanel;if (oMediaPlayer.IsSelectable())ob = oMediaPlayer.Div;}if (ob!=null)ob.focus();}catch (e){}if (iconInd == oNavBar.HTML.length-1){clickPlaylistButton();}else {g_nowTopicInd = iconInd;g_nowCatInd = -1;setNavView(NAV_VIEW_BROWSE);updateBacklist();}}function overThumb(i){if (g_nowNavView != NAV_VIEW_HOME){var h = "(" + oNavBar.GetThumbIndex(i) + " of " + oBrowseHeader.MediaCount + ")";oBrowseHeader.SetText2(h);}}function clickBrowseButton(){oCategoryChooser.Show(g_nowTopicInd, g_nowCatInd);}function overBrowseButton(){oCategoryChooser.Hide();}function offBrowseButton(){oCategoryChooser.Hide();oNavBar.SetFocus();}function clickPip(){switch (g_nowVideoSize){case VIDEOSIZE_SMALL:setVideoSize(VIDEOSIZE_MEDIUM);updateBacklist();refreshFooter();break;case VIDEOSIZE_MEDIUM:setVideoSize(VIDEOSIZE_LARGE);updateBacklist();refreshFooter();break;}}function clickMoreInfo(){setVideoSize(VIDEOSIZE_SMALL);refreshFooter();updateBacklist();}function clickNormalView(){setVideoSize(VIDEOSIZE_MEDIUM);refreshFooter();updateBacklist();oVideoControls.Play.focus();}function clickBrwsBtn(i,j){oFooter.SetFocus();toCat(i,j);}function toCat(a,b){g_nowTopicInd = a;g_nowCatInd = b;setNavView(NAV_VIEW_BROWSE);updateBacklist();}function clickPlaylistButton(){if (oPlaylist.Items.length == 0){alert("Your playlist is empty. To add videos to your playlist, first choose a category, then find the video you want to add and press OK on your keyboard or remote control.");return;}if (g_nowVideoSize == VIDEOSIZE_MEDIUM)setVideoSize(VIDEOSIZE_SMALL);g_nowTopicInd = -1;g_nowCatInd = -1;setNavView(NAV_VIEW_PLAYLIST);refreshFooter();updateBacklist();}function clickHomeButton(){if (g_nowVideoSize == VIDEOSIZE_MEDIUM)setVideoSize(VIDEOSIZE_SMALL);setNavView(NAV_VIEW_HOME);refreshFooter();updateBacklist();}function clickDeleteAll(){if (oMessagePopup.Confirm("Are you sure you want to empty your playlist?")){oPlaylist.RemoveAll();g_ForceFullStop = true;oMediaPlayer.Stop();onPlaylistEnd();oMediaPlayer.IsPlayingAd = false;}}function clickAd(){DeviceClickAway(oAdManager.GetClickThroughUrl());}function clickFullScreen(){setVideoSize(VIDEOSIZE_LARGE);updateBacklist();refreshFooter();}function clickRelatedLink(url, ind){var trackingUrl = oTrackingManager.TrackRelatedLink(url, ind, oPlaylist.GetCurrent());DeviceClickAway(trackingUrl);}function onPlayListChange(){refreshPlaystateFeedback();}function onPrepareToPlay(){if (g_nowVideoSize == VIDEOSIZE_NONE){setVideoSize(VIDEOSIZE_SMALL);updateBacklist();refreshFooter();}}function onPlaylistEnd(){setNavView(NAV_VIEW_HOME);setVideoSize(VIDEOSIZE_NONE);refreshFooter();updateBacklist();oNavBar.Refresh();oNavBar.SetFocus();}function trackViewedClip(guid){var url = urlToUserActivity();url += "action=saveGuid&guid=" + guid;oDataFetcher.GetData(url, onTrackClip, onTrackClipFail);}function onTrackClip(){}function onTrackClipFail(){}function ratchetNavBar(dir, i){if (oNavBar.HTML.length > oNavBar.MenuCount){if (dir=='l')if (oNavBar.CurrentRatchet==0)oNavBar.Draw(oNavBar.HTML.length-1);else oNavBar.Draw(oNavBar.CurrentRatchet-1);else if (oNavBar.CurrentRatchet==oNavBar.HTML.length-1)oNavBar.Draw(0);else oNavBar.Draw(oNavBar.CurrentRatchet+1);}if (g_nowNavView != NAV_VIEW_HOME){var h = "(" + oNavBar.GetThumbIndex(i) + " of " + oBrowseHeader.MediaCount + ")";oBrowseHeader.SetText2(h);}}function clickThumb(ind){handleThumbClick(ind, oMediaPlayer.IsLoading);} \ No newline at end of file diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.900/Localhost-1700/Shared/Anduril/CssTransforms/en-us/Styles.css b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.900/Localhost-1700/Shared/Anduril/CssTransforms/en-us/Styles.css new file mode 100644 index 00000000..1b0ae161 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.900/Localhost-1700/Shared/Anduril/CssTransforms/en-us/Styles.css @@ -0,0 +1 @@ +TD.abTxt{padding-bottom:15;font:18 Segoe;color:#1D1D1D}TD.abLnks{vertical-align:bottom;text-align:right;}ul{margin-top:-2px;margin-bottom:15px;}ul li{margin-left:-24px;margin-bottom:5px;}ul li span.li{position:relative;top:2px;left:-4px;}ul.links{list-style:none;}ul.links li{ position:relative; top:2px; left:-15px; padding-left:13px; background:url(msntv:/Shared/images/BulletCustom.gif) no-repeat; background-position-y:3px;}ul.links li a{ display:inline-block;}TABLE.lotTbl{width:379;table-layout:fixed;}TR.lotR1{height:26;padding-left:8;}TR.lotR2{vertical-align:middle;height:45;font:16 Segoe;}TR.lotR3{height:45;background:#D6D6D7;}TR.lotR5{text-align: right;padding-top:10px;}TD.lotC1{width:110;background: #BFCED6;}TD.lotC2{width:151; background: #BFCED6;}TR.lotSpc{height:10;}TD.lotSpc2{width:2;}TD.lotSpc3{padding-left:8;}TABLE.setTbl{width:379;font:18 Segoe;}TR.setR1{padding-bottom:15;}TR.setR2{padding-bottom:8;}TR.setR3{padding-bottom:15;font:16 Segoe;}TR.setR4{padding-top:15;vertical-align:bottom;text-align:right;}TR.setR5{height:2;background:#919191;} TR.setR6A{}TR.setR6B{background:#BCDEE5;}BODY{margin:0 0 0 0;font:18 Segoe;color: #1D1D1D;behavior: url(/HTC/Shared/FocusBoxKeyHandler.htc);}A:link, A:visited{color: #14224B;text-decoration:none;}SELECT{font:12 Segoe;}SPAN.shrArrw{width:11;height:14;behavior: url(#default#alphaImageLoader);src:/Images/Shared/BulletCustom.png;margin:0 8 0 0;}A.shrLnk1{font:18}A.shrLnk2{font:bold 18;}.shrTxt {font:18}INPUT.shrStngInpt {background-color: #261f4d;color:white; }TABLE.cntr{width:560;height:384;}TABLE.cntrPht{width:560;height:384;behavior: url(#default#gradient);startColor:#B2B2B2;endColor: #EBEBEB;angle: 180;}TR.cntrHdr{height:56;}TR.cntrBdy{height:328;}TD.cntrSdbr{width:151;}TD.cntrSdbr{padding:10 0 10 0;}TD.cntrCnt{width:409;background-color:#E8E9EA;background-image:url(/Images/Shared/CenterBg.jpg);background-repeat:no-repeat;padding:15 0 15 8;}TD.cntrCntPht{width:409;background-repeat:no-repeat;padding:15 0 15 8;}TABLE.cntrHdr{width:542;margin-left:10;}TR.cntrHdrR1{height:29;text-align:right;}TR.cntrHdrR2{height:27;}SPAN.cntrHdrLnks{font:16 Segoe;top:1;color:#E6E6E6}#helpIcon{position: relative;top: 0px;left: 4px;margin-left: 4px;behavior: url(#default#alphaImageLoader);width: 20px;height: 20px;}.helpLink {font-size: 18px;font-weight: normal;display: inline-block;}a.helpLink:link, a.helpLink:visited, a.helpLink:hover {color: #F7F7F7;}SPAN.cntrHdr{top:-3; font:21 Segoe;}SPAN.cntrHdr2{color:#F7F7F7;font-weight: 600;}TABLE.sdbr{font:16 Segoe;color:#1D1D1D;width:151;}TR.sbBtn{height:24;padding-left:10;}TD.sbDiv2{height:1;background:#FFFFFF;}TABLE.sdbrRl{margin:45 10 0 8;border:1px solid;width:133;font:16 Segoe;}TABLE.sdbrPh1{margin:15 10 0 8;border:1px solid;width:133;font:16 Segoe;}DIV.cntntTtl{font:bold 18 Segoe;color:#0F6C1B;height:27;width:379;line-height:85%; }TABLE.cntntTbl{width:379;}.cntrbbModDiv{width:362; height:100;color: #020e29;font-size: 18px;}.cntrbbModBnnr{width:362; height:29;font:bold 21px;}.cntrbbModBnnrImg{width:29;height:22;behavior:url(#default#alphaImageLoader);filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/Images/Home/HomeBBVideo.png', sizingMethod='scale');src=/Images/Home/HomeBBVideo.png;}.cntrbbModBnnrTxt1{color: 434343;padding-right:5;}.cntrbbModImg{width:92;height:69;}.cntrbbModHead{position:absolute;top:95;left:260;width:260; height:23; font-weight:bold;overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}.cntrbbModCptn{position:absolute;left:260;width:260;height:23; overflow: hidden; white-space: nowrap;}.cntrbbModCptn1{top:119;}.cntrbbModCptn2{top:142;text-overflow: ellipsis; }.cntrbbModNoData{position:absolute;top:110;width: 350}DIV.cntntTtlEnt, .cntntTtlGam, .cntntTtlMny, .cntntTtlNws,.cntntTtlPht, .cntntTtlSet, .cntntTtlShp, .cntntTtlSpr, .cntntTtlUsng, .cntntTtlWthr{font:bold 18 Segoe;height:27;width:379;line-height:85%; }TD.cntrSdbrPht{background-color:#B2B2B2;}TD.cntrSdbrEnt, .cntrSdbrGam, .cntrSdbrMny, .cntrSdbrNws, .cntrSdbrSet, .cntrSdbrShp, .cntrSdbrSpr, .cntrSdbrUsng, .cntrSdbrWthr{width:151;padding:10 0 10 0;}TD.cntrHdrEnt { background:url(/Images/Shared/CenterHeaderEntertainment.jpg);}SPAN.hdrTxtEnt { color:#B7D3FD;}TD.sbDiv1Ent { height:1px; background:#275B81;}TD.sbBtnHlFntEnt { color:#A84C0E; font-weight: bold;}TD.cntrSdbrEnt{ background:url(/Images/Shared/CenterSideEntertainment.gif);}DIV.cntntTtlEnt { color:#A84C0E;}TD.cntrHdrGam { background:url(/Images/Shared/CenterHeaderGames.jpg) }SPAN.hdrTxtGam { color:#C2E5FF; }TD.sbDiv1Gam { height:1px; background:#168CD9;}TD.sbBtnHlFntGam { color:#B4571F; font-weight: bold;}TD.cntrSdbrGam { background:url(/Images/Shared/CenterSideGames.gif); }DIV.cntntTtlGam { color:#B4571F;}TD.cntrHdrMny { background:url(/Images/Shared/CenterHeaderMoney.jpg) }SPAN.hdrTxtMny { color:#BAF2C6; }TD.sbDiv1Mny { height:1px; background:#236C24;}TD.sbBtnHlFntMny { color:#A74403; font-weight: bold;}TD.cntrSdbrMny { background:url(/Images/Shared/CenterSideMoney.gif);}DIV.cntntTtlMny { color:#A74403;}SPAN.hdrTxtRad { color:#153A73; }TD.cntrHdrRad { background:url(/Images/Shared/MusicHeaderBG.jpg) }TD.cntrHdrNws { background:url(/Images/Shared/CenterHeaderNews.jpg) }SPAN.hdrTxtNws { color:#9DBBE5; }TD.sbDiv1Nws { height:1px; background:#2D7091;}TD.sbBtnHlFntNws { color:#A84C0E; font-weight: bold;}TD.cntrSdbrNws{ background:url(/Images/Shared/CenterSideNews.gif);}DIV.cntntTtlNws { color:#A84C0E;}TD.cntrHdrPht { background:url(/Images/Shared/PhotoHeader.jpg); }SPAN.hdrTxtPht { color:#B2B2B2; }DIV.cntntTtlPht { color:#CD1F36;}TD.cntrHdrSts { background:url(/Images/Shared/CenterHeader_DEBUG.jpg) }SPAN.hdrTxtStsWthr { color:#BBBBBB; }TD.sbDiv1Set { height:1px; background:#686868;}TD.sbBtnHlFntSet { color:#808080; font-weight: bold;}TD.cntrSdbrSet{ background-color:#808080;}DIV.cntntTtlSet { color:#989898;}TD.cntrHdrShr { background-color:#383838 }SPAN.hdrTxtShr { color:#BBBBBB; }TD.sbDiv1Shr { height:1px; background:#686868;}TD.sbBtnHlFntShr { color:#989898; font-weight: bold;}TD.cntrSdbrShr{ background-color:#808080;}DIV.cntntTtlShr { color:#989898;}TD.cntrHdrShp { background:url(/Images/Shared/CenterHeaderShopping.jpg) }SPAN.hdrTxtShp { color:#CFCBFE; }TD.sbDiv1Shp { height:1px; background:#7E5A96;}TD.sbBtnHlFntShp { color:#A93F26; font-weight: bold;}TD.cntrSdbrShp{background:url(/Images/Shared/CenterSideShopping.gif);}DIV.cntntTtlShp { color:#A93F26;}TD.cntrHdrSpr { background:url(/Images/Shared/CenterHeaderSports.jpg) }SPAN.hdrTxtSpr { color:#FDD8B8; }TD.sbDiv1Spr { height:1px; background:#963E0C;}TD.sbBtnHlFntSpr { color:#943100; font-weight: bold;}TD.cntrSdbrSpr{background:url(/Images/Shared/CenterSideSports.gif);}DIV.cntntTtlSpr { color:#943100; font-weight: bold;}TD.cntrHdrUsng { background:url(/Images/Shared/CenterHeaderUsingMSNTV.jpg) }SPAN.hdrTxtUsng { color:#B7FCDF; }TD.sbDiv1Usng { height:1px; background:#507126;}TD.sbBtnHlFntUsng { color:#9E4701; font-weight: bold;}TD.cntrSdbrUsng{background:url(/Images/Shared/CenterSideUsingMsntv.gif);}DIV.cntntTtlUsng { color:#9E4701;}TD.cntrHdrWthr { background:url(/Images/Shared/CenterHeaderWeather.jpg) }SPAN.hdrTxtWthr { color:#AAE1FF; }TD.sbDiv1Wthr { height:1px; background:#267082;}TD.sbBtnHlFntWthr{ color:#9C4E08; font-weight: bold;}TD.cntrSdbrWthr{ background:url(/Images/Shared/CenterSideWeather.gif);}DIV.cntntTtlWthr { color:#9C4E08;}TR.tsImg{padding-bottom:10; }TD.tsImg1{width:1%;font:10 Segoe;color:#1D1D1D;}TD.tsImg2{width:99%;padding-left:6; }DIV.tsImgLd{padding-top:6;}TR.tsHdlnRw{padding-bottom:6;}TD.tsCol1{width:12;}TD.tsCol2{width:367;}TR.tsLnks{padding-top:10;}TR.tsLnrl{height:2;background:#919191;}TR.tsSpc{height:8;}TABLE.wthTbl{width:379;table-layout:fixed;text-align:center;margin-top:7px;}DIV.wthGrd{width:401;height:26;margin-bottom:10;padding-top:2;font:bold 18;}TABLE.wthTblCC{width:379;table-layout:fixed;text-align:center;}DIV.wthCC{position: relative;top:0;left:0;padding:0 0 7 0;font:18;text-align:left;}SPAN.wthCCimg{position: relative;top:0;left:0;padding-right: 10;height:60;width:68;}SPAN.wthCC1{position: absolute;top:-5px;left:75px;font:36 Segoe;color:#0B9093;}SPAN.wthCC2{position: absolute;top: 40px;left:75px;color:#1D1D1Dmargin-top:15px;}TR.wthR1{height:28;font:18;}TR.wthR2{height:70;}TR.wthR4{text-align:left;padding:10 0 10 0;}TR.wthR5{text-align:right;}TD.wthBrnd{font-size:18px;zoom:70%;}TD.wthC1{width:2px;background:#919191;}TD.wthC2{width:94px;}SPAN.wthLo{font:18;color:#595D75;}DIV.wthInst{padding:0 0 15 0;font:18;width:379;}TABLE.entNws{margin:0 0 0 0;width:379;}TR.entNwsR2{height:25px;}TD.entNwsC1{width:400px;}TD.entNwsC2{width:30px;}TABLE.entMvSrch{margin:8 0 0 8;width:430px;background:#B7D3FD;}TR.entMvSrchR1{height:40px;}TD.entMvSrchC1{width:310px;}TD.entMvSrchC2{width:90px;}TD.entTpTvC1{width:100px;}TD.entTpTvC2{width:10px;}TD.entTpTvC3{width:300px;}TD.entTpTvC4{width:20px;}TABLE.entTvPt{margin:8 0 0 8;width:379;font-size:12;table-layout:fixed;}TABLE.entMvShw{margin:8 0 0 8;width:430px;}TD.entMvShwC1{width:400px;}TABLE.entPhts{margin:8 0 0 8;width:379;height:100px;}TD.mnystkcolspc {width:2;}TD.mnystkcol1 {width:75; background: #BBCEB0;}TD.mnystkcol2 {width:100; background: #BBCEB0;}TD.mnystkcol3 {width:110; background: #BBCEB0;}TD.mnystkcol4 {width:88; background: #BBCEB0;}TD.mnyDsclm{text-align:right;padding-top:10;padding-bottom:15;font-size:10;}TD.mnyDtlLnk{text-align:right;padding-bottom:15;}TD.mnyQlInst{padding-bottom:15;font:18;}TR.mnyBtnRw{vertical-align:bottom;text-align:right;}TD.mnyImg{padding-right:6;padding-left:6; }TR.mnyTR1{height: 90;}TR.mnyTr2{padding-top:10;}.mnyImageUp{behavior: url(#default#alphaImageLoader);src:/Images/Money/HomeStocksUpArrow.png;height:24px;width:14px;} .mnyImageDn{behavior: url(#default#alphaImageLoader);src:/Images/Money/HomeStocksDnArrow.png;height:24px;width:14px;} .eSextImgBorder {border: 1px solid black;width: 80;height: 80;}A.eSextTitle, .eSextTitle{font-size: 18px;font-weight: bold;}A.eSextLink, .eSextLink{font-size: 18px;font-weight: bold;} A.eSextMerchant, .eSextMerchant {font-size: 18px;}.eSextPromo {color: #ff6600;font-size: 18px;}.eSextPrice {font-size: 18px;font-weight: bold;}SPAN.usgCatLft {width:175;padding-left: 8;padding-bottom: 8;}SPAN.usgCatRt {width:175; padding-right: 8; padding-bottom: 8;}SPAN.usgCatTtl{color:#A84C0E;font:18px;font-weight:bold;background:#C7D1BE;width:181px;height:26px;vertical-align:middle;padding-left:8;}TABLE.usgTbl{width:379;}TABLE.usgCatTbl{background:#D3DACC;border:1px solid;border-color:#9A9A9A;width:379;}TABLE.usgLgTbl{width:198;}TABLE.usgSmTbl{width:183;}TD.usgTd2{padding-bottom:8;}TR.usgTr1{height:15;}TR.usgBtnRw{vertical-align:bottom;text-align:right;padding-top:15;}A.usgMainTtl, A.usgMainTtl:visited, A.usgMainTtl:active, A.usgMainTtl:hover{color:#9E4701;font-weight: bold;}.usgTipsIcon{behavior: url(#default#alphaImageLoader);src: /Images/UsingMsntv/CenterIconTips.png;height:42px;width:43px;} .usgNwsIcon{behavior: url(#default#alphaImageLoader);src: /Images/UsingMsntv/CenterIconNewsletter.png;height:42px;width:43px;}.usgTTTIcon{behavior: url(#default#alphaImageLoader);src: /Images/UsingMsntv/CenterIconTTT.png;height:42px;width:43px;} .usgImg{width:178;height:135;margin-right: 10px;}.usgTxt{color: #01682F}.cntntTtlUsng2{font:bold 18 Segoe;color:#9E4701;width:191;line-height:85%; }TR.gmsTr1{height:70;}TD.gmsTd1{width:60;}TD.gmsTd2{width:6;}TD.gmsTd3{width:343;}.stationCategoryHeader{color: #A73D0D;padding-bottom:5px;}.radioRule{width:550px;background-color: #97B7D3;height: 2px;position:relative;left:-12px;}ul.radLinks {list-style:none;}ul.radLinks{position:relative;top:2px;left:-30px;padding-left:15px; behavior: url(#default#alphaImageLoader);background:url(/Images/Shared/BulletCustom.png) no-repeat;background-position-y:3px;}TD.radcntrCnt{width:537px;height: 323;background-image:url(/Images/radio/MusicRadioHomePageBG3.jpg);padding: 15 8 0 15;}TD.radCnt{padding: 15 8 13 15;}DIV.radCntr{width:560;height: 380px;}TABLE.radHmBtmTbl{padding: 0 7 0 238}.radTd1{position:absolute;top:25px;left:0px;width:170px;padding-right:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.radTd2{position:absolute;top:25px;left:180px;width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}TD.radTd3{width:130 px;}TD.radBr{width:394px;}DIV.radSt{width:143px;}TD.radSB{left:403px; position:absolute; width:142pxbackground-color: #E3E9F4;}TD.radMain{width:369px; position:absolutebehavior: url(#default#gradient);startcolor: #E3E94F;endcolor: #B2C4DF;angle: 180;}.radPlus{position:absolute;left:238px;top:274;width:300px;height:98px;behavior: url(#default#gradient);startcolor: #C7EEFF;endcolor: #C7EEFF;starttransparency: 50%;endtransparency: 60%;border-style:solid;border-color:4163A3;border-width:1px;}.radPlsHdr{position:relative;top:10px;height:24px;behavior:url(#default#gradient);startColor:#2E5399;endcolor:#E9F8FF;angle:90;}.radPlusHdrTxt{position:relative;top:3px;left:14px;color:FFFFFF;}.radPlusTxt{position:relative;top:15px;left:14px;}.radPlusLnk{position:relative;top:20px;left:14px;}SPAN.radHdr{color:E6E6E6;font-size:21px;}DIV.cntrHdrRad { background: url(/Images/Shared/MusicHeader.jpg) no-repeat;top:0px; left:0px; height:56px; width:100%;}TD.cntrHdrRad2 { background: url(/Images/Shared/MusicHeader.jpg) no-repeat;top:0px; left:0px; height:56px; width:100%;}.radHdrLinks {font-size: 18px;font-weight: normal;display: inline-block;}a.radHdrLinks:link, a.radHdrLinks:visited, a.radHdrLinks:hover {color: #163973;}DIV.cntrRadHdr { font-family: segoe; color: #A93D0D; font-size: 20px; font-weight: bold;padding-bottom:2px;}.radStationAddRemTitle{width:325px; padding-left:8px}.cntrRadTxt { font-family: segoe; font-size: 18px; vertical-align:top;font-color:#213764;}a.cntrRadTxt:link, a.cntrRadTxt:visited a.cntrRadTxt:hover{font-color:#213764;} .cntrRadFvHmTxt { font-family: segoe; font-size: 18px; vertical-align:top;font-color:#2B2C29;}.cntrRadWmpTitleTxt { font-family: segoe; font-size: 18px; font-weight:bold; color:white }.cntrRadWmpTitleVal { font-family: segoe; font-size: 18px; font-weight:bold; color: #73DDA0 }hr.radDvdr{height:2px;width: 100%;border:#97B7D3 solid 2px;margin-top: 0px;margin-bottom: 0px;}.radInst{width:100%; padding-bottom:15px;}.sideBarBkg{position: absolute;top: 56px;right: 0px;width: 27%;height: 324px;padding-right: 8px;padding-left: 6px;padding-top: 10px;background-color:#D7EDFE;}.sideBarLclBkg{position: absolute;top: 56px;right: 0px;width: 27%;height: 324px;padding-right: 8px;padding-left: 6px;padding-top: 10px;background-color:#D7EDFE;}.sideBarButton{height: 26px;width: 100%;display: block;text-align:left;margin: 0 0 4px 0;}#scrollAreaLg{position: absolute;top: 0px;left: 0px;width: 100%;height: 324px;padding: 15 20 10 15;bottom: 0px;/*height: 1px; will be overridden (because of the bottom value) once the HTC loads */overflow-y: auto;behavior: url(/Shared/Anduril/HTC/en-us/ScrollingDIV.htc);}.scrollAreaBkg{position: relative;top: 0px;left: 0px;width: 73%;height: 324px;behavior: url(#default#gradient);startColor: #BDEAFF; endcolor: #D7ECFD;angle:180;}.scrollAreaLclBkg{position: relative;top: 0px;left: 0px;width: 73%;height: 324px;behavior: url(#default#gradient);startColor:#BDEAFF;endcolor: #D7ECFD;angle:180;}#stateScroll, #cityScroll{position: absolute;top: 0px;left: 0px;width: 100%;height: 300px;padding: 10 0 0 5;bottom: 0px;/*height: 1px; will be overridden (because of the bottom value) once the HTC loads */overflow-y: auto;behavior: url(/Shared/Anduril/HTC/en-us/ScrollingDIV.htc);}.scrollAreaBkgLft{position: absolute;top: 105px;left: 0px;width: 167px;height: 210px;margin-left:15px;background-color: #E1F5FE;border-color:#97B7D3;border-style:solid;border-width:1px;}.scrollAreaBkgRt{position: absolute;top: 105px;left: 190px;width: 214px;height: 210px;margin-right:22px;background-color: #E1F5FE;border-color:#97B7D3;border-style:solid;border-width:1px;}.cityList{display:none;}.lclTitleLft{position:absolute;top:80px;left:15px;height:26px;width:167;behavior:url(#default#gradient);startColor:#33508A;endcolor:#A3B8D5;angle:90;color:FFFFFF;padding-left:5px;padding-top:3px;}.lclTitleRt{position:absolute;top:80px;left:190px;height:26px;width:214;behavior:url(#default#gradient);startColor:#33508A;endcolor:#A3B8D5;angle:90;color:FFFFFF;padding-left:5px;padding-top:3px;display:none;overflow: hidden; text-overflow:ellipsis; white-space:nowrap;}.radLclInst{padding: 15 0 15 15;width:100%; }.radLclLnk{color:#ED3B0D}#favoriteDiv{width:185;}div.favLink{line-height:.95;width:185;margin:3 0 0 3;padding:2 2 2 2;display:none;}.upsellTextArea{padding: 15 0 15 15;} \ No newline at end of file diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.900/Localhost-1700/Shared/Anduril/JsTransforms/en-us/Scripts.js b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.900/Localhost-1700/Shared/Anduril/JsTransforms/en-us/Scripts.js new file mode 100644 index 00000000..49eb3799 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.900/Localhost-1700/Shared/Anduril/JsTransforms/en-us/Scripts.js @@ -0,0 +1 @@ +function submitReplace(f){var url = f.action + "?";for (var i=0; i -1)return true;}return false;}function isAllAlph(s){s = s.toLowerCase();for (var i=0; i -1)return true;}return false;}function isAllNums(s){for (var i=0; i 0; length--){var func = loadHandlerArray[length-1];func();}}function callCGif(url){var i = new Image();i.src = url;} \ No newline at end of file diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.900/Localhost-1700/Shared/BaseClient/JsTransforms/en-us/PaneHelp.js b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.900/Localhost-1700/Shared/BaseClient/JsTransforms/en-us/PaneHelp.js new file mode 100644 index 00000000..3e6d4da5 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.261.900/Localhost-1700/Shared/BaseClient/JsTransforms/en-us/PaneHelp.js @@ -0,0 +1,81 @@ +var PH_search = 0; +var PH_specificPage = 1; +var PH_TOC = 2; +var PH_topicTOC = 3; +var PH_diploma = 4; + +var helpServer = "help.msn.com/resources/targeted/en-us/msntvv1/content/"; + +function constructBaseURL(pageURL) +{ + if (navigator.userAgent.indexOf("STB") > 0) + { + helpServer = window.external.SafeGetServiceURL('help::help'); + } + return helpServer + "?page="; +} +var clientVerAppendStr = getClientVerAppendStr(); +function getClientVerAppendStr() { + var agent = navigator.userAgent; + var startOfVersionIndex = agent.indexOf("MSNTV"); + if (startOfVersionIndex == -1) + { return ""; } + else + { + startOfVersionIndex = startOfVersionIndex + 6; + var endOfVersionIndex = agent.indexOf(";", startOfVersionIndex); + var clientVersion = parseFloat(agent.substring(startOfVersionIndex, endOfVersionIndex)); + if (clientVersion <= 4.0) return ""; + else + if (clientVersion == 4.1) + return "_v11"; + else + if (clientVersion == 4.2) + return "_v12"; + else + if (clientVersion == 4.3) + return "_v13"; + else + if (clientVersion == 5.0) + return "_v20"; + else + if (clientVersion == 5.1) + return "_v21"; + else + return "_v21"; + } +} +function insertVersionInFilename(filename) +{ + return filename; +} +function CallPaneHelp(hmode) { + if (hmode == PH_topicTOC) + { + PaneHelpURL = constructBaseURL(arguments[1]) + insertVersionInFilename(arguments[1]); + } + else + if (hmode == PH_diploma) { + PaneHelpURL = constructBaseURL(arguments[1]) + insertVersionInFilename(arguments[1]); + if (arguments[2]) + PaneHelpURL += "&jumpURL=" + escape(arguments[2]); + else + PaneHelpURL += "&retURL=" + encodeURIComponent(window.location.href); + } + else + if (hmode == PH_TOC) + { + PaneHelpURL = constructBaseURL('MSNTV_ALTTOC_main.htm') + insertVersionInFilename('MSNTV_ALTTOC_main.htm'); + } + else + if (hmode == PH_search) + { + alert("Help search is not supported"); return; + } + else + if (hmode == PH_specificPage) + { + PaneHelpURL = constructBaseURL(arguments[1]) + insertVersionInFilename(arguments[1]); PaneHelpURL += "&retURL=" + encodeURIComponent(window.location.href); + } + top.location = PaneHelpURL; +} \ No newline at end of file diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.341.11/localhost-1700/MSNVideo/Anduril/CSSTransforms/en-us/Main.css b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.341.11/localhost-1700/MSNVideo/Anduril/CSSTransforms/en-us/Main.css new file mode 100644 index 00000000..274224cc --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.341.11/localhost-1700/MSNVideo/Anduril/CSSTransforms/en-us/Main.css @@ -0,0 +1 @@ +DIV{position:absolute;}.bodyDiv{width:560;height:384;overflow:hidden;}.bkg1{position:absolute;top:34;width:560;height:216;background-image:url(/Images/MSNVideo/ContentBg.jpg);}.bkg2{position:absolute;top:34;width:560;height:325;background-color:131517;}.bkg2spn1{position:absolute;top:9;left:16;width:530;height:265;background-color:010408;}.bkg2spn2{position:absolute;top:274;left:16;width:530;height:46;background-image:url(/Shared/Anduril/Images/en-us/_debug/Panels/Images/PanelPlayerLargeBG.jpg);}.bkg2spn3{position:absolute;top:320;left:16;width:530;height:6;background-color:16181A;}a{color:ffffff;}.bannerDiv{position:absolute;width:560;height:33;background-image:url(/Images/MSNVideo/Header.jpg);}.bannerLogo{position:absolute;left:22;top:6;font:bold 20;}.bannerHelp{position:absolute;left:469;top:6;font:18;}.bannerHelpImg{position:relative;left:4px;margin-left:4px;width:20;height:20;background-repeat: no-repeat;behavior:url(#default#alphaImageLoader);background:url(/Shared/Anduril/Images/en-us/_debug/Shared/Images/Icon_Help_RelatedLink.png);}.mediaPlayerDiv{position:absolute;}#mpStatusDiv{position:absolute;left:100;top:300;width:400;height:100;color:F2F2F2;}#pbDiv{position:absolute;top:285;left:226;width:320;height:25;color:87A3CA;}#pbTxt3{font-size:16;overflow: hidden; text-overflow:ellipsis; white-space:nowrap;width:115;}.vcDiv{position:absolute;width:320;height:46;}.vcDivPlaying{top:308;left:226;}.vcDivFullScrn{top:331px;left:15;}.vcBtn{position:relative;width:39;height:46;behavior:url(#default#alphaImageLoader);}.vcMuteBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlMute.png); }.vcUnmuteBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlUnmute.png); }.vcPlayBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlPlay.png); }.vcPauseBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlPause.png); }.vcStopBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlStop.png); }.vcRewBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlRew.png); }.vcFwdBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlFF.png); }.vcPrevBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlPrev.png); }.vcNextBtn { background:url(/Shared/Anduril/Images/en-us/_debug/Media/Assets/PanelPlayerControlNext.png); }.vcFullScrn{position:absolute;left:200;top:12;font:16;}.vcNormView{position:absolute;left:385;top:24;font:16;}.vcStatus{position:absolute;left:392;top:3;width:151;white-space:nowrap;font-size:16;color:F2F2F2;}.brandingDiv{width:560;height:384;}.brandingAreaImage{position:absolute;}.vmDiv{position:absolute;top:80;height:146;left:15;width:348;overflow:hidden;}.videoMetadataInnerDiv{width:323;padding-bottom:16;}.vmTxt1{width:323;color:F2F2F2;padding-bottom:18;font:16;}.vmTxt2{width:323;color:87A3CA;font:bold 18;}.vmTxt3{width:323;color:87A3CA;font:bold 18;line-height:16px;padding-bottom:16;}.vmTxt4{width:323;color:87A3CA;padding-bottom:16;font:16;line-height:16px;}.vmLink{width:307;height:16;color:87A3CA;font:16;line-height:16px;overflow: hidden; text-overflow:ellipsis; white-space:nowrap;}.vmArrw{width:15;}.nowPlayingDiv{position:absolute;top:51;left:15;width:200;font:16;line-height:16px;text-align:top;}.npMsg{padding-left:10;width:200;color:F2F2F2;padding-bottom:18;}.npUpNxt{padding:0 0 18 10;width:200;color:87A3CA;}.npTitle{padding:39 0 15 10;width:200;color:87A3CA;}.npArrw{margin-left:10;width:12;}.onDeckDiv{position:absolute;left:25;width:190;top:212;height:69;font:16;color:87A3CA;line-height:16px;}.odThumb{width:92;height:69;}.odTxt1{position:absolute;left:98;width:92;height:22;overflow:hidden;}.odTxt2{position:absolute;left:98;width:92;top:22;height:49;overflow:hidden;}.odTxt3{width:190;height:69;}.amDiv{position:absolute;width:124;height:34;padding:2;}.ssPanel{position:absolute;top:45;left:340;width:200;height:150;}.ssAbstract{position:absolute;top:45;left:16;}.ssAbstractTxt{position:absolute;left:7;height:135;width:295;overflow:hidden;}.ssBtn{position:absolute;top:150;font:16;}.navBarDiv{text-align:left;position:absolute;top:240;height:118;width:560;overflow-x:hidden; white-space:nowrap;vertical-align:top;}.navBarDivIcon{background-image:url(/Images/MSNVideo/NavBgIcon.jpg);}.navBarDivThmb{background-image:url(/Images/MSNVideo/NavBgThmb.jpg);}.nbIcnSpn{width:120;height:110;margin:8 0 0 9;}.nbIcnTab{background-repeat: no-repeat;behavior:url(#default#alphaImageLoader);margin:0 9 0 9; width:111;height:106;letter-spacing:-0.2mm;}.nbArrSpn{width:22;height:118;padding:45 2 57 2; }.nbArrw{width:18;height:18;background-repeat: no-repeat;behavior:url(#default#alphaImageLoader);}.nbArrw_l{background:url(/Shared/Anduril/Images/en-us/_debug/Shared/Images/ScrollIndicatorLeftGlobal.png);}.nbArrw_r{background:url(/Shared/Anduril/Images/en-us/_debug/Shared/Images/ScrollIndicatorRightGlobal.png);}.nbThmSpn{margin:33 0 10 0;height:75;vertical-align:top;overflow:hidden;}.nbThmSpnWide{width:189;margin-right:20;}.nbThmSpnNrrw{width:98;}.nbThmSpnHilite{width:189;background-color:212A39;margin-right:20;}.nbThmTbl{position:relative;table-layout:fixed;height:70;}.nbThmTblA{color:F2F2F2;}.nbThmTblB{color:7C92B1;}.nbThmImg{width:92;height:70;}.nbThmTxt{width:91;height:64;overflow:hidden;font:16;line-height:16px;}.nbThmDvdrIcon{position:absolute;width:20;height:20;z-index:500;top:52;background-image:url(/Images/MSNVideo/EndDivider.gif);}.nbThmDvdrThmb{position:absolute;behavior:url(#default#alphaImageLoader);background:url(/Images/MSNVideo/ThumbnailDivider.png);width:15;height:106;z-index:500;top:20;}.nbVertDvdr{position:absolute;width:4;height:98;top:12;background-image:url(/Images/MSNVideo/VerticalDivider.jpg);}.browseHeaderDiv{position:absolute;top:247;left:23;width:545;height:25;font:16;color:87A3CA;z-index:2;}.browseHeaderTxt1{}.browseHeaderTxt2{margin-left:6;}.browseHeaderArrw{position:absolute;left:400;}.browseHeaderLink{position:absolute;left:415;}.footerDiv{position:absolute;top:358;height:28;width:560;background:292B2B;padding:5 15 0 15;z-index:2;overflow:hidden;text-align:right;}.footArrw{padding:0 8 0 15; }.footBtn{padding-top:3;font:16;color:F2F2F2;}.fullScreenPanelDiv{position:absolute;top:323;height:61;width:560;}.fspBkg{position:absolute;height:61;}.fspLeft{width:15;background-image:url(/Shared/Anduril/Images/en-us/_debug/Panels/Images/PanelPlayerSmallLeftSide.jpg);}.fspCenter{left:15;width:530;background-image:url(/Shared/Anduril/Images/en-us/_debug/Panels/Images/PanelPlayerSmallMiddleStretch.jpg);}.fspRight{width:15;left:545;background-image:url(/Shared/Anduril/Images/en-us/_debug/Panels/Images/PanelPlayerSmallRightSide.jpg);}.brwsCatDiv{position:absolute;width:205;z-index:10;left:15;}.popup{position:absolute;padding:3 0 0 7;width:205;height:26;font:16;color:001332;behavior:url(#default#alphaImageLoader);overflow: hidden; text-overflow:ellipsis; white-space:nowrap;}.popupTop{background:url(/Images/MSNVideo/VideoPopupTop.png);}.popupTopHL{color:05529D;font-weight:bold;letter-spacing:-0.2mm;}.popupBttm{top:0;left:15;text-align:left;letter-spacing:-0.2mm;overflow: hidden; text-overflow:ellipsis; white-space:nowrap;background:url(/Images/MSNVideo/VideoPopupBttm.png);} \ No newline at end of file diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.341.11/localhost-1700/MSNVideo/Anduril/JsTransforms/en-us/Main.js b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.341.11/localhost-1700/MSNVideo/Anduril/JsTransforms/en-us/Main.js new file mode 100644 index 00000000..4f07b451 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/2.0.341.11/localhost-1700/MSNVideo/Anduril/JsTransforms/en-us/Main.js @@ -0,0 +1 @@ +function Background(div){this.Div = div;this.Draw1 = _bkDraw1;this.Draw2 = _bkDraw2;this.Show = _bkShow;this.Hide = _bkHide;this.Clear = _bkClear;}function _bkDraw1(){this.Div.className = "bkg1";this.Clear();}function _bkDraw2(){this.Div.className = "bkg2";this.Clear();var spn1 = addSpan(this.Div);spn1.className = "bkg2spn1";var spn2 = addSpan(this.Div);spn2.className = "bkg2spn2";var spn3 = addSpan(this.Div);spn3.className = "bkg2spn3";}function _bkShow(){this.Div.style.visibility = "visible";}function _bkHide(){this.Div.style.visibility = "hidden";}function _bkClear(){clearChildren(this.Div);}function Banner(div) {this.Div = div;this.Init = _baInit;this.Refresh = _baRefresh;this.Hide = _baHide;this.Show = _baShow;this.IsSelectable = _baIsSelectable;}function _baInit(){this.TextSpan = addSpan(this.Div);this.TextSpan.className = "bannerLogo";this.HelpBtn = addSpan(this.Div);this.HelpBtn.innerHTML = "Help ";InitNavObject(this.HelpBtn,"helpBtn","bannerHelp","","","","","","","clickHelp()");}function _baRefresh(){var txt = "MSN Video";if (g_nowVideoSize == VIDEOSIZE_SMALL){if (g_nowNavView == NAV_VIEW_PLAYLIST){txt += " — Playlist";}else if (g_nowNavView == NAV_VIEW_BROWSE){txt += " — " + g_topics[g_nowTopicInd];}}this.TextSpan.innerHTML = txt;}function _baHide(){this.Div.style.visibility = "hidden";}function _baShow(){this.Div.style.visibility = "visible";}function _baIsSelectable(){return (this.Div.style.visibility != "hidden");}function BrandingArea(div, cssClass) {this.Div = div;this.Clear = _brClear;this.Init = _brInit;this.Refresh = _brRefresh;this.Hide = _brHide;this.Show = _brShow;this.SetDimensions = _brSetDimensions;this.Div.className = cssClass;}function _brClear(){clearChildren(this.Div);}function _brInit(){this.Image = addImg(this.Div);this.Image.className = "brandingAreaImage";this.Image.src = "/Images/Shared/s.gif";}function _brSetDimensions(t, l, h, w){this.Image.style.top = t;this.Image.style.left = l;this.Image.style.height = h;this.Image.style.width = w;}function _brRefresh(){if (oPlaylist.Position==-1 || oMediaPlayer.IsPlayingAd || oMediaPlayer.GetPlayState()!=PLAYSTATE_PLAYING)this.Image.src = "/Images/Shared/s.gif";else if (oPlaylist.GetCurrent() != null)this.Image.src = "http://video.msn.com/s/us/sc/i/MSNTV/src/" + oPlaylist.GetCurrent().Source + ".gif";}function _brHide(){this.Div.style.visibility = "hidden";}function _brShow(){this.Div.style.visibility = "visible";}function BrowseHeader(div) {this.Div = div;this.Init = _bhInit;this.SetText1 = _bhSetText1;this.SetText2 = _bhSetText2;this.ShowLoadingMessage = _bhShowLoadingMessage;this.Clear = _bhClear;this.Hide = _bhHide;this.Show = _bhShow;}function _bhInit(){var ob;ob = addSpan(this.Div);ob.className = "browseHeaderTxt1";this.Text1 = ob;ob = addSpan(this.Div);ob.className = "browseHeaderTxt2";this.Text2 = ob;}function _bhSetText1(h){this.Text1.innerHTML = h;}function _bhSetText2(h){this.Text2.innerHTML = h;}function _bhShowLoadingMessage(str){this.Text1.innerHTML = "Please wait while we get " + str + " ready.";this.Text2.innerHTML = "";}function _bhClear(){this.Text1.innerHTML = "";this.Text2.innerHTML = "";}function _bhShow(){this.Div.style.visibility = "visible";}function _bhHide(){this.Div.style.visibility = "hidden";}function CategoryChooser(div, maxSubcats){this.Div = div;this.Init = _ccInit;this.Show = _ccShow;this.Hide = _ccHide;this.AppendBadCat = _ccAppendBadCat;this.ExcludeBtn = _ccExcludeBtn;this.MaxSubcats = maxSubcats;this.FailedSubcats = new Array();}function _ccInit(topics, cats, bottomY){var btn;var btns = new Array();for (var i=0; i= this.MaxSubcats) ? this.MaxSubcats : cats[i].length;for (var j=-1; j=0; j--){var nowBtn = this.Btns[i][j];if (i!=topicInd || this.ExcludeBtn(nowBtn.FullName)){nowBtn.Hide();}else {if (j==catInd+1 && i==topicInd)nowBtn.SetHighlight(true);else nowBtn.SetHighlight(false);nowBtn.style.bottom = bottomY;;bottomY += this.ButtonHeight;nowBtn.Show();}}}var popupHeight= (this.ButtonHeight * this.Btns[topicInd].length);this.Div.style.height = popupHeight;this.Div.style.top = this.BottomY - popupHeight;this.Div.style.visibility = "visible";try{this.Btns[topicInd][catInd+1].focus(); }catch (e){oFooter.SetFocus();}}function _ccHide(){for (var i=0; i= length)wmp.CurrentPosition = length;else wmp.CurrentPosition = currentPos + increment;}}}function _mpShowStatus(s){this.Status.innerHTML = s;}var MGX_ICON_ERROR= 0x10;var MGX_ICON_WARNING= 0x30;var MGX_ICON_INFO= 0x40;var MGX_SIZE_LARGE = 0x0;var MGX_SIZE_SMALL = 0x1;function MessagePopup(){this.Error = _msError;this.Warning = _msWarning;this.Info = _msInfo;this.Confirm = _msConfirm;this.AutoHide = _msAutoHide;}function _msError(msg, caption){alert(msg);}function _msWarning(msg, caption){alert(msg);}function _msInfo(msg, caption){alert(msg);}function _msConfirm(msg){return confirm(msg);}function _msAutoHide(msg){alert(msg);}function NavBar(div){this.Div = div;this.Clear = _nbClear;this.Draw = _nbDraw;this.Refresh = _nbRefresh;this.InitTopics = _nbInitTopics;this.SetFocus = _nbSetFocus;this.SetRatchet = _nbSetRatchet;this.GetThumbIndex = _nbGetThumbIndex;this.InitThumbnails = _nbInitThumbnails;this.IsSelectable = _nbIsSelectable;this.Show = _nbShow;this.Hide = _nbHide;}function _nbClear(){this.Div.className = "navBarDiv navBarDivThmb";clearChildren(this.Div);}function _nbDraw(ind){this.CurrentRatchet = ind;var dividerX = -100;var ob;var css;for (var i=0; i=this.HTML.length)j-=this.HTML.length;ob.innerHTML = this.HTML[j];ob.GUID = this.GUIDs[j];}if (this.Hanger != null && this.HTML.length>this.MenuCount){var j = ind+i;if (j==this.HTML.length)dividerX = this.Hanger.offsetLeft;if (j>=this.HTML.length)j-=this.HTML.length;this.Hanger.innerHTML = imageTag(this.Images[j], 92, 69, "nbThmImg");}if (this.HTML.length>this.MenuCount){this.LeftArrow.innerHTML = " ";this.RightArrow.innerHTML = " ";}else {this.LeftArrow.innerHTML = ""; this.RightArrow.innerHTML = ""; }if (this.Divider != null){this.Divider.style.left = dividerX - (this.Mode == "thumbnails" ? 18 : 24);}this.Refresh();}function _nbRefresh(){if (this.Mode != "thumbnails")return;var doHighlight;for (var i=0; i= 2) ? 2 : titles.length;this.Div.className = "navBarDiv navBarDivThmb";this.HTML = new Array();this.Images = new Array();this.GUIDs = guids;for (var i=0; i"+ ""+ ""+ imageTag(this.Images[i], 92, 69, "nbThmImg")+ ""+ ""+ ""+ txt+ ""+ ""+ ""+ "";this.HTML[i] = h;}this.LeftArrow = addSpan(this.Div);this.LeftArrow.className = "nbArrSpn";for (var i=0; i"+ ""+ ""+ txt + ""+ ""+ "";this.HTML[i] = h;}var ob;this.LeftArrow = addSpan(this.Div);this.LeftArrow.className = "nbArrSpn";var leftAction;var rightAction;for (var i=0; i Choose Play to begin again.";txt.className = "npMsg";this.SelectableOb = null;}else if (oMediaPlayer.IsPlayingAd){var txt = addSpan(this.Div);txt.innerHTML = "Up next after this advertisement:";txt.className = "npMsg";txt = addSpan(this.Div);txt.innerHTML = oPlaylist.GetCurrent().Title;txt.className = "npUpNxt";var arrw = addSpan(this.Div);arrw.innerHTML = bulletImage();arrw.className = "npArrw";this.MoreInfoBtn = addSpan(this.Div);this.MoreInfoBtn.innerHTML = "More info";InitNavObject(this.MoreInfoBtn,"moreInfoButton","","","","","","","","clickMoreInfo()");this.SelectableOb = this.MoreInfoBtn;}else {if (oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING){var txt = addSpan(this.Div);txt.innerHTML = oPlaylist.GetCurrent().Title;txt.className = "npTitle";var arrw = addSpan(this.Div);arrw.innerHTML = bulletImage();arrw.className = "npArrw";this.MoreInfoBtn = addSpan(this.Div);this.MoreInfoBtn.innerHTML = "More info";InitNavObject(this.MoreInfoBtn,"moreInfoButton","","","","","","","","clickMoreInfo()");this.SelectableOb = this.MoreInfoBtn;}else {var txt = addSpan(this.Div);txt.innerHTML = "Please wait while we get your video ready.";txt.className = "npMsg";this.SelectableOb = null;}}}function _npClear(){clearChildren(this.Div);}function _npShow(){this.Div.style.visibility = "visible";}function _npHide(){this.Div.style.visibility = "hidden";}function _npIsSelectable(){return ((this.Div.style.visibility != "hidden") && (this.SelectableOb!=null));}function OnDeckArea(div) {this.Div = div;this.Init = _odInit;this.Refresh = _odRefresh;this.Hide = _odHide;this.Show = _odShow;this.IsSelectable = _odIsSelectable;}function _odInit(){var ob;ob = addSpan(this.Div);ob.className = "odThumb";this.ThumbSpan = ob;ob = addSpan(this.Div);ob.className = "odTxt1";this.TextSpan1 = ob;ob = addSpan(this.Div);ob.className = "odTxt2";this.TextSpan2 = ob;ob = addSpan(this.Div);ob.className = "odTxt3";this.TextSpan3 = ob;}function _odRefresh(){this.ThumbSpan.innerHTML = "";this.TextSpan1.innerHTML = "";this.TextSpan2.innerHTML = "";this.TextSpan3.innerHTML = "";if (oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING && !oMediaPlayer.IsPlayingAd){if ((oPlaylist.Position == -1) || (oPlaylist.Position+1 >= oPlaylist.Items.length)){this.TextSpan3.innerHTML = "Up next: end of playlist";}else {var currentItem = oPlaylist.Items[oPlaylist.Position+1];this.ThumbSpan.innerHTML = imageTag(currentItem.Thumb, 92, 69, "");this.TextSpan1.innerHTML = "Up next:";this.TextSpan2.innerHTML = currentItem.Title;}}}function _odShow(){this.Div.style.visibility = "visible";}function _odHide(){this.Div.style.visibility = "hidden";}function _odIsSelectable(){return false;}function onBuffering(bStart){if (bStart){}else {refreshStatus();}}var g_ReadyState = 0; var rs_Uninitialized = 0;var rs_Loading = 1;var rs_Interactive = 3;var rs_Complete = 4;var g_clipLoadTimer;var g_adIsLoading;function onReadyStateChange(lReadyState){var hasLoaded = (g_ReadyState == rs_Loading && lReadyState == rs_Complete);refreshStatus();if (hasLoaded){oMediaPlayer.IsLoading = false;window.clearTimeout(g_clipLoadTimer);g_ForceFullStop = false; refreshPlaystateFeedback();oProgressBar.Reset();if (!oMediaPlayer.IsPlayingAd){if (oPlaylist.GetCurrent() != null){trackViewedClip(oPlaylist.GetCurrent().GUID);}}oMediaPlayer.ResetDimensions();}g_ReadyState = lReadyState;}function setClipLoadTimer(seconds, isAd){g_adIsLoading = isAd;var mls = parseInt(seconds)*1000;g_clipLoadTimer = window.setTimeout(function() {checkClipLoad();}, mls);}function checkClipLoad(){window.clearTimeout(g_clipLoadTimer);if(oMediaPlayer.IsLoading) {oMediaPlayer.IsLoading = false;oMediaPlayer.Cancel();if (g_adIsLoading){}else {var clip = oPlaylist.GetCurrent();if (clip != null){oMessagePopup.Warning("The video is not available", "");trackViewedClip(clip.GUID);}}postStopAction();return;}}var g_Rewinding = false;var g_ForceFullStop = false;var PLAYSTATE_STOPPED = 0;var PLAYSTATE_PAUSED = 1;var PLAYSTATE_PLAYING = 2;var PLAYSTATE_BUFFERING = 3;var PLAYSTATE_FWD = 4;var PLAYSTATE_REW = 5;var PLAYSTATE_FINISHED = -1;function onPlayStateChange(oldState, newState){refreshStatus();if (oldState == PLAYSTATE_BUFFERING && newState == PLAYSTATE_STOPPED){return;}switch (oMediaPlayer.GetPlayState()){case PLAYSTATE_STOPPED:postStopAction(); break; case PLAYSTATE_BUFFERING: break;case PLAYSTATE_PAUSED:g_Rewinding = false;postPauseAction();break;case PLAYSTATE_PLAYING:g_Rewinding = false;postPlayAction();break;case PLAYSTATE_FINISHED:break;case PLAYSTATE_FWD:g_Rewinding = false;break;case PLAYSTATE_REW:g_Rewinding = true;break;}}function postStopAction(){var l_ForceFullStop = g_ForceFullStop;var l_Rewinding = g_Rewinding;g_ForceFullStop = false;g_Rewinding = false;var action;if (l_ForceFullStop){}else if (l_Rewinding){window.setTimeout(function() {oMediaPlayer.Play();}, 1);}else if (oMediaPlayer.IsPlayingAd){oMediaPlayer.IsPlayingAd = false; playCurrent();}else if (oPlaylist.Position+1 < oPlaylist.Items.length){oPlaylist.MoveNext();playCurrent();}else {onPlaylistEnd();}}function postPlayAction(){}function postPauseAction(){}function playItemAfterAd(ind){if (oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING){if (oMediaPlayer.IsPlayingAd){oPlaylist.MoveTo(ind); }else {oPlaylist.MoveTo(ind-1); oMediaPlayer.Stop();}}else {oPlaylist.MoveTo(ind); playCurrent();}}function playCurrent(){if (oMediaPlayer.IsPlayingAd){if (oMediaPlayer.GetPlayState() != PLAYSTATE_PLAYING)oMediaPlayer.Play();return;}if (oPlaylist.GetCurrent() == null)return;onPrepareToPlay();if (oPlaylist.GetCurrent().GUID != oAdManager.CurrentGUID){oAdManager.CurrentGUID = oPlaylist.GetCurrent().GUID;oAdManager.SetPageGroup(oPlaylist.GetCurrent().PageGroup);oMediaPlayer.IsPlayingAd = oAdManager.EndUserSees=="video";}refreshPlaystateFeedback();iPlayNextTimerId = window.setTimeout(playCurrentB, 100);}function playCurrentB(){window.clearTimeout(iPlayNextTimerId);if (oMediaPlayer.IsPlayingAd){oAdManager.LoadNext();}else {if (oPlaylist.GetCurrent() != null){var url = oPlaylist.GetCurrent().URL;if (url.indexOf("/default.cdnx/") != -1)url += ".asx";oMediaPlayer.PlayMedia(url);oTrackingManager.TrackContentPlay(oPlaylist.GetCurrent());setClipLoadTimer(30, false);}}}function onLoadAdComplete(){oAdManager.ShowLeaveBehind();if (oMediaPlayer.IsPlayingAd){if (oAdManager.ClipSrc == "" || oAdManager.ClipSrc.indexOf(".gif") != -1){postStopAction();}else {oMediaPlayer.PlayMedia(oAdManager.ClipSrc);oTrackingManager.TrackAdPlay(oPlaylist.GetCurrent(), oAdManager.TrackingImgId);setClipLoadTimer(15, true);}}}function ProgressBar(div){this.Div = div;this.Init = _pbInit;this.Refresh = _pbRefresh;this.Reset = _pbReset;this.Hide = _pbHide;this.Show = _pbShow;this.SetStatus = _pbSetStatus;}function _pbInit(player, barWidth){var h = ""+ ""+ ""+ ""+ ""+ ""+ ""+ "
"+ ""+ ""+ ""+ ""+ ""+ ""+ ""+ "
";this.Div.innerHTML = h;this.Htc = pbHtc;this.Text1 = pbTxt1;this.Text2 = pbTxt2;this.StatusText = pbTxt3;this.Visible = false;this.Player = player;this.BarWidth = barWidth;}function _pbReset(){if (this.Visible){this.Text1.innerHTML = "00:00";this.Duration = Math.floor(this.Player.GetDuration());var mm = Math.floor(this.Duration/60);var ss = this.Duration - mm*60;this.Text2.innerHTML= ((mm < 10) ? "0" + mm : mm)+ ":"+ ((ss < 10) ? "0" + ss : ss);this.Htc.percentComplete = 0;this.Refresh();}}function _pbRefresh(){window.clearTimeout(this.TimerId);if (this.Visible){try{var mls = this.Player.GetMediaPosition();var sec = Math.floor(mls/1000);var mm = Math.floor(sec/60);var ss = sec - mm*60;if (mm == -1){this.Text1.innerHTML = "00:00";}else {this.Text1.innerHTML= ((mm < 10) ? "0" + mm : mm)+ ":"+ ((ss < 10) ? "0" + ss : ss);}this.Htc.percentComplete = Math.round(sec/this.Duration*100);}catch (exception){this.Text1.innerHTML = "00:00";this.Htc.percentComplete = 0;}this.TimerId = window.setTimeout(function() {oProgressBar.Refresh();}, 1000);}}function _pbHide(){clearTimeout(this.TimerId);this.Div.style.visibility = "hidden";this.Visible = false;}function _pbShow(){this.Visible = true;this.Reset();this.Div.style.visibility = "visible";}function _pbSetStatus(s){this.StatusText.innerHTML = s;}function SlideShow(slidePanel, abstractDiv){this.SlidePanel = slidePanel;this.AbstractDiv = abstractDiv;this.Init = _ssInit;this.Clear = _ssClear;this.Next = _ssNext;this.Hide = _ssHide;this.Show = _ssShow;this.ShowAbstract = _ssShowAbstract;this.PanelIsSelectable = _ssPanelIsSelectable;this.AbstractIsSelectable = _ssAbstractIsSelectable;}function _ssInit(slideHtml, abstractHtml){this.Clear();this.AbstractHtml = abstractHtml;this.Slides = new Array();var slide;for (var i=0; i");return toOb.appendChild(btn);}function bulletImage(){var h = " h){doTruncate = true;break;}htmlThatFits = textGauge.innerHTML;}}textGauge.style.display = "none";if (doTruncate){var tHtml = htmlThatFits;var lastChar = (tHtml.charAt(tHtml.length-2) == ",") ? tHtml.length-2 : tHtml.length-1;tHtml = tHtml.substring(0,lastChar);return (tHtml == "") ? "" : tHtml + "…";}else {return html;}}function truncateWord(w, maxChars){var s = "";var c = "";for (var i=0; i 0);showSkip = (oPlaylist.Position < oPlaylist.Items.length-1);}}this.Rew.style.display = (showRew) ? "inline" : "none"; this.Fwd.style.display = (showFwd) ? "inline" : "none"; this.Prev.style.display = (showPrev) ? "inline" : "none"; this.Next.style.display = (showSkip) ? "inline" : "none";if((nowFocusOb==this.Rew || nowFocusOb==this.Fwd || nowFocusOb==this.Prev || nowFocusOb==this.Next)&&(nowFocusOb.style.display == "none")&&(this.Div.style.visibility != "hidden")){if (showSkip) this.Next.focus();else if (showPrev) this.Prev.focus();else if (showFwd) this.Fwd.focus();else if (showRew) this.Rew.focus();else this.Stop.focus();}}catch (error){}}function _vcPlayingView(){this.Div.className = "vcDiv vcDivPlaying";this.FullScreenBtn.style.display = "inline";this.NormalViewBtn.style.display = "none";this.Mute.style.display = "none";this.UnMute.style.display = "none";this.Play.style.display = "inline";this.Pause.style.display = "inline";this.Stop.style.display = "inline";this.Rew.style.display = "none";this.Fwd.style.display = "none";this.Prev.style.display = "inline";this.Next.style.display = "inline";}function _vcFullScreenView(){this.Div.className = "vcDiv vcDivFullScrn";this.FullScreenBtn.style.display = "none";this.NormalViewBtn.style.display = "inline";this.RefreshMute();this.Play.style.display = "inline";this.Pause.style.display = "inline";this.Stop.style.display = "inline";this.Rew.style.display = "inline";this.Fwd.style.display = "inline";this.Prev.style.display = "inline";this.Next.style.display = "inline";}function _vcShow(){this.Div.style.visibility = "visible";this.HideShowBtns();}function _vcHide(){this.Div.style.visibility = "hidden";}function _vcIsSelectable(){return (this.Div.style.visibility != "hidden");}function _vcClickMute(){oMediaPlayer.Player.Mute = !oMediaPlayer.Player.Mute;oVideoControls.RefreshMute();if (oMediaPlayer.Player.Mute)oVideoControls.UnMute.focus();else oVideoControls.Mute.focus();}function _vcRefreshMute(){if (oMediaPlayer.Player.Mute){this.Mute.style.display = "none";this.UnMute.style.display = "inline";}else {this.Mute.style.display = "inline";this.UnMute.style.display = "none";}}function _vcClickPlay(){switch (oMediaPlayer.GetPlayState()){case PLAYSTATE_PLAYING:break;case PLAYSTATE_PAUSED:case PLAYSTATE_FWD:case PLAYSTATE_REW:case PLAYSTATE_STOPPED:oMediaPlayer.Play();refreshPlaystateFeedback();break;default:if (oPlaylist.Position == -1)oPlaylist.Position = 0;playCurrent();break;}}function _vcClickPause(){if (oMediaPlayer.GetPlayState() == PLAYSTATE_PAUSED){oMediaPlayer.Play();}else {try{oMediaPlayer.Pause();}catch (error){}}}function _vcClickStop(){window.clearTimeout(g_clipLoadTimer);if (oMediaPlayer.IsLoading){oMediaPlayer.Cancel();oMediaPlayer.IsLoading = false;}else if (oMediaPlayer.GetPlayState() == PLAYSTATE_STOPPED){}else {try{if (oMediaPlayer.GetPlayState() != PLAYSTATE_BUFFERING) g_ForceFullStop = true;oMediaPlayer.Stop();oMediaPlayer.SetMediaPosition(0);oBrandingArea.Refresh();oVideoMetadata.Refresh(true);oNowPlaying.Refresh(true);}catch (error){}}}function _vcClickRew(){oMediaPlayer.Rew();}function _vcClickFwd(){oMediaPlayer.Fwd();}function _vcClickPrev(){playItemAfterAd(oPlaylist.Position-1);}function _vcClickNext(){if (oPlaylist.Position+1 < oPlaylist.Items.length){g_ForceFullStop = true;oMediaPlayer.Stop();oPlaylist.MoveNext();playCurrent();}else {}}function VideoMetadata(div, innerDiv) {this.Div = div;this.InnerDiv = innerDiv;this.Init = _vmInit;this.Refresh = _vmRefresh;this.Clear = _vmClear;this.Hide = _vmHide;this.Show = _vmShow;this.IsSelectable = _vmIsSelectable;this.GetSelectableOb = _vmGetSelectableOb;}function _vmInit(){}function _vmRefresh(userStopped){this.Clear();if(oPlaylist.GetCurrent() == null)return;if (userStopped){var txt = addSpan(this.InnerDiv);txt.innerHTML = "You have stopped the video.

Choose Play to begin again.";txt.className = "vmTxt1";this.SelectableOb = null;}else if (oMediaPlayer.IsPlayingAd){var txt = addSpan(this.InnerDiv);txt.innerHTML = "Up next after this advertisement:";txt.className = "vmTxt1";txt = addSpan(this.InnerDiv);txt.innerHTML = oPlaylist.GetCurrent().Title;txt.className = "vmTxt2";this.SelectableOb = null;}else {if (oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING){var title = addSpan(this.InnerDiv);title.innerHTML = oPlaylist.GetCurrent().Title;title.className = "vmTxt3";var abstract = addSpan(this.InnerDiv);abstract.innerHTML = oPlaylist.GetCurrent().Caption;abstract.className = "vmTxt4";var urls = oPlaylist.GetCurrent().LinkUrls;var text = oPlaylist.GetCurrent().LinkText;var addedLink = false;for (var i=0; i 0){var i = this.Items[this.Items.length-1];if (i[0]==topicInd && i[1]==catInd && i[2]==videoSize && i[3]==navView){return;}if (i[0]==topicInd && i[1]==catInd && i[2]==videoSize && i[3]==navView){return;}}this.Items[this.Items.length] = new Array(topicInd, catInd, videoSize, navView);}function _bmRemoveLast(){var a = new Array();for (var i=0; i< this.Items.length-1; i++){a[i] = this.Items[i];}this.Items = a;}function DataFetcher(){this.Init = _dfInit;this.GetData = _dfGetData;this.OnLoad = _dfOnLoad;this.Cancel = _dfCancel;this.AppendToQueue = _dfAppendToQueue;this.PushToQueue = _dfPushToQueue;this.ClearQueue = _dfClearQueue;this.DomDoc = new ActiveXObject("Msxml2.DOMDocument");this.DomDoc.onreadystatechange = _dfCheckReadyState;this.DomDoc.async = true;}function _dfInit(){this.UrlQueue = new Array();this.OnSucceedQueue = new Array();this.OnFailQueue = new Array();}function _dfGetData(url, onSucceed, onFail){if (this.Url != null){this.PushToQueue(this.Url, this.OnSucceed, this.OnFail);}this.Url = url;this.OnSucceed = onSucceed;this.OnFail = onFail;this.DomDoc.load(url);}function _dfOnLoad(){this.Data = this.DomDoc.text;var f = (this.DomDoc.parseError.errorCode != 0) ? this.OnFail : this.OnSucceed;this.Url = null;this.OnSucceed = null;this.OnFail = null;f.call();if (this.UrlQueue.length != 0){this.GetData(this.UrlQueue[0], this.OnSucceedQueue[0], this.OnFailQueue[0]);var a1 = new Array();var a2 = new Array();var a3 = new Array();for (var i=0; i=0; i--){if (g_videoPaths[i] != ""){t_GUIDs[j] = g_GUIDs[i];j++;}}var clipsToAdd = false;for (var i=0; i=0; i--){if (g_videoPaths[i] != ""){t_GUIDs[j] = g_GUIDs[i];t_videoPaths[j] = g_videoPaths[i];t_headlines[j] = g_headlines[i];t_captions[j] = g_captions[i];t_imageUrls[j] = g_imageUrls[i];t_sources[j] = g_sources[i];t_relatedLinkUrls[j] = g_relatedLinkUrls[i];t_relatedLinkText[j] = g_relatedLinkText[i];t_PGs[j] = g_PGs[i];t_PSs[j] = g_PSs[i];t_IDs[j] = g_IDs[i];j++;}}oPlaylist.AddAll(t_GUIDs, t_videoPaths, t_headlines, t_captions, t_imageUrls, t_sources, t_relatedLinkUrls, t_relatedLinkText, t_PGs, t_PSs, t_IDs);}var p_types = new Array();var p_titles = new Array();var p_slideHtml = new Array();var p_abstractHtml = new Array();var p_metdataHtml = new Array();var p_userWeatherCity;var p_userWeatherConditionImg;var p_stockDirection;function setPersonalDataGlobals(types, titles, slideHtml, abstractHtml, metdataHtml, userWeatherCity, userWeatherConditionImg, stockDirection){p_types = types;p_titles = titles;p_slideHtml = slideHtml;p_abstractHtml = abstractHtml;p_metdataHtml = metdataHtml;p_userWeatherCity = userWeatherCity;p_userWeatherConditionImg = userWeatherConditionImg;p_stockDirection = stockDirection;}function addPersonalDataToGlobals(){var topicName = (g_nowCatInd == -1) ? g_topics[g_nowTopicInd] : g_cats[g_nowTopicInd][g_nowCatInd];var newType = "";if ((topicName == "Weather") && (p_userWeatherCity!=null)){newType = "Weather";}if (newType != ""){for (var i=g_types.length; i>0; i--){g_types[i] = g_types[i-1];g_GUIDs[i] = g_GUIDs[i-1];g_PGs[i] = g_PGs[i-1];g_PSs[i] = g_PSs[i-1];g_IDs[i] = g_IDs[i-1];g_sources[i] = g_sources[i-1];g_headlines[i] = g_headlines[i-1];g_captions[i] = g_captions[i-1];g_imageTypes[i] = g_imageTypes[i-1];g_imageUrls[i] = g_imageUrls[i-1];g_videoPaths[i] = g_videoPaths[i-1];g_articleUrls[i] = g_articleUrls[i-1];g_relatedLinkUrls[i] = g_relatedLinkUrls[i-1];g_relatedLinkText[i] = g_relatedLinkText[i-1];}g_types[0] = newType;g_GUIDs[0] = "";g_videoPaths[0] = "";}}function addSlideshowToPlaylist(firstInd){var a = (firstInd==null) ? 0 : firstInd;var t_GUIDs = new Array();var t_videoPaths = new Array();var t_headlines = new Array();var t_captions = new Array();var t_imageUrls = new Array();var t_sources = new Array();var t_relatedLinkUrls = new Array();var t_relatedLinkText = new Array();var t_PGs = new Array();var t_PSs = new Array();var t_IDs = new Array();var j = 0;for (var i=g_scGuids.length-1; i>=0; i--){if (i!=a){t_GUIDs[j] = g_scGuids[i];t_videoPaths[j] = g_scVideoUrls[i];t_headlines[j] = g_scHeadlines[i];t_captions[j] = g_scCaptions[i];t_imageUrls[j] = g_scImageUrls[i];t_sources[j] = g_scSources[i];t_relatedLinkUrls[j] = g_scRelatedLinkUrls[i];t_relatedLinkText[j] = g_scRelatedLinkText[i];t_PGs[j] = g_scPGs[i];t_PSs[j] = g_scPSs[i];t_IDs[j] = g_scIDs[i];j++;}}oPlaylist.AddAll(t_GUIDs, t_videoPaths, t_headlines, t_captions, t_imageUrls, t_sources, t_relatedLinkUrls, t_relatedLinkText, t_PGs, t_PSs, t_IDs);oPlaylist.PutNext(g_scGuids[a], g_scVideoUrls[a], g_scHeadlines[a], g_scCaptions[a], g_scImageUrls[a], g_scSources[a], g_scRelatedLinkUrls[a], g_scRelatedLinkText[a], g_scPGs[a], g_scPSs[a], g_scIDs[a]);}function handleThumbClick(ind, isLoading){var i = (ind + oNavBar.CurrentRatchet) % oNavBar.HTML.length;if (g_types[i] == "Weather"){showWeather();return;}if (g_types[i] == "Stocks"){showStocks();return;} var inPlaylistAtPos = oPlaylist.IndexOf(g_GUIDs[i]); var isPlaying = (oMediaPlayer.GetPlayState() == PLAYSTATE_PLAYING); var currentItemIsAd = oMediaPlayer.IsPlayingAd;if (inPlaylistAtPos != -1){if (currentItemIsAd){oMessagePopup.AutoHide("The selected video will play after the advertisement");playItemAfterAd(inPlaylistAtPos);return;}if (inPlaylistAtPos == oPlaylist.Position){if (isLoading){oMessagePopup.AutoHide("The selected video is currently loading");return;}else if (isPlaying){oMessagePopup.AutoHide("The selected video is currently playing");return;}}oMessagePopup.AutoHide("Preparing to play the selected video");playItemAfterAd(inPlaylistAtPos);return;}if (!oPlaylist.PutLast(g_GUIDs[i], g_videoPaths[i], g_headlines[i], g_captions[i], g_imageUrls[i], g_sources[i], g_relatedLinkUrls[i], g_relatedLinkText[i], g_PGs[i], g_PSs[i], g_IDs[i]))return;onPlayListChange();if (isLoading || isPlaying){oMessagePopup.AutoHide("Adding the selected video to the playlist");return;}oMessagePopup.AutoHide("Preparing to play the selected video");playItemAfterAd(oPlaylist.Items.length-1);}function getTopic_Cat(topicInd, catInd){return (catInd==-1) ? topicInd : topicInd + "_" + catInd;}function ImagePreloader() {this.Init = _ipInit;this.Start = _ipStart;this.GetNext = _ipGetNext;this.ImageOb = new Image();this.ImageOb.onload = function(){ oImagePreloader.GetNext() };this.LoadFunction = function(){ oImagePreloader.ImageOb.src = oImagePreloader.Images[oImagePreloader.NowInd]; };this.TimerId = null;}function _ipInit(imageArray){this.Images = imageArray;}function _ipStart(){this.NowInd = -1;this.GetNext();}function _ipGetNext(){window.clearTimeout(this.TimerId);this.NowInd++;if (this.NowInd <= this.Images.length-1){this.TimerId = window.setTimeout(this.LoadFunction, 1);}}function JsPreloader() {this.Init = _jsInit;this.Load = _jsLoad;this.LoadNext = _jsLoadNext;this.Urls = new Array();this.NowLoading = -1;}function _jsInit(topicIds, catIds, client){this.TopicIds = topicIds;this.CatIds = catIds;this.Client = client;}function _jsLoad(nowTopicInd, nowCatInd){this.Urls = new Array();this.NowLoading = -1;this.NowTopic = nowTopicInd;this.NowCat = nowCatInd;var idArray = new Array();if (nowTopicInd == -1){idArray = this.TopicIds;}else if (nowCatInd == -1){idArray = this.CatIds[nowTopicInd];}if (idArray != null){for (var i=0; iind; i--){this.Items[i] = this.Items[i-1];} this.Items[ind] = item;if (inPlaylistAtPos != -1){if (inPlaylistAtPos <= ind){this.Remove(inPlaylistAtPos);if (this.Position > 0)this.Position = this.Position-1;}else {this.Remove(inPlaylistAtPos+1);}}return this.OK;}oMessagePopup.Warning("The video was not added to your playlist because your list is full. The maximum number of videos your playlist can contain is " + this.MaxLength + ".", "");return this.MAX;}function _plRemove(ind){var tmpArr = new Array();var tmpInd = 0;for (var i=0; i=0 ; i--){item = new PlaylistItem(t_GUIDs[i], t_videoPaths[i], t_headlines[i], t_captions[i], t_imageUrls[i], t_sources[i], t_relatedLinkUrls[i], t_relatedLinkText[i], t_PGs[i], t_PSs[i], t_IDs[i]);if (oPlaylist.Insert(item, 0) != oPlaylist.OK)return;}var startItemGuid = getStartupParam("i");if (startItemGuid == "") startItemGuid = getStartupParam("g");if (startItemGuid != ""){var url = urlToGuidLookup(g_startUpParams);oDataFetcher.GetData(url, onGetItemByGuid, onGetItemByGuidFail);}else {DeviceSpecialStart();}}}catch (e){onGetPlaylistFail();}}function onGetPlaylistFail(){if ((getStartupParam("g")!="") || (getStartupParam("i")!="") || (getStartupParam("r")!="") || (getStartupParam("prepend")!="") || (getStartupParam("replace")!="")){var url = urlToGuidLookup(g_startUpParams);oDataFetcher.GetData(url, onGetItemByGuid, onGetItemByGuidFail);}else {DeviceDefaultStart();}}function onGetItemByGuid(){try{if (oDataFetcher.Data == ""){onGetItemByGuidFail();return;}eval(oDataFetcher.Data);var item;for (var i=t_GUIDs.length-1; i>=0 ; i--){item = new PlaylistItem(t_GUIDs[i], t_videoPaths[i], t_headlines[i], t_captions[i], t_imageUrls[i], t_sources[i], t_relatedLinkUrls[i], t_relatedLinkText[i], t_PGs[i], t_PSs[i], t_IDs[i]);if (oPlaylist.Insert(item, 0) != oPlaylist.OK)return;}DeviceSpecialStart();}catch (oError){onGetItemByGuidFail();}}function onGetItemByGuidFail(){DeviceDefaultStart();}function getInitialNavView(){var t_topicName = (getStartupParam("m")!="") ? getStartupParam("m") : getStartupParam("menu");var t_categoryName = (getStartupParam("mi")!="") ? getStartupParam("mi") : getStartupParam("menuItem");if (t_topicName!= null){var loadCategory = false;var initTopic = -1;var initCat = -1;for (var a=0; a0; i--){child = ob.children(i-1);ob.removeChild(child);}}function addDiv(ob){var newDiv = document.createElement("DIV");return ob.appendChild(newDiv);}function imageTag(src, w, h, className){var tag = " 0);var t_vidSize;if (!t_playing){t_vidSize = VIDEOSIZE_NONE;}else if (t_navView == NAV_VIEW_HOME){t_vidSize = VIDEOSIZE_MEDIUM;}else {t_vidSize = VIDEOSIZE_SMALL;_playAfterThumbnailLoad = true;t_playing = false;}setVideoSize(t_vidSize);setNavView(t_navView);refreshFooter();updateBacklist();if (t_playing){oPlaylist.MoveTo(0);playCurrent();}}function setVideoSize(videoSize){if (g_nowVideoSize == videoSize)return;g_nowVideoSize = videoSize;window.clearTimeout(iFullScreenTimerId);switch (videoSize){case VIDEOSIZE_NONE:setBodyBg("131517");toggleSlideshow(SLIDESHOW_ON);oMediaPlayer.SetDimensions(0, 0, 0, 0, 0, 0, 0, 0);oAdManager.SetPos(202, 418);oAdManager.Show();oBanner.Show();oBkg1.Show();oBkg2.Hide();oBrandingArea.Hide();oBrowseHeader.Show();oCategoryChooser.Hide();oFullScreenPanel.Hide();oMediaPlayer.Hide();oNavBar.Show();oNowPlaying.Hide();oOnDeckArea.Hide();oProgressBar.Hide();oSlideShow.Show();oVideoMetadata.Hide();oVideoControls.Hide();break;case VIDEOSIZE_SMALL:setBodyBg("131517");toggleSlideshow(SLIDESHOW_OFF);oBrandingArea.SetDimensions(41, 10, 35, 243);oMediaPlayer.SetDimensions(385, 41, 160, 120, 3, 3, 3, 3);oAdManager.SetPos(171, 422);oAdManager.Show();oBanner.Show();oBkg1.Show();oBkg2.Hide();oBrandingArea.Show();oBrowseHeader.Show();oCategoryChooser.Hide();oFullScreenPanel.Hide();oMediaPlayer.Show(true);oNavBar.Show();oNowPlaying.Hide();oOnDeckArea.Hide();oProgressBar.Hide();oSlideShow.Hide();oVideoMetadata.Show();oVideoControls.Hide();oMediaPlayer.Div.focus();break;case VIDEOSIZE_MEDIUM:setBodyBg("131517");toggleSlideshow(SLIDESHOW_OFF);oBrandingArea.SetDimensions(51, 20, 29, 201);oMediaPlayer.SetDimensions(226, 41, 320, 240, 3, 3, 3, 3);oAdManager.SetPos(315, 16);oAdManager.Show();oBanner.Show();oBkg1.Hide();oBkg2.Show();oBrandingArea.Show();oBrowseHeader.Hide();oCategoryChooser.Hide();oFullScreenPanel.Hide();oMediaPlayer.Show(true);oNavBar.Hide();oNowPlaying.Show();oOnDeckArea.Show();oProgressBar.Show();oSlideShow.Hide();oVideoMetadata.Hide();oVideoControls.PlayingView();oVideoControls.Show();oVideoControls.Play.focus();break;case VIDEOSIZE_LARGE:setBodyBg("000000");oMediaPlayer.SetDimensions(66, 0, 428, 321, 0, 66, 0, 66);oAdManager.Hide();oBanner.Hide();oBkg1.Hide();oBkg2.Hide();oBrandingArea.Hide();oBrowseHeader.Hide();oCategoryChooser.Hide();oFullScreenPanel.Show();oMediaPlayer.Show(false);oNavBar.Hide();oNowPlaying.Hide();oOnDeckArea.Hide();oProgressBar.Hide();oSlideShow.Hide();oVideoMetadata.Hide();oVideoControls.FullScreenView();oVideoControls.Show();oVideoControls.Play.focus();startFsCountdown();break;case VIDEOSIZE_FULL:setBodyBg("000000");toggleSlideshow(SLIDESHOW_OFF);oMediaPlayer.SetDimensions(0, 0, 560, 384, 0, 0, 0, 0);oAdManager.Hide();oBanner.Hide();oBkg1.Hide();oBkg2.Hide();oBrandingArea.Hide();oBrowseHeader.Hide();oCategoryChooser.Hide();oFullScreenPanel.Hide();oMediaPlayer.Show(false);oNavBar.Hide();oNowPlaying.Hide();oOnDeckArea.Hide();oProgressBar.Hide();oSlideShow.Hide();oVideoMetadata.Hide();oVideoControls.Hide();break;}oBanner.Refresh();refreshStatus();}function setBodyBg(clr){document.body.style.background = clr;}function refreshStatus(){var ps = oMediaPlayer.GetPlayState();var str;if (g_ReadyState < rs_Complete)str = "Connecting";else if (ps == PLAYSTATE_BUFFERING)str = "Loading";else if (ps == PLAYSTATE_STOPPED)str = "Stopped";else if (ps == PLAYSTATE_PLAYING)str = "Playing";else if (ps == PLAYSTATE_PAUSED)str = "Paused";else if (ps == PLAYSTATE_FWD)str = "Fast-forwarding";else if (ps == PLAYSTATE_REW)str = "Rewinding";else str = "";switch(g_nowVideoSize){case VIDEOSIZE_MEDIUM:oProgressBar.SetStatus(str);break;case VIDEOSIZE_LARGE:oVideoControls.SetStatus(str);break;}}function startFsCountdown(){window.clearTimeout(iFullScreenTimerId);iFullScreenTimerId = window.setTimeout(goFullScreen, 15000);}function goFullScreen(){setVideoSize(VIDEOSIZE_FULL);refreshFooter();updateBacklist();}function setNavView(view){oDataFetcher.ClearQueue();g_nowNavView = view;switch (view){case NAV_VIEW_HOME:g_nowTopicInd = -1;g_nowCatInd = -1;setMetaDataGlobals(null, null, null, null, null, null, null, null, null, null, null, null, null, null);oBrowseHeader.Clear();oNavBar.Clear();oNavBar.InitTopics(g_topics);oNavBar.SetFocus();break;case NAV_VIEW_PLAYLIST:var t_types = new Array();var t_GUIDs = new Array();var t_headlines = new Array();var t_captions = new Array();var t_imageUrls = new Array();var t_videoPaths = new Array();for (var i=0; i oNavBar.MenuCount)oNavBar.SetRatchet(oPlaylist.Position);else oNavBar.SetRatchet(0);oNavBar.SetFocus();if (_playAfterThumbnailLoad){_playAfterThumbnailLoad = false;oPlaylist.MoveTo(0);playCurrent();}break;case NAV_VIEW_BROWSE:var topicId = (g_nowCatInd == -1) ? g_topicIds[g_nowTopicInd] : g_catIds[g_nowTopicInd][g_nowCatInd];var topicName = (g_nowCatInd == -1) ? g_topics[g_nowTopicInd] : g_cats[g_nowTopicInd][g_nowCatInd];oNavBar.Clear();oCategoryChooser.Hide();oBrowseHeader.ShowLoadingMessage(topicName);var url = urlToJsLoader(topicId, "Anduril");oDataFetcher.GetData(url, onBrowseLoadComplete, onBrowseLoadFail);break;default:break;}oBanner.Refresh();}function onBrowseLoadComplete(){try{eval(oDataFetcher.Data);setMetaDataGlobals(t_types, t_GUIDs, t_PGs, t_PSs, t_IDs, t_sources, t_headlines, t_captions, t_imageTypes, t_imageUrls, t_videoPaths, t_articleUrls, t_relatedLinkUrls, t_relatedLinkText);oImagePreloader.Init(g_imageUrls);oImagePreloader.Start();completeBrowseView();}catch (error){onBrowseLoadFail();}refreshFooter();if (_playAfterThumbnailLoad){_playAfterThumbnailLoad = false;oPlaylist.MoveTo(0);playCurrent();}}function onBrowseLoadFail(){var topicName = (g_nowCatInd == -1) ? g_topics[g_nowTopicInd] : g_cats[g_nowTopicInd][g_nowCatInd];var badCat = getTopic_Cat(g_nowTopicInd, g_nowCatInd);oCategoryChooser.AppendBadCat(badCat);alert("The " + topicName + " category is currently unavailable. Please try again later.");setNavView(NAV_VIEW_HOME);}function completeBrowseView(){var headerText= ""+ g_topics[g_nowTopicInd]+ " — "+ ((g_nowCatInd == -1) ? "All" : g_cats[g_nowTopicInd][g_nowCatInd])+ "";var itemCount = g_headlines.length;oBrowseHeader.MediaCount = itemCount;oBrowseHeader.SetText1(headerText);oNavBar.InitThumbnails(g_headlines, g_imageUrls, g_GUIDs, g_topics[g_nowTopicInd]);oNavBar.SetFocus();}function refreshFooter(){switch (g_nowVideoSize){case VIDEOSIZE_MEDIUM:oFooter.DrawPlayingView();break;case VIDEOSIZE_LARGE:oFooter.Hide();break;case VIDEOSIZE_FULL:oFooter.Hide();break;default:switch (g_nowNavView){case NAV_VIEW_HOME:oFooter.DrawHomeView();break;case NAV_VIEW_PLAYLIST:oFooter.DrawPlaylistView();break;default:oFooter.DrawBrowseView();break;}break;}}function refreshPlaystateFeedback(){oBrandingArea.Refresh();oNowPlaying.Refresh(false);oNavBar.Refresh();oOnDeckArea.Refresh();oVideoMetadata.Refresh(false);oVideoControls.HideShowBtns();}function toggleSlideshow(setting){g_nowSlideshowMode = setting;if (g_nowSlideshowMode == SLIDESHOW_ON){var slides = new Array();for (var i=0; i';}var abstracts = new Array();for (var i=0; i" + "

" + "

" + g_ssCaptions[i] ;var h2 = truncateToHeight(295, 135, "20px", h1);abstracts[i]= ""+ h2+ "

";}oSlideShow.Init(slides, abstracts);iSlideShowTimerId = window.setTimeout(nextSlide, iSlideShowInterval);}else {window.clearTimeout(iSlideShowTimerId);}}function nextSlide(){window.clearTimeout(iSlideShowTimerId);oSlideShow.Next();iSlideShowTimerId = window.setTimeout(nextSlide, iSlideShowInterval);}function updateBacklist(){oBacklistManager.Append(g_nowTopicInd, g_nowCatInd, g_nowVideoSize, g_nowNavView);}function videoGoBack(){if (oCategoryChooser.Div.style.visibility == "visible"){oCategoryChooser.Hide();oFooter.SetFocus();return;}if (oBacklistManager.Items.length<2){if (okToLeaveApp()){oPlaylist.RemoveAll();oMediaPlayer.Stop();return false;}else {return true;}}var prevState = oBacklistManager.Items[oBacklistManager.Items.length -2];var prevTopic = prevState[0];var prevCat = prevState[1];var prevVidSize = prevState[2];var prevNavView = prevState[3];oBacklistManager.RemoveLast();if ((prevNavView == NAV_VIEW_PLAYLIST) && (oPlaylist.Items.length == 0))return videoGoBack();if (prevVidSize >= VIDEOSIZE_LARGE && oMediaPlayer.GetPlayState() == PLAYSTATE_STOPPED)return videoGoBack();if ((prevVidSize == VIDEOSIZE_NONE) && (g_nowSlideshowMode != SLIDESHOW_ON))prevVidSize = VIDEOSIZE_SMALL;if (oPlaylist.Items.length == 0)prevVidSize = VIDEOSIZE_NONE;if ((g_nowTopicInd == prevTopic) && (g_nowCatInd == prevCat) && (g_nowVideoSize == prevVidSize) && (g_nowNavView == prevNavView))return videoGoBack();g_nowTopicInd = prevTopic;g_nowCatInd = prevCat;setVideoSize(prevVidSize);setNavView(prevNavView);refreshFooter();return true;}function clickHelp(){if (okToLeaveApp())CallPaneHelp(PH_topicTOC,'MSNTV_TRS_TOC_Videos.htm');}function clickSlide(){var a = oSlideShow.Slides[oSlideShow.CurrentSlide].ShowcaseIndex;addSlideshowToPlaylist(a);oMessagePopup.AutoHide("Adding top videos to the playlist and preparing to play");setVideoSize(VIDEOSIZE_MEDIUM);setNavView(NAV_VIEW_PLAYLIST);refreshFooter();updateBacklist();playItemAfterAd(oPlaylist.Position+1);}function clickPlayTop(){clickSlide();}function clickPlayAll(){var topicName = (g_nowCatInd == -1) ? g_topics[g_nowTopicInd] : g_cats[g_nowTopicInd][g_nowCatInd];if (catHasClipsNotInPlaylist()){oMessagePopup.AutoHide("Adding all " + htmlDecode(topicName) + " videos to the playlist and preparing to play");addCategoryToPlaylist();setVideoSize(VIDEOSIZE_MEDIUM);updateBacklist();refreshFooter();playItemAfterAd(oPlaylist.Position+1);}else {clickThumb(0);}}function clickIcon(i){var iconInd = (i + oNavBar.CurrentRatchet) % oNavBar.HTML.length; try{var nowIcon = eval("menuItem_" + i);var ob;if (nowIcon.offsetLeft < 230){if (oVideoMetadata.IsSelectable())ob = oVideoMetadata.GetSelectableOb();if (oSlideShow.AbstractIsSelectable())ob = oSlideShow.AbstractDiv.Button;if (oOnDeckArea.IsSelectable())ob = oOnDeckArea.LinkSpan;}else {if (oAdManager.IsSelectable())ob = oAdManager.SelectableOb();if (oSlideShow.PanelIsSelectable())ob = oSlideShow.SlidePanel;if (oMediaPlayer.IsSelectable())ob = oMediaPlayer.Div;}if (ob!=null)ob.focus();}catch (e){}if (iconInd == oNavBar.HTML.length-1){clickPlaylistButton();}else {g_nowTopicInd = iconInd;g_nowCatInd = -1;setNavView(NAV_VIEW_BROWSE);updateBacklist();}}function overThumb(i){if (g_nowNavView != NAV_VIEW_HOME){var h = "(" + oNavBar.GetThumbIndex(i) + " of " + oBrowseHeader.MediaCount + ")";oBrowseHeader.SetText2(h);}}function clickBrowseButton(){oCategoryChooser.Show(g_nowTopicInd, g_nowCatInd);}function overBrowseButton(){oCategoryChooser.Hide();}function offBrowseButton(){oCategoryChooser.Hide();oNavBar.SetFocus();}function clickPip(){switch (g_nowVideoSize){case VIDEOSIZE_SMALL:setVideoSize(VIDEOSIZE_MEDIUM);updateBacklist();refreshFooter();break;case VIDEOSIZE_MEDIUM:setVideoSize(VIDEOSIZE_LARGE);updateBacklist();refreshFooter();break;}}function clickMoreInfo(){setVideoSize(VIDEOSIZE_SMALL);refreshFooter();updateBacklist();}function clickNormalView(){setVideoSize(VIDEOSIZE_MEDIUM);refreshFooter();updateBacklist();oVideoControls.Play.focus();}function clickBrwsBtn(i,j){oFooter.SetFocus();toCat(i,j);}function toCat(a,b){g_nowTopicInd = a;g_nowCatInd = b;setNavView(NAV_VIEW_BROWSE);updateBacklist();}function clickPlaylistButton(){if (oPlaylist.Items.length == 0){alert("Your playlist is empty. To add videos to your playlist, first choose a category, then find the video you want to add and press OK on your keyboard or remote control.");return;}if (g_nowVideoSize == VIDEOSIZE_MEDIUM)setVideoSize(VIDEOSIZE_SMALL);g_nowTopicInd = -1;g_nowCatInd = -1;setNavView(NAV_VIEW_PLAYLIST);refreshFooter();updateBacklist();}function clickHomeButton(){if (g_nowVideoSize == VIDEOSIZE_MEDIUM)setVideoSize(VIDEOSIZE_SMALL);setNavView(NAV_VIEW_HOME);refreshFooter();updateBacklist();}function clickDeleteAll(){if (oMessagePopup.Confirm("Are you sure you want to empty your playlist?")){oPlaylist.RemoveAll();g_ForceFullStop = true;oMediaPlayer.Stop();onPlaylistEnd();oMediaPlayer.IsPlayingAd = false;}}function clickAd(){DeviceClickAway(oAdManager.GetClickThroughUrl());}function clickFullScreen(){setVideoSize(VIDEOSIZE_LARGE);updateBacklist();refreshFooter();}function clickRelatedLink(url, ind){var trackingUrl = oTrackingManager.TrackRelatedLink(url, ind, oPlaylist.GetCurrent());DeviceClickAway(trackingUrl);}function onPlayListChange(){refreshPlaystateFeedback();}function onPrepareToPlay(){if (g_nowVideoSize == VIDEOSIZE_NONE){setVideoSize(VIDEOSIZE_SMALL);updateBacklist();refreshFooter();}}function onPlaylistEnd(){setNavView(NAV_VIEW_HOME);setVideoSize(VIDEOSIZE_NONE);refreshFooter();updateBacklist();oNavBar.Refresh();oNavBar.SetFocus();}function trackViewedClip(guid){var url = urlToUserActivity();url += "action=saveGuid&guid=" + guid;oDataFetcher.GetData(url, onTrackClip, onTrackClipFail);}function onTrackClip(){}function onTrackClipFail(){}function ratchetNavBar(dir, i){if (oNavBar.HTML.length > oNavBar.MenuCount){if (dir=='l')if (oNavBar.CurrentRatchet==0)oNavBar.Draw(oNavBar.HTML.length-1);else oNavBar.Draw(oNavBar.CurrentRatchet-1);else if (oNavBar.CurrentRatchet==oNavBar.HTML.length-1)oNavBar.Draw(0);else oNavBar.Draw(oNavBar.CurrentRatchet+1);}if (g_nowNavView != NAV_VIEW_HOME){var h = "(" + oNavBar.GetThumbIndex(i) + " of " + oBrowseHeader.MediaCount + ")";oBrowseHeader.SetText2(h);}}function clickThumb(ind){handleThumbClick(ind, oMediaPlayer.IsLoading);} \ No newline at end of file diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/CustomButton.htc b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/CustomButton.htc new file mode 100644 index 00000000..dc9adc1f --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/CustomButton.htc @@ -0,0 +1,317 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/DMRHeading.htc b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/DMRHeading.htc new file mode 100644 index 00000000..3443f18d --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/DMRHeading.htc @@ -0,0 +1,95 @@ + + + + + + + + + + + + + + + + + + + diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/DialogBG.htc b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/DialogBG.htc new file mode 100644 index 00000000..fe83ef15 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/DialogBG.htc @@ -0,0 +1,48 @@ + + + + + diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/DropDownList.htc b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/DropDownList.htc new file mode 100644 index 00000000..35d33b2f --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/DropDownList.htc @@ -0,0 +1,581 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + +// Private methods (must still declare public) + + + + + + diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/FocusBoxKeyHandler.htc b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/FocusBoxKeyHandler.htc new file mode 100644 index 00000000..fc216393 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/FocusBoxKeyHandler.htc @@ -0,0 +1,154 @@ + + + + + + + + + + + diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/IPAddress.htc b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/IPAddress.htc new file mode 100644 index 00000000..ef9bee9e --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/IPAddress.htc @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/LMenu.htc b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/LMenu.htc new file mode 100644 index 00000000..cce8e26a --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/LMenu.htc @@ -0,0 +1,638 @@ + + + + + + + + + + + + + + + + + + + + + + + +// Private methods (must still declare public) + + + + + + + diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/LoopingDIV.htc b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/LoopingDIV.htc new file mode 100644 index 00000000..bcf91071 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/LoopingDIV.htc @@ -0,0 +1,364 @@ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/MSNSlideShow.htc b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/MSNSlideShow.htc new file mode 100644 index 00000000..88011ef3 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/MSNSlideShow.htc @@ -0,0 +1,865 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/MediaNavHeading.htc b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/MediaNavHeading.htc new file mode 100644 index 00000000..6346200c --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/MediaNavHeading.htc @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/MediaToolbar.htc b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/MediaToolbar.htc new file mode 100644 index 00000000..7ecda74a --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/MediaToolbar.htc @@ -0,0 +1,682 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/Navigation.htc b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/Navigation.htc new file mode 100644 index 00000000..64134443 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/Navigation.htc @@ -0,0 +1,118 @@ + + + + + + + + + + diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/PanelBG.htc b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/PanelBG.htc new file mode 100644 index 00000000..2380e9ea --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/PanelBG.htc @@ -0,0 +1,87 @@ + + + + + diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/PanelHeading.htc b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/PanelHeading.htc new file mode 100644 index 00000000..b94fe911 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/PanelHeading.htc @@ -0,0 +1,100 @@ + + + + + + + + + + + + + + + + + diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/PasswordField.htc b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/PasswordField.htc new file mode 100644 index 00000000..74807d1d --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/PasswordField.htc @@ -0,0 +1,121 @@ + + + + + + + + + + + + diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/PhotoHeading.htc b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/PhotoHeading.htc new file mode 100644 index 00000000..e2ead13a --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/PhotoHeading.htc @@ -0,0 +1,119 @@ + + + + + + + + + + + + + + + + +// Private methods (must still declare public) + + + + + + diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/Progress.htc b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/Progress.htc new file mode 100644 index 00000000..a3303fed --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/Progress.htc @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/RecentMedia.htc b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/RecentMedia.htc new file mode 100644 index 00000000..f1288a2b --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/RecentMedia.htc @@ -0,0 +1,269 @@ + + + + + + + + + + + + + + + diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/ScrollDelegator.htc b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/ScrollDelegator.htc new file mode 100644 index 00000000..4e5462c7 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/ScrollDelegator.htc @@ -0,0 +1,161 @@ + + + + + + + + + + + + diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/ScrollList.htc b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/ScrollList.htc new file mode 100644 index 00000000..9b2cb843 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/ScrollList.htc @@ -0,0 +1,161 @@ + + + + + + + + + + + + + + + + + diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/ScrollingDIV.htc b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/ScrollingDIV.htc new file mode 100644 index 00000000..f7378e7d --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/ScrollingDIV.htc @@ -0,0 +1,1015 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/SettingsHeading.htc b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/SettingsHeading.htc new file mode 100644 index 00000000..9919c263 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/SettingsHeading.htc @@ -0,0 +1,83 @@ + + + + + + + + + + + + + + + + + diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/SlideShow.htc b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/SlideShow.htc new file mode 100644 index 00000000..d8748226 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/SlideShow.htc @@ -0,0 +1,1395 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + +/*SEE IMAGE_LOAD_TIMEOUT BELOW*/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +//This is generally the current image index. It will differ if the user +//has done one or more next(),prev() methods and the slideshow has not yet +//``caught up'' with the desired index. In this case only, will the current +//image index differ from the desiredCurrentImageIndex. + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/SlideshowPromo.htc b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/SlideshowPromo.htc new file mode 100644 index 00000000..7be4f6f6 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/SlideshowPromo.htc @@ -0,0 +1,876 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/StretchyBackground.htc b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/StretchyBackground.htc new file mode 100644 index 00000000..f8e29016 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/StretchyBackground.htc @@ -0,0 +1,43 @@ + + + + + + + diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/WMPPanelBG.htc b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/WMPPanelBG.htc new file mode 100644 index 00000000..402a3423 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/WMPPanelBG.htc @@ -0,0 +1,67 @@ + + + + + diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/folderorganizer.htc b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/folderorganizer.htc new file mode 100644 index 00000000..3b8f68ac --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Include/HTC/Shared/folderorganizer.htc @@ -0,0 +1,1019 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +// Private methods (must still declare public) + + + + + + + + + + + + + + + + + + diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Choose-Your-Profile-Picture.aspx.js b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Choose-Your-Profile-Picture.aspx.js new file mode 100644 index 00000000..62752563 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Choose-Your-Profile-Picture.aspx.js @@ -0,0 +1,150 @@ +const minisrv_service_file = true; +let promoCode = request_headers.query.promo_code || ''; +if (Array.isArray(promoCode)) promoCode = promoCode[0]; +if (promoCode) { + if (minisrv_config.services['msntv2'] && minisrv_config.services['msntv2'].validPromoCodes && minisrv_config.services['msntv2'].validPromoCodes.includes(promoCode)) { + console.log('Valid promo code entered: %s', promoCode); + } else { + console.warn('Invalid promo code entered: %s', promoCode); + promoCode = ''; + } + setCookie('promo_code', promoCode, { path: '/' }); +} + +headers = `Status: 200 OK +Content-type: text/html`; + +data = ` + + + Change your Profile Picture + + + + + + + + + + + + + +

Select your sign in picture
+
+

Here, you can setup your sign in picture
Your sign in picture will be shown whenever you sign in to MSN TV, as well as when you use MSN Messenger.

+

Choose your sign in picture:

+ +
+ + + + +
+ + + + +
+ + + + +
+ +
+
+
+
+
+

To select an image, use the Enter key on your keyboard.

+
+ +`; diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Component.js b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Component.js new file mode 100644 index 00000000..eabffe1b --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Component.js @@ -0,0 +1,91 @@ +const minisrv_service_file = true; + +let username = request_headers.query.email || request_headers.query.username || ''; +if (Array.isArray(username)) username = username[0]; +if (!username) username = 'New User'; + +let picture = request_headers.query.ProfilePicture || request_headers.query.profilepicture || request_headers.query.picture || 'tile01'; +if (Array.isArray(picture)) picture = picture[0]; +if (!picture) picture = 'tile01'; + +headers = `Status: 200 OK +Content-type: text/html`; + +data = ` + + + Change your Profile Picture + + + + + + + + + +
You've finished registration
+
+

Thank you for registering for the MSN TV service.
Your e-mail name and sign in picture appear below.

+
+ + + + + +
+ + + + +
+ + + + +
+ +
+
+
+

${username}

+
+
+

+ Choose Continue to sign in to MSN TV using your e-mail + name and password. Once you sign in, you'll go to your + MSN TV home page. You can return to your home page + any time by pressing the Home key on your keyboard. +

+ +
+ +`; diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Enter-Promotion-Code.aspx.js b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Enter-Promotion-Code.aspx.js new file mode 100644 index 00000000..71ff3db3 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Enter-Promotion-Code.aspx.js @@ -0,0 +1,61 @@ +const minisrv_service_file = true; + +headers = `Status: 200 OK +Content-type: text/html`; + +data = ` + + + Type your Promotion Code + + + + + + +
Type your Promotion Code
+
+

+ Type your Promotion Code below, and then choose + Continue +



+

+

Promotion Code:

+ +
+

+

Example:

+

ABCEAZ82KDKA

+
+ + +`; diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Establish-your-MSN-TV-Account.html.js b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Establish-your-MSN-TV-Account.html.js new file mode 100644 index 00000000..9b057459 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Establish-your-MSN-TV-Account.html.js @@ -0,0 +1,55 @@ +const minisrv_service_file = true; + +// Session ID from query or cookie (mirrors Razor page logic) +let sessionId = request_headers.query.session || null; +if (!sessionId && request_headers.cookie) { + const cookieMatch = request_headers.cookie.match(/(?:^|;\s*)MSNTV2_Session=([^;]*)/); + if (cookieMatch) sessionId = decodeURIComponent(cookieMatch[1]); +} + +headers = `Status: 200 OK +Content-type: text/html`; + +data = ` + + + Login to Passport + + + + + + + +
Establish your MSN TV account
+
+

Over the next few pages, you'll establish an account to use on the MSN TV service. The first step is to choose the e-mail address you want to use.

+

Choose one of these links:

+ + +
+ +`; diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Established-Account.aspx.js b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Established-Account.aspx.js new file mode 100644 index 00000000..84b380ac --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Established-Account.aspx.js @@ -0,0 +1,147 @@ +const minisrv_service_file = true; + +let username = request_headers.query.email || request_headers.query.username || ''; +if (Array.isArray(username)) username = username[0]; +if (!username && request_headers.cookie) { + const m = request_headers.cookie.match(/(?:^|;\s*)register_email=([^;]*)/); + if (m) username = decodeURIComponent(m[1]); +} +if (!username) username = 'New User'; + +let picture = request_headers.query.ProfilePicture || request_headers.query.profilepicture || request_headers.query.picture || 'tile01'; +if (Array.isArray(picture)) picture = picture[0]; +if (!picture) picture = 'tile01'; + +// socket.ssid is already resolved by WTV-MSNTV2 from BoxID or SessionID query params. +// Capture BoxId for use in log messages. +const BoxId = (socket.ssid) ? socket.ssid : (request_headers.query.BoxID || request_headers.query.boxid || ''); + +// Read email/password from cookies (set during registration flow) +let register_email = ''; +let register_password = ''; +if (request_headers.cookie) { + const em = request_headers.cookie.match(/(?:^|;\s*)register_email=([^;]*)/); + if (em) register_email = decodeURIComponent(em[1]); + const pm = request_headers.cookie.match(/(?:^|;\s*)register_password=([^;]*)/); + if (pm) register_password = decodeURIComponent(pm[1]); +} + +if (session_data && !session_data.isRegistered) { + const user_name = register_email ? register_email.split('@')[0] : username; + const user_password = register_password; + + session_data.setSessionData("subscriber_name", username); + session_data.setSessionData("subscriber_username", user_name); + session_data.setSessionData('ProfilePicture', picture); + session_data.setSessionData("subscriber_userid", 0); + session_data.setSessionData("registered", true); + session_data.setUserPassword(user_password); + + if (!session_data.saveSessionData(true, true)) { + const errpage = wtvshared.doErrorPage(500); + headers = errpage[0]; + data = errpage[1]; + console.error("Failed to save session data for user %s", username); + } +} else if (session_data && session_data.isRegistered) { + console.warn("Session for BoxID %s is already registered", BoxId); +} else if (!session_data) { + console.warn("No session_data for BoxID %s — skipping registration", BoxId); +} +if (!headers) { +headers = `Status: 200 OK +Content-type: text/html`; + +data = ` + + + Account Established + + + + + + + + + + + + + + + +
You've finished registration
+
+

Thank you for registering for the MSN TV service.
Your e-mail name and sign in picture appear below.

+ +
+ + + + + +
+ + + + +
+ + + + +
+ +
+
+
+

${username}

+
+
+ +

+ Choose Continue to sign in to MSN TV using your e-mail + name and password. Once you sign in, you'll go to your + MSN TV home page. You can return to your home page + any time by pressing the Home key on your keyboard. +

+ + +
+ +`; +} \ No newline at end of file diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Login-to-WebTV.aspx.js b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Login-to-WebTV.aspx.js new file mode 100644 index 00000000..27acf87a --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Login-to-WebTV.aspx.js @@ -0,0 +1,54 @@ +const minisrv_service_file = true; + +headers = `Status: 200 OK +Content-type: text/html`; + +data = ` + + + Learning to use the keyboard + + + + + +
Logging into your account
+
+

When using MSN TV, you will be using your webtv.net account +to sign in. If you already have a email to WebTV, you can +use it with MSN TV. If not, you will have to use a Hotmail or MSN address.

+
+

Type your WebTV e-mail in the box below:

+
+ +

@webtv.net

+
+
+ If you don't have a WebTV account, select the Back Button. +
+ +
+ +
+ +`; diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Password-Required.aspx.js b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Password-Required.aspx.js new file mode 100644 index 00000000..cea26c37 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Password-Required.aspx.js @@ -0,0 +1,58 @@ +const minisrv_service_file = true; + +headers = `Status: 200 OK +Content-type: text/html`; + +data = ` + + + Login to Passport + + + + + + +
Password Required
+
+

+ A password is required to create a new account. Please click the Continue button to enter a password. +

+

Type your minisrv password:

+
+ +
+
+
+ + +`; diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Promotion-code.aspx.js b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Promotion-code.aspx.js new file mode 100644 index 00000000..85c424b3 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Promotion-code.aspx.js @@ -0,0 +1,86 @@ +const minisrv_service_file = true; + + +let email = request_headers.query.email || ''; +if (Array.isArray(email)) email = email[0]; +if (!email && request_headers.cookie) { + const pm = request_headers.cookie.match(/(?:^|;\s*)register_email=([^;]*)/); + if (pm) email = decodeURIComponent(pm[1]); +} + +let password = request_headers.query.password || ''; +if (Array.isArray(password)) password = password[0]; +if (!password && request_headers.cookie) { + const pm = request_headers.cookie.match(/(?:^|;\s*)register_password=([^;]*)/); + if (pm) password = decodeURIComponent(pm[1]); +} + +if (email && email.indexOf('@') < 0) email += "@"+minisrv_config.config.service_name; +let userAvail = false; + +if (email) { + username = email.split('@')[0]; + const wtvr = new WTVRegister(minisrv_config); + userSane = wtvr.checkUsernameSanity(username); + userAvail = wtvr.checkUsernameAvailable(username); + setCookie('register_email', email, { path: '/' }); + if (!userAvail || !userSane) { + headers = `Status: 302 Found +Location: https://sg1.trusted.msntv.msn.com/Register/Username-Not-Available.aspx`; +data = ""; + } +} + +if (!password) { + headers = `Status: 302 Found +Location: https://sg1.trusted.msntv.msn.com/Register/Password-Required.aspx`; +data = ""; +} + +if (userAvail && password) { +if (password) setCookie('register_password', password, { path: '/' }); + +headers = `Status: 200 OK +Content-type: text/html`; + +data = ` + + + Promotion Code + + + + + +
Promotion Code
+
+

Do you have a Promotion Code? Please choose the answer below.

+
+ +
+ +`; + +} \ No newline at end of file diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Register-MSN-email.aspx.js b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Register-MSN-email.aspx.js new file mode 100644 index 00000000..c93dd449 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Register-MSN-email.aspx.js @@ -0,0 +1,68 @@ +const minisrv_service_file = true; + +headers = `Status: 200 OK +Content-type: text/html`; + +data = ` + + + Login to Passport + + + + + + +
Creating an minisrv account
+
+

+ When using MSNTV2, you'll be using a minisrv account to sign in. + If you already have a minisrv account with a MSNTV, you can + use it with MSNTV2. If not, you can create a new one for use with MSNTV2 here. +

+

Type your minisrv username:

+
+ +

@${minisrv_config.config.service_name}

+
+
+

Next, enter a password:

+
+ +
+
+

If you have a minisrv account already, hit the Back button on your keyboard and choose I want to use my existing minisrv account.

+
+ + +`; diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Username-Not-Available.aspx.js b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Username-Not-Available.aspx.js new file mode 100644 index 00000000..80be4677 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Register/Username-Not-Available.aspx.js @@ -0,0 +1,59 @@ +const minisrv_service_file = true; + +headers = `Status: 200 OK +Content-type: text/html`; + +data = ` + + + Login to Passport + + + + + + +
Username Not Available
+
+

+ The username you have chosen is not available. Please choose a different username. +

+

Type your minisrv username:

+
+ +

@${minisrv_config.config.service_name}

+
+
+
+ + +`; diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/CSS/Base.css b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/CSS/Base.css new file mode 100644 index 00000000..9d72a248 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/CSS/Base.css @@ -0,0 +1,93 @@ +body.stretchyBackground +{ + behavior: url(msntv:/htc/StretchyBackground.htc); + margin: 0px; + border-width: 0px; +} + +body, td +{ + font-family: segoe tv; + font-size: 18px; +} + +.ellipsis +{ + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.inputText, .inputPwd +{ + background-color:#485464; + color:#F2F2F2; + border-style:window-inset; + border-width: 4px; + border-color: #9297A1; + border-right-color: #6F7783; + padding-left:3px; + padding-right:4px; +} + +.inputPwd +{ + behavior: url(msntv:/htc/PasswordField.htc); +} + +.scroller +{ + height: 100%; + width: 100%; + overflow-y: hidden; + behavior:url(../HTC/ScrollingDIV.htc); +} + +em +{ + font-weight: bold; + font-style: normal; +} + +p +{ + margin-top: 0px; + margin-bottom: 13px; +} + +ul +{ + margin-top:-7px; + margin-bottom:15px; +} +ul li +{ + margin-left:-24px; + margin-bottom:5px; +} +ul li span.li +{ + position:relative; + top:2px; + left:-4px; +} + +ul.links +{ + list-style:none; +} + +ul.links li +{ + position:relative; + top:2px; + left:-15px; + padding-left:13px; + background:url(msntv:/Shared/images/BulletCustom.gif) no-repeat; + background-position-y:3px; +} +ul.links li a +{ + display:inline-block; +} + diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/CSS/Settings.css b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/CSS/Settings.css new file mode 100644 index 00000000..19a111e6 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/CSS/Settings.css @@ -0,0 +1,249 @@ +@import url(msntv:/Shared/CSS/Base.css); + +body +{ + background-color: #B6D4F0; + overflow: hidden; + margin: 0px; +} + +a:visited +{ + color:#14224b; + text-decoration: none; +} + +a:link +{ + color:#14224b; + text-decoration: none; +} + +/****************************************************************** +* The following -- header, title, title2, subTitle, help, and helpIcon -- are used +* exclusively by SettingsHeading.htc. +*/ +#header +{ + position: absolute; + background: url(msntv:/Settings/Images/SettingsHeaderBG.jpg) no-repeat; + background-color: #1C5798; + top: 0px; + left: 0px; + height: 56px; + width: 100%; +} + +#title +{ + position: relative; + top: 23px; + margin-left: 15px; + margin-right: 15px; + color: #AACFF7; + font: bold 21px; +} + +/* font, color and margin style only from title style above */ +/* used by settingsTemplate.js */ + +#mainHeading +{ + color: #AACFF7; + font: bold 21px; + margin-left: 15px; + margin-right: 15px; +} + + +#title2 +{ + position: relative; + top: 23px; + color: #F7F7F7; + font-size: 21px; + white-space: nowrap; +} + +#subTitle +{ + display:none; +} + +#help +{ + position: absolute; + bottom: 30px; + right: 8px; + color: #F2F2F2; + font-size: 16px; + text-align: right; +} + +#helpIcon +{ + position: relative; + top: 1px; + left: 4px; + margin-left: 4px; + behavior: url(#default#alphaImageLoader); + src: url(msntv:/Shared/images/Icon_Help_RelatedLink.png); + width: 20px; + height: 20px; +} + +/* +* End for SettingsHeading.htc +******************************************************************/ + + +#sideBar +{ + position: absolute; + top: 71px; + right: 0px; + width: 151px; + padding-right: 8px; + padding-left: 6px; +} + +.sideBarButton, #sideBar msntv\:CustomButton +{ + height: 26px; + width: 100%; + display: block; + text-align:left; + margin: 0 0 4px 0; +} + + +/* The following are for buttons at the bottom of a page: */ +#buttonBar +{ + position: absolute; + right: 20px; + bottom: 10px; + text-align: right; +} + +.buttonBarButton, #buttonBar msntv\:CustomButton +{ + margin-left: 15px; + margin-right:0px; +} + + +/* The following two -- scrollArea and gradient -- are for the +* section of scrollable pages that are supposed to scroll. +* If you use a
on your page, be sure +* to also set "showscrolltop=true" in the SettingsHeading. +*/ +#scrollArea +{ + position: absolute; + top: 71px; + left: 0px; + width: 73%; + bottom: 0px; + height: 1px; /* will be overridden (because of the bottom value) once the HTC loads */ + padding-left: 15px; + padding-right: 22px; + overflow-y: hidden; + behavior: url(msntv:/HTC/ScrollingDIV.htc); +} + +#gradient +{ + width: 73%; + height: 100%; + behavior: url(#default#gradient); + startColor:#7A9FCC; + startTransparency:100; + endTransparency:0; + endcolor: #7A9FCC; + angle:0; +} + +/* If your page is NOT supposed to scroll, use the following as +* the ID of your content's DIV. +*/ +#nonScrollArea +{ + position: absolute; + top: 71px; + left: 0px; + width: 100%; + bottom: 51px; + padding-left: 15px; + padding-right: 20px; +} + +/* If you have a two-column table with check-boxes or radio-buttons +* or text fields (or a table that should look the same way), use +* . However, when using a table of +* radio-buttons or check-boxes where some of the description +* will span two or more lines, use class=options instead. +*/ +table.controlTable, table.options +{ + margin-top:-5px; + margin-bottom:9px; + border-collapse:collapse; +} +table.controlTable td, table.options td +{ + padding: 0px 8px 5px 0px; +} +table.options td +{ + vertical-align:top; +} + + +/* class=topic is used on index pages for the section titles, +* which are also links. +*/ +.topic +{ + margin-top: 4px; + font: bold 18px; + color: #14224b; + display: inline-block; +} + +/* class=description is used on index pages for the description +* under the section titles. +*/ +.description, .description td +{ + font-size: 18px; + color: #1D1D1D; + font-weight: normal; + margin-bottom: 7px; +} +.description +{ + width: 100%; +} + +hr +{ + height:2px; + width: 100%; + border:#5981B3 solid 2px; + margin-top: 0px; + margin-bottom: 0px; +} + +/* override scrollArea and SideBar for printing */ +@media print { + #scrollArea + { + width: 100%; + } + + #sideBar + { + visibility: hidden; + } +} diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/CSS/SynchMan.css b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/CSS/SynchMan.css new file mode 100644 index 00000000..3ce0fe4c --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/CSS/SynchMan.css @@ -0,0 +1,137 @@ +@import url(msntv:/CSS/Base.css); + +body +{ + background-color: #3D6CA6; + overflow: hidden; + margin: 0px; +} + +a:visited +{ + color:#F2F2F2; + text-decoration: none; +} + +a:link +{ + color:#F2F2F2; + text-decoration: none; +} + +em +{ + font-weight: bold; + font-style: normal; +} + +#header +{ + position: absolute; + background: url(msntv:/Shared/Images/SynchManagerHeaderBG.jpg) no-repeat; + background-color: #1C5798; + top: 0px; + left: 0px; + height: 56px; + width: 100%; +} + +#mainHeading +{ + color: #F2F2F2; + font: bold 21px; + margin-left: 15px; + margin-right: 15px; +} + + +#title +{ + position: relative; + top: 23px; + margin-left: 15px; + margin-right: 8px; + color: #F2F2F2; + font: bold 21px; +} + +#title2 +{ + position: relative; + top: 23px; + color: #F2F2F2; + font-size: 21px; + white-space: nowrap; +} + +#buttonBar +{ + position: absolute; + right: 20px; + bottom: 10px; + text-align: right; +} + +.buttonBarButton, #buttonBar msntv\:CustomButton +{ + margin-left: 15px; + margin-right:0px; +} + +#nonScrollArea +{ + position: absolute; + top: 71px; + left: 0px; + width: 100%; + bottom: 51px; + padding-left: 15px; + padding-right: 20px; +} + + +table.controlTable +{ + border-collapse:collapse; +} +table.controlTable td +{ + padding: 10px 5px 0px 0px; + vertical-align: top; + /* see also below under .control */ +} + +.control, table.controlTable td +{ + font-weight: bold; +} + +.topic +{ + margin-top: 4px; + font: bold 18px; + color: #F2F2F2; + display: inline-block; +} + +.description, .description td +{ + font-size: 18px; + color: #F2F2F2; + font-weight: normal; + margin-bottom: 7px; +} +.description +{ + width: 100%; +} + +hr +{ + height:2px; + width: 100%; + border:#5981B3 solid 2px; + margin-top: 0px; + margin-bottom: 0px; +} + diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/BulletCustom.gif b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/BulletCustom.gif new file mode 100644 index 00000000..129cb435 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/BulletCustom.gif differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/CapsLock.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/CapsLock.png new file mode 100644 index 00000000..a1415174 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/CapsLock.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/CheckBoxMarkedCustom.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/CheckBoxMarkedCustom.png new file mode 100644 index 00000000..cdea6e43 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/CheckBoxMarkedCustom.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/CheckBoxUnmarkedCustom.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/CheckBoxUnmarkedCustom.png new file mode 100644 index 00000000..80102145 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/CheckBoxUnmarkedCustom.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/CommandButtonGlobalLeftEdge.bmp b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/CommandButtonGlobalLeftEdge.bmp new file mode 100644 index 00000000..f80adee8 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/CommandButtonGlobalLeftEdge.bmp differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/CommandButtonGlobalLeftEdge.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/CommandButtonGlobalLeftEdge.png new file mode 100644 index 00000000..a7160148 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/CommandButtonGlobalLeftEdge.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/CommandButtonGlobalMiddleStretch.bmp b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/CommandButtonGlobalMiddleStretch.bmp new file mode 100644 index 00000000..754f1818 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/CommandButtonGlobalMiddleStretch.bmp differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/CommandButtonGlobalMiddleStretch.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/CommandButtonGlobalMiddleStretch.png new file mode 100644 index 00000000..8758edc8 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/CommandButtonGlobalMiddleStretch.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/CommandButtonGlobalRightEdge.bmp b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/CommandButtonGlobalRightEdge.bmp new file mode 100644 index 00000000..edb2d31d Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/CommandButtonGlobalRightEdge.bmp differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/CommandButtonGlobalRightEdge.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/CommandButtonGlobalRightEdge.png new file mode 100644 index 00000000..03ea74d5 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/CommandButtonGlobalRightEdge.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/Divider.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/Divider.png new file mode 100644 index 00000000..1591536a Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/Divider.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/DropDownCustomBottomCenterStretch.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/DropDownCustomBottomCenterStretch.png new file mode 100644 index 00000000..74ebd8de Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/DropDownCustomBottomCenterStretch.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/DropDownCustomBottomLeftEdge.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/DropDownCustomBottomLeftEdge.png new file mode 100644 index 00000000..acc1cd7d Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/DropDownCustomBottomLeftEdge.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/DropDownCustomBottomRightEdge.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/DropDownCustomBottomRightEdge.png new file mode 100644 index 00000000..737a2556 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/DropDownCustomBottomRightEdge.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/DropDownCustomDownArrow.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/DropDownCustomDownArrow.png new file mode 100644 index 00000000..5e60fc9c Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/DropDownCustomDownArrow.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/DropDownCustomMiddleCenterStretch.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/DropDownCustomMiddleCenterStretch.png new file mode 100644 index 00000000..8b33464e Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/DropDownCustomMiddleCenterStretch.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/DropDownCustomMiddleLeftEdge.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/DropDownCustomMiddleLeftEdge.png new file mode 100644 index 00000000..48c2ea55 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/DropDownCustomMiddleLeftEdge.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/DropDownCustomMiddleRightEdge.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/DropDownCustomMiddleRightEdge.png new file mode 100644 index 00000000..f7dff5fa Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/DropDownCustomMiddleRightEdge.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/DropDownCustomTopRightEdge.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/DropDownCustomTopRightEdge.png new file mode 100644 index 00000000..846392cb Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/DropDownCustomTopRightEdge.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/DropDownCustomUpArrow.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/DropDownCustomUpArrow.png new file mode 100644 index 00000000..a2dcf630 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/DropDownCustomUpArrow.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/Icon_Help_RelatedLink.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/Icon_Help_RelatedLink.png new file mode 100644 index 00000000..076be34b Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/Icon_Help_RelatedLink.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/MenuLeft.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/MenuLeft.png new file mode 100644 index 00000000..e723920d Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/MenuLeft.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/MenuRight.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/MenuRight.png new file mode 100644 index 00000000..5cb7e82e Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/MenuRight.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/ProgressBarCustomFill.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/ProgressBarCustomFill.png new file mode 100644 index 00000000..0e3f67f6 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/ProgressBarCustomFill.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/ProgressBarCustomFillOrange.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/ProgressBarCustomFillOrange.png new file mode 100644 index 00000000..21b452e4 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/ProgressBarCustomFillOrange.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/ProgressBarCustomFillRed.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/ProgressBarCustomFillRed.png new file mode 100644 index 00000000..abf55699 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/ProgressBarCustomFillRed.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/RadioButtonMarkedCustom.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/RadioButtonMarkedCustom.png new file mode 100644 index 00000000..56d2f10c Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/RadioButtonMarkedCustom.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/RadioButtonUnmarkedCustom.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/RadioButtonUnmarkedCustom.png new file mode 100644 index 00000000..190561ae Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/RadioButtonUnmarkedCustom.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/ScrollBottomArrow.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/ScrollBottomArrow.png new file mode 100644 index 00000000..dc30b0ee Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/ScrollBottomArrow.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/ScrollIndicatorDownGlobal.gif b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/ScrollIndicatorDownGlobal.gif new file mode 100644 index 00000000..c2083135 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/ScrollIndicatorDownGlobal.gif differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/ScrollIndicatorDownGlobal.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/ScrollIndicatorDownGlobal.png new file mode 100644 index 00000000..030acdc3 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/ScrollIndicatorDownGlobal.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/ScrollIndicatorLeftGlobal.gif b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/ScrollIndicatorLeftGlobal.gif new file mode 100644 index 00000000..11271e6f Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/ScrollIndicatorLeftGlobal.gif differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/ScrollIndicatorLeftGlobal.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/ScrollIndicatorLeftGlobal.png new file mode 100644 index 00000000..58c72d56 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/ScrollIndicatorLeftGlobal.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/ScrollIndicatorRightGlobal.gif b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/ScrollIndicatorRightGlobal.gif new file mode 100644 index 00000000..f13f5a17 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/ScrollIndicatorRightGlobal.gif differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/ScrollIndicatorRightGlobal.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/ScrollIndicatorRightGlobal.png new file mode 100644 index 00000000..4db3d1c2 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/ScrollIndicatorRightGlobal.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/ScrollIndicatorUpGlobal.gif b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/ScrollIndicatorUpGlobal.gif new file mode 100644 index 00000000..db56e1a1 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/ScrollIndicatorUpGlobal.gif differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/ScrollIndicatorUpGlobal.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/ScrollIndicatorUpGlobal.png new file mode 100644 index 00000000..3a1c66ec Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/ScrollIndicatorUpGlobal.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/ScrollLeftArrow.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/ScrollLeftArrow.png new file mode 100644 index 00000000..072103bd Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/ScrollLeftArrow.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/ScrollRightArrow.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/ScrollRightArrow.png new file mode 100644 index 00000000..b5fdefbe Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/ScrollRightArrow.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/ScrollTopArrow.png b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/ScrollTopArrow.png new file mode 100644 index 00000000..e5039138 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/ScrollTopArrow.png differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/SynchManagerHeaderBG.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/SynchManagerHeaderBG.jpg new file mode 100644 index 00000000..4229fab2 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Images/SynchManagerHeaderBG.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Javascript/PreCache.js b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Javascript/PreCache.js new file mode 100644 index 00000000..3c324542 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/Shared/Javascript/PreCache.js @@ -0,0 +1,29 @@ +window.attachEvent("onload", PreCacheOnload); + +function PreCacheOnload() +{ + // Give the page a chance to draw anything modified from the normal onload handler + window.setTimeout(PreCacheStart, 100); +} + +function PreCacheStart() +{ + // Look for + var linkTags = document.all.tags("link"); + if (linkTags) { + var len = linkTags.length; + for (var i = 0; i < len; i++) { + var tag = linkTags[i]; + if (tag.rel && tag.rel == "next" && tag.href) { + var request = new ActiveXObject("Microsoft.XMLHTTP"); + try { + request.open("GET", tag.href, true); + request.send(); + } + catch(exception) { + } + } + } + } +} + diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/connection/boxcheck.html.js b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/connection/boxcheck.html.js new file mode 100644 index 00000000..0f891d5f --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/msntv2/sg1/connection/boxcheck.html.js @@ -0,0 +1,232 @@ +const minisrv_service_file = true; + +let BoxId = request_headers.query.BoxId; +if (Array.isArray(BoxId)) BoxId = BoxId[0]; +let clientIp = socket.remoteAddress; +let banned = false; + +if (!BoxId || BoxId.length != 20 || !/^\d+$/.test(BoxId)) +{ + console.warn("Invalid BoxId format "+BoxId+" from "+clientIp); + banned = true; +} + +// Current UTC time +const now = new Date(); + +// Time data object +const timeData = { + hh: now.getUTCHours(), + mm: now.getUTCMinutes(), + ss: now.getUTCSeconds(), + mo: now.getUTCMonth() + 1, // JS months are 0-based + dd: now.getUTCDate(), + yyyy: now.getUTCFullYear() +}; + +// Timezone mapping (C# tuple → JS array or object) +const timezoneMap = { + "UTC": { + standardName: "UTC", + standardOffset: 0, + daylightName: "UTC", + daylightOffset: 0 + } +}; + +// Destructure like the C# tuple deconstruction +const { + standardName, + standardOffset, + daylightName, + daylightOffset +} = timezoneMap["UTC"]; + +const sessionId = crypto.randomUUID(); + +ssid_sessions[socket.ssid] = new WTVClientSessionData(minisrv_config, socket.ssid); +ssid_sessions[socket.ssid].set('SessionID', sessionId); + +// Set session cookie on the client +setCookie('SessionID', sessionId, { path: '/' }); + +headers = `200 OK +Content-type: text/html` + +data = ` + + + + + + + +`; \ No newline at end of file diff --git a/zefie_wtvp_minisrv/includes/classes/WTV-MSNTV2.js b/zefie_wtvp_minisrv/includes/classes/WTV-MSNTV2.js new file mode 100644 index 00000000..26e9ea8e --- /dev/null +++ b/zefie_wtvp_minisrv/includes/classes/WTV-MSNTV2.js @@ -0,0 +1,1774 @@ +'use strict'; + +const fs = require('fs'); +const path = require('path'); +const url = require('url'); +const tls = require('tls'); +const crypto = require('crypto'); +const RC4 = require('rc4-crypto'); +const forge = require('node-forge'); +const { http, https } = require('follow-redirects'); +const { raw } = require('express'); + +class WTVMSNTV2 { + constructor(minisrv_config, service_name, wtvshared, sendToClient, net, runScriptInVM, handlePHP, handleCGI, ssid_sessions, WTVClientSessionData) { + this.minisrv_config = minisrv_config; + this.service_name = service_name; + this.service_config = minisrv_config.services[service_name] || {}; + this.wtvshared = wtvshared; + this.sendToClient = sendToClient; + this.net = net; + this.runScriptInVM = runScriptInVM || null; + this.handlePHP = handlePHP || null; + this.handleCGI = handleCGI || null; + this.ssid_sessions = ssid_sessions || []; + this.WTVClientSessionData = WTVClientSessionData || null; + this.tlsContext = this.loadTlsContext(); + this.forgeTlsCredentials = this.loadForgeTlsCredentials(); + this.server = net.createServer((socket) => this.handleConnection(socket)); + this.mimeTypes = { + html: 'text/html', + htm: 'text/html', + css: 'text/css', + js: 'application/javascript', + json: 'application/json', + png: 'image/png', + jpg: 'image/jpeg', + jpeg: 'image/jpeg', + gif: 'image/gif', + svg: 'image/svg+xml', + ico: 'image/x-icon', + txt: 'text/plain', + xml: 'application/xml', + csv: 'text/csv', + svgz: 'image/svg+xml', + mp3: 'audio/mpeg', + wav: 'audio/wav', + pdf: 'application/pdf' + }; + } + + listen(port, host = '0.0.0.0') { + this.server.listen(port, host); + console.log(` * MSNTV2 Proxy listening on ${host}:${port}`); + return this.server; + } + + // Set sslv2_debug: true in the service config to enable SSL/TLS protocol-level + // debug logging (handshake stages, cipher setup, record enc/dec, write previews). + // Defaults to false so normal operation is not flooded with crypto noise. + get sslv2Debug() { + return this.service_config.sslv2_debug === true; + } + + handleConnection(socket) { + socket.buffer = Buffer.alloc(0); + socket.id = `msntv2-${Date.now()}-${Math.floor(Math.random() * 1000000)}`; + socket.ssid = null; + socket.connectIntercept = null; + socket.tlsSocket = null; + socket.rawDataListener = (chunk) => this.handleData(socket, chunk); + socket.on('data', socket.rawDataListener); + socket.on('error', (err) => { + if (this.service_config.show_verbose_errors) console.error('[WTV-MSNTV2] socket error:', err.message); + }); + } + + handleData(socket, chunk) { + socket.buffer = Buffer.concat([socket.buffer, chunk]); + const headerEnd = socket.buffer.indexOf('\r\n\r\n'); + if (headerEnd < 0) return; + + const headerBlock = socket.buffer.slice(0, headerEnd).toString('utf8'); + const headerLines = headerBlock.split('\r\n'); + const requestLine = headerLines.shift(); + const requestParts = requestLine.split(' '); + if (requestParts.length < 3) { + this.writeError(socket, 400, 'Bad Request'); + return; + } + + const [method, requestUrl, protocol] = requestParts; + const headers = {}; + const rawHeaders = []; + + headerLines.forEach((line) => { + const idx = line.indexOf(':'); + if (idx > -1) { + const name = line.slice(0, idx).trim(); + const value = line.slice(idx + 1).trim(); + headers[name] = value; + headers[name.toLowerCase()] = value; + rawHeaders.push(`${name}: ${value}`); + } + }); + + const contentLength = parseInt(headers['content-length'] || '0', 10) || 0; + const requestLength = headerEnd + 4 + contentLength; + if (socket.buffer.length < requestLength) return; + + const body = socket.buffer.slice(headerEnd + 4, requestLength); + const remaining = socket.buffer.slice(requestLength); + socket.buffer = remaining; + + if (method.toUpperCase() === 'CONNECT') { + if (remaining.length > 0) { + socket.unshift(remaining); + } + socket.buffer = Buffer.alloc(0); + this.handleConnect(socket, requestUrl); + return; + } + + const request_headers = { + request: requestLine, + request_url: requestUrl, + raw_headers: `Request: ${requestLine}\r\n${rawHeaders.join('\r\n')}\r\n\r\n`, + post_data: body.length ? body : null + }; + + Object.assign(request_headers, headers); + + const verbose = this.service_config.show_verbose_errors || this.minisrv_config.config.verbosity >= 3; + if (verbose) { + console.log('[WTV-MSNTV2] incoming request:', requestLine); + console.log('[WTV-MSNTV2] request headers:\n' + rawHeaders.join('\r\n')); + if (body.length) { + console.log('[WTV-MSNTV2] request body length:', body.length); + console.log('[WTV-MSNTV2] request body (first 1024 bytes):', body.slice(0, 1024).toString('utf8')); + } + } + + console.log(" * MSNTV2 %s for %s on socket %s", method, requestUrl, socket.id); + if (requestUrl.includes('?')) { + try { + const qs = requestUrl.slice(requestUrl.indexOf('?') + 1); + const params = {}; + qs.split('&').forEach(p => { + const eq = p.indexOf('='); + if (eq > 0) params[decodeURIComponent(p.slice(0, eq))] = decodeURIComponent(p.slice(eq + 1).replace(/\+/g, ' ')); + else if (p) params[decodeURIComponent(p)] = null; + }); + console.log(' * MSNTV2 query params on socket %s', socket.id, params); + } catch (_) {} + } + const { domainIntercepted, filePath } = this.interceptRequest(requestUrl, socket.connectIntercept); + if (verbose) { + console.log('[WTV-MSNTV2] intercept check for:', requestUrl, '->', domainIntercepted ? (filePath ? 'local file' : 'intercepted/404') : 'proxy'); + } + if (domainIntercepted) { + if (filePath) { + this.sendLocalFile(socket, filePath, request_headers); + } else { + console.warn(" * MSNTV2 404 for %s on socket %s (intercepted domain, missing local file)", requestUrl, socket.id); + this.writeError(socket, 404, 'Not Found', request_headers); + } + } else { + this.proxyRequest(socket, method, requestUrl, request_headers); + } + } + + handleConnect(socket, requestUrl) { + const [host, portString] = requestUrl.split(':'); + const port = parseInt(portString, 10) || 443; + const verbose = this.service_config.show_verbose_errors || this.minisrv_config.config.verbosity >= 3; + const connectIntercept = this.getConnectIntercept(host); + if (verbose) console.log('[WTV-MSNTV2] CONNECT request:', requestUrl, 'intercept:', !!connectIntercept); + + if (connectIntercept) { + if (!this.forgeTlsCredentials && !this.tlsContext) { + console.error('[WTV-MSNTV2] TLS intercept requested but no cert/key available'); + this.writeError(socket, 502, 'Bad Gateway'); + return; + } + socket.connectIntercept = connectIntercept; + socket.removeListener('data', socket.rawDataListener); + socket.write('HTTP/1.1 200 Connection Established\r\nProxy-agent: WTV-MSNTV2\r\n\r\n'); + if (verbose) console.log('[WTV-MSNTV2] CONNECT intercepted for host', host, '-> local_dir=', connectIntercept.localDir); + this.setupSslv2Probe(socket, connectIntercept); + return; + } + + const remote = this.net.connect(port, host, () => { + if (verbose) console.log('[WTV-MSNTV2] CONNECT tunnel established to', host + ':' + port); + socket.write('HTTP/1.1 200 Connection Established\r\nProxy-agent: WTV-MSNTV2\r\n\r\n'); + socket.pipe(remote); + remote.pipe(socket); + }); + + remote.on('error', (err) => { + if (this.service_config.show_verbose_errors) console.error('[WTV-MSNTV2] CONNECT error:', err.message); + this.writeError(socket, 502, 'Bad Gateway'); + }); + } + + setupTlsSocket(tlsSocket) { + const verbose = this.service_config.show_verbose_errors || this.minisrv_config.config.verbosity >= 3; + const sslDebug = this.sslv2Debug; + tlsSocket.on('secureConnect', () => { + if (sslDebug) console.log('[WTV-MSNTV2] TLS handshake complete for intercepted CONNECT', tlsSocket.connectIntercept.match); + }); + tlsSocket.on('data', (chunk) => this.handleTlsData(tlsSocket, chunk)); + tlsSocket.on('error', (err) => { + if (verbose) console.error('[WTV-MSNTV2] TLS socket error:', err.message); + try { tlsSocket.destroy(); } catch (_) {} + }); + tlsSocket.on('end', () => { + if (sslDebug) console.log('[WTV-MSNTV2] TLS socket ended:', tlsSocket.id); + tlsSocket.end(); + }); + tlsSocket.on('close', () => { + if (sslDebug) console.log('[WTV-MSNTV2] TLS socket closed:', tlsSocket.id); + }); + } + + setupForgeTls(socket, connectIntercept) { + const verbose = this.service_config.show_verbose_errors || this.minisrv_config.config.verbosity >= 3; + const sslDebug = this.sslv2Debug; + const creds = this.forgeTlsCredentials; + if (!creds) { + console.error('[WTV-MSNTV2] missing forge TLS credentials'); + this.writeError(socket, 502, 'Bad Gateway'); + return; + } + + const forgeConnection = forge.tls.createConnection({ + server: true, + caStore: [], + sessionCache: {}, + cipherSuites: [ + forge.tls.CipherSuites.TLS_RSA_WITH_AES_128_CBC_SHA, + forge.tls.CipherSuites.TLS_RSA_WITH_AES_256_CBC_SHA, + forge.tls.CipherSuites.TLS_RSA_WITH_3DES_EDE_CBC_SHA, + forge.tls.CipherSuites.TLS_RSA_WITH_RC4_128_SHA, + forge.tls.CipherSuites.TLS_RSA_WITH_RC4_128_MD5 + ], + getCertificate: (connection, hint) => creds.cert, + getPrivateKey: (connection, cert) => creds.key, + verify: (connection, verified, depth, certs) => true, + connected: (connection) => { + if (sslDebug) console.log('[WTV-MSNTV2] forge TLS handshake complete'); + }, + tlsDataReady: (connection) => { + const data = connection.tlsData.getBytes(); + socket.write(Buffer.from(data, 'binary')); + }, + dataReady: (connection) => { + const data = connection.data.getBytes(); + if (sslDebug) console.log('[WTV-MSNTV2] forge decrypted data length:', data.length); + handleForgeData(connection, data); + }, + closed: () => { + if (sslDebug) console.log('[WTV-MSNTV2] forge TLS connection closed'); + }, + error: (connection, error) => { + console.error('[WTV-MSNTV2] forge TLS error:', error && error.message ? error.message : error); + if (connection && connection.close) { + try { connection.close(); } catch (_) {} + } + if (socket && !socket.destroyed) { + try { socket.destroy(); } catch (_) {} + } + } + }); + + const handleForgeData = (connection, data) => { + connection.buffer = Buffer.concat([connection.buffer || Buffer.alloc(0), Buffer.from(data, 'binary')]); + while (true) { + const headerEnd = connection.buffer.indexOf('\r\n\r\n'); + if (headerEnd < 0) break; + const headerBlock = connection.buffer.slice(0, headerEnd).toString('utf8'); + const headerLines = headerBlock.split('\r\n'); + const requestLine = headerLines.shift(); + const requestParts = requestLine.split(' '); + if (requestParts.length < 3) { + if (verbose) { + console.warn('[WTV-MSNTV2] forge TLS invalid request line:', requestLine); + console.warn('[WTV-MSNTV2] forge TLS raw header block:', headerBlock); + } + this.writeError(socket, 400, 'Bad Request'); + return; + } + const [method, requestUrl, protocol] = requestParts; + const headers = {}; + const rawHeaders = []; + headerLines.forEach((line) => { + const idx = line.indexOf(':'); + if (idx > -1) { + const name = line.slice(0, idx).trim(); + const value = line.slice(idx + 1).trim(); + headers[name] = value; + headers[name.toLowerCase()] = value; + rawHeaders.push(`${name}: ${value}`); + } + }); + const contentLength = parseInt(headers['content-length'] || '0', 10) || 0; + const requestLength = headerEnd + 4 + contentLength; + if (connection.buffer.length < requestLength) break; + const body = connection.buffer.slice(headerEnd + 4, requestLength); + connection.buffer = connection.buffer.slice(requestLength); + const request_headers = { + request: requestLine, + request_url: requestUrl, + raw_headers: `Request: ${requestLine}\r\n${rawHeaders.join('\r\n')}\r\n\r\n`, + post_data: body.length ? body : null + }; + Object.assign(request_headers, headers); + if (verbose) { + console.log('[WTV-MSNTV2] forge decrypted request:', requestLine); + console.log('[WTV-MSNTV2] forge decrypted headers:\n' + rawHeaders.join('\r\n')); + } + console.log(" * MSNTV2(Forge) %s for %s on socket %s", method, requestUrl, socket.id); + if (requestUrl.includes('?')) { + try { + const qs = requestUrl.slice(requestUrl.indexOf('?') + 1); + const params = {}; + qs.split('&').forEach(p => { + const eq = p.indexOf('='); + if (eq > 0) params[decodeURIComponent(p.slice(0, eq))] = decodeURIComponent(p.slice(eq + 1).replace(/\+/g, ' ')); + else if (p) params[decodeURIComponent(p)] = null; + }); + console.log(' * MSNTV2(Forge) query params on socket %s', socket.id, params); + } catch (_) {} + } + const { domainIntercepted: di, filePath: fp } = this.interceptRequest(requestUrl, connectIntercept); + if (di) { + if (fp) { + this.sendLocalFile(socket, fp, request_headers); + } else { + console.warn(" * MSNTV2(Forge) 404 for %s on socket %s (intercepted domain, missing local file)", requestUrl, socket.id); + this.writeError(socket, 404, 'Not Found', request_headers); + } + } else { + this.proxyRequest(socket, method, requestUrl, request_headers); + } + } + }; + + socket.on('data', (chunk) => { + forgeConnection.process(chunk.toString('binary')); + }); + + socket.forgeTls = forgeConnection; + } + + setupSslv2Probe(socket, connectIntercept) { + socket.sslv2Probe = true; + socket.sslv2Buffer = Buffer.alloc(0); + socket.sslv2ConnectIntercept = connectIntercept; + socket.sslv2ProbeListener = (chunk) => this.handleSslv2Probe(socket, chunk); + socket.on('data', socket.sslv2ProbeListener); + } + + handleSslv2Probe(socket, chunk) { + socket.sslv2Buffer = Buffer.concat([socket.sslv2Buffer, chunk]); + const header = this.parseSslv2Header(socket.sslv2Buffer); + if (!header || socket.sslv2Buffer.length < header.headerLength + header.length) return; + + const payload = socket.sslv2Buffer.slice(header.headerLength, header.headerLength + header.length); + const type = payload[0]; + const sslDebug = this.sslv2Debug; + if (sslDebug) { + console.log('[WTV-MSNTV2] SSLv2 probe header:', header, 'type:', type); + } + if (type === 1) { + socket.removeListener('data', socket.sslv2ProbeListener); + socket.sslv2Probe = false; + this.setupLegacySslv2(socket, socket.sslv2ConnectIntercept, socket.sslv2Buffer); + return; + } + + socket.removeListener('data', socket.sslv2ProbeListener); + socket.sslv2Probe = false; + if (this.forgeTlsCredentials) { + this.setupForgeTls(socket, socket.sslv2ConnectIntercept); + if (socket.sslv2Buffer.length) { + socket.forgeTls.process(socket.sslv2Buffer.toString('binary')); + } + } else if (this.tlsContext) { + const tlsSocket = new tls.TLSSocket(socket, { + isServer: true, + secureContext: this.tlsContext, + requestCert: false, + rejectUnauthorized: false, + secureProtocol: 'TLS_method', + minVersion: 'SSLv1', + maxVersion: 'TLSv1.3', + secureOptions: crypto.constants.SSL_OP_LEGACY_SERVER_CONNECT || 0 + }); + tlsSocket.connectIntercept = socket.sslv2ConnectIntercept; + tlsSocket.id = socket.id; + this.setupTlsSocket(tlsSocket); + socket.tlsSocket = tlsSocket; + if (socket.sslv2Buffer.length) { + tlsSocket.emit('data', socket.sslv2Buffer); + } + } else { + this.writeError(socket, 502, 'Bad Gateway'); + } + } + + setupLegacySslv2(socket, connectIntercept, initialPayload) { + const verbose = this.sslv2Debug; + const creds = this.forgeTlsCredentials; + if (!creds) { + console.error('[WTV-MSNTV2] missing SSLv2 TLS credentials'); + this.writeError(socket, 502, 'Bad Gateway'); + return; + } + + const certBytes = Buffer.from(forge.pem.decode(creds.certPem)[0].body, 'binary'); + if (verbose) { + console.log('[WTV-MSNTV2] SSLv2 legacy handshake start, initial payload length:', initialPayload ? initialPayload.length : 0); + } + socket.sslv2 = { + stage: 'hello', + buffer: Buffer.from(initialPayload || Buffer.alloc(0)), + connectIntercept, + clientChallenge: null, + serverChallenge: crypto.randomBytes(16), + cipherSpec: null, + cipherInfo: null, + certBytes, + connectionId: crypto.randomBytes(16), + sessionId: crypto.randomBytes(16), + keyPem: creds.keyPem, + certPem: creds.certPem, + clientCipher: null, + serverCipher: null, + clientMacKey: null, + serverMacKey: null, + masterSecret: null, + clientSequence: 0, + serverSequence: 0 + }; + + socket.on('data', (chunk) => this.handleSslv2Data(socket, chunk)); + socket.on('error', (err) => { + if (verbose) console.error('[WTV-MSNTV2] SSLv2 socket error:', err.message); + try { socket.destroy(); } catch (_) {} + }); + socket.on('close', () => { + if (verbose) console.log('[WTV-MSNTV2] SSLv2 socket closed:', socket.id); + }); + + this.handleSslv2Data(socket, Buffer.alloc(0)); + } + + parseSslv2Header(buffer) { + if (buffer.length < 2) return null; + const first = buffer[0]; + if (first & 0x80) { + return { + headerLength: 2, + length: ((first & 0x7f) << 8) | buffer[1], + padding: 0, + isEscape: false + }; + } + if (buffer.length < 3) return null; + return { + headerLength: 3, + length: ((first & 0x3f) << 8) | buffer[1], + padding: buffer[2], + isEscape: (first & 0x40) !== 0 + }; + } + + parseSslv2ClientHello(payload) { + if (payload.length < 9 || payload[0] !== 1) return null; + const cipherSpecLength = payload.readUInt16BE(3); + const sessionIdLength = payload.readUInt16BE(5); + const challengeLength = payload.readUInt16BE(7); + const totalLength = 9 + cipherSpecLength + sessionIdLength + challengeLength; + if (payload.length < totalLength) return null; + const cipherSpecs = []; + let offset = 9; + for (let i = 0; i < cipherSpecLength; i += 3) { + cipherSpecs.push(payload.slice(offset + i, offset + i + 3)); + } + offset += cipherSpecLength; + const sessionId = payload.slice(offset, offset + sessionIdLength); + offset += sessionIdLength; + const challenge = payload.slice(offset, offset + challengeLength); + + return { cipherSpecs, sessionId, challenge, totalLength }; + } + + parseSslv2ClientMasterKey(payload) { + if (payload.length < 10 || payload[0] !== 2) return null; + const cipherKind = payload.slice(1, 4); + const clearKeyLength = payload.readUInt16BE(4); + const encryptedKeyLength = payload.readUInt16BE(6); + const keyArgLength = payload.readUInt16BE(8); + const totalLength = 10 + clearKeyLength + encryptedKeyLength + keyArgLength; + if (payload.length < totalLength) return null; + let offset = 10; + const clearKey = payload.slice(offset, offset + clearKeyLength); + offset += clearKeyLength; + const encryptedKey = payload.slice(offset, offset + encryptedKeyLength); + offset += encryptedKeyLength; + const keyArg = payload.slice(offset, offset + keyArgLength); + return { cipherKind, clearKey, encryptedKey, keyArg, totalLength }; + } + + parseSslv2ClientFinished(payload) { + if (payload.length < 2 || payload[0] !== 3) return null; + return { finished: payload.slice(1) }; + } + + pkcs1Type2Unpad(block) { + if (!block || block.length < 11) return null; + if (block[0] !== 0x00 || block[1] !== 0x02) return null; + let idx = 2; + while (idx < block.length && block[idx] !== 0x00) { + idx += 1; + } + if (idx >= block.length) return null; + return block.slice(idx + 1); + } + + pkcs1Type1Pad(data, blockSize) { + const msg = Buffer.from(data || Buffer.alloc(0)); + if (msg.length > blockSize - 3) { + throw new Error('PKCS#1 type-1 message too long'); + } + const psLength = blockSize - msg.length - 3; + const ps = Buffer.alloc(psLength, 0xff); + return Buffer.concat([Buffer.from([0x00, 0x01]), ps, Buffer.from([0x00]), msg]); + } + + privateEncryptPkcs1Compat(privateKeyPem, data) { + try { + return crypto.privateEncrypt({ + key: privateKeyPem, + padding: crypto.constants.RSA_PKCS1_PADDING + }, data); + } catch (err) { + const keyObj = crypto.createPrivateKey(privateKeyPem); + const modulusBits = keyObj.asymmetricKeyDetails && keyObj.asymmetricKeyDetails.modulusLength + ? keyObj.asymmetricKeyDetails.modulusLength + : 2048; + const blockSize = Math.ceil(modulusBits / 8); + const block = this.pkcs1Type1Pad(data, blockSize); + return crypto.privateEncrypt({ + key: privateKeyPem, + padding: crypto.constants.RSA_NO_PADDING + }, block); + } + } + + decryptSslv2PreMaster(state, encryptedKey) { + try { + return crypto.privateDecrypt({ + key: state.keyPem, + padding: crypto.constants.RSA_PKCS1_PADDING + }, encryptedKey); + } catch (err) { + const msg = err && err.message ? err.message : ''; + if (!msg.includes('RSA_PKCS1_PADDING is no longer supported for private decryption')) { + throw err; + } + const rawBlock = crypto.privateDecrypt({ + key: state.keyPem, + padding: crypto.constants.RSA_NO_PADDING + }, encryptedKey); + const unpadded = this.pkcs1Type2Unpad(rawBlock); + if (!unpadded) { + throw new Error('Failed PKCS#1 type-2 unpad for SSLv2 ClientMasterKey'); + } + return unpadded; + } + } + + buildSslv2Record(payload) { + const header = Buffer.alloc(2); + const length = payload.length; + header[0] = 0x80 | ((length >> 8) & 0x7f); + header[1] = length & 0xff; + return Buffer.concat([header, payload]); + } + + sslv2SequenceBuffer(sequence) { + const out = Buffer.alloc(4); + out.writeUInt32BE((sequence >>> 0), 0); + return out; + } + + sslv2Mac(macKey, payload, sequence, paddingData) { + // SSLv2 MAC: HASH(secret, actual-data, padding-data, sequence-number) + return crypto.createHash('md5') + .update(macKey) + .update(payload) + .update(paddingData || Buffer.alloc(0)) + .update(this.sslv2SequenceBuffer(sequence)) + .digest(); + } + + buildSslv2EncryptedRecord(state, payload) { + const mac = this.sslv2Mac(state.serverMacKey, payload, state.serverSequence, Buffer.alloc(0)); + const plain = Buffer.concat([mac, payload]); + const encrypted = state.serverCipher.update(plain); + const length = encrypted.length; + let header; + if (state.cipherInfo && state.cipherInfo.ivLength === 0) { + // For stream ciphers (RC4), legacy peers commonly use 2-byte SSLv2 record headers. + header = Buffer.alloc(2); + header[0] = 0x80 | ((length >> 8) & 0x7f); + header[1] = length & 0xff; + } else { + header = Buffer.alloc(3); + header[0] = (length >> 8) & 0x3f; + header[1] = length & 0xff; + header[2] = 0x00; + } + const verbose = this.sslv2Debug; + if (verbose && payload.length <= 20) { + console.log('[WTV-MSNTV2] buildSslv2EncryptedRecord: serverSeq=' + state.serverSequence + ', payloadLen=' + payload.length + ', payload=' + payload.toString('hex') + ', macLen=16'); + } + state.serverSequence += 1; + return Buffer.concat([header, encrypted]); + } + + decodeSslv2EncryptedRecord(state, encryptedRecord, header) { + const verbose = this.sslv2Debug; + const decrypted = state.clientCipher.update(encryptedRecord); + const macLen = state.cipherInfo && state.cipherInfo.macLength ? state.cipherInfo.macLength : 16; + if (!decrypted || decrypted.length < macLen) { + return null; + } + const receivedMac = decrypted.slice(0, macLen); + let payload = decrypted.slice(macLen); + if (header.padding && payload.length >= header.padding) { + payload = payload.slice(0, payload.length - header.padding); + } + const expectedMac = this.sslv2Mac(state.clientMacKey, payload, state.clientSequence, Buffer.alloc(0)); + if (verbose && payload.length <= 20) { + console.log('[WTV-MSNTV2] decodeSslv2EncryptedRecord: clientSeq=' + state.clientSequence + ', payloadLen=' + payload.length + ', payload=' + payload.toString('hex') + ', receivedMac=' + receivedMac.toString('hex') + ', expectedMac=' + expectedMac.toString('hex')); + } + if (!crypto.timingSafeEqual(receivedMac, expectedMac)) { + if (verbose) { + console.warn('[WTV-MSNTV2] SSLv2 MAC mismatch on encrypted record seq=', state.clientSequence); + } + return null; + } + state.clientSequence += 1; + return payload; + } + + buildSslv2ServerHello(state) { + const sessionIdHit = Buffer.from([0x00]); + const certificateTypeX509 = Buffer.from([0x01]); + const version = Buffer.from([0x00, 0x02]); + const certLength = Buffer.alloc(2); + certLength.writeUInt16BE(state.certBytes.length, 0); + const cipherSpecLength = Buffer.alloc(2); + cipherSpecLength.writeUInt16BE(state.cipherSpec.length, 0); + const sessionIdLength = Buffer.alloc(2); + sessionIdLength.writeUInt16BE(state.connectionId.length, 0); + const payload = Buffer.concat([ + Buffer.from([4]), + sessionIdHit, + certificateTypeX509, + version, + certLength, + cipherSpecLength, + sessionIdLength, + state.certBytes, + state.cipherSpec, + state.connectionId + ]); + return this.buildSslv2Record(payload); + } + + setupSslv2Cipher(state, masterKey) { + if (state.cipherInfo.algorithm === 'rc4') { + // SSLv2 RC4 key schedule: + // KM0 = MD5(master_key, '0', challenge, connection_id) + // KM1 = MD5(master_key, '1', challenge, connection_id) + // client_write = KM1, server_write = KM0 + const km0 = crypto.createHash('md5') + .update(masterKey) + .update(Buffer.from('0', 'ascii')) + .update(state.clientChallenge) + .update(state.connectionId) + .digest(); + const km1 = crypto.createHash('md5') + .update(masterKey) + .update(Buffer.from('1', 'ascii')) + .update(state.clientChallenge) + .update(state.connectionId) + .digest(); + const clientWriteKey = km1.slice(0, 16); + const serverWriteKey = km0.slice(0, 16); + + const clientRc4 = new RC4.RC4(clientWriteKey); + const serverRc4 = new RC4.RC4(serverWriteKey); + state.clientCipher = { + update: (data) => { + const out = clientRc4.updateFromBuffer(Buffer.from(data)); + return Buffer.isBuffer(out) ? out : Buffer.from(out); + } + }; + state.serverCipher = { + update: (data) => { + const out = serverRc4.updateFromBuffer(Buffer.from(data)); + return Buffer.isBuffer(out) ? out : Buffer.from(out); + } + }; + // For these SSLv2 MD5 suites, the write keys are also the MAC secrets. + state.clientMacKey = clientWriteKey; + state.serverMacKey = serverWriteKey; + } else { + const keyLen = state.cipherInfo.keyLength; + const ivLen = state.cipherInfo.ivLength || 0; + const seed = Buffer.concat([state.clientChallenge, state.connectionId, state.keyArg || Buffer.alloc(0)]); + const required = keyLen * 2 + ivLen * 2; + let data = Buffer.alloc(0); + let counter = 1; + while (data.length < required) { + const pad = Buffer.alloc(counter, counter); + data = Buffer.concat([data, crypto.createHash('md5').update(masterKey).update(pad).update(seed).digest()]); + counter += 1; + } + const clientKey = data.slice(0, keyLen); + const serverKey = data.slice(keyLen, keyLen * 2); + const clientIv = ivLen ? data.slice(keyLen * 2, keyLen * 2 + ivLen) : null; + const serverIv = ivLen ? data.slice(keyLen * 2 + ivLen, keyLen * 2 + ivLen * 2) : null; + state.clientCipher = crypto.createDecipheriv(state.cipherInfo.algorithm, clientKey, clientIv || Buffer.alloc(0)); + state.serverCipher = crypto.createCipheriv(state.cipherInfo.algorithm, serverKey, serverIv || Buffer.alloc(0)); + state.clientMacKey = clientKey; + state.serverMacKey = serverKey; + } + } + + handleSslv2Data(socket, chunk) { + const state = socket.sslv2; + const verbose = this.sslv2Debug; + if (!state) return; + if (verbose) { + console.log('[WTV-MSNTV2] SSLv2 handleSslv2Data stage=', state.stage, 'incoming chunk=', chunk.length, 'buffer before=', state.buffer.length); + } + state.buffer = Buffer.concat([state.buffer, chunk]); + while (true) { + const header = this.parseSslv2Header(state.buffer); + if (!header || state.buffer.length < header.headerLength + header.length) break; + if (verbose) { + console.log('[WTV-MSNTV2] SSLv2 parsed record header=', header); + } + const record = state.buffer.slice(header.headerLength, header.headerLength + header.length); + state.buffer = state.buffer.slice(header.headerLength + header.length); + let plainRecord = record; + const shouldDecrypt = !!state.clientCipher && state.stage !== 'hello' && state.stage !== 'master_key'; + if (shouldDecrypt) { + if (!state.clientCipher || !state.clientMacKey) { + console.error('[WTV-MSNTV2] SSLv2 received encrypted record before cipher setup'); + this.writeError(socket, 400, 'Bad SSLv2 Encrypted Record'); + return; + } + plainRecord = this.decodeSslv2EncryptedRecord(state, record, header); + if (!plainRecord) { + console.error('[WTV-MSNTV2] SSLv2 failed to decode encrypted record'); + this.writeError(socket, 400, 'Bad SSLv2 Encrypted Record'); + return; + } + } else if (header.padding) { + plainRecord = record.slice(0, record.length - header.padding); + } + if (verbose) { + console.log('[WTV-MSNTV2] SSLv2 record length=', plainRecord.length, 'remaining buffer=', state.buffer.length); + } + + if (state.stage === 'hello') { + const hello = this.parseSslv2ClientHello(plainRecord); + if (!hello) { + if (verbose) console.log('[WTV-MSNTV2] SSLv2 failed to parse ClientHello'); + this.writeError(socket, 400, 'Bad SSLv2 Hello'); + return; + } + state.clientChallenge = hello.challenge; + state.clientSessionId = hello.sessionId; + const specsHex = hello.cipherSpecs.map((spec) => spec.toString('hex')); + if (verbose) { + console.log('[WTV-MSNTV2] SSLv2 client hello cipher specs:', specsHex); + } + state.cipherSpec = hello.cipherSpecs.find((spec) => this.sslv2CipherInfo(spec)); + if (!state.cipherSpec) { + console.error('[WTV-MSNTV2] unsupported SSLv2 cipher spec list:', specsHex.join(', ')); + this.writeError(socket, 502, 'Unsupported Cipher'); + return; + } + state.cipherInfo = this.sslv2CipherInfo(state.cipherSpec); + if (verbose) { + console.log('[WTV-MSNTV2] SSLv2 selected cipher spec:', state.cipherSpec.toString('hex'), 'info:', state.cipherInfo); + } + const serverHelloRecord = this.buildSslv2ServerHello(state); + socket.write(serverHelloRecord); + // Count plaintext ServerHello in each direction's sequence tracking so + // ServerVerify uses seq=1 for legacy WinCE Schannel behavior. + state.serverSequence += 1; + state.clientSequence += 1; + if (verbose) { + console.log('[WTV-MSNTV2] SSLv2 wrote ServerHello'); + console.log('[WTV-MSNTV2] SSLv2 ServerHello bytes (first 96):', serverHelloRecord.slice(0, 96).toString('hex')); + } + state.stage = 'master_key'; + continue; + } + + if (state.stage === 'master_key') { + const masterKey = this.parseSslv2ClientMasterKey(plainRecord); + if (!masterKey) { + if (verbose) console.log('[WTV-MSNTV2] SSLv2 failed to parse ClientMasterKey'); + this.writeError(socket, 400, 'Bad SSLv2 MasterKey'); + return; + } + if (verbose) { + console.log('[WTV-MSNTV2] SSLv2 BEFORE ClientMasterKey: clientSeq=' + state.clientSequence + ', serverSeq=' + state.serverSequence); + } + const cipherKindHex = masterKey.cipherKind.toString('hex'); + if (verbose) { + console.log('[WTV-MSNTV2] SSLv2 ClientMasterKey cipherKind=', cipherKindHex, 'clearKeyLen=', masterKey.clearKey.length, 'encryptedKeyLen=', masterKey.encryptedKey.length, 'keyArgLen=', masterKey.keyArg.length); + } + state.keyArg = masterKey.keyArg; + let secret = masterKey.clearKey; + if (secret.length === 0 && masterKey.encryptedKey.length > 0) { + try { + secret = this.decryptSslv2PreMaster(state, masterKey.encryptedKey); + if (verbose) { + console.log('[WTV-MSNTV2] SSLv2 decrypted pre-master key length=', secret.length); + } + } catch (err) { + console.error('[WTV-MSNTV2] SSLv2 private decrypt failed:', err.message); + this.writeError(socket, 502, 'Bad Gateway'); + return; + } + } + if (!secret || secret.length === 0) { + console.error('[WTV-MSNTV2] SSLv2 missing secret'); + this.writeError(socket, 502, 'Bad Gateway'); + return; + } + if (verbose) { + console.log('[WTV-MSNTV2] SSLv2 masterKey=', secret.toString('hex')); + } + state.masterSecret = secret; + this.setupSslv2Cipher(state, secret); + const serverVerifyRecord = this.buildSslv2ServerVerify(state); + socket.write(serverVerifyRecord); + if (verbose) { + console.log('[WTV-MSNTV2] SSLv2 wrote ServerVerify seq=', state.serverSequence - 1); + console.log('[WTV-MSNTV2] SSLv2 ServerVerify bytes (first 64):', serverVerifyRecord.slice(0, 64).toString('hex')); + } + // Per OpenSSL s2_srvr.c: server sends ServerVerify AND ServerFinished + // BEFORE waiting for ClientFinished. WinCE Schannel's state machine + // expects ServerFinished to arrive before it sends ClientFinished. + // Sending ServerFinished late (after ClientFinished) causes the client + // to be in 'open' state already, treating ServerFinished as application + // data, which fails and triggers a RST. + const serverFinishedRecord = this.buildSslv2ServerFinished(state); + socket.write(serverFinishedRecord); + if (verbose) { + console.log('[WTV-MSNTV2] SSLv2 wrote ServerFinished seq=', state.serverSequence - 1); + console.log('[WTV-MSNTV2] SSLv2 ServerFinished mode=', state.lastServerFinishedMode || 'server', 'clientSessionIdLen=', state.clientSessionId ? state.clientSessionId.length : 0); + console.log('[WTV-MSNTV2] SSLv2 ServerFinished payload data:', (state.lastServerFinishedData || Buffer.alloc(0)).toString('hex')); + console.log('[WTV-MSNTV2] SSLv2 ServerFinished bytes (first 64):', serverFinishedRecord.slice(0, 64).toString('hex')); + } + state.clientSequence += 1; + if (verbose) { + console.log('[WTV-MSNTV2] SSLv2 after sending ServerVerify+ServerFinished: clientSeq=' + state.clientSequence + ', serverSeq=' + state.serverSequence); + } + state.stage = 'client_finished'; + continue; + } + + if (state.stage === 'client_finished') { + const finished = this.parseSslv2ClientFinished(plainRecord); + if (!finished) { + if (verbose) console.log('[WTV-MSNTV2] SSLv2 failed to parse ClientFinished'); + if (verbose) { + console.log('[WTV-MSNTV2] SSLv2 ClientFinished first byte=', plainRecord.length ? plainRecord[0] : null, 'hex(first 48)=', plainRecord.slice(0, 48).toString('hex')); + } + this.writeError(socket, 400, 'Bad SSLv2 Finished'); + return; + } + if (verbose) { + console.log('[WTV-MSNTV2] SSLv2 received ClientFinished length=', finished.finished.length, 'clientSeq=', state.clientSequence); + } + if (!finished.finished.equals(state.connectionId)) { + console.error('[WTV-MSNTV2] SSLv2 ClientFinished mismatch with connection-id'); + this.writeError(socket, 400, 'Bad SSLv2 Finished'); + return; + } + if (verbose) { + console.log('[WTV-MSNTV2] SSLv2 handshake complete, transitioning to open'); + } + state.stage = 'open'; + continue; + } + + if (state.stage === 'open') { + if (verbose) { + console.log('[WTV-MSNTV2] SSLv2 application record length:', plainRecord.length); + } + if (plainRecord && plainRecord.length) { + this.handleSslv2ApplicationData(socket, plainRecord); + } + continue; + } + + break; + } + } + + sslv2CipherInfo(cipherSpec) { + const cipherKey = cipherSpec.toString('hex'); + const mapping = { + '010080': { algorithm: 'rc4', keyLength: 16, ivLength: 0, macLength: 16 }, + '070080': { algorithm: 'des-ede3-cbc', keyLength: 24, ivLength: 8, macLength: 16 }, + '060080': { algorithm: 'des-cbc', keyLength: 8, ivLength: 8, macLength: 16 } + }; + return mapping[cipherKey] || null; + } + + buildSslv2ServerVerify(state) { + // SSLv2 SERVER-VERIFY echoes the client challenge bytes. + const payload = Buffer.concat([Buffer.from([5]), state.clientChallenge || Buffer.alloc(0)]); + if (state.serverCipher && state.serverMacKey) { + return this.buildSslv2EncryptedRecord(state, payload); + } + return this.buildSslv2Record(payload); + } + + buildSslv2ServerFinished(state) { + // Compatibility selector for WinCE Schannel variants: + // - default/server: use server-generated session id (spec behavior) + // - client: echo ClientHello session id (if 16 bytes) + // - connection/connid: reuse ServerHello connection id + // - auto: prefer client session id if 16 bytes, else spec behavior + const configuredMode = String(this.service_config.sslv2_serverfinished_mode || 'server').toLowerCase(); + let selectedMode = configuredMode; + let finishedData = state.sessionId; + + if (configuredMode === 'client') { + if (state.clientSessionId && state.clientSessionId.length === 16) { + finishedData = state.clientSessionId; + } else { + selectedMode = 'server-fallback'; + } + } else if (configuredMode === 'connection' || configuredMode === 'connid') { + finishedData = state.connectionId; + } else if (configuredMode === 'auto') { + if (state.clientSessionId && state.clientSessionId.length === 16) { + finishedData = state.clientSessionId; + selectedMode = 'client-auto'; + } else { + selectedMode = 'server-auto'; + } + } + + state.lastServerFinishedMode = selectedMode; + state.lastServerFinishedData = finishedData; + const payload = Buffer.concat([Buffer.from([6]), finishedData]); + if (state.serverCipher && state.serverMacKey) { + return this.buildSslv2EncryptedRecord(state, payload); + } + return this.buildSslv2Record(payload); + } + + _logSslv2RequestHeaders(socket, requestLine, rawHeaders) { + try { + console.log(' * MSNTV2(SSLv2) request headers on socket %s', socket.id); + console.log(' ' + requestLine); + console.log(rawHeaders); + const qStart = requestLine.indexOf('?'); + if (qStart !== -1) { + const qEnd = requestLine.lastIndexOf(' '); + const qs = requestLine.slice(qStart + 1, qEnd > qStart ? qEnd : undefined); + if (qs) { + const params = {}; + qs.split('&').forEach(p => { + const eq = p.indexOf('='); + if (eq > 0) params[decodeURIComponent(p.slice(0, eq))] = decodeURIComponent(p.slice(eq + 1).replace(/\+/g, ' ')); + else if (p) params[decodeURIComponent(p)] = null; + }); + console.log(' * MSNTV2(SSLv2) query params on socket %s', socket.id, params); + } + } + } catch (_) { /* ignore logging failure */ } + } + + _logSslv2ResponseHeaders(socket, payload) { + try { + const text = Buffer.isBuffer(payload) ? payload.toString('utf8') : String(payload); + if (!text.startsWith('HTTP/')) return; + + const headerEnd = text.indexOf('\r\n\r\n') >= 0 + ? text.indexOf('\r\n\r\n') + : text.indexOf('\n\n'); + const headerBlock = headerEnd >= 0 ? text.slice(0, headerEnd) : text; + const lines = headerBlock.replace(/\r/g, '').split('\n').filter(Boolean); + if (!lines.length) return; + + console.log(' * MSNTV2(SSLv2) response headers on socket %s', socket.id); + console.log(lines); + } catch (_) { /* ignore logging failure */ } + } + + handleSslv2ApplicationData(socket, data) { + socket.sslv2AppBuffer = Buffer.concat([socket.sslv2AppBuffer || Buffer.alloc(0), data]); + while (true) { + const headerEnd = socket.sslv2AppBuffer.indexOf('\r\n\r\n'); + if (headerEnd < 0) return; + const headerBlock = socket.sslv2AppBuffer.slice(0, headerEnd).toString('utf8'); + const headerLines = headerBlock.split('\r\n'); + const requestLine = headerLines.shift(); + const requestParts = requestLine.split(' '); + if (requestParts.length < 3) { + this.writeError(socket, 400, 'Bad Request'); + return; + } + const [method, requestUrl, protocol] = requestParts; + const headers = {}; + const rawHeaders = []; + headerLines.forEach((line) => { + const idx = line.indexOf(':'); + if (idx > -1) { + const name = line.slice(0, idx).trim(); + const value = line.slice(idx + 1).trim(); + headers[name] = value; + headers[name.toLowerCase()] = value; + rawHeaders.push(`${name}: ${value}`); + } + }); + const contentLength = parseInt(headers['content-length'] || '0', 10) || 0; + const requestLength = headerEnd + 4 + contentLength; + if (socket.sslv2AppBuffer.length < requestLength) return; + const body = socket.sslv2AppBuffer.slice(headerEnd + 4, requestLength); + const remaining = socket.sslv2AppBuffer.slice(requestLength); + socket.sslv2AppBuffer = remaining; + const request_headers = { + request: requestLine, + request_url: requestUrl, + raw_headers: `Request: ${requestLine}\r\n${rawHeaders.join('\r\n')}\r\n\r\n`, + post_data: body.length ? body : null + }; + this._populateQuery(request_headers); + Object.assign(request_headers, headers); + console.log(" * MSNTV2(SSLv2) %s for %s on socket %s", method, requestUrl, socket.id); + this._logSslv2RequestHeaders(socket, requestLine, rawHeaders); + const { domainIntercepted: sslDi, filePath: sslFp } = this.interceptRequest(requestUrl, socket.sslv2.connectIntercept); + if (sslDi) { + if (sslFp) { + this.sendLocalFile(socket, sslFp, request_headers); + } else { + console.warn(" * MSNTV2(SSLv2) 404 for %s on socket %s (intercepted domain, missing local file)", requestUrl, socket.id); + this.writeError(socket, 404, 'Not Found', request_headers); + } + } else { + this.proxyRequest(socket, method, requestUrl, request_headers); + } + } + } + + loadTlsContext() { + try { + const certCandidates = [ + ['msntv2/msn_domains.crt', 'msntv2/msn_domains.key'] + ]; + let certFile = null; + let keyFile = null; + for (const [certPath, keyPath] of certCandidates) { + const candidateCert = this.wtvshared.getServiceDep(certPath, true); + const candidateKey = this.wtvshared.getServiceDep(keyPath, true); + if (candidateCert && candidateKey) { + certFile = candidateCert; + keyFile = candidateKey; + break; + } + } + if (!certFile || !keyFile) return null; + const certPem = fs.readFileSync(certFile); + const keyPem = fs.readFileSync(keyFile); + return tls.createSecureContext({ + cert: certPem, + key: keyPem, + ciphers: 'DEFAULT@SECLEVEL=0', + minVersion: 'TLSv1', + secureOptions: crypto.constants.SSL_OP_LEGACY_SERVER_CONNECT || 0 + }); + } catch (err) { + console.error('[WTV-MSNTV2] failed to load TLS cert/key:', err.message); + return null; + } + } + + loadForgeTlsCredentials() { + try { + const certCandidates = [ + ['msntv2/msn_domains.crt', 'msntv2/msn_domains.key'] + ]; + let certFile = null; + let keyFile = null; + for (const [certPath, keyPath] of certCandidates) { + const candidateCert = this.wtvshared.getServiceDep(certPath, true); + const candidateKey = this.wtvshared.getServiceDep(keyPath, true); + if (candidateCert && candidateKey) { + certFile = candidateCert; + keyFile = candidateKey; + break; + } + } + if (!certFile || !keyFile) return null; + const certPem = fs.readFileSync(certFile, 'utf8'); + const keyPem = fs.readFileSync(keyFile, 'utf8'); + return { + certPem, + keyPem, + cert: forge.pki.certificateFromPem(certPem), + key: forge.pki.privateKeyFromPem(keyPem) + }; + } catch (err) { + console.error('[WTV-MSNTV2] failed to load forge TLS cert/key:', err.message); + return null; + } + } + + handleTlsData(tlsSocket, chunk) { + tlsSocket.buffer = Buffer.concat([tlsSocket.buffer || Buffer.alloc(0), chunk]); + const headerEnd = tlsSocket.buffer.indexOf('\r\n\r\n'); + if (headerEnd < 0) return; + + const headerBlock = tlsSocket.buffer.slice(0, headerEnd).toString('utf8'); + const headerLines = headerBlock.split('\r\n'); + const requestLine = headerLines.shift(); + const requestParts = requestLine.split(' '); + if (requestParts.length < 3) { + const verbose = this.service_config.show_verbose_errors || this.minisrv_config.config.verbosity >= 3; + if (verbose) { + console.warn('[WTV-MSNTV2] TLS invalid request line:', requestLine); + console.warn('[WTV-MSNTV2] TLS raw header block:', headerBlock); + } + this.writeError(tlsSocket, 400, 'Bad Request'); + return; + } + + const [method, requestUrl, protocol] = requestParts; + const headers = {}; + const rawHeaders = []; + + headerLines.forEach((line) => { + const idx = line.indexOf(':'); + if (idx > -1) { + const name = line.slice(0, idx).trim(); + const value = line.slice(idx + 1).trim(); + headers[name] = value; + headers[name.toLowerCase()] = value; + rawHeaders.push(`${name}: ${value}`); + } + }); + + const contentLength = parseInt(headers['content-length'] || '0', 10) || 0; + const requestLength = headerEnd + 4 + contentLength; + if (tlsSocket.buffer.length < requestLength) return; + + const body = tlsSocket.buffer.slice(headerEnd + 4, requestLength); + const remaining = tlsSocket.buffer.slice(requestLength); + tlsSocket.buffer = remaining; + + const request_headers = { + request: requestLine, + request_url: requestUrl, + raw_headers: `Request: ${requestLine}\r\n${rawHeaders.join('\r\n')}\r\n\r\n`, + post_data: body.length ? body : null + }; + Object.assign(request_headers, headers); + + const verbose = this.service_config.show_verbose_errors || this.minisrv_config.config.verbosity >= 3; + if (verbose) { + console.log('[WTV-MSNTV2] decrypted request:', requestLine); + console.log('[WTV-MSNTV2] decrypted headers:\n' + rawHeaders.join('\r\n')); + if (body.length) { + console.log('[WTV-MSNTV2] decrypted body length:', body.length); + } + } + + console.log(" * MSNTV2(TLS) %s for %s on socket %s", method, requestUrl, tlsSocket.id); + if (requestUrl.includes('?')) { + try { + const qs = requestUrl.slice(requestUrl.indexOf('?') + 1); + const params = {}; + qs.split('&').forEach(p => { + const eq = p.indexOf('='); + if (eq > 0) params[decodeURIComponent(p.slice(0, eq))] = decodeURIComponent(p.slice(eq + 1).replace(/\+/g, ' ')); + else if (p) params[decodeURIComponent(p)] = null; + }); + console.log(' * MSNTV2(TLS) query params on socket %s', tlsSocket.id, params); + } catch (_) {} + } + const { domainIntercepted: tlsDi, filePath: tlsFp } = this.interceptRequest(requestUrl, tlsSocket.connectIntercept); + if (verbose) { + console.log('[WTV-MSNTV2] decrypted intercept check for:', requestUrl, '->', tlsDi ? (tlsFp ? 'local file' : 'intercepted/404') : 'proxy'); + } + if (tlsDi) { + if (tlsFp) { + this.sendLocalFile(tlsSocket, tlsFp, request_headers); + } else { + console.warn(" * MSNTV2(TLS) 404 for %s on socket %s (intercepted domain, missing local file)", requestUrl, tlsSocket.id); + this.writeError(tlsSocket, 404, 'Not Found', request_headers); + } + } else { + this.proxyRequest(tlsSocket, method, requestUrl, request_headers); + } + } + + getConnectIntercept(host) { + if (!host) return null; + const interceptUrls = this.service_config.intercept_urls || []; + const lowerHost = host.toLowerCase(); + + for (const entry of interceptUrls) { + if (!entry) continue; + let match; + let localDir = ''; + if (typeof entry === 'string') { + match = entry; + } else if (typeof entry === 'object') { + match = entry.match; + localDir = entry.local_dir || entry.localDir || ''; + } else { + continue; + } + if (!match) continue; + + const lowerMatch = match.toLowerCase(); + if (!lowerMatch.includes('://') && !lowerMatch.includes('/')) { + if (lowerHost === lowerMatch) { + return { match, localDir }; + } + } + } + return null; + } + + // Returns { domainIntercepted: bool, filePath: string|null }. + // domainIntercepted=true means the host is in intercept_urls; filePath may + // still be null if the requested file does not exist locally. + interceptRequest(requestUrl, connectState = null) { + const interceptUrls = this.service_config.intercept_urls || []; + const lowerUrl = requestUrl.toLowerCase(); + let parsedUrl = null; + const defaultLocalDir = connectState?.localDir || ''; + + if (connectState && requestUrl.startsWith('/')) { + // Came through an intercepted CONNECT tunnel — domain always intercepted. + let localPath = requestUrl.split('?')[0]; + if (!localPath || localPath === '/' || localPath.endsWith('/')) { + localPath = (defaultLocalDir ? defaultLocalDir.replace(/[\\/]+$/, '') + '/' : '') + 'index.html'; + } else { + localPath = localPath.replace(/^\/+/, ''); + if (defaultLocalDir) { + localPath = defaultLocalDir.replace(/[\\/]+$/, '') + '/' + localPath; + } + } + return { domainIntercepted: true, filePath: this.resolveLocalFile(localPath) }; + } + try { + parsedUrl = new url.URL(requestUrl); + } catch (err) { + // not all request lines are valid URL objects, so fall back to prefix matching + } + + for (const entry of interceptUrls) { + if (!entry) continue; + let match; + let localDir = ''; + if (typeof entry === 'string') { + match = entry; + } else if (typeof entry === 'object') { + match = entry.match; + localDir = entry.local_dir || entry.localDir || ''; + } else { + continue; + } + if (!match) continue; + + const lowerMatch = match.toLowerCase(); + let localPath = null; + + if (parsedUrl) { + if (lowerMatch.includes('://')) { + if (lowerUrl.startsWith(lowerMatch)) { + localPath = parsedUrl.pathname; + } + } else if (lowerMatch.includes('/')) { + if (lowerUrl.startsWith(lowerMatch)) { + localPath = parsedUrl.pathname; + } + } else { + if (parsedUrl.host && parsedUrl.host.toLowerCase() === lowerMatch) { + localPath = parsedUrl.pathname; + } + } + } else { + if (lowerUrl.startsWith(lowerMatch)) { + localPath = requestUrl.slice(match.length); + } + } + + if (localPath !== null) { + if (!localPath || localPath === '/' || localPath.endsWith('/')) { + localPath = (localDir ? localDir.replace(/[\\/]+$/, '') + '/' : '') + 'index.html'; + } else { + localPath = localPath.replace(/^\/+/, ''); + if (localDir) { + localPath = localDir.replace(/[\\/]+$/, '') + '/' + localPath; + } + } + return { domainIntercepted: true, filePath: this.resolveLocalFile(localPath) }; + } + } + return { domainIntercepted: false, filePath: null }; + } + + resolveLocalFile(requestedPath) { + if (!requestedPath) return null; + const serviceVaultDir = this.service_config.servicevault_dir || this.service_name; + const vaults = this.minisrv_config.config.ServiceVaults || []; + const normalizedPath = requestedPath.replace(/[\\/]+/g, '/').replace(/^\/+/, ''); + // Dynamic handler suffixes to probe in order, matching app.js behaviour + const dynSuffixes = ['.js', '.php', '.cgi']; + + for (const vault of vaults) { + const base = this.wtvshared.getAbsolutePath(path.join(serviceVaultDir, normalizedPath), vault); + const candidate = this.wtvshared.makeSafePath(base, ''); + // Exact match first + if (candidate && fs.existsSync(candidate) && fs.lstatSync(candidate).isFile()) { + if (this.service_config.show_verbose_errors) console.log('[WTV-MSNTV2] local intercept:', candidate); + return candidate; + } + // Dynamic suffixes: e.g. kickstart.aspx -> kickstart.aspx.js + for (const suffix of dynSuffixes) { + const dynCandidate = this.wtvshared.makeSafePath(base + suffix, ''); + if (dynCandidate && fs.existsSync(dynCandidate) && fs.lstatSync(dynCandidate).isFile()) { + if (this.service_config.show_verbose_errors) console.log('[WTV-MSNTV2] local intercept (dynamic):', dynCandidate); + return dynCandidate; + } + } + } + return null; + } + + // Populate request_headers.query from URL query string + POST body, + // mirroring what app.js does before running service vault scripts. + _populateQuery(request_headers) { + if (request_headers.query) return; + request_headers.query = {}; + const url = request_headers.request_url || ''; + if (url.includes('?')) { + const qraw = url.split('?')[1]; + if (qraw) { + qraw.split('&').forEach(param => { + const qraw_split = param.split('='); + if (qraw_split.length === 2) { + const k = qraw_split[0]; + const value = decodeURIComponent(qraw_split[1].replace(/\+/g, '%20')); + request_headers.query[k] = value; + } else if (param.length >= 1) { + request_headers.query[param] = null; + } + }); + } + } + if (request_headers.post_data) { + try { + const post_str = Buffer.isBuffer(request_headers.post_data) + ? request_headers.post_data.toString('utf8') + : String(request_headers.post_data); + if (post_str.includes('=')) { + post_str.split('&').forEach(pair => { + const idx = pair.indexOf('='); + if (idx > 0) { + const k = pair.slice(0, idx); + const v = decodeURIComponent(pair.slice(idx + 1).replace(/\+/g, '%20')); + if (!request_headers.query[k]) request_headers.query[k] = v; + } + }); + } + } catch (e) { /* ignore */ } + } + } + + sendLocalFile(socket, filepath, request_headers) { + this._populateQuery(request_headers); + try { + const ext = path.extname(filepath).slice(1).toLowerCase(); + const serviceVaultDir = this.service_config.servicevault_dir || this.service_name; + const vaults = this.minisrv_config.config.ServiceVaults || []; + const vaultBase = vaults.length > 0 ? this.wtvshared.getAbsolutePath(serviceVaultDir, vaults[0]) : null; + + // .js — only run through VM when explicitly marked as a minisrv service file. + // Otherwise, treat it as a normal static JavaScript file and serve raw bytes. + if (ext === 'js') { + const scriptData = fs.readFileSync(filepath).toString('utf8'); + const firstLine = scriptData.split(/\r?\n/, 1)[0].replace(/^\uFEFF/, '').trim(); + const isMiniSrvServiceFile = /^(const|let|var)\s+minisrv_service_file\s*=\s*true\s*;?\s*$/.test(firstLine); + + if (!(isMiniSrvServiceFile && this.runScriptInVM)) { + // Not a service script marker (or VM unavailable): fall through to static handler. + } else { + // Resolve socket.ssid from query params before running the script. + // Priority: BoxID (direct SSID) > SessionID (looked up in ssid_sessions). + if (socket.ssid === null && this.ssid_sessions) { + const boxId = request_headers.query.BoxID || request_headers.query.boxid || null; + const sessionId = request_headers.query.SessionID || request_headers.query.sessionid || null; + if (boxId) { + socket.ssid = this.wtvshared.makeSafeSSID(boxId); + } else if (sessionId) { + // Find the ssid whose session_data has a matching stored session_id + const match = Object.keys(this.ssid_sessions).find( + k => this.ssid_sessions[k] && this.ssid_sessions[k].get && this.ssid_sessions[k].get('session_id') === sessionId + ); + if (match) socket.ssid = match; + } + if (socket.ssid && !this.ssid_sessions[socket.ssid]) { + this.ssid_sessions[socket.ssid] = new this.WTVClientSessionData(this.minisrv_config, socket.ssid); + this.ssid_sessions[socket.ssid].SaveIfRegistered(); + } + } + + const self = this; + const responseCookies = []; + const contextObj = { + socket, + request_headers, + service_name: this.service_name, + headers: null, + data: null, + request_is_async: false, + session_data: (socket.ssid && this.ssid_sessions) ? this.ssid_sessions[socket.ssid] : null, + ssid_sessions: this.ssid_sessions, + WTVClientSessionData: this.WTVClientSessionData, + // Scripts may call sendToClient directly for async mode; + // wrap it so the response goes through SSLv2 encryption. + sendToClient: (sock, hdrs, dat) => self._sendScriptResult(sock, request_headers, hdrs, dat), + minisrv_config: this.minisrv_config, + wtvshared: this.wtvshared, + cwd: path.dirname(filepath), + // Cookie helpers available to scripts + response_cookies: responseCookies, + setCookie(name, value, opts) { + opts = opts || {}; + let s = `${encodeURIComponent(name)}=${encodeURIComponent(value)}`; + if (opts.path != null) s += `; Path=${opts.path}`; + if (opts.domain != null) s += `; Domain=${opts.domain}`; + if (opts.maxAge != null) s += `; Max-Age=${opts.maxAge}`; + if (opts.expires != null) s += `; Expires=${new Date(opts.expires).toUTCString()}`; + if (opts.sameSite != null) s += `; SameSite=${opts.sameSite}`; + if (opts.secure) s += `; Secure`; + if (opts.httpOnly) s += `; HttpOnly`; + responseCookies.push(s); + }, + // Remove a cookie by expiring it immediately. + // opts may include path/domain to match the original cookie's scope. + deleteCookie(name, opts) { + opts = opts || {}; + let s = `${encodeURIComponent(name)}=; Max-Age=0; Expires=Thu, 01 Jan 1970 00:00:00 GMT`; + if (opts.path != null) s += `; Path=${opts.path}`; + if (opts.domain != null) s += `; Domain=${opts.domain}`; + if (opts.httpOnly) s += `; HttpOnly`; + responseCookies.push(s); + }, + // Update an existing queued cookie's value (and optionally its opts). + // If no matching cookie is queued yet, behaves like setCookie. + updateCookie(name, value, opts) { + const encoded = encodeURIComponent(name); + const idx = responseCookies.findIndex(c => c.startsWith(encoded + '=') || c.startsWith(encoded + ';')); + if (idx !== -1) responseCookies.splice(idx, 1); + opts = opts || {}; + let s = `${encoded}=${encodeURIComponent(value)}`; + if (opts.path != null) s += `; Path=${opts.path}`; + if (opts.domain != null) s += `; Domain=${opts.domain}`; + if (opts.maxAge != null) s += `; Max-Age=${opts.maxAge}`; + if (opts.expires != null) s += `; Expires=${new Date(opts.expires).toUTCString()}`; + if (opts.sameSite != null) s += `; SameSite=${opts.sameSite}`; + if (opts.secure) s += `; Secure`; + if (opts.httpOnly) s += `; HttpOnly`; + responseCookies.push(s); + }, + // Convenience UUID generator (replaces uuidv4() from C# artifacts) + uuidv4() { return crypto.randomUUID(); } + }; + const vmResult = this.runScriptInVM(scriptData, contextObj, false, filepath); + // Write session_data back to ssid_sessions (mirrors app.js updateFromVM for non-privileged scripts; + // use socket.ssid as set by the script itself via BoxID or header). + if (socket.ssid && this.ssid_sessions && vmResult.session_data !== undefined) { + this.ssid_sessions[socket.ssid] = vmResult.session_data; + } + if (!vmResult.request_is_async) { + this._sendScriptResult(socket, request_headers, vmResult.headers, vmResult.data, responseCookies); + } + return; + } + } + + // .php — run through PHP CGI (same as normal service vault) + if (ext === 'php' && this.handlePHP && this.minisrv_config.config.php_enabled && this.minisrv_config.config.php_binpath) { + this.handlePHP(socket, request_headers, filepath, vaultBase || path.dirname(filepath), this.service_name, null); + return; + } + + // .cgi — run through CGI handler + if (ext === 'cgi' && this.handleCGI) { + this.handleCGI(filepath, filepath, socket, request_headers, vaultBase || path.dirname(filepath), this.service_name, null); + return; + } + + // Static file fallback + const fileContents = fs.readFileSync(filepath); + const contentType = this.mimeTypes[ext] || 'application/octet-stream'; + const responseHeaders = []; + responseHeaders.push('HTTP/1.1 200 OK'); + responseHeaders.push(`Content-Type: ${contentType}`); + responseHeaders.push(`Content-Length: ${fileContents.length}`); + const closeClientConnection = this._shouldCloseClientConnection(request_headers); + responseHeaders.push(`Connection: ${closeClientConnection ? 'close' : 'Keep-Alive'}`); + responseHeaders.push(''); + responseHeaders.push(''); + this.writeToSocket(socket, responseHeaders.join('\r\n')); + this.writeToSocket(socket, fileContents, closeClientConnection ? () => { + this.endSocket(socket); + } : undefined); + } catch (err) { + console.error('[WTV-MSNTV2] local file serve error:', (err && err.stack) ? err.stack : err); + this.writeError(socket, 404, 'Not Found', request_headers); + } + } + + _shouldCloseClientConnection(request_headers, headerLines = []) { + const existingConnection = headerLines.find(line => line.toLowerCase().startsWith('connection:')); + if (existingConnection) { + return existingConnection.split(':').slice(1).join(':').trim().toLowerCase() === 'close'; + } + const requestConnection = request_headers && request_headers.connection; + return String(requestConnection || '').toLowerCase() === 'close'; + } + + // Convert script (VM/PHP/CGI) headers+data output to an HTTP response and + // send it through writeToSocket so SSLv2 encryption is applied. + // cookies: optional array of pre-formatted Set-Cookie strings from setCookie() + _sendScriptResult(socket, request_headers, headers, data, cookies) { + let statusCode = 200; + let statusMessage = 'OK'; + const headerLines = []; + + if (typeof headers === 'string') { + // String form: "Content-type: text/html\nStatus: 200 OK\n\n" + const lines = headers.replace(/\r/g, '').split('\n'); + for (const line of lines) { + if (!line.trim()) continue; + const colonIdx = line.indexOf(':'); + if (colonIdx < 0) continue; + const name = line.slice(0, colonIdx).trim(); + const value = line.slice(colonIdx + 1).trim(); + if (name.toLowerCase() === 'status') { + const parts = value.split(' '); + statusCode = parseInt(parts[0], 10) || 200; + statusMessage = parts.slice(1).join(' ') || 'OK'; + } else { + headerLines.push(`${name}: ${value}`); + } + } + } else if (headers && typeof headers === 'object') { + const skip = new Set(['request', 'request_url', 'raw_headers', 'post_data']); + for (const [k, v] of Object.entries(headers)) { + if (skip.has(k)) continue; + if (k.toLowerCase() === 'status') { + const parts = String(v).split(' '); + statusCode = parseInt(parts[0], 10) || 200; + statusMessage = parts.slice(1).join(' ') || 'OK'; + } else { + headerLines.push(`${k}: ${v}`); + } + } + } + + const body = data + ? (Buffer.isBuffer(data) ? data : Buffer.from(String(data))) + : Buffer.alloc(0); + + // Inject Set-Cookie headers from setCookie() calls in scripts + if (Array.isArray(cookies)) { + for (const c of cookies) headerLines.push(`Set-Cookie: ${c}`); + } + + if (!headerLines.some(l => l.toLowerCase().startsWith('content-length'))) { + headerLines.push(`Content-Length: ${body.length}`); + } + const closeClientConnection = this._shouldCloseClientConnection(request_headers, headerLines); + if (!headerLines.some(l => l.toLowerCase().startsWith('connection:'))) { + headerLines.push(`Connection: ${closeClientConnection ? 'close' : 'Keep-Alive'}`); + } + + const responseHeader = [`HTTP/1.1 ${statusCode} ${statusMessage}`, ...headerLines, '', ''].join('\r\n'); + this.writeToSocket(socket, responseHeader); + if (body.length) { + this.writeToSocket(socket, body, closeClientConnection ? () => this.endSocket(socket) : undefined); + } else if (closeClientConnection) { + this.endSocket(socket); + } + } + + proxyRequest(socket, method, requestUrl, request_headers) { + let target; + try { + if (requestUrl.startsWith('/')) { + const hostHeader = request_headers.host || (socket.connectIntercept && socket.connectIntercept.match); + if (!hostHeader) throw new Error('Missing host for tunneled request'); + target = new url.URL(`https://${hostHeader}${requestUrl}`); + } else { + target = new url.URL(requestUrl); + } + } catch (err) { + if (this.service_config.show_verbose_errors || this.minisrv_config.config.verbosity >= 3) { + console.error('[WTV-MSNTV2] invalid URL:', requestUrl, err.message); + } + this.writeError(socket, 400, 'Bad Request', request_headers); + return; + } + + const verbose = this.service_config.show_verbose_errors || this.minisrv_config.config.verbosity >= 3; + const isHttps = target.protocol === 'https:'; + const agent = isHttps ? https : http; + const requestPath = target.pathname + (target.search || ''); + if (verbose) { + console.log('[WTV-MSNTV2] proxying request:', method.toUpperCase(), requestUrl); + console.log('[WTV-MSNTV2] proxy target:', target.protocol, target.hostname, 'port', target.port || (isHttps ? 443 : 80), 'path', requestPath); + } + + const headers = {}; + Object.keys(request_headers).forEach((name) => { + if (name.toLowerCase() === 'proxy-connection') return; + if (['request', 'request_url', 'raw_headers', 'post_data'].includes(name)) return; + if (name.toLowerCase() === 'connection') return; + headers[name] = request_headers[name]; + }); + + headers.Host = target.host; + headers.Connection = 'close'; + + const options = { + protocol: target.protocol, + hostname: target.hostname, + port: target.port || (isHttps ? 443 : 80), + path: requestPath, + method: method.toUpperCase(), + headers, + followAllRedirects: true, + maxBodyLength: 1024 * 1024 * 64 + }; + + const proxyReq = agent.request(options, (res) => { + const verbose = this.service_config.show_verbose_errors || this.minisrv_config.config.verbosity >= 3; + if (verbose) { + console.log('[WTV-MSNTV2] upstream response:', res.statusCode, res.statusMessage); + console.log('[WTV-MSNTV2] upstream response headers:', JSON.stringify(res.headers)); + } + const responseHeaders = []; + const closeClientConnection = this._shouldCloseClientConnection(request_headers); + responseHeaders.push(`HTTP/1.1 ${res.statusCode} ${res.statusMessage}`); + Object.keys(res.headers).forEach((name) => { + if (name.toLowerCase() === 'connection') return; + if (name.toLowerCase() === 'transfer-encoding') return; + responseHeaders.push(`${name}: ${res.headers[name]}`); + }); + responseHeaders.push(`Connection: ${closeClientConnection ? 'close' : 'Keep-Alive'}`); + responseHeaders.push(''); + responseHeaders.push(''); + this.writeToSocket(socket, responseHeaders.join('\r\n')); + res.on('data', (chunk) => this.writeToSocket(socket, chunk)); + res.on('end', () => { + if (!socket.destroyed && closeClientConnection) this.endSocket(socket); + }); + }); + + proxyReq.on('error', (err) => { + if (verbose) console.error('[WTV-MSNTV2] proxy request error:', err.message, 'for', method.toUpperCase(), requestUrl); + this.writeError(socket, 502, 'Bad Gateway', request_headers); + }); + + if (request_headers.post_data && request_headers.post_data.length) { + proxyReq.write(request_headers.post_data); + } + proxyReq.end(); + } + + writeError(socket, statusCode, message, request_headers = null) { + const body = `

${statusCode} ${message}

`; + const headers = []; + const closeClientConnection = this._shouldCloseClientConnection(request_headers); + headers.push(`HTTP/1.1 ${statusCode} ${message}`); + headers.push('Content-Type: text/html'); + headers.push(`Content-Length: ${Buffer.byteLength(body)}`); + headers.push(`Connection: ${closeClientConnection ? 'close' : 'Keep-Alive'}`); + headers.push(''); + headers.push(''); + this.writeToSocket(socket, headers.join('\r\n')); + this.writeToSocket(socket, body, closeClientConnection ? () => { + this.endSocket(socket); + } : undefined); + } + + writeToSocket(socket, data, callback) { + const verbose = this.sslv2Debug; + if (socket.sslv2 && socket.sslv2.stage === 'open' && socket.sslv2.serverCipher) { + // SSLv2 open state: encrypt outbound data + const payload = Buffer.isBuffer(data) ? data : Buffer.from(data, 'binary'); + this._logSslv2ResponseHeaders(socket, payload); + const seqBefore = socket.sslv2.serverSequence; + if (verbose) { + const preview = payload.slice(0, 128).toString('utf8').replace(/[^\x20-\x7e\r\n]/g, '.'); + console.log('[WTV-MSNTV2] writeToSocket(sslv2) seq=' + seqBefore + ' len=' + payload.length + ' preview: ' + preview); + } + if (payload.length === 0) { + if (callback) callback(); + return; + } + const encrypted = this.buildSslv2EncryptedRecord(socket.sslv2, payload); + if (verbose) { + console.log('[WTV-MSNTV2] writeToSocket(sslv2) seq advanced to ' + socket.sslv2.serverSequence); + } + socket.write(encrypted, callback); + } else if (socket.forgeTls) { + const binary = Buffer.isBuffer(data) ? data.toString('binary') : data; + if (verbose) { + const preview = binary.slice(0, 128).replace(/[^\x20-\x7e\r\n]/g, '.'); + console.log('[WTV-MSNTV2] writeToSocket(forgeTls) len=' + binary.length + ' preview: ' + preview); + } + socket.forgeTls.prepare(binary); + if (callback) callback(); + } else { + const payload = Buffer.isBuffer(data) ? data : Buffer.from(data); + if (verbose) { + const preview = payload.slice(0, 128).toString('utf8').replace(/[^\x20-\x7e\r\n]/g, '.'); + console.log('[WTV-MSNTV2] writeToSocket(plain) len=' + payload.length + ' preview: ' + preview); + } + socket.write(data, callback); + } + } + + endSocket(socket) { + if (socket.forgeTls) { + try { + socket.forgeTls.close(); + } catch (_) {} + if (socket.end && !socket.destroyed) { + socket.end(); + } + } else if (socket.destroy && !socket.destroyed) { + socket.end(); + } + } +} + +module.exports = WTVMSNTV2; diff --git a/zefie_wtvp_minisrv/includes/config.json b/zefie_wtvp_minisrv/includes/config.json index f7b03d8a..86ad36f9 100644 --- a/zefie_wtvp_minisrv/includes/config.json +++ b/zefie_wtvp_minisrv/includes/config.json @@ -495,7 +495,32 @@ "handler_module": "WTVPNM", "handler_handles_port": true, "handler_extra_vars": ["crypto"] - } + }, + "msntv2": { + "port": 1694, + "connections": 3, + "flags": "0x00000001", + "protocol": "HTTP", + "privileged": true, + "handler_module": "WTV-MSNTV2", + "handler_handles_port": true, + "servicevault_dir": "msntv2", + "intercept_urls": [ + { + "match": "headwaiter.trusted.msntv.msn.com", + "local_dir": "headwaiter" + }, + { + "match": "sg1.trusted.msntv.msn.com", + "local_dir": "sg1" + } + ], + "handler_extra_vars": ["runScriptInVM", "handlePHP", "handleCGI", "ssid_sessions", "WTVClientSessionData"], + "show_verbose_errors": false, + "modules": [ + "WTVRegister" + ] + } }, "favorites": { "folder_templates": { diff --git a/zefie_wtvp_minisrv/package-lock.json b/zefie_wtvp_minisrv/package-lock.json index b162adf2..07df53dd 100644 --- a/zefie_wtvp_minisrv/package-lock.json +++ b/zefie_wtvp_minisrv/package-lock.json @@ -23,6 +23,7 @@ "mime-types": "^2.1.35", "newsie": "1.2.1", "nntp-server-zefie": "^3.1.0", + "node-forge": "^1.4.0", "nunjucks": "^3.2.4", "pcap-parser": "^0.2.1", "php-serialize": "^5.0.1", @@ -2640,6 +2641,15 @@ "node": "^18 || ^20 || >= 21" } }, + "node_modules/node-forge": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.4.0.tgz", + "integrity": "sha512-LarFH0+6VfriEhqMMcLX2F7SwSXeWwnEAJEsYm5QKWchiVYVvJyV9v7UDvUv+w5HO23ZpQTXDv/GxdDdMyOuoQ==", + "license": "(BSD-3-Clause OR GPL-2.0)", + "engines": { + "node": ">= 6.13.0" + } + }, "node_modules/node-gyp-build": { "version": "4.8.4", "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.8.4.tgz", diff --git a/zefie_wtvp_minisrv/package.json b/zefie_wtvp_minisrv/package.json index 3de93fa0..092f81c4 100644 --- a/zefie_wtvp_minisrv/package.json +++ b/zefie_wtvp_minisrv/package.json @@ -43,6 +43,7 @@ "mime-types": "^2.1.35", "newsie": "1.2.1", "nntp-server-zefie": "^3.1.0", + "node-forge": "^1.4.0", "nunjucks": "^3.2.4", "pcap-parser": "^0.2.1", "php-serialize": "^5.0.1",