// designarcade.co.uk

// drifters
var db = new Image(56, 8); db.src = 'drbl.gif'; // drifter:blue   
var dg = new Image(56, 8); dg.src = 'drgr.gif'; // drifter:grey

// 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 cd = ''; // client description
var ce = ''; // client email
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 da = ''; // day array
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 ei = ''; // email link id
var en = ''; // end clicker
var es = ''; // email subject
var ev = ''; // event

var fa = ''; // form action
var fc =  0; // fragment counter
var fd = ''; // form data
var ff = ''; // flash file
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 gp = ''; // gallery pop-up parameters

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 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
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 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
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 ps = ''; // play state
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 sa = ''; // shared address
var sb = ''; // substring
var sc = ''; // shared call
var se = ''; // shared email
var sf = ''; // sale form
var si = ''; // span id
var sn = ''; // shared name
var sl = ''; // shopping list
var so = ''; // show object
var sp = ''; // send pay form
var ss =  0; // seconds
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 ue = ''; // user's email
var ui = ''; // url id

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

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 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
var yr = ''; // year
var ys =  0; // y step
var yt =  0; // y time

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|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 477137';
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+' '+yr;

// identify navigator|nc:navigator code|ng:navigator|nn:navigator name|nu:navigator user agent
{
if      (nn.indexOf('Explorer') > -1 && nu.indexOf('MSIE 7') > -1 && nu.indexOf('MSN') < 0)
        {nc = 'e7'; ng = 'av ok'; nn = 'Internet Explorer 7';}
else 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 8') > -1)
	  {nc = 'm8'; ng = 'av ok'; nn = 'Internet Explorer 6, included with MSN 8';}
else if (nn.indexOf('Explorer') > -1 && nu.indexOf('MSN 6.1') > -1)
	  {nc = 'm7'; ng = 'av ok'; nn = 'Internet Explorer 6, included with MSN 7';}
else if (nn.indexOf('Explorer') > -1 && nu.indexOf('MSN 6') > -1)
	  {nc = 'm6'; ng = 'av ok'; 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 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') < 0)
	  {nc = 'z1'; ng = 'no av'; nn = 'Mozilla 1';}
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 (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";
        }
        tp =  tp+",menubar=0,toolbar=0,scrollbars=0,status=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 == 'e7' || 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 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 {;}
}

// 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') {pf.submit(); HideDiv('send');}
}

// 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') {wf.submit(); HideDiv('send');}
}

// 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;
}

// click link to gate page|ms:minutes|nd:new date|ng:navigator|pg:page link|ss:seconds
function GoToGate(pg)
{
document.location.href = pg; window.status = ' ';
}


// click link to gate page|ms:minutes|nd:new date|ng:navigator|pg:page link|ss:seconds
function GoToDelete(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 {;}
}

// 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';
}

// hide pop-up div|di:div id
function HidePupDiv(di)
{
document.getElementById(di).style.visibility = 'hidden';
document.getElementById(di).style.left = '-600px';
document.getElementById(di).style.top  = '0px';
}

// internet explorer cursor xy position|mx:mouse x|my:mouse y|nc:navigator code|ox:old x|oy:old y
function IECursorXY(event)
{
if   (nc == 'e6' || nc == 'e7' || nc == 'm6' || nc == 'm8')
     {
      if    (window.event.ctrlKey)
            {
             mx = window.event.clientX; my = window.event.clientY;
             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 {;}
}

// 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; 
     }
}

