//  designarcade.co.uk
//  shared javascript

//  assign variables
var a0 = ''; // av text
var a1 = ''; // av text
var a2 = ''; // av text
var a3 = ''; // av text
var a4 = ''; // av text
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 b0 = ''; // browser text
var b1 = ''; // browser text
var b2 = ''; // browser text
var bc =  0; // blink counter: ok
var bg =  0; // background colour
var bi = ''; // box id
var bk = ''; // blank
var bo = ''; // box object
var bt =  0; // blink timer: ok
var by =  0; // bottom y

var c0 = ''; // copyright text
var c1 = ''; // copyright text
var c2 = ''; // copyright text
var cc = ''; // client contact phone number: ok
var cd = ''; // client description
var ce = ''; // client email
var ch = ''; // cherry heaven tv 
var ci = ''; // clicker id
var ck = ''; // cookie
var cl = ''; // colour
var cn = ''; // client name
var co = ''; // clicker object
var cp =  0; // character position
var cs = ''; // client shop
var ct = ''; // card type
var cu = ''; // client url
var cv = ''; // client vat
var cx =  0; // cookie expiry

var d0 = ''; // delivery text
var d1 = ''; // delivery text
var d2 = ''; // delivery text
var d3 = ''; // delivery text
var d4 = ''; // delivery text
var d5 = ''; // delivery text
var d6 = ''; // delivery text
var da = ''; // day array
var dc =  0; // dispersion counter
var di = ''; // div id: ok
var dn = ''; // date now
var ds =  0; // days
var dt = ''; // date
var du = ''; // destination url
var dv = ''; // div object
var dy = ''; // day

var e0 = ''; // educational discount text
var e1 = ''; // educational discount text
var e2 = ''; // educational discount text
var ei = ''; // email link id: ok
var en = ''; // end clicker
var es = ''; // email subject
var ev = ''; // event

var f0 = ''; // form text
var f1 = ''; // form text
var f2 = ''; // form text
var fa = ''; // form action
var fc =  0; // fragment counter
var fd = ''; // form data
var ff = ''; // flash file
var fg =  0; // foregound colour
var fh = ''; // field help
var fi = ''; // field id
var fo = ''; // field object
var fr =  0; // fragment
var fs =  0; // fragments
var ft =  0; // float timer
var fv = ''; // favourite

var g0 = ''; // gift text
var g1 = ''; // gift text
var gp = ''; // gallery pop-up parameters

var h0 = ''; // holiday text
var h1 = ''; // holiday text
var h2 = ''; // holiday text
var hi = ''; // help id
var ho = ''; // help object
var hp = ''; // helicopter-pop-up parameters
var hv = ''; // hover colour

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 l0 = ''; // link text
var l1 = ''; // link text
var l2 = ''; // link text
var l3 = ''; // link text
var l4 = ''; // link text
var l5 = ''; // link text
var l6 = ''; // link text
var l7 = ''; // link text
var l8 = ''; // link text
var l9 = ''; // link text
var lc =  0; // loop counter
var li = ''; // link id: ok
var lk = ''; // link
var lm = ''; // link marker
var lo = ''; // link object
var lp = ''; // landscape-pop-up parameters
var ls =  0; // loop step
var lt = ''; // loop timer
var lx =  0; // left x

var ma = ''; // month array
var mf = ''; // mail form
var mh = ''; // month
var mi = ''; // menu id
var ml = ''; // mail link
var mo = ''; // menu object
var mn = ''; // menu
var mp = ''; // message-pop-up parameters
var ms =  0; // minutes: ok
var mx =  0; // mouse x
var my =  0; // mouse y

var nc = ''; // navigator code: ok
var nd = ''; // new date: ok
var ns = ''; // new source
var nt =  0; // new time
var nx =  0; // new x: ok
var ny =  0; // new y: ok

var o0 = ''; // object class id text
var o1 = ''; // object class id text
var oa = ''; // over action clicker
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: ok
var oy =  0; // old y: ok

var p0 = ''; // price text
var p1 = ''; // price text
var pc = ''; // page code
var pf = ''; // pay form
var pg = ''; // page link: ok
var pi = ''; // player id
var pm = ''; // pop-up marker
var pn = ''; // pop-up name
var po = ''; // player object
var pp = ''; // portrait-pop-up parameters
var ps = ''; // play state
var pt =  0; // pay total
var pw = ''; // password
var py =  0; // pay

var qt =  0; // quit time

var ra = ''; // reveal array: ok
var ri = ''; // reveal object id: ok
var ro = ''; // reveal object: ok
var rp =  0; // reference position
var rt = ''; // reveal timer: ok
var ru = ''; // referrer url
var rx =  0; // right x

var s0 = ''; // status text: ok
var s1 = ''; // status text
var s2 = ''; // status text: ok
var s3 = ''; // status text
var s4 = ''; // status text
var s5 = ''; // status text: ok
var s6 = ''; // status text
var s7 = ''; // status text
var s8 = ''; // status text: ok
var s9 = ''; // status text: ok
var sA = ''; // status text
var sB = ''; // status text
var sC = ''; // status text
var sD = ''; // status text
var sE = ''; // status text: ok
var sF = ''; // status text
var sG = ''; // status text
var sa = ''; // shared address
var sb = ''; // substring
var sc = ''; // shared call
var se = ''; // shared email
var sf = ''; // sale form
var si = ''; // span id
var sh =  0; // hours
var sn = ''; // shared name
var sl = ''; // shopping list
var so = ''; // show object
var sp = ''; // send pay form
var ss =  0; // seconds: ok
var su = ''; // shared url
var sv = ''; // shared vat
var sw = ''; // send wish form

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 u1 = ''; // user text
var u2 = ''; // user text
var u3 = ''; // user text
var ue = ''; // user's email
var ui = ''; // url id: ok

var vi = ''; // volume id
var vl = ''; // value
var vo = ''; // volume object

var wf = ''; // wish form
var wi = ''; // window id
var wn = ''; // window name
var wo = ''; // window object
var wp = ''; // window-pop-up parameters
var wt =  0; // wait time: ok

var xc =  0; // x counter
var xd = ''; // x direction
var xi = ''; // x object id
var xm = ''; // xml file
var xn = ''; // x object name
var xo = ''; // x object
var xp =  0; // x position
var xs =  0; // x step
var xt =  0; // x time

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: ok
var yr = ''; // year
var ys =  0; // y step
var yt =  0; // y time

var zp = ''; // zoom-pop-up parameters
var zt =  0; // zero time

//  shared blanks
var bk = new Image(160,120); bk.src = 'http://www.designarcade.co.uk/blankx11.gif'; // snap:blank:default transparent black 

//  shared drifters
var db = new Image( 56,  8); db.src = 'drbl.gif'; // drifter:default blue   
var dg = new Image( 56,  8); dg.src = 'drgr.gif'; // drifter:default grey

//  shared pop-up marker
var pm = new Image( 10, 12); pm.src = 'pumk.gif'; // pop-up marker:default blue

//  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|cn:name|cs:shop|cu:url|cv:vat
var ca = '14 West Street &nbsp; Corfe Castle &nbsp; Dorset &nbsp; BH20 5HD &nbsp; England';
var cc = '01929<span style="display:none;">noskype</span> 477<span style="display:none;">noskype</span>137';
var cd = 'Say Less About More';
var ce = 'mail@cherryheaven.co.uk';
var cf = '01929 477138';
var cn = 'Design Arcade';
var cs = 'shop@cherryheaven.co.uk';
var cu = 'designarcade.co.uk';
var cv = '17.5%';

