// designarcade.co.uk // set variables var ad = ''; // av duration var ai = ''; // av id var al = ''; // av locator var ao = ''; // av object var ar = ''; // array var as = ''; // av state var at = ''; // av timer var bc = 0; // blink counter var bi = ''; // box id var bo = ''; // box object var bt = 0; // blink timer var by = 0; // bottom y var ci = ''; // clicker id var ck = ''; // cookie var cl = ''; // colour var co = ''; // clicker object var cp = 0; // character position var ct = ''; // card type var cx = 0; // cookie expiry var dc = 0; // dispersion counter var di = ''; // div id var dn = ''; // date now var ds = 0; // days var dt = ''; // date var du = ''; // destination url var dv = ''; // div object var dy = ''; // day var es = ''; // email subject var ev = ''; // event var fa = ''; // form action var fc = 0; // fragment counter var fd = ''; // form data var fh = ''; // field help var fi = ''; // field id var fo = ''; // field object var fr = 0; // fragment var fs = 0; // fragments var fv = ''; // favourite var hi = ''; // help id var ho = ''; // help object var hp = ''; // helicopter-pop-up parameters var hs = 0; // hours var i1 = ''; // image 1 var i2 = ''; // image 2 var i3 = ''; // image 3 var ic = 0; // item counter var ii = ''; // item id var im = ''; // item var io = ''; // item object var ip = 0; // item price var ir = ''; // item reference var is = 0; // item step var it = ''; // item timer var kc = 0; // kite counter var kd = 0; // kite duration var kh = 0; // kite space horizontal var ki = ''; // kite id var kl = 0; // kite loop var ko = ''; // kite object var kp = 0; // kite position var ks = 0; // kites var kt = 0; // kite timer var kv = 0; // kite space vertical var kw = 0; // kite wind re-position var lc = 0; // loop counter var li = ''; // link id var lm = ''; // link marker var lo = ''; // limk object var lp = ''; // landscape-pop-up parameters var ls = 0; // loop step var lt = ''; // loop timer var lx = 0; // left x var mh = ''; // month var mi = ''; // menu id var ml = ''; // mail link var mo = ''; // menu object var mp = ''; // message-pop-up parameters var ms = 0; // minutes var mx = 0; // mouse x var my = 0; // mouse y var nd = ''; // new date var ns = ''; // new source var nt = 0; // new time var nx = 0; // new x var ny = 0; // new y var oc = ''; // object counter var od = ''; // old date var oi = ''; // object id var os = ''; // old source var ot = 0; // old time var ox = 0; // old x var oy = 0; // old y var pc = ''; // page code var pf = ''; // pay form var pg = ''; // page link var pi = ''; // player id var pn = ''; // pop-up name var po = ''; // player object var pp = ''; // portrait-pop-up parameters var pt = 0; // pay total var pw = ''; // password var py = 0; // pay var qt = 0; // quit time var ra = ''; // reveal array var ri = ''; // reveal object id var ro = ''; // reveal object var rp = 0; // reference position var rt = ''; // reveal timer var rx = 0; // right x var sb = ''; // substring var sf = ''; // submit form var sl = ''; // shopping list var so = ''; // show object var ss = 0; // seconds var t1 = ''; // text 1 var t2 = ''; // text 2 var t3 = ''; // text 3 var ti = ''; // text id var tm = ''; // time var tn = ''; // time now var to = ''; // text object var tp = ''; // text-pop-up parameters var tv = ''; // text value var ty = 0; // top y var ui = ''; // url id var vi = ''; // volume id var vl = ''; // value var vo = ''; // volume object var wi = ''; // window id var wn = ''; // window name var wo = ''; // window object var wp = ''; // window-pop-up parameters var wt = 0; // wait time var xc = 0; // x counter var xd = ''; // x direction var xi = ''; // x object id var xn = ''; // x object name var xo = ''; // x object var xp = 0; // x position var xs = 0; // x step var ya = ''; // year array var yc = 0; // y counter var yd = ''; // y direction var yi = ''; // y object id var yn = ''; // y object name var yo = ''; // y object var yp = 0; // y position var yr = ''; // year var ys = 0; // y step var zp = ''; // zoom-pop-up parameters var zt = 0; // zero time // set navigator|nc:navigator code|ng:navigator|nn:navigator name|nu:navigator user agent var nc = ''; var ng = ''; var nn = navigator.appName; var nu = navigator.userAgent; // set screen|sh:screen height|sw:screen width var sh = window.screen.height; var sw = window.screen.width; // set kite space|kh:kite space horizontal|kv:kite space vertical var kh = 652; var kv = sh-320; // set client|ca:address|cc:call|cd:description|ce:email|cf:fax|cm:mobile|cn:name|cs:shop|cu:url|cv:vat var ca = 'The Eye   Higher Filbank   Corfe Castle   Wareham   BH20 5EX   England'; var cc = '01929 477137'; var cd = ''; var ce = ''; var cf = ''; var cm = '07715 169424'; var cn = ''; var cs = 'shop@talking.co.uk'; var cu = ''; var cv = '17.5%'; // set shared|sa:address|sc:call|sd:description|se:email|sf:fax|sm:mobile|sn:name|su:url|sv:vat var sa = 'The Eye   Higher Filbank   Corfe Castle   Wareham   BH20 5EX   England'; var sc = '+44 1929 477137'; var sd = 'research and design'; var se = 'mail@talking.co.uk'; var sf = ''; var sm = '07715 169424'; var sn = 'Design Arcade'; var su = 'designarcade.co.uk'; var sv = '17.5%'; // set date|da:day array|dn:date now|dt:date|dy:day|ma:month array|mn:month|yr:year da = new Array( 7); ma = new Array(13); da[ 0] = 'sunday'; da[ 1] = 'monday'; da[ 2] = 'tuesday'; da[ 3] = 'wednesday'; da[ 4] = 'thursday'; da[ 5] = 'friday'; da[ 6] = 'saturday'; ma[ 0] = ''; ma[ 1] = 'january'; ma[ 2] = 'february'; ma[ 3] = 'march'; ma[ 4] = 'april'; ma[ 5] = 'may'; ma[ 6] = 'june'; ma[ 7] = 'july'; ma[ 8] = 'august'; ma[ 9] = 'september'; ma[10] = 'october'; ma[11] = 'november'; ma[12] = 'december'; nd = new Date(); dy = da[nd.getDay()]; dt = nd.getDate(); mh = ma[nd.getMonth()+1]; yr = nd.getFullYear(); dn = dy+' '+dt+' '+mh+' '+yr; // set burst xy co-ordinates|xp:x postion|yp:y position var xp0 = new Array( 20, 20, 10, 0, 0, 0, 0,0, 0, 0, 0, 0); var yp0 = new Array(-20,-40,-60,-80,-60,-40,-20,0,20,40,60,80); var xp1 = new Array( 20, 20, 17, 36, 60, 78,90,92,93,98,108,120,133,152,181); var yp1 = new Array(-20,-20,-33,-38,-38,-27,-2,25,51,84,113,141,162,212,253); var xp2 = new Array( 20, 20, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 15, 18); var yp2 = new Array(-20,-20,-33,-38,-38,-27,-2,25,51,84,113,141,162,212,253); var xp3 = new Array(-20,-20, -2, -1, 7, 10, 18, 35, 60, 102, 94, 94, 93, 97,108,111,117,127); var yp3 = new Array(-20,-25,-64,-89,-104,-150,-173,-197,-213,-199,-151,-101,-66,-17, 27, 87,140,189); var xp4 = new Array(-20,-20,-10,-39,-30, -69, -64,-138,-154,-200,-181,-209,-191,-207,-203,-213,-202,-221,-211); var yp4 = new Array(-20,-20,-28,-51,-79,-100,-135,-154,-193,-183,-149,-134, -89, -60, 8, 51, 107, 157, 201); var xp5 = new Array(-20,-29,-51, -72,-105,-133,-164,-189,-209,-229,-247,-270,-279,-282,-283,-283,-285,-286,-288); var yp5 = new Array(-20,-55,-86,-116,-154,-183,-205,-217,-217,-198,-169,-120, -44, -8, 40, 87, 144, 190, 248); var xp6 = new Array(-20,-20, -7, 14, 44, 79, 143, 186, 217,226,234,244,250,259,265,274); var yp6 = new Array(-20,-21,-72,-113,-139,-166,-188,-181,-126,-68, -3, 54,134,187,215,257); var xp7 = new Array( 20, 20, -3, -9,-13, -27, -33, -44, -54, -66, -77, -95,-107,-136,-150,-160,-164,-168,-171,-172,-172,-176,-175); var yp7 = new Array(-20,-26,-43,-63,-89,-116,-145,-169,-201,-222,-240,-253,-254,-245,-220,-195,-160,-124, -81, -53, 26, 19, 68); var xp8 = new Array(-20, 20,-35, 39, 0, 45, -1, 24, -15, 14, -20, 35, -18, 38, -11, 16, 49, 64, 81,93,100,103,109); var yp8 = new Array(-20,-20,-32,-42,-62,-76,-89,-107,-132,-147,-173,-180,-192,-209,-236,-193,-119,-73,-24,51, 95,130,188); var xp9 = new Array(-20,-51,-89,-110,-165,-191,-228,-240,-259,-271,-277,-281,-287); var yp9 = new Array(-20,-20,-35, -37, -34, -16, 10, 47, 105, 150, 189, 227, 273); // identify navigator|nc:navigator code|ng:navigator|nn:navigator name|nu:navigator user agent { if (nn.indexOf('Explorer') > -1 && nu.indexOf('MSIE 6') > -1 && nu.indexOf('MSN') < 0) {nc = 'e6'; ng = 'av ok'; nn = 'Internet Explorer 6';} else if (nn.indexOf('Explorer') > -1 && nu.indexOf('MSIE 5') > -1) {nc = 'e5'; ng = 'no av'; nn = 'Internet Explorer 5';} else if (nn.indexOf('Explorer') > -1 && nu.indexOf('MSN 6') > -1) {nc = 'm6'; ng = 'av ok'; nn = 'Internet Explorer 6, included with MSN';} else if (nn.indexOf('Explorer') > -1 && nu.indexOf('MSN 8') > -1) {nc = 'm8'; ng = 'av ok'; nn = 'Internet Explorer 6, included with MSN';} else if (nn.indexOf('Netscape') > -1 && nu.indexOf('Netscape/7.1') > -1) {nc = 'n7'; ng = 'av ok'; nn = 'Netscape 7.1';} else if (nn.indexOf('Netscape') > -1 && nu.indexOf('Netscape/7') > -1) {nc = 'n7'; ng = 'no av'; nn = 'Netscape 7.0';} else if (nn.indexOf('Netscape') > -1 && nu.indexOf('Netscape6') > -1) {nc = 'n6'; ng = 'no av'; nn = 'Netscape 6';} else if (nn.indexOf('Netscape') > -1 && nu.indexOf('Mozilla/4') > -1 && document.layers) {nc = 'n4'; ng = 'no js'; nn = 'Netscape 4';} else if (nn.indexOf('Netscape') > -1 && nu.indexOf('Mozilla/5') > -1 && nu.indexOf('Firefox/1') < 0) {nc = 'z1'; ng = 'no av'; nn = 'Mozilla 1';} else if (nn.indexOf('Netscape') > -1 && nu.indexOf('Mozilla/5') > -1 && nu.indexOf('Firefox/1') > -1) {nc = 'z1'; ng = 'no av'; nn = 'Firefox 1';} else if (nu.indexOf('Opera/7') > -1 && window.opera) {nc = 'o7'; ng = 'no av'; nn = 'Opera 7';} else if (nn.indexOf('WebTV') > -1 && nu.indexOf('WebTV') > -1) {nc = 'mt'; ng = 'no av'; nn = 'MSN TV';} else {nc = 'no'; ng = 'no js'; nn = 'unknown, so it will not work';} } // pop-up param|hp:helicopter|lp:landscape|mp:message|nc:navigator code|pp:portrait|tp:text|wp:window { if (nc == 'e6' || nc == 'm7' || nc == 'm8') { var hp = "width=372,height=246,left="+(sw-382)+",top=0"; var lp = "width=372,height=288,left="+(sw-382)+",top=0"; var mp = "width=372,height=104,left="+(sw-382)+",top=0"; var pp = "width=372,height=238,left="+(sw-382)+",top=0"; var tp = "width=372,height=196,left="+(sw-382)+",top=0"; var wp = "width=800,height="+(sh-256)+", left=0,top=0"; var zp = "width=376,height=286,left="+(sw-386)+",top=0"; } if (nc == 'e5') { var hp = "width=372,height=246,left="+(sw-382)+",top=0"; var lp = "width=372,height=288,left="+(sw-382)+",top=0"; var mp = "width=372,height=104,left="+(sw-382)+",top=0"; var pp = "width=372,height=238,left="+(sw-382)+",top=0"; var tp = "width=372,height=196,left="+(sw-382)+",top=0"; var wp = "width=800,height="+(sh-256)+", left=0,top=0"; var zp = "width=376,height=286,left="+(sw-386)+",top=0"; } else if (nc == 'n7') { var hp = "width=376,height=250,left="+(sw-382)+",top=0"; var lp = "width=376,height=291,left="+(sw-382)+",top=0"; var mp = "width=376,height=124,left="+(sw-382)+",top=0"; var pp = "width=376,height=242,left="+(sw-382)+",top=0"; var tp = "width=376,height=200,left="+(sw-382)+",top=0"; var wp = "width=800,height="+(sh-256)+", left=0,top=0"; var zp = "width=380,height=290,left="+(sw-386)+",top=0"; } else if (nc == 'n6') { var hp = "width=376,height=270,left="+(sw-382)+",top=0"; var lp = "width=376,height=311,left="+(sw-382)+",top=0"; var mp = "width=376,height=124,left="+(sw-382)+",top=0"; var pp = "width=376,height=262,left="+(sw-382)+",top=0"; var tp = "width=376,height=216,left="+(sw-382)+",top=0"; var wp = "width=800,height="+(sh-256)+", left=0,top=0"; var zp = "width=380,height=286,left="+(sw-386)+",top=0"; } else if (nc == 'z1' || nc == 'f0') { var hp = "width=376,height=250,left="+(sw-383)+",top=0"; var lp = "width=376,height=291,left="+(sw-383)+",top=0"; var mp = "width=376,height=124,left="+(sw-383)+",top=0"; var pp = "width=376,height=242,left="+(sw-383)+",top=0"; var tp = "width=376,height=200,left="+(sw-383)+",top=0"; var wp = "width=800,height="+(sh-256)+", left=0,top=0"; var zp = "width=380,height=290,left="+(sw-387)+",top=0"; } else if (nc == 'o7') { var hp = "width=376,height=250,left="+(sw-386)+",top=0"; var lp = "width=376,height=291,left="+(sw-386)+",top=0"; var mp = "width=376,height=124,left="+(sw-386)+",top=0"; var pp = "width=376,height=242,left="+(sw-386)+",top=0"; var tp = "width=376,height=200,left="+(sw-386)+",top=0"; var wp = "width=800,height="+(sh-256)+", left=0,top=0"; var zp = "width=380,height=286,left="+(sw-386)+",top=0"; } else { var hp = "width=372,height=246,left="+(sw-382)+",top=0"; var lp = "width=372,height=288,left="+(sw-382)+",top=0"; var mp = "width=372,height=104,left="+(sw-382)+",top=0"; var pp = "width=372,height=238,left="+(sw-382)+",top=0"; var tp = "width=372,height=196,left="+(sw-382)+",top=0"; var wp = "width=800,height="+(sh-256)+", left=0,top=0"; var zp = "width=376,height=286,left="+(sw-386)+",top=0"; } wp = wp+",menubar=1,toolbar=1,scrollbars=1,status=1"; } // click url to add as favourite|cd:client description|cn:client name|nc:navigator code|cu:client url function AddFave() { if (nc == 'e6' || nc == 'm6' || nc == 'm8') {window.external.AddFavorite('http://www.'+cu, cn+' - '+cd);} else {;} } // adjust to two decimal places|cp:character position|pt:pay total|sb:substring function AdjDecPlaces() { cp = pt.indexOf('.'); sb = pt.substring(cp+1, pt.length); if (cp < 0) {pt = pt+'.00';} if (sb.length == 1) {pt = pt+'0';} } // av locator|ad:av duration|al:av locator|as:av state|at:av timer|co:clicker object|ng:navigator|po:player object function AVLocator() { if (ng == 'av ok') { as = po.playState; ad = Math.floor(po.currentMedia.duration); if (ad < 10) {ad = '0'+ad;} al = Math.floor(po.controls.currentPosition); if (al < 10) {al = '0'+al;} window.status = 'AV Playing: '+al+':'+ad+' seconds.'; if (as == 9 || as == 3) {at = setTimeout('AVLocator()', 195);} else {co.setAttribute('src', pl.src); window.status=' '; clearTimeout(at);} } else {;} } // mouse away|as:av state|co:clicker object|ng:navigator|po:player object function AVOff() { if (ng == 'av ok') { as = po.playState; if (as == 3 || as == 9) {co.setAttribute('src', st.src);} else {co.setAttribute('src', pl.src); window.status = ' ';} } else {co.setAttribute('src', ua.src); window.status = s2;} } // mouse over av|as:av state|ci:clicker id|co:clicker object|ng:navigator|nn:navigator name|pi:player id|po:player object function AVOn(pi, ci) { co = document.getElementById(ci); if (ng == 'av ok') { po = document.getElementById(pi); as = po.playState; co.setAttribute('src', ht.src); if (as == 3 || as == 9) {window.status = sB;} if (as != 3 && as != 9) {window.status = sA;} } else {co.setAttribute('src', ut.src); window.status = nn+' does not support Media Player.';} } // click to switch|ai:av id|as:av state|co:clicker object|ng:navigator|po:player object function AVSwitch(ai) { if (ng == 'av ok') { if ('mdpl') {xx = document.getElementById('mdpl'); yy = xx.playState if (yy == 3 || yy == 9) {xx.controls.stop();} } as = po.playState; if (as == 3 || as == 9) {po.controls.stop(); co.setAttribute('src', st.src);} if (as != 3 && as != 9) {po.url = ai; co.setAttribute('src', pl.src);} //as = po.playState; } else {;} } // buy|ck:cookie|cp:character position|ip:item price|ir:item reference|pt:pay total|sb:substring function Buy(ip, ir) { ck = document.cookie; ck = ck.replace('shop=', ''); ip = parseFloat(ip); if (ck.substring(0, 4) == '0.00') {document.cookie = 'shop='+ip+'|'+ir+'|';} else { pt = parseFloat(ck); pt = (Math.round((pt+ip)*100))/100; pt = pt.toString(); eval('AdjDecPlaces()'); cp = ck.indexOf('|'); document.cookie = 'shop='+pt+'|'+ir+'|'+ck.substring(cp+1, ck.length); } eval('Hear("sh16")'); eval('ShowTotal()'); eval('ShowList()'); } // check form|di:data id|gw:gift wrap|sf:submit form function CheckSaleForm() { sf = 'ok'; d0 = document.getElementById('sale'); if (pf.name1.value.length == 0) {alert('To complete this, I need your first name '); sf=''; return false;} if (pf.name2.value.length == 0) {alert('To complete this, I need your last name '); sf=''; return false;} if (pf.addr1.value.length == 0) {alert('To complete this, I need your address '); sf=''; return false;} if (pf.metro.value.length == 0) {alert('To complete this, I need your city '); sf=''; return false;} if (pf.acode.value.length == 0) {alert('To complete this, I need your area code '); sf=''; return false;} if (pf.inter.value.length == 0) {alert('To complete this, I need your country '); sf=''; return false;} if (pf.email.value.length == 0) {alert('To complete this, I need your email '); sf=''; return false;} if (cn == '') {alert('To accept your card, I need your card name '); sf=''; return false;} if (pf.cache.value.length == 0) {alert('To accept your card, I need your card number '); sf=''; return false;} if (pf.owner.value.length == 0) {alert('To accept your card, I need your name, as it is on the card '); sf=''; return false;} if (pf.date2.value.length == 0) {alert('To accept your card, I need the card expiry date '); sf=''; return false;} if (sf == 'ok') {pf.submit();} } // mouse over clicker|ci:clicker id|co:clicker object|os:old source function ClickerOn(ci) { co = document.getElementById(ci); co.setAttribute('src', oa.src); window.status = 'Click, to continue.'; } function ClickerOff(os) { co.setAttribute('src', os); window.status = ' '; } // cursor xy position|mx:mouse x|my:mouse y|nc:navigator code|ox:old x|oy:old y function CursorXY() { if (nc == 'e6' || nc == 'm6' || nc == 'm8') { mx = window.event.clientX; my = window.event.clientY; if (window.event.ctrlKey) { window.status = 'New x:'+mx+'px New y:'+my+'px :: Change x:'+(mx-ox)+'px Change y:'+(my-oy)+'px :: '+s0; ox = mx; oy = my; } else {window.status = s2;} } else if (nc == 'n6' || nc == 'n7' || nc == 'z1' || nc == 'f0') {document.onmousedown = eval('MZCursorXY');} else {;} } // show fulltime|hs:hours|ms:minutes|nd:new date|so:show object|ss:seconds function FullTime() { so = document.getElementById('fltm'); nd = new Date(); hs = nd.getHours(); if (hs < 10) {hs = '0'+hs;} ms = nd.getMinutes(); if (ms < 10) {ms = '0'+ms;} ss = nd.getSeconds(); if (ss < 10) {ss = '0'+ss;} so.innerHTML = hs+':'+ms+':'+ss; setTimeout('FullTime()', 200); } // click link to page|pg:page link function GoTo(pg) { document.location.href = pg; } // click link to gate page|ms:minutes|nd:new date|ng:navigator|pg:page link|ss:seconds function GoToGate(pg) { if (ng != 'no js') {nd = new Date(); ms = nd.getMinutes(); if (ms < 10) {ms = '0'+ms;} ss = nd.getSeconds(); if (ss < 10) {ss = '0'+ss;} window.status = ' '; pg = pg+'?ValidGateID'+ms+ss; document.location.href = pg; window.status = ' '; } else {;} } // hear audio clip|ai:audio clip id|ng:navigator function Hear(ai) { if (ng == 'av ok') {document.getElementById(ai).play();} else {;} } // kites|kc:kite counter|kd:kite duration|kl:kite loop|kp:kite position|ks:kites|kt:kite timer|kw:kite wind re-position function Kites(ks, kw, kd) { for (kc = 1; kc < ks+1; kc = kc+1) { ki = document.getElementById('ko'+kc); ki.style.visibility = 'hidden'; ki.style.left = kh*Math.cos(kp+kc*9)*Math.cos(kp+kc*12); ki.style.top = kv*Math.cos(kp+kc*6)*Math.sin(kp+kc*24); ki.style.visibility = 'visible'; } if (kl < kd) {kp = kp + kw; kl = kl+1; kt = setTimeout('Kites('+ks+', '+kw+', '+kd+')', 20)} else { for (kc = 1; kc < ks+1; kc = kc+1) {document.getElementById('ko'+kc).style.visibility = 'hidden';} clearTimeout(kt); } } // click to email client|ce:client email|es:email subject function MailClient(es) { window.status = ' '; document.location = 'mailto:'+ce+'?subject='+es; window.status = ' '; } // click to email shared|se:shared email|es:email subject function MailShared(es) { window.status = ' '; document.location = 'mailto:'+se+'?subject='+es; window.status = ' '; } // mouse over manual favourite link to swap colour|nc:navigator code|ui:url id function ManualFaveOn(ui) { if (nc == 'e6' || nc == 'm6' || nc == 'm8') {document.getElementById(ui).style.color = '#00FFFF'; window.status = s4;} else {;} } function ManualFaveOff(ui) { if (nc == 'e6' || nc == 'm6' || nc == 'm8') {document.getElementById(ui).style.color = '#6495ED'; window.status = s2;} else {;} } // mouse over manual page link to swap colour|li:link id function ManualLinkOn(li) { document.getElementById(li).style.color = '#00FFFF'; window.status = s6; } function ManualLinkOff(li) { document.getElementById(li).style.color = '#6495ED'; window.status = s2; } // menu blink|bc:blink counter|bt:blink timer function MenuBlink() { bc = bc + 1; if (bc <= 100 || bc == 140 || bc == 180) { document.getElementById('menl').style.visibility = 'visible'; document.getElementById('menr').style.visibility = 'visible'; } if (bc == 120 || bc == 160 || bc == 200) { document.getElementById('menl').style.visibility = 'hidden'; document.getElementById('menr').style.visibility = 'hidden'; } if (bc < 221) {bt = setTimeout('MenuBlink()', 1);} else { document.getElementById('menl').style.visibility = 'visible'; document.getElementById('menr').style.visibility = 'visible'; clearTimeout(bt); } } // mozilla cursor xy position|ev:event|mx:mouse x|my:mouse y|ox:old x|oy:old y function MZCursorXY(ev) { mx = ev.clientX; my = ev.clientY; if (ev.ctrlKey) { window.status = 'New x:'+mx+'px New y:'+my+'px :: Change x:'+(mx-ox)+'px Change y:'+(my-oy)+'px :: '+s0; ox = mx; oy = my; } else {window.status = s2;} } // new window pop-up|du:destination url|wn:name|wp:pop-up parameters function OpenWnPopUp(du) { wn = window.open(du, 'wn', wp); window.status=' '; } function CloseWnPopUp() { wn.close(); window.status=' '; } // zoom pop-up|cn:client|i1:image 1|ph:pop-up heading|pn:pop-up name|zp:zoom-pop-up parameters function OpenZmPopUp(ph, i1) { pn = window.open('', 'pn', zp); window.status='To close the pop-up, move the mouse.'; pn.document.write(""+cn+""); pn.document.write(""); pn.document.write(""); pn.document.write(""); pn.document.write(""); } function CloseZmPopUp() { pn.close(); window.status=' '; } // click to pop|dc:dispersion counter|fc:fragment counter|mx:mouse x|my:mouse y function Pop() { fc = 0; dc = 0; for (fc = 0; fc < 10; fc = fc+1) {eval('PopAll(fc, dc)');} } // pop all|ar:array|dc:dispersion counter|fc:fragment counter|nx:new x|ny:new y|oi:object id|xp:x position|yp:y position function PopAll(fc, dc) { ar = 'xp'+fc.toString(); xp = 'xp'+fc.toString()+'['+dc+']'; yp = 'yp'+fc.toString()+'['+dc+']'; if (dc < eval(ar).length) { nx = mx + eval(xp); ny = my + eval(yp); oi = 'obj'+fc.toString(); fr = document.getElementById(oi); fr.style.left = nx; fr.style.top = ny; fr.style.visibility = 'visible'; dc = dc + 1; setTimeout('PopAll('+fc+', '+dc+')', 80) } else { oi = 'obj'+fc.toString(); document.getElementById(oi).style.visibility = 'hidden'; } } // reset shop cookie function ResetShopCookie() { document.cookie = 'shop=0.00|'; } // return|ck:cookie|cp:character position|ip:item price|ir:item reference|pt:pay total|rp:return position|sb:substring function Ret(ip, ir) { ck = document.cookie; ck = ck.replace('shop=', ''); ip = parseFloat(ip); rp = ck.indexOf(ir); if (ck.substring(0, 4) == '0.00') {document.cookie = 'shop=0.00|';} if (rp > 0) {pt = parseFloat(ck); pt = (Math.round((pt-ip)*100))/100; pt = pt.toString(); eval('AdjDecPlaces()'); cp = ck.indexOf('|'); ck = ck.substring(cp+1, ck.length); ck = ck.replace(ir+'|', ''); document.cookie = 'shop='+pt+'|'+ck; eval('Hear("sh16")'); } eval('ShowTotal()'); eval('ShowList()'); } // reveal horizontally|nx:new x|ra:reveal array|ro:reveal object|rt:reveal timer|wt:wait time function RevealX() { nx = parseInt(ro.style.left); if (nx == 12) {document.getElementById('ra01').style.visibility = 'visible';} if (nx == 76) {document.getElementById('ra02').style.visibility = 'visible';} if (nx == 140) {document.getElementById('ra03').style.visibility = 'visible';} if (nx == 204) {document.getElementById('ra04').style.visibility = 'visible';} if (nx == 268) {document.getElementById('ra05').style.visibility = 'visible';} if (nx == 332) {document.getElementById('ra06').style.visibility = 'visible';} if (nx == 396) {document.getElementById('ra07').style.visibility = 'visible';} if (nx == 460) {document.getElementById('ra08').style.visibility = 'visible';} if (nx == 524) {document.getElementById('ra09').style.visibility = 'visible';} if (nx == 588) {document.getElementById('ra10').style.visibility = 'visible';} if (nx == 652) {document.getElementById('ra11').style.visibility = 'visible';} if (nx == 716) {document.getElementById('ra12').style.visibility = 'visible';} if (nx < 716) {nx = nx+1; ro.style.left = nx+'px'; rt = setTimeout('RevealX()', 4);} else {wt = 800; rt = setTimeout('StopRevealX()', wt);} } // prepare sale data|fa:form action|fd:form data|pf:pay form|to:text object function SaleData() { pf = document.getElementById('sale'); fd = '£'+pt+' inc VAT :: '+sl+' Send To:'+pf.mfnx.value+' '+pf.mlnx.value+', '+pf.mcnx.value+', '+pf.tflx.value+', '+pf.tslx.value+', '+pf.tctx.value+', '+pf.tacx.value+', '+pf.tcnx.value+' Phone:'+pf.ttlx.value+' Email:'+pf.temx.value+' VAT:'+pf.tcvx.value+' Card:'+ct+':'+pf.tdox.value+' Owner:'+pf.tnox.value+' Start:'+pf.valx.value+' Expiry:'+pf.expx.value+' Issue:'+pf.issx.value; fa = '
'; to = document.getElementById('fmac'); to.innerHTML = fa; } // set shop cookie function SetShopCookie() { document.cookie = 'shop=0.00|'; } // prepare shop data|fa:form action|fd:form data|pf:pay form|to:text object function ShopData() { pf = document.getElementById('sale'); fd = 'My Choice: '+pf.shls.value+' ::: Send To: '+pf.mfnx.value+' '+pf.mlnx.value+', '+pf.mcnx.value+', '+pf.tflx.value+', '+pf.tslx.value+', '+pf.tctx.value+', '+pf.tacx.value+', '+pf.tcnx.value+' ::: Phone: '+pf.ttlx.value+' ::: Email: '+pf.temx.value+' ::: VAT Number: '+pf.tcvx.value+' ::: Card: '+ct+' '+pf.tdox.value+' ::: Card Owner: '+pf.tnox.value+' ::: Start Date: '+pf.valx.value+' ::: Expiry Date: '+pf.expx.value+' ::: Issue Number: '+pf.issx.value; fa = ''; to = document.getElementById('fmac'); to.innerHTML = fa; } // show div|di:div id function ShowDiv(di) { document.getElementById(di).style.visibility = 'visible'; } // show shopping list|ck:cookie|cp:character position|sl:shopping list|to:text object function ShowList() { ck = document.cookie; ck = ck.replace('shop=', ''); if (ck.substring(0, 4) == '0.00') {sl = 'The shopping card is empty';} else { cp = ck.indexOf('|'); sl = ck.substring(cp+1, ck.length); cp = sl.indexOf(';'); if (cp > -1) {sl = sl.substring(0, cp-1);} while (sl.indexOf('|') > -1) {sl = sl.replace('|', ' ::: ');} } to = document.getElementById('shls'); to.innerHTML = sl; } // show time|hs:hours|ms:minutes|nd:new date|so:showtime object|ss:seconds function ShowTime() { so = document.getElementById('shtm'); nd = new Date(); hs = nd.getHours(); if (hs < 10) {hs = '0'+hs;} ms = nd.getMinutes(); if (ms < 10) {ms = '0'+ms;} ss = nd.getSeconds(); if (ss < 10) {ss = '0'+ss;} so.innerHTML = hs+':'+ms+':'+ss; setTimeout('ShowTime()', 240); } // show shopping total|ck:cookie|cv:client vat|pt:pay total|to:text object function ShowTotal() { ck = document.cookie; ck = ck.replace('shop=', ''); if (ck.substring(0, 4) == '0.00') {pt = '0.00';} else { pt = parseFloat(ck); if (cv == '0%') {pt = (Math.round(pt*100.00))/100;} else {pt = (Math.round(pt*117.50))/100;} pt = pt.toString(); eval('AdjDecPlaces()'); } to = document.getElementById('shpt'); to.innerHTML = pt; } // auto-start reveal horizontally|ri:reveal object id|ro:reveal object|rt:reveal timer|wt:wait time function StartRevealX(ri, wt) { ro = document.getElementById(ri); rt = setTimeout('RevealX()', wt); } // auto-stop reveal horizontally|ro:reveal object|rt:reveal timer function StopRevealX() { ro.style.visibility = 'hidden'; clearTimeout(rt); } // show trimtime|hs:hours|ms:minutes|nd:new date|so:show object function TrimTime() { so = document.getElementById('trtm'); nd = new Date(); hs = nd.getHours(); if (hs < 10) {hs = '0'+hs;} ms = nd.getMinutes(); if (ms < 10) {ms = '0'+ms;} so.innerHTML = hs+':'+ms; setTimeout('TrimTime()', 200); } // click to decrease volume|as:av state|ng:navigator|po:player object|vl:volume function VolDec() { if (ng == 'av ok') { if (as == 3 || as == 9) {vl = po.settings.volume; if (vl > 9) {po.settings.volume = vl-10;}} } else {;} } // click to increase volume|as:av state|ng:navigator|po:player object|vl:volume function VolInc() { if (ng == 'av ok') { if (as == 3 || as == 9) {vl = po.settings.volume; if (vl < 90) {po.settings.volume = vl+10;}} } else {;} } // mouse away|as:av state|co:clicker object|ng:navigator|os:old source|vo:volume object function VolOff(os) { if (ng == 'av ok') {vo.setAttribute('src', os); if (as != 3 && as != 9) {window.status=' ';}} else {co.setAttribute('src', no.src); window.status = ' ';} } // mouse over|as:av state|ng:navigator|nn:navigator name|pi:player id|po:player object|vi:volume id|vo:volume object function VolOn(pi, vi) { vo = document.getElementById(vi); if (ng == 'av ok') { po = document.getElementById(pi); as = po.playState; vo.setAttribute('src', hv.src); if (as != 3 && vi.substring(3,4) == 'd') {window.status = 'Click, to decrease the volume.'} if (as != 3 && vi.substring(3,4) == 'u') {window.status = 'Click, to increase the volume.'} } else {vo.setAttribute('src', uv.src); window.status = nn+' does not support Media Player.';} } // text for av pop-up var a1 = 'To play audio and video, click the play button. The button will change to stop.'; var a2 = 'If you can\'t hear anything, make sure that the volume is not off, or set very low. Double-click the speaker icon in the taskbar to see all the volume controls.'; var a3 = 'If you can\'t hear anything, make sure that the volume is not off, or set very low. Click the two volume buttons to adjust the volume.
Double-click the speaker icon in the taskbar to see all the volume controls.'; var a4 = 'Audio, video, and interactive effects, can only work when the page has completely downloaded.'; // text for browsers var b0 = '
TECHNICAL HELP
'; var b1 = 'These interactive pages are compatible with Microsoft Windows 2000 or XP, Microsoft Internet Explorer 6.0 or Netscape 7.1, and Microsoft Media Player 9 or 10.'; var b2 = 'Mozilla, Firefox, Opera, earlier versions of Internet Explorer and Netscape, and MAC computers, do not support Microsoft MediaPlayer, so you will not be able to enjoy any audio or video. Your browser is , or a derivative.'; // text for copyright var c0 = 'The page content is Talking Technologies International Limited copyright, 2003-'; var c1 = 'The Copyright Act 1988 protects the rights of authors, composers, and artists, until 70 years after their death.'; var c2 = 'The Act says that you cannot copy, redistribute, perform, broadcast, translate, or adapt, any original literary, musical, or artistic works, without the owner\'s permission.'; var c3 = 'Nearly every country has agreed to respect international copyright.'; // text for gift wrapping var g1 = 'Gifts are wrapped in tissue, then black paper, and tied with cerise ribbon. Your message is printed on a small silver card. The service costs £4.70, including VAT.' // text for holiday and closed dates var h1 = ''; var h2 = '