// mozilla cursor xy position|ev:event|mx:mouse x|my:mouse y|ox:old x|oy:old y
function MZCursorXY(ev)
{
if   (nc == 'n6' || nc == 'n7' || nc == 'z1' || nc == 'f0' || nc == 'f1' || nc == 'f2')
     {
      if   (ev.ctrlKey)
           {
            mx = ev.clientX; my = ev.clientY;
            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 {;}
}

// gallery pop-up|cn:client name|cu:client url|gp:gallery-pop-up param|i#:image|ph:pop-up heading|pn:pop-up name|t#:text
function OpenGlPopUp(ph, i1, t1, t2)
{
pn = window.open('', 'pn', gp); window.status='To close the pop-up, move the mouse.';
pn.document.write("<html><head><title>"+cn+"</title>");
pn.document.write("<link href='http://www.designarcade.co.uk/sharedss.css' type='text/css' rel='stylesheet'>");
pn.document.write("<link href='clientss.css' type='text/css' rel='stylesheet'></head>");
pn.document.write("<body class='pop'>");
pn.document.write("<table class='phs'><tr><td class='phl'>"+ph+"</td></tr></table>");
pn.document.write("<table class='ppt' summary=''><tr><td class='pgp'><img class='gpn' src='"+i1+"'></td></tr></table>");
pn.document.write("<p class='ptj'>"+t1+"</p><p class='ptj'>"+t2+"</p></body></html>");
}
function CloseGlPopUp()
{
pn.close(); window.status=' ';
}

// portrait pop-up|cn:client name|cu:client url|i#:image|ph:pop-up heading|pn:pop-up name|pp:portrait-pop-up param|t#:text
function OpenPtPopUp(ph, i1, t1, t2, t3)
{
pn = window.open('', 'pn', pp); window.status='To close the pop-up, move the mouse.';
pn.document.write("<html><head><title>"+cn+"</title>");
pn.document.write("<link href='http://www.designarcade.co.uk/sharedss.css' type='text/css' rel='stylesheet'>");
pn.document.write("<link href='clientss.css' type='text/css' rel='stylesheet'></head>");
pn.document.write("<body class='pop'>");
pn.document.write("<table class='phs'><tr><td class='phl'>"+ph+"</td></tr></table>");
pn.document.write("<table class='ppt' summary=''><tr><td class='ppt'><img class='ppt' src='"+i1+"'></td></tr></table>");
pn.document.write("<p class='ptj'>"+t1+"</p><p class='ptj'>"+t2+"</p><p class='ptj'>"+t3+"</p></body></html>");
}
function ClosePtPopUp()
{
pn.close(); window.status=' ';
}

// text pop-up|cn:client name|cu:client url|ph:pop-up heading|pn:pop-up name|t#:text|tp:text-pop-up param
function OpenTxPopUp(ph, t1, t2, t3)
{
pn = window.open('', 'pn', tp); window.status='To close the pop-up, move the mouse.';
pn.document.write("<html><head><title>"+cn+"</title>");
pn.document.write("<link href='http://www.designarcade.co.uk/sharedss.css' type='text/css' rel='stylesheet'>");
pn.document.write("<link href='clientss.css' type='text/css' rel='stylesheet'></head>");
pn.document.write("<body class='pop'>");
pn.document.write("<table class='phs'><tr><td class='phl'>"+ph+"</td></tr></table>");
pn.document.write("<p class='ptj'>"+t1+"</p><p class='ptj'>"+t2+"</p><p class='ptj'>"+t3+"</p></body></html>");
}
function CloseTxPopUp()
{
pn.close(); window.status=' ';
}

// 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|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("<html><head><title>"+cn+"</title></head>");
pn.document.write("<link href='http://www.designarcade.co.uk/sharedss.css' type='text/css' rel='stylesheet'>");
pn.document.write("<link href='clientss.css' type='text/css' rel='stylesheet'></head>");
pn.document.write("<body class='bzp'>");
pn.document.write("<img class='lzm' src='"+i1+"'>");
pn.document.write("</body></html>");
}
function CloseZmPopUp()
{
pn.close(); window.status=' ';
}

// 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 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 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 div|di:div id
function ShowPupDiv(di)
{
document.getElementById(di).style.left = '286px';
document.getElementById(di).style.top  = (document.body.scrollTop)+'px';
document.getElementById(di).style.visibility = 'visible';
}

// 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
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();
}

// mute audio clip|ai:audio clip id|ng:navigator|po:player object|ps:play state
function Mute(ai)
{	
if   (ng == 'av ok') 
     {
      po = document.getElementById('mdpl'); ps = po.playState;
      if (ps == 3 || ps == 9) {po.controls.stop();}
     }
else {;}
}

// 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 <span class=\'txh\'>play</span> button. The button will change to <span class=\'txh\'>stop</span>.';
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 <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.';
var a4 = 'Audio, video, and interactive effects, can only work when the page has <span class=\'txh\'>completely downloaded</span>.';