//  set shared|sa:address|sc:call|sd:description|se:email|sn:name|su:url|sv:vat
var sa = '14 West Street &nbsp; Corfe Castle &nbsp; Dorset &nbsp; BH20 5HD &nbsp; England';
var sc = '01929 477137';
var sd = 'Say Less About More';
var se = 'mail@cherryheaven.co.uk';
var sn = 'Cherry Heaven';
var su = 'cherryheaven.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;

// identify navigator|nc:navigator code|ng:navigator|nn:navigator name|nu:navigator user agent
{
if      (nn.indexOf('Explorer') > -1 && nu.indexOf('MSIE 8') > -1 && nu.indexOf('MSN') < 0)
        {nc = 'e8'; ng = 'av'; nn = 'Internet Explorer 8';}
else if (nn.indexOf('Explorer') > -1 && nu.indexOf('MSIE 7') > -1 && nu.indexOf('MSN') < 0)
        {nc = 'e7'; ng = 'av'; nn = 'Internet Explorer 7';}
else if (nn.indexOf('Explorer') > -1 && nu.indexOf('MSIE 6') > -1 && nu.indexOf('MSN') < 0)
        {nc = 'e6'; ng = 'av'; 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 8') > -1)
	  {nc = 'm8'; ng = 'av'; nn = 'Internet Explorer 6, included with MSN 8';}
else if (nn.indexOf('Explorer') > -1 && nu.indexOf('MSN 6.1') > -1)
	  {nc = 'm7'; ng = 'av'; nn = 'Internet Explorer 6, included with MSN 7';}
else if (nn.indexOf('Explorer') > -1 && nu.indexOf('MSN 6') > -1)
	  {nc = 'm6'; ng = 'av'; nn = 'Internet Explorer 6, included with MSN 6';}
else if (nn.indexOf('Netscape') > -1 && nu.indexOf('Netscape/8') > -1)
	  {nc = 'n8'; ng = 'no av'; nn = 'Netscape 8';}
else if (nn.indexOf('Netscape') > -1 && nu.indexOf('Firefox/0') > -1)
	  {nc = 'n8'; ng = 'no av'; nn = 'Netscape 8';}
else if (nn.indexOf('Netscape') > -1 && nu.indexOf('Netscape/7.1') > -1)
	  {nc = 'n7'; ng = 'av'; 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('Gecko/2') > -1)
 	  {nc = 'z1'; ng = 'no av'; nn = 'Mozilla 1';}
else if (nn.indexOf('Netscape') > -1 && nu.indexOf('Mozilla/5') > -1 && nu.indexOf('Firefox/4') > -1)
	  {nc = 'f4'; ng = 'no av'; nn = 'Firefox 4';}
else if (nn.indexOf('Netscape') > -1 && nu.indexOf('Mozilla/5') > -1 && nu.indexOf('Firefox/3') > -1)
	  {nc = 'f3'; ng = 'no av'; nn = 'Firefox 3';}	  
else if (nn.indexOf('Netscape') > -1 && nu.indexOf('Mozilla/5') > -1 && nu.indexOf('Firefox/2') > -1)
	  {nc = 'f2'; ng = 'no av'; nn = 'Firefox 2';}	  
else if (nn.indexOf('Netscape') > -1 && nu.indexOf('Mozilla/5') > -1 && nu.indexOf('Firefox/1') > -1)
	  {nc = 'f1'; ng = 'no av'; nn = 'Firefox 1';}	  
else if (nn.indexOf('Netscape') > -1 && nu.indexOf('Mozilla/5') > -1 && nu.indexOf('Chrome/0') > -1)
	  {nc = 'c1'; ng = 'no av'; nn = 'Google Chrome';}	  
else if (nu.indexOf('Opera/9')  > -1 && window.opera)
	  {nc = 'o8'; ng = 'no av'; nn = 'Opera 9';}
else if (nu.indexOf('Opera/8')  > -1 && window.opera)
	  {nc = 'o8'; ng = 'no av'; nn = 'Opera 8';}
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 <span class=\'txe\'>not</span> work';}
}

// pop-up param|lp:landscape param|nc:navigator code|pp:portrait param|tp:text param|wp:window param
{
if      (nc == 'e6' || nc == 'e7' || nc == 'e8')
        {
        gp = "width=372,height=265,left="+(sw-382)+",top=0";
        lp = "width=372,height=265,left="+(sw-382)+",top=0";
        pp = "width=372,height=265,left="+(sw-382)+",top=0";
        tp = "width=372,height=181,left="+(sw-382)+",top=0";
	  wp = "width=800,height="+(sh-256)+",  left=0,top=0";
        }
else if (nc == 'e5')
        {
        gp = "width=372,height=265,left="+(sw-382)+",top=0";
        lp = "width=372,height=265,left="+(sw-382)+",top=0";
        pp = "width=372,height=265,left="+(sw-382)+",top=0";
        tp = "width=372,height=181,left="+(sw-382)+",top=0";
	  wp = "width=800,height="+(sh-256)+",  left=0,top=0";
        }
else if (nc == 'm6' || nc == 'm7' || nc == 'm8')
        {
        gp = "width=372,height=265,left="+(sw-384)+",top=0";
        lp = "width=372,height=265,left="+(sw-384)+",top=0";
        pp = "width=372,height=265,left="+(sw-384)+",top=0";
        tp = "width=372,height=181,left="+(sw-384)+",top=0";
	  wp = "width=800,height="+(sh-256)+",  left=0,top=0";
        }
else if (nc == 'n8')
        {
        gp = "width=376,height=265,left="+(sw-379)+",top=0";
        lp = "width=376,height=265,left="+(sw-379)+",top=0";
        pp = "width=376,height=265,left="+(sw-379)+",top=0";
        tp = "width=376,height=181,left="+(sw-379)+",top=0";
        wp = "width=800,height="+(sh-256)+",  left=0,top=0";
        }
else if (nc == 'n7')
        {
        gp = "width=376,height=265,left="+(sw-382)+",top=0";
        lp = "width=376,height=265,left="+(sw-382)+",top=0";
        pp = "width=376,height=265,left="+(sw-382)+",top=0";
        tp = "width=386,height=181,left="+(sw-382)+",top=0";
        wp = "width=800,height="+(sh-256)+",  left=0,top=0";
        }
else if (nc == 'n6')
        {
        gp = "width=376,height=265,left="+(sw-382)+",top=0";
        lp = "width=376,height=265,left="+(sw-382)+",top=0";
        pp = "width=376,height=265,left="+(sw-382)+",top=0";
        tp = "width=376,height=181,left="+(sw-382)+",top=0";
        wp = "width=800,height="+(sh-256)+",  left=0,top=0";
        }
else if (nc == 'z1')
        {
        gp = "width=376,height=265,left="+(sw-381)+",top=0";
        lp = "width=376,height=265,left="+(sw-381)+",top=0";
        pp = "width=376,height=265,left="+(sw-381)+",top=0";
        tp = "width=376,height=181,left="+(sw-381)+",top=0";
        wp = "width=800,height="+(sh-256)+",  left=0,top=0";
        }
else if (nc == 'f1' || nc == 'f2' || nc == 'f3')
        {
        gp = "width=376,height=265,left="+(sw-381)+",top=0";
        lp = "width=376,height=265,left="+(sw-381)+",top=0";
        pp = "width=376,height=265,left="+(sw-381)+",top=0";
        tp = "width=376,height=181,left="+(sw-381)+",top=0";
        wp = "width=800,height="+(sh-256)+",  left=0,top=0";
        }
else if (nc == 'o7' || nc == 'o8')
	  {
        gp = "width=376,height=265,left="+(sw-389)+",top=0";
        lp = "width=376,height=291,left="+(sw-389)+",top=0";
        pp = "width=376,height=265,left="+(sw-389)+",top=0";
        tp = "width=376,height=181,left="+(sw-389)+",top=0";
        wp = "width=800,height="+(sh-256)+",  left=0,top=0";
        }
else    {
        gp = "width=372,height=265,left="+(sw-382)+",top=0";
        lp = "width=372,height=265,left="+(sw-382)+",top=0";
        pp = "width=372,height=265,left="+(sw-382)+",top=0";
        tp = "width=372,height=181,left="+(sw-382)+",top=0";
	  wp = "width=800,height="+(sh-256)+",  left=0,top=0";
        }
        wp =  wp+",menubar=1,toolbar=1,scrollbars=1,status=1";
}