We\'re looking at new premises, so will be closed from April 9 to April 15. Although some of the pages are being re-written, the on-line shop still works and all orders will be despatched when we re-open. Thanks.


'; var h3 = '

We\'ll be closed from 21:00 Wednesday 13th July to 8:30 Wednesday 20th July. On-line shop orders will be despatched when we re-open. Product support and email contact are on the appropriate internet pages. Thanks.


'; // text for link message var l1 = 'this page: '; var l2 = '\'s gift'; var l3 = 'try: '; var l4 = 'previous'; var l5 = 'shop on line at: '; var l6 = ' or '; var l7 = 'synchronise: '; // text for media player object class id var o1 = 'clsid:6bf52a52-394a-11d3-b153-00c04f79faa6'; // text for status messages var s0 = 'Click anywhere, to clear this status message.'; var s1 = 'Audio, video, and interactive effects, can only work when the page has completely downloaded.'; var s2 = 'This page is ready for you to use.'; var s3 = 'Password accepted and gate allocated. This page is ready for you to use.'; var s4 = 'Click, to add this to your list of favourites.'; var s5 = 'Click, to mail about anything on this page.'; var s6 = 'Click, to look at this page.'; var s7 = 'Click the link just below the menu bar to look at this page.'; var s8 = 'Click, to transfer to this page.'; var s9 = 'Click the link just above the menu bar to transfer to this page.'; var sA = 'Click to play this audio or video.'; var sB = 'Click to stop this audio or video.'; // text for printing on a4 var t4 = 'The page has been designed to be printed on A4 paper. However, before printing, make sure that the margins in your browser\'s Page Setup are not greater than the European standard: top 15mm, right 30mm, bottom 20mm, and left 30mm. These margins were designed for pleasing proportions and allow papers to be hole-punched or bound without losing text. If you\'re not sure, check the Print Preview before printing.'; // text for user messages var u1 = 'Moving from page to page is simple: click the coloured words just above and below the menu bar. They\'ll change colour just before you click.
Above the menu bar, click to look at related products or services. Below the menu bar, click to look at other pages, shop on line, or email.'; var u2 = 'In Internet Explorer, you can add this page to your favourites by clicking the net address, near the top left of the page above the menu bar. In other browsers, bookmark it from the browser\'s menu.';