// text for browsers
var b0 = '<table class=\'hds\' summary=\'\'><tr><td class=\'htl\'>INTERNET HELP</td><td class=\'hdr\'></td</tr></table>';
var b1 = 'Modern Windows browsers will render these pages correctly, and audio and video will play automatically, or on demand, transparently, using Flash. MACs and MAC browsers are not standards-compliant so some page elements won\'t align correctly and some interactive effects might not work.';
var b2 = 'Media Player isn\'t naturally supported by Firefox, Mozilla, Netscape 8, Opera, and MAC browsers so, althought it\'s used rarely, some audio or video might not play. Your browser is <script type=\'text/javascript\'>document.write(nn)</script>, or a derivative.';

// text for copyright
var c0 = 'The page content is Cherry Heaven Limited copyright, 2003-';
var c1 = 'The Copyright Act 1988 generally 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 delivery
var d0 = 'You can shop here now: on line or by phone with a card, or by post with a cheque. The prices include UK VAT, a 17.5% tax, and insured door-to-door delivery: <span class=\'txe\'>there are no other charges.</span> If your invoice address is outside the EU, you don\'t pay the VAT: so the prices will be 17.5% less.';
var d1 = 'There\'s one exception: if the package weighs over 1kg and your delivery address is outside the UK mainland, there\'ll be an extra distance-related delivery charge. So mail or call first.';
var d2 = 'You can shop here now: on line or by phone with a card, or by post with a cheque. The prices include UK VAT, a 17.5% tax, and insured door-to-door delivery: <span class=\'txe\'>there are no other charges.</span> If your invoice address is outside the EU, you don\'t pay the VAT: so the prices will be 17.5% less.';
var d3 = 'If your delivery address is outside the UK mainland, there might be an extra distance-related delivery charge. So mail or call first.';
var d4 = 'If your delivery address is within the UK mainland, prices include UK VAT, a 17.5% tax, and delivery: there are no other charges. If your invoice address is outside the EU, you don\'t pay the VAT: so the prices will be 17.5% less.';
var 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.';
var 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>';

// text for educational discount
var e0 = 'For schools, colleges, universities, resellers, retailers, catalogues, ceramic cafes, or teachers for Art Clay level 1, Art Clay level 2, or PMC, there are lower prices for Art Clay, Accent Gold, Image Transfer Solution, Metal Clay Veneer, Kitiki Kilns, Paragon Kilns, UltraLite Kilns, tumblers, and other tools. To order, you don\'t need to set up an account: just mail or call.';
var 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.';

// text for forms
var 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.';
var f1 = '<form class=\'pyf\' method=\'post\' action=\'http://www.designarcade.co.uk/formmail.php\' name=\'sale\' id=\'sale\'>';
var f2 = '<form class=\'pyf\' method=\'post\' action=\'http://www.designarcade.co.uk/formmail.php\' name=\'wish\' id=\'wish\'>';

// 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 = '<p class=\'txj\'><span class=\'txh\'>We\'ll be closed from Wednesday 13th until Monday 18th June, inclusive. On-line shop orders will be despatched when we re-open. Product details, prices, and email contact are on the appropriate internet pages. Cherry Heaven, our shop in Corfe Castle village, will open on Saturday 11th August. Thanks.<\span></p><br />';
var h3 = '';

// 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: ';
var l8 = 'choose from:';
var l9 = 'new';

// text for object class id
var o1 = 'clsid:6bf52a52-394a-11d3-b153-00c04f79faa6'; // media player

// text for price and delivery messages
var p1 = '';

// 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 below the menu bar to look at this page.';
var s8 = 'Click, to transfer to this resource.';
var s9 = 'Click the link above the menu bar to transfer to this resource.';
var sA = 'Click to play this audio or video.';
var sB = 'Click to stop this audio or video.';
var sC = 'The phone number is at the top of this page.';
var sD = 'Click the link below the menu bar to stop the audio.';

// text for printing on a4
var t1 = 'This page has been designed to print on A4 paper. However, before printing, check 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. Don\'t print headers or footers.';
var 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.';

// text for user messages
var u1 = 'As with Windows applications, the menu bar is near the top of every page. To navigate, click the coloured words: they\'ll change colour just before you click.<br />Above the menu bar, click to transfer to related products or services. Below the menu bar, click to look at other pages, shop on line, or email. Very often, there are prompts in the browser\'s status bar, at the bottom of the window.';
var u2 = 'In Internet Explorer, you can add this page to your favourites by clicking the net address, on the left above the menu bar. In other browsers, bookmark it from the browser\'s menu.';