// get y position for shared item and set cherry heaven tv fascia colours|bg:background colouryp|fg:foreground colour|hv:hover colour|yp:y position
ru = location.href;
if   (ru.indexOf("accentgold.co.uk") > 0)       {bg = '000000'; ch ='chhvtv21.jpg'; fg = 'FF4500'; hv = 'FFCC00'; yp = 165;}
if   (ru.indexOf("artclay.co.uk") > 0)          {bg = '000000'; ch ='chhvtv21.jpg'; fg = 'FF4500'; hv = 'FFCC00'; yp = 157;}
if   (ru.indexOf("electrickilns.co.uk") > 0)    {bg = '000000'; ch ='chhvtv21.jpg'; fg = '6495ED'; hv = '00FFFF'; yp = 164;}
if   (ru.indexOf("electrictumblers.co.uk") > 0) {bg = '000000'; ch ='chhvtv21.jpg'; fg = '6495ED'; hv = '00FFFF'; yp = 153;}
if   (ru.indexOf("glassclay.co.uk") > 0)        {bg = '000000'; ch ='chhvtv21.jpg'; fg = '6495ED'; hv = '00FFFF'; yp = 243;}
if   (ru.indexOf("kitiki.co.uk") > 0)           {bg = '000000'; ch ='chhvtv21.jpg'; fg = 'FF4500'; hv = 'FFCC00'; yp = 195;}
if   (ru.indexOf("minikiln.co.uk") > 0)         {bg = '333333'; ch ='chhvtv11.jpg'; fg = 'FF4500'; hv = 'FFCC00'; yp = 147;}
if   (ru.indexOf("paragonkilns.co.uk")  > 0)    {bg = '000000'; ch ='chhvtv21.jpg'; fg = '6495ED'; hv = '00FFFF'; yp = 128;}

// click url to add as favourite|cd:client description|cn:client name|nc:navigator code|cu:client url
function AddFave()
{
if   (nc == 'e6' || nc == 'e7' | nc == 'e8' || nc == 'm6' || nc == 'm8')
     {window.external.AddFavorite('http://www.'+cu, cn+' - '+cd);}
else {;}
}

// 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')
     {
     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')
     {
      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')
     {
      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')
     {
      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 {;}
}

// check sale form|pf:pay form|sp:send pay form
function CheckSaleForm()
{ 
pf = document.getElementById('sale'); sp = 'ok';  
if (pf.name1.value.length == 0) 
{alert('Your first name is necessary.   '); sp=''; return false;}
if (pf.name2.value.length == 0) 
{alert('Your last name is necessary.    '); sp=''; return false;}
if (pf.addr1.value.length == 0) 
{alert('Your address is necessary.   '); sp=''; return false;}
if (pf.metro.value.length == 0) 
{alert('Your city is necessary.   '); sp=''; return false;}
if (pf.acode.value.length == 0) 
{alert('Your area code is necessary.   '); sp=''; return false;}
if (pf.inter.value.length == 0) 
{alert('Your country is necessary.   '); sp=''; return false;}
if (pf.email.value.length == 0) 
{alert('Your email is necessary.   '); sp=''; return false;}
if (ct == '')   
{alert('The card type is necessary.   '); sp=''; return false;}
if (pf.cache.value.length == 0) 
{alert('The card number is necessary.   '); sp=''; return false;}
if (pf.owner.value.length == 0) 
{alert('Your name, as it is on the card, is necessary.   '); sp=''; return false;}
if (pf.date2.value.length == 0) 
{alert('The card expiry date is necessary.   '); sp=''; return false;}
if (pf.check.value.length == 0) 
{alert('The card security number is necessary.   '); sp=''; return false;}
if (sp == 'ok') {HideDiv('senx'); pf.submit();} 
}

// check wish form|wf:wish form|sw:send wish form
function CheckWishForm()
{ 
wf = document.getElementById('wish'); sw = 'ok';  
if (wf.name1.value.length == 0) 
{alert('Your first name is necessary.   '); sw=''; return false;}
if (wf.name2.value.length == 0) 
{alert('Your last name is necessary.    '); sw=''; return false;}
if (wf.email.value.length == 0) 
{alert('Your email is necessary.   '); sw=''; return false;}
if (sw == 'ok') {HideDiv('senx'); wf.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 = s2;
}

// cursor crosshair|si:span id
function CursorCross(si)
{
document.getElementById(si).style.cursor = 'crosshair'; window.status = s2;
}

// cursor pointer|si:span id
function CursorPoint(si)
{
document.getElementById(si).style.cursor = 'pointer'; window.status = s7;
}

// cursor xy position|mx:mouse x|my:mouse y|nc:navigator code|ox:old x|oy:old y
function CursorXY()
{
window.status = s0;
}

// flash av off|nn:navigator name|ai:av id
function FlashOff()
{
if   (nn.indexOf('Explorer') > -1) {ai = document.getElementById('flpl');}
else {ai = document.embeds['flpl'];}
ai.StopPlay();
}

// flash av on|nn:navigator name|ai:av id
function FlashOn()
{
if   (nn.indexOf('Explorer') > -1) {ai = document.getElementById('flpl');}
else {ai = document.embeds['flpl'];}
ai.Play();
}

// flash av pause|nn:navigator name|ai:av id
function FlashPause()
{
if   (nn.indexOf('Explorer') > -1) {ai = document.getElementById('flpl');}
else {ai = document.embeds['flpl'];}
if   (ai.IsPlaying()) {ai.StopPlay();}
else {ai.Play();}
} 

// float horizontally|ft:float timer|nx:new x|xo:x object|xt:x time
function FloatX(xt)
{
xo = document.getElementById('xobj');  xo.style.visibility = 'visible';
nx = parseInt(xo.style.left); nx=nx+1; xo.style.left = nx+'px';
if  (nx < 773) {ft = setTimeout('FloatX(xt)', xt);}
if  (nx > 772) {clearTimeout(ft); nx = 0; xo.style.visibility = 'hidden';} 
}

// 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; window.status = ' ';
}

// click link to gate page|ms:minutes|nd:new date|pg:page link|ss:seconds   ok
function GoToGate(pg)
{
if   (pg.indexOf("shop") > -1)
     {
	    nd = new Date();
      ms = nd.getMinutes(); if (ms < 10) {ms = '0'+ms;}
      ss = nd.getSeconds(); if (ss < 10) {ss = '0'+ss;}
      pg = pg+'?https://cherryheavensafeshopping.portal.ID'+ms+ss; 
      document.location.href = pg; window.status = ' '; 
     }
else {document.location.href = pg; window.status = ' ';}
}

// hear audio clip|ai:audio clip id|ng:navigator
function Hear(ai)
{	
if   (ng == 'av') 
     {document.getElementById(ai).play();}
else {;}
}

// hide div|di:div id
function HideDiv(di)
{
document.getElementById(di).style.visibility = 'hidden';         
}

// hide mute|si:span id
function HideMute(si)
{	
document.getElementById(si).style.visibility = 'hidden';
}

// internet explorer cursor xy position|mx:mouse x|my:mouse y|nc:navigator code|ox:old x|oy:old y   ok
function IECursorXY(event)
{
if   (nc == 'e6' || nc == 'e7' || nc == 'e8'|| nc == 'm6' || nc == 'm8')
     {
      if    (window.event.ctrlKey)
            {
             mx = window.event.clientX; my = window.event.clientY;
             window.status = 'Current x = '+mx+'px   Current y = '+my+'px   Change in x = '+(mx-ox)+'px   Change in y = '+(my-oy)+'px   '+s0;
             ox = mx; oy = my;
            }
       else {window.status = s2;}
     }
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 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 == 1 || bc == 15 || bc == 29 || bc == 43) 
     {
      document.getElementById('menl').style.visibility = 'visible';
      document.getElementById('menr').style.visibility = 'visible';
     }
if   (bc == 8 || bc == 22 || bc == 36) 
     {
      document.getElementById('menl').style.visibility = 'hidden';
      document.getElementById('menr').style.visibility = 'hidden';
     }
if   (bc < 58) 
     {bt = setTimeout('MenuBlink()', 1);}
else {
      document.getElementById('menl').style.visibility = 'visible'; 
      document.getElementById('menr').style.visibility = 'visible';
      clearTimeout(bt); bc = 0; 
     }
}

// mute audio clip|ai:audio clip id|ng:navigator|po:player object|ps:play state
function Mute(ai)
{	
if   (ng == 'av') 
     {
      po = document.getElementById('mdpl'); ps = po.playState;
      if (ps == 3 || ps == 9) {po.controls.stop();}
     }
else {;}
}

// mozilla cursor xy position|ev:event|mx:mouse x|my:mouse y|ox:old x|oy:old y   ok
function MZCursorXY(ev)
{
if   (nc == 'n6' || nc == 'n7' || nc == 'n8' || nc == 'z1' || nc == 'f0' || nc == 'f1' || nc == 'f2' || nc == 'f3')
     {
      if   (ev.ctrlKey)
           {
            mx = ev.clientX; my = ev.clientY;
            window.status = 'Current x = '+mx+'px   Current y = '+my+'px   Change in x = '+(mx-ox)+'px   Change in y = '+(my-oy)+'px   '+s0;
            ox = mx; oy = my;
           }
      else {window.status = s2;}
     }
else {;}
}

// new window pop-up|du:destination url|wn:name|wp:pop-up parameters 
function OpenWnPopUp(du)
{
var newleft = document.body.clientWidth-sw; 
var newtop  = document.body.clientHeight;
wp = "width=800,height="+(sh-256)+",left=(newleft-1),top=newtop,menubar=1,toolbar=0,location=1,scrollbars=1,status=1";
wn = window.open(du, 'wn', wp); window.status=' ';
}
function CloseWnPopUp()
{
wn.close(); window.status=' ';
}

// password|pw:password
function Password(pw)
{
pc = '';
nd = new Date();
ms = nd.getMinutes(); if (ms < 10) {ms = '0'+ms;}
ss = nd.getSeconds(); if (ss < 10) {ss = '0'+ss;}
pw = pw.substring(0,8);
if      (pw == "zzzzzzzz") {document.location.href = "query.htm"+"?https://learningenglish.portal:UserID"+ms+ss;} // internal
else if (pw == "4MTR2CLE") {document.location.href = "query.htm"+"?https://learningenglish.portal:Meteor";}   // 22072002-22072003
else if (pw == "4TMC2CLE") {document.location.href = "query.htm"+"https://learningenglish.portal:Temic";}     // 01092002-31122003
else if (pw == "UR142N8C") {document.location.href = "query.htm"+"?https://learningenglish.portal:UserID"+ms+ss;} // normal 
else                       {document.location.href = "reject.htm";}
}

// reveal horizontally|nx:new x|ra:reveal array|ro:reveal object|rt:reveal timer|wt:wait time   ok
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);}
}

// mouseover say it|ai:audio id|t1:text 1|t2:text 2|t3:text 3|t4:text 4|t5:text 5|t6:text 6
function SayIt(ai)
{ 
so = document.getElementById('flpl');
var t1 = '<object width="0" height="0"  id="ttsx">';
var t2 = '<embed width="0" height="0" name="ttsx" play="true" loop="false" swliveconnect="true" src='+ai+' type="application/x-shockwave-flash"></embed >';
var t3 = '<param name="movie" value='+ai+'>'; 
var t4 = '<param name="play"  value="true">';
var t5 = '<param name="loop"  value="false">';
var t6 = '</object>';  
so.innerHTML = t1+t2+t3+t4+t5+t6;
}

// mouseover say word|nn:navigator name|pi:player id  not used as SayIt works better
function SayWord(word)
{
if   (nn.indexOf('Explorer') > -1) {pi = document.getElementById(word);}
else {pi = document.embeds[word];}
pi.Play();
}

// prepare shop data|fa:form action|fd:form data|pf:pay form|to:text object|not used
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+' ::: Security: '+pf.secx.value;
fa = '<form class="pyf" method="post" enctype="text/plain" action="mailto:'+cs+'?subject='+cn+' Order&body='+fd+'" name="sale" id="sale">';
to = document.getElementById('fmac'); to.innerHTML = fa;
}

// show 0x0 video audio|ff:flash file|t1:text 1|t2:text 2|t3:text 3
function Show0x0Video(ff)
{
var t1 = '<embed src="flvplayer.swf"   width="0"   height="0" wmode="opaque" bgcolor="000000" allowscriptaccess="always" allowfullscreen="false" ';
var t2 = 'flashvars="icons=false&displaywidth=0&displayheight=0';
var t3 = '&backcolor=000000&controlbar=none&usefullscreen=false&autostart=true&file='+ff+'" />';
document.write(t1+t2+t3);
}

// show 160x120 small flv|cc:control colour|ff:flash file|hc:hover colour|t1:text 1|t2:text 2|t3:text 3
function Show160x120FLV(ff, cc, hc)
{
document.write('<table class="fsv"><tr><td>');
var t1 = '<embed src="flvplayer.swf" width="160" height="120" wmode="opaque" bgcolor="000000" allowscriptaccess="always" allowfullscreen="false" ';
var t2 = 'flashvars="icons=false&image=http://www.designarcade.co.uk/chhvtv11.jpg';
var t3 = '&backcolor=000000&controlbar=none&autostart=false&file='+ff+'" />';
document.write(t1+t2+t3);
document.write('</td></tr></table>');
}

// show 160x120 small jpg slideshow|t1:text 1|t2:text 2|t3:text 3|xm:xml playlist file
function Show160x120jpg(xm)
{
document.write('<table class="fsv"><tr><td>');
var t1 = '<embed src="pxplayer.swf" width="160" height="120" menu="false" wmode="opaque" bgcolor="000000" allowfullscreen="false" ';
var t2 = 'flashvars="showicons=false&shownavigation=false';
var t3 = '&transition=fade&rotatetime=2&shuffle=false&repeat=list&autostart=false&file='+xm+'" />';
document.write(t1+t2+t3);
document.write('</td></tr></table>');
}

// show 160x120 small video|ff:flash file|t1:text 1|t2:text 2|t3:text 3
function Show160x120Video(ff)
{
document.write('<table class="fsv"><tr><td>');
var t1 = '<embed src="flvplayer.swf" width="160" height="120" wmode="opaque" bgcolor="000000" allowscriptaccess="always" allowfullscreen="false" ';
var t2 = 'flashvars="icons=false&image=http://www.designarcade.co.uk/chhvtv11.jpg';
var t3 = '&backcolor=000000&controlbar=none&autostart=false&file='+ff+'" />';
document.write(t1+t2+t3);
document.write('</td></tr></table>');
}

// show 320x240 flash video|bg:background colour|ff:flash file|fg:foreground colour|hv:hover colour|t1:text 1|t2:text 2|t3:text 3|tv:ch tv logo
function Show320x240FV(bg, ff, fg, hv, ch)
{
document.write('<table class="fmv"><tr><td>');
var t1 = '<embed src="flplayer.swf" width="322" height="261" menu="false" wmode="opaque" bgcolor="000000" allowfullscreen="false" ';
var t2 = 'flashvars="icons=false&image=http://www.designarcade.co.uk/'+ch+'';
var t3 = '&backcolor='+bg+'&frontcolor='+fg+'&lightcolor='+hv+'&autostart=false&file='+ff+'" />';
document.write(t1+t2+t3);
document.write('</td></tr></table>');
}

// show 320x240 medium flv|cc:control colour|ff:flash file|hc:hover colour|t1:text 1|t2:text 2|t3:text 3
function Show320x240flv(ff, cc, hc)
{
document.write('<table class="fmv"><tr><td>');
var t1 = '<embed src="flplayer.swf" width="322" height="261" menu="false" wmode="opaque" bgcolor="000000" allowfullscreen="false" ';
var t2 = 'flashvars="&icons=false&image=http://www.designarcade.co.uk/chhvtv21.jpg';
var t3 = '&backcolor=000000&frontcolor='+cc+'&lightcolor='+hc+'&autostart=false&file='+ff+'" />';
document.write(t1+t2+t3);
document.write('</td></tr></table>');
}

// show 320x240 medium video|ff:flash file|t1:text 1|t2:text 2|t3:text 3 ?
function Show320x240Video(ff)
{
document.write('<table class="fmv"><tr><td>');
var t1 = '<embed src="flvplayer.swf" width="320" height="260" wmode="opaque" bgcolor="000000" allowscriptaccess="always" allowfullscreen="false" ';
var t2 = 'flashvars="&icons=false&image=http://www.designarcade.co.uk/chhvtv21.jpg';
var t3 = '&backcolor=000000&frontcolor=6495ED&lightcolor=00FFFF&autostart=false&file='+ff+'" />';
document.write(t1+t2+t3);
document.write('</td></tr></table>');
}

// show div|di:div id
function ShowDiv(di)
{
document.getElementById(di).style.visibility = 'visible';
}

// show mute|si:span id
function ShowMute(si)
{	
document.write("music-off");
}

// show pop-up item photo|di:div id
function ShowPIP(di)
{
document.getElementById(di).style.left = (document.body.clientWidth-496)+'px';
document.getElementById(di).style.top  = (document.body.scrollTop-yp+1)+'px';
document.getElementById(di).style.visibility = 'visible'; window.status = sE;
}

// hide pop-up item photo|di:div id
function HidePIP(di)
{
document.getElementById(di).style.visibility = 'hidden';
document.getElementById(di).style.left = '-600px';
document.getElementById(di).style.top  = '0px'; window.status = s2;
}

// show pop-up photo div|d1:div 1  delete?
function ShowPupDiv(d1)
{
document.getElementById(d1).style.left = (document.body.clientWidth-488)+'px';
document.getElementById(d1).style.top  = (document.body.scrollTop)+'px';
document.getElementById(d1).style.visibility = 'visible';
}

// show pop-up menu help|dv:div id ok
function ShowPMH(di)
{
if   (document.body.clientWidth > 1023)
     {
     document.getElementById(di).style.left = (document.body.clientWidth-379)+'px';
     document.getElementById(di).style.top  = (document.body.scrollTop+1)+'px';
     document.getElementById(di).style.visibility = 'visible'; window.status = s8;
     }
else {;}
}

// hide pop-up menu help|di:div id
function HidePMH(di)
{
document.getElementById(di).style.visibility = 'hidden';
document.getElementById(di).style.left = '-600px';
document.getElementById(di).style.top  = '0px'; window.status = s2;
}

// show pop-up site help|di:div id   ok
function ShowPSH(di)
{
if   (document.body.clientWidth > 1023)
     {
     document.getElementById(di).style.left = (document.body.clientWidth-379)+'px';
     document.getElementById(di).style.top  = (document.body.scrollTop+1)+'px';
     document.getElementById(di).style.visibility = 'visible'; window.status = s8;
     }
else {;}
}

// hide pop-up site help|di:div id   ok
function HidePSH(di)
{
document.getElementById(di).style.visibility = 'hidden';
document.getElementById(di).style.left = '-600px';
document.getElementById(di).style.top  = '0px'; window.status = s2;
}

// show pop-up help|di:div id   ok
function ShowPUH(di)
{
document.getElementById(di).style.left = (document.body.clientWidth-379)+'px';
document.getElementById(di).style.top  = (document.body.scrollTop+1)+'px';
document.getElementById(di).style.visibility = 'visible'; window.status = sE;
}

// hide pop-up help|di:div id   ok
function HidePUH(di)
{
document.getElementById(di).style.visibility = 'hidden';
document.getElementById(di).style.left = '-600px';
document.getElementById(di).style.top  = '0px'; window.status = s2;
}

// show pop-up photo|di:div id   ok
function ShowPUP(di)
{
document.getElementById(di).style.left = (document.body.clientWidth-485)+'px';
document.getElementById(di).style.top  = (document.body.scrollTop+1)+'px';
document.getElementById(di).style.visibility = 'visible'; window.status = sE;
}

// hide pop-up photo|di:div id   ok
function HidePUP(di)
{
document.getElementById(di).style.visibility = 'hidden';
document.getElementById(di).style.left = '-600px';
document.getElementById(di).style.top  = '0px'; window.status = s2;
}

// show pop-up returns|di:div id
function ShowPUR(di)
{
document.getElementById(di).style.left = (document.body.clientWidth-379)+'px';
document.getElementById(di).style.top  = (document.body.scrollTop+1)+'px';
document.getElementById(di).style.visibility = 'visible'; window.status = s2;
}

// hide pop-up returns|di:div id
function HidePUR(di)
{
document.getElementById(di).style.visibility = 'hidden';
document.getElementById(di).style.left = '-600px';
document.getElementById(di).style.top  = '0px'; window.status = s2;
}

// show shared item|di:div id|yp:y position
function ShowSHI(di)
{
document.getElementById(di).style.visibility = 'visible';
document.getElementById(di).style.left = 11+'px';
document.getElementById(di).style.top = (document.body.scrollTop+yp)+'px';
}

// 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()', 200);
}

// auto-start reveal horizontally|ri:reveal object id|ro:reveal object|rt:reveal timer|wt:wait time   ok
function StartRevealX(ri, wt)
{
ro = document.getElementById(ri); rt = setTimeout('RevealX()', wt);
}

// stop flash clip|ai:audio clip id|ng:navigator|po:player object|ps:play state
function StopFlash()
{
//var ai = document.getElementById('opera1.swf'); ai.StopPlay();
}

// 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')
     {
     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')
     {
     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')
     {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')
     {
      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.';}
}

// av text
a0 = '';
a1 = 'To play audio and video, click the <span class=\'txh\'>play</span> button. The button will change to <span class=\'txh\'>stop</span>.';
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.';
a3 = 'If you can\'t hear anything, make sure that the volume is not off, or set very low. Click the two <span class=\'txh\'>volume</span> buttons to adjust the volume.<br />Double-click the speaker icon in the taskbar to see all the volume controls.';
a4 = 'Audio, video, and interactive effects, can only work when the page has <span class=\'txh\'>completely downloaded</span>.';

// browser text
b0 = '<table class=\'hds\' summary=\'\'><tr><td class=\'hdl\'>COPYRIGHT</td><td class=\'hdr\'></td</tr></table>';
b1 = 'Modern browsers render these pages correctly, and audio and video plays automatically, or on demand, transparently, using an integrated Flash player.  Your browser is <script type=\'text/javascript\'>document.write(nn)</script>, or a derivative.';
b2 = '';

// copyright text
c0 = 'The page content is Cherry Heaven Limited copyright, 2003-'+yr+'. Product names reffered to are registered trademarks.';
c1 = 'The Copyright Act 1988 generally protects the rights of authors, composers, and artists, until 70 years after their death. Nearly every country has agreed to respect international copyright.';
c2 = 'The Copyright Act 1988 says that you cannot copy, redistribute, perform, broadcast, translate, or adapt, original literary, musical, or artistic works, without the owner\'s permission. <span class=\'txe\'>So don\'t copy this design, text, audio, or video.</span>';

// delivery text   only using d0, d1, and d2?
d0 = 'If the delivery address is within the UK mainland, you can shop here now: on line or by phone with a card, or by post with a cheque. The prices include UK VAT at 17.5% and insured door-to-door delivery: <span class=\'txe\'>there are no other charges.</span>';
d1 = 'If the delivery address is outside the UK mainland, but still within the EU, there\'s an additional distance-related delivery charge. So mail or call first.';
d2 = 'If the delivery address and the invoice address are both outside the EU, you don\'t pay VAT so the prices will be 17.5% less. But there\'s an additional distance-related delivery charge. So mail or call first.';
d3 = 'You can shop here now: on line or by phone with a card, or by post with a cheque. The prices include UK VAT at 17.5% and insured door-to-door delivery: <span class=\'txe\'>there are no other charges.</span> If the invoice address is not in the EU, you don\'t pay the VAT: so the prices will be 17.5% less.';
d3 = 'If the delivery address is within the UK mainland, there\'ll be an extra distance-related delivery charge. So mail or call first with your delivery address and shopping list.';
d4 = 'If the delivery address is outside the UK mainland, prices include UK VAT at 17.5% and insured door-to-door delivery: <span class=\'txe\'>there are no other charges.</span> If the invoice address is outside the EU, you don\'t pay VAT: so the prices will be 17.5% less.';
d5 = 'Generally, prices include UK mainland delivery. However, very low-cost items like these can\'t be posted free, so are not in the on-line shop.';
d6 = 'You can shop here now: on line or by phone with a card, by post with a cheque, or by phone with a direct bank transfer.<br /><span class=\'txh\'>The prices include free door-to-door delivery: there\'s no VAT on children\'s clothes, and there are no other charges.</span>';
d7 = 'If you already know which kiln you want, and don\'t need to read more, use the <span class="mof">shop</span> link below the menu bar near the top of the page.';

// educational discount text 
e0 = 'For schools, colleges, universities, resellers, retailers, arts centres, ceramic cafes, and course providers, there are lower prices for kilns, materials, tools, and tumblers. To order, you don\'t need to set up an account: just mail or call.';
e1 = 'For schools, colleges, universities, resellers, retailers, and catalogues, there are lower prices. To order, you don\'t need to set up an account: just mail or call.';

// form text
f0 = 'This order form uses standards-compliant internet technologies, and works reliably. However, if, when you click the send button, your browser generates an error message, please mail or call to confirm your order.';
f1 = '<form class=\'pyf\' method=\'post\' action=\'http://www.designarcade.co.uk/formmail.php\' name=\'sale\' id=\'sale\'>';
f2 = '<form class=\'pyf\' method=\'post\' action=\'http://www.designarcade.co.uk/formmail.php\' name=\'wish\' id=\'wish\'>';
f3 = 'This form uses standards-compliant internet technologies, and works reliably. However, if, when you click the send button, your browser generates an error message, please mail or call to confirm your subscription.';

// gift text
g0 = '';
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.';

// holiday text
h0 = '';
h1 = '';
h2 = '<p class=\'txj\'><span class=\'txh\'>We\'ll be closed from 10:00 on Wednesday 21st October until 10:00 Friday 30th October, although there will be someone here for general enquiries from 9:00 to 17:00.<br />On-line shop orders will be despatched on our return. Product details, prices, and email contact are on the appropriate internet pages. Cherry Heaven, our shop in Corfe Castle village, will re-open Friday 30th October. Thanks.<\span></p><br />';
h3 = '';

// link text
l0 = 'the on-line shop';
l1 = 'this is: ';
l2 = '\'s gift';
l3 = 'try: ';
l4 = 'previous';
l5 = 'shop on line at: ';
l6 = ' or ';
l7 = 'synchronise: ';
l8 = 'choose:';
l9 = 'new';

// object class id text
o0 = '';
o1 = 'clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6'; // media player

// price text
p0 = '';
p1 = '';
p2 = '';

// status text
s0 = 'Click anywhere, to clear this status message.'; // ok
s1 = 'Audio, video, and interactive effects, can only work when the page has completely downloaded.';
s2 = 'This page is ready for you to use.'; // ok
s3 = 'Password accepted and gate allocated. This page is ready for you to use.';
s4 = 'Click, to add this to your list of favourites.';
s5 = 'Click, to mail about anything on this page.'; // ok
s6 = 'Click, to look at this page.';
s7 = 'Click the link below the menu bar to look at this page.';
s8 = 'Click, to transfer to this resource.';  // ok
s9 = 'Click the link above the menu bar to transfer to this resource.'; // ok
sA = 'Click to play this audio or video.';
sB = 'Click to stop this audio or video.';
sC = 'The phone number is at the top of this page.';
sD = 'Click the link below the menu bar to stop the audio.';
sE = 'This is a mouse-over link, so doesn\'t need to be clicked.'; // ok
sF = 'Cherry Heaven Safe Shopping.';
sG = 'To play or pause the programme, click the Cherry Heaven TV player.';

// text
t0 = '';
t1 = 'This internet page has been designed to print on A4 paper in a landscape format. However, before printing, check that the margins in your browser\'s Page Setup are not greater than the recommended European standard: top 15mm, right 30mm, bottom 20mm, and left 30mm. Don\'t print headers or footers.';
t2 = 'The standard margins create 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.';

// user text
u0 = '';
u1 = 'As with most computer applications, the menu bar is near the top of the page. To navigate, click the links: they\'ll change colour before you click. Click links above the menu bar to leave this resource and open new ones. Click links below the menu bar to look at other pages, shop on line, or mail Cherry Heaven. For example: click the shop link, top right, to look at the on-line shop. From any page, click start to return to this front page.';
u2 = 'In Internet Explorer, you can add this page to your favourites by clicking the net address, on the left above the menu bar near the top of the page. In other browsers, bookmark it from the browser\'s menu.';

// web list
w0 = '';
w1 = 'Electric Kilns, Paragon Kilns, MiniKiln, UltraLite, Electric Tumblers, Art Clay, Glass Clay, Accent Gold, The Kitiki Studio, and others.';
w2 = 'Cherry Heaven, i-Block, i Duck, Fat Bear, Ghost Radar, Sushi Disk, USB Squid, and other products, made or marketed by Solid Alliance';

//  designarcade.co.uk
//  shared pop-ups for net resources

//  shared pop-ups video
//  iixx:image code            xxnx:image source 
var ch1s = new Image(160,120); ch1s.src='http://www.cherryheaven.co.uk/chshop11.jpg'; // snap:cherry heaven shop

var sk1s = new Image(160,120); sk1s.src='http://www.designarcade.co.uk/socket11.jpg';  // snap:13a double socket
var tv2s = new Image(160,130); tv2s.src='http://www.designarcade.co.uk/chplay21.jpg';  // snap:cherry heaven tv player in black

var aa1s = new Image(160,120); aa1s.src='http://www.luxurycandles.co.uk/aaaxxx11.jpg'; // snap:aaa battery
var cr1s = new Image(160,120); cr1s.src='http://www.luxurycandles.co.uk/cr203211.jpg'; // snap:cr2032 battery

//  shxxxx:shared pop-up heading
//  sixxxx:shared pop-up image
//  stxxxx:shared pop-up text

var sh0001 = '<p   class="puh">CHERRY HEAVEN TV</p>';
var si0001 = '<img class="puc" src="'+tv2s.src+'" alt="Cherry Heaven TV Player" />';
var st0001 = '<p   class="put">Cherry Heaven makes on-line radio and tv programmes. To play, pause, or stop the player, or adjust the volume, click the controls.</p><p class="put">The player has already been downloaded and embedded in this page, so it\'ll work on any computer in any country.</p><p class="put">It\'s only saved temporarily on your computer: as soon as you close your browser, it\'ll be deleted.</p><p class="put">It doesn\'t contain any viruses, spyware, adware, or key loggers, nor does it affect any other programme.</p>';

var sh0002 = '<p   class="puh">UK MAINS SOCKETS</p>';
var si0002 = '<img class="pui" src="'+sk1s.src+'" alt="13A Mains Socket" />';
var st0002 = '<p   class="put">UK mains sockets are usually on a 30A ring, with each outlet limited to 13A by the plug fuse.</p><p class="put">As the average voltage is 240V, the maximum wattage from one socket is 3120W, or 3.12kW.</p><p class="put">Don\'t overload the ring by connecting too many other appliances, particularly ones that get hot.</p>';

var sh0003 = '<p   class="puh">UK 230V MAINS VOLTAGE</p>';
var si0003 = '';
var st0003 = '<p   class="put">Why is UK equipment rated at 230V when the widely-held belief is that UK voltage is 240? Here\'s the story:</p><br /><p class="put">Before 2003, UK mains voltage was generally assumed to be 240 and European to be 220.</p><p class="put">The EU planned to harmonise the voltage to 230 but the implementation costs were too high for no real benefit.</p><p class="put">To appear harmonised, the <span class=\'txh\'>nominal</span> voltage was changed to 230, but within allowed actual limits of 207 to 253.</p><br /><p class="put">Despite this, UK mains voltage still has a reliable average of 240, which is used in calculations. For example:</p><p class="put">A regular UK 240 Volt 13 Amp mains socket can deliver 240 x 13 Watts, or 3120 Watts, usually called 3.12kW.</p>';

var sh0004 = '<p   class="puh">WHERE NOW?</p>';
var si0004 = '';
var st0004 = '<p   class="put">The <span class="mnb">menu bar</span> is near the top of the page. To navigate, click the <span class="mof">links</span>: they\'ll <span class="mon">change colour</span> just before you click.</p><p class="put">Click <span class="mof">links</span> above the menu bar to leave this resource and open new ones.<br />Click <span class="mof">links</span> below the menu bar to transfer to other pages, shop on line, or mail questions.<br />Some <span class="mof">links</span> are context-aware: click them to see new links for new pages.</p><p class="put">From any other page, click the <span class="mof">main-menu</span> link to return to this front page.</p><p class="put"><span class="txh">If the <span class="mof">mail</span> link doesn\'t open your normal email program automatically, write later to '+ce+'.</span></p><p class="put">There are often prompts in the browser\'s status bar, near the bottom of the window. Unfortunately, most browsers prevent me writing to the status bar by default, although you can enable this useful feature.</p><p class="put">Within the text, the mouse-over <span class="puh">coloured</span> words generate helpful pop-ups. You don\'t need to click the text. Try one now?</p>';

var sh0005 = '<p   class="puh">CONSUMER PROTECTION</p>';
var si0005 = '';
var st0005 = '<p   class="put">Cherry Heaven makes every effort to represent products accurately.</p><p class="put">If a product is faulty or unsatisfactory, you can ask to return it within seven days, although at your own cost.</p><p class="put">It must arrive here in its undamaged original packing and in perfect condition, so that it can be resold.</p><p class="put">By completing the delivery and payment form below, you will have agreed to this consumer protection provision.</p><p class="put">This returns policy excludes products that have been specially made or ordered for you.</p>';

var sh0006 = '<p   class="puh">CE MARK</p>';
var si0006 = '';
var st0006 = '<p   class="put">A CE mark is a manufacturer\'s declaration that a product satisfies EU health, safety, and environmental protection legislation. It\'s not a quality mark: it\'s about safety.</p><p class="put">It must be fixed to any product in an EU-defined category.</p><p class="put">EU countries can\'t prevent, prohibit, or restrict the sale or use of a CE-marked product.</p><p class="put">Since, without a CE mark, a product can\'t be sold or used within the EU, it can be regarded as the product\'s trade passport for Europe.</p><br /><p class="put">CE is the abbreviation for the French phrase Conformité Européene: European Conformity.</p><p class="put">CE is not an acronym. Acronyms, such as UNICEF, LASER, and NATO, are pronounced as words, not as a sequence of letters.</p>';

var sh0007 = '<p   class="puh">WHERE NOW?</p>';
var si0007 = '';
var st0007 = '<p   class="put">The <span class="mnb">menu bar</span> is near the top of the page. To navigate, click the <span class="mof">links</span>: they\'ll <span class="mon">change colour</span> just before you click.</p><p class="put">Click <span class="mof">links</span> above the menu bar to leave this resource and open new ones.<br />Click <span class="mof">links</span> below the menu bar to transfer to other pages, shop on line, or mail questions.<br />Some <span class="mof">links</span> are context-aware: click them to see new links for new pages.</p><p class="put">From any page, click <span class="mof">main-menu</span> to return to this front page.</p><p class="put">If the <span class="mof">mail</span> link doesn\'t open your normal email program automatically, write later to '+ce+'.</p><p class="put">There are often prompts in the browser\'s status bar, near the bottom of the window. Unfortunately, most browsers prevent me writing to the status bar by default, although you can enable this useful feature.</p>';

var sh0008 = '<p   class="puh">PASSWORD HELP</p>';
var si0008 = '';
var st0008 = '<p   class="put">Type your password in the box and click the button under the box.</p><p class="put">You must <span class=\'txe\'>click</span> the button. The password will <span class=\'txe\'>not</span> work if you press the <span class=\'txh\'>ENTER/RETURN</span> key.</p><p class="put">Type carefully, because password PASS4567 is not the same as password pass4567.</p>';

var sh0009 = '<p   class="puh">THE DATA PROTECTION ACT 1998</p>';
var si0009 = '';
var st0009 = '<p   class="put">The 1998 Data Protection Act became law in March 2000, replacing, and building on, the 1984 act.</p><p class="put">Personal data must be collected fairly and lawfully, and can only be kept for a time appropriate for the intended purpose. It is your legal right to be able to check that your data is accurate.</p><p class="put">Personal data must be reasonably protected from loss, theft, corruption, and unauthorised or unlawful access.</p>';

var sh0010 = '<p   class="puh">CHERRY HEAVEN</p>';
var si0010 = '';
var st0010 = '<p   class="put">Cherry Heaven is a shop in Corfe Castle village, in Dorset, near the National Trust Estate. It sells a diverse selection of essentials and luxuries.</p><br /><p class="put">In England, phrases such as cherry-blossom time, cherry heaven, to cherry pick, in cherry condition, my cherry pie, and a bowl of cherries, all mean being best, first, or new.</p><p class="put">In China, cherry blossoms symbolise feminine beauty and sexuality. In Japan, they represent life\'s brief pleasures.</p><p class="put">Cherries have been grown extensively in the UK, Western Europe, Asia, and the Far East. There are more than 600 varieties, derived from two original types: sweet or sour.</p><p class="put">Cherries have a very short flowering period but produce a generous and luxurious display. The fruit are some of the earliest to ripen.</p><br /><p class="put">All cherries contain melatonin, important for the immune system, and the pigment includes anthocyanins, powerful antioxidants which can reduce pain and inflammation.</p>';

var sh0011 = '<p   class="puh">TEMPERATURE</p>';
var si0011 = '';
var st0011 = '<p   class="put">The three most popular temperature scales are Celsius, Fahrenheit, and Kelvin. The everyday descriptions are:</p><p class="put">The Celsius temperature scale: water freezes at 0&#176;C and boils at 100&#176;C. Celsius is now the international standard, having replaced the equivalent Centigrade in 1948.</p><p class="put">The Fahrenheit temperature scale: water freezes at 32&#176;C and boils at 212&#176;C. Fahrenheit is commonly used in the US, and sometimes conversationally in the UK.</p><p class="put">The Kelvin temperature scale: water freezes at 273.15K and boils at 373.15K. Kelvin is not measured in degrees Kelvin, just Kelvin: so it\'s written K, not &#176;K.</p><p class="put">At absolute zero, there\'s a theoretical unattainable zero thermal energy. It\'s defined as 0K, or -273.15&#176;C. Celsius and Kelvin are both used in scientific work.</p><br /><p class="put">To convert Celsius to Fahreneit, multiply by 9, divide by 5, and add 32.<br />To convert Fahrenheit to Celsius, subtract 32, divide by 9, and multiply by 5.</p>';

var sh0012 = '<p   class="puh">ELECTRICITY</p>';
var si0012 = '';
var st0012 = '<p   class="put">There are three commonly-used electrical measurements: Volts, for example 230V, is the pushing force. Amps, for example 5A, is the amount being pushed. And Watts, for example 60W, is the power.</p><p class="put">They\'re related by a simple formula Watts = Volts x Amps, usually written as W = VI.<br />A 230V 13A socket can deliver 230 x 13 Watts, or 2990W, usually written as 2.99kW where a kiloWatt is a thousand Watts.</p><br /><p class="put">It\'s interesting that a 10W radio will fill the room, a 100W light bulb will light the room, and a 1000W fan heater will warm the room. So, as we pay for electricity by the kilowatt, it\'s heating devices that cost the most to run. Which is why you get a big bill if you leave the immersion heater on.</p><p class="put">Sadly, riding an excercise bike only generates about 60W of light so, although the exercise keeps you warm, it\'s hard to be energy-independent. Especially as most of the light bulb\'s energy is heat rather than light.</p>';

var sh0013 = '<p   class="puh">MAIL</p>';
var si0013 = '';
var st0013 = '<p   class="put">To mail now, use the <span class=\"mon\">highlighted link</span> below the menu bar near the top of the page. If it doesn\'t open your normal email program, write to '+ce+'.</p>';

var sh0014 = '<p   class="puh">DISTRIBUTOR</p>';
var si0014 = '';
var st0014 = '<p   class="put">A distributor makes a substantial financial and marketing commitment to a particular manufacturer to promote their products, usually within a geographical region.</p><p class="put">Although some distributors sell directly to customers at a recommended retail price, their prime function is to supply resellers who have made a small but regular commitment.</p><p class="put">Distributors should understand the products, and provide technical support, spare parts, and repair options.</p><br /><p class="put">It\'s not the job of a distributor to try to become the main reseller and prevent real resellers from developing their businesses.</p>';

var sh0015 = '<p   class="puh">TRANSFER NOW TO CHERRY HEAVEN?</p>';
var si0015 = '<img class="pui" src="'+ch1s.src+'" alt="Cherry Heaven Shop" />';
var st0015 = '<p   class="put">Cherry Heaven is a shop in Corfe Castle village, in Dorset, near the National Trust Estate. It sells a diverse selection of essentials and luxuries for you, your family, and your home. To transfer now, use the <span class=\"mon\">highlighted link</span>.</p>';

var sh0017 = '<p   class="puh">THE CR2032 BATTERY</p>';
var si0017 = '<img class="pui" src="'+cr1s.src+'" alt="The CR2032 Battery" />';
var st0017 = '<p   class="put">Lithium cells, such as the CR2032, perform up to seven times better than standard alkaline batteries. They work over a wide temperature range and have a long shelf life.</p><p class="put">In the number 2032, the first two digits, 20, mean that the cell is 20mm in diameter: the last two digits, 32, mean that the cell is 3.2mm thick.</p>';

var sh0018 = '<p   class="puh">THE AAA BATTERY</p>';
var si0018 = '<img class="pui" src="'+aa1s.src+'" alt="The AAA Battery" />';
var st0018 = '<p   class="put">Alkaline cells, such as the AAA, perform up to seven times better than standard zinc-carbon batteries. They work over a wide temperature range and have a long shelf life.</p>';

var sh0019 = '<p   class="puh">TRANSFER NOW TO CALL AN ANGEL?</p>';
var si0019 = '';
var st0019 = '<p   class="put">Call An Angel is a collection of interesting shopping ideas. To transfer now, use the <span class=\"mon\">highlighted link</span>.</p>';

