// minikiln.co.uk

// clickers
var en = new Image(24,11); en.src = 'cken.gif'; // clicker:end
var oa = new Image(24,11); oa.src = 'ckoa.gif'; // clicker:over action

// link marker
var lm = new Image( 8, 8); lm.src = 'lkmk.gif'; // link marker

// menu array
mn = new Array(27);
mn[ 0] = 'main-menu';
mn[ 1] = 'art-clay';
mn[ 2] = 'more-kilns';
mn[ 3] = 'accessories';
mn[ 4] = 'veneer';
mn[ 5] = 'art clay';
mn[ 6] = 'courses';
mn[ 7] = 'clay-veneer';
mn[ 8] = 'club';
mn[ 9] = 'mini-kiln';
mn[10] = 'accent-gold';
mn[11] = 'shop';
mn[12] = 'mail';
mn[13] = 'photos';
mn[14] = 'accent-gold';
mn[15] = 'mini-kiln';
mn[16] = 'instructions';
mn[17] = 'more kilns';
mn[18] = 'image-transfer';
mn[19] = 'image transfer solution';
mn[20] = 'or look at';
mn[21] = 'glass-clay';
mn[22] = 'bronze-clay';
mn[23] = 'copper-clay';
mn[24] = 'materials';
mn[25] = 'dorset';
mn[26] = 'map';

// set client|cd:client description|ce:client email|cn:client name|cs:client shop|cu:client url|cv:client vat
var cd = 'The UK\'s Most Popular Small Kiln';
var ce = 'minikiln@cherryheaven.co.uk';
var cn = 'The Kitiki Mini-Kiln';
var cs = 'shop@cherryheaven.co.uk';
var cu = 'minikiln.co.uk';
var cv = '17.5%';

// mouse over favourite link to swap colour|nc:navigator code|ui:url id ok
function FaveOn(ui)
{
if   (nc == 'e6' || nc == 'e7' || nc == 'e8' || nc == 'm6' || nc == 'm8') 
     {document.getElementById(ui).style.color = '#FFCC00'; window.status = s4;}
else {;}
}
function FaveOff(ui)
{
if   (nc == 'e6' || nc == 'e7' || nc == 'e8' || nc == 'm6' || nc == 'm8') 
     {document.getElementById(ui).style.color = '#FF4500'; window.status = s2;}
else {;}
}

// mouse over field to swap background colour|fi:field id ok
function FieldOn(fi)
{
document.getElementById(fi).style.background = '#484848';
}
function FieldOff(fi)
{
document.getElementById(fi).style.background = '#585858';
}

// link blink to blink and swap colour|bc:blink counter|bt:blink timer|li:link id ok
function LinkBlink(li)
{
bc =  bc + 1; window.status = s7;
if   (bc == 1 || bc == 15 || bc == 29 || bc == 43 || bc == 57)
     {document.getElementById(li).style.color = '#585858';}
if   (bc == 8 || bc == 22 || bc == 36 || bc == 50 || bc == 64) 
     {document.getElementById(li).style.color = '#FFCC00';}
if   (bc < 92) 
     {bt = setTimeout('LinkBlink("'+li+'")', 1);}
if   (bc == 92)
     {clearTimeout(bt); bc = 0; window.status = s2;}
}

// mouse over page link to swap colour|li:link id ok
function LinkOn(li)
{
document.getElementById(li).style.color = '#FFCC00'; window.status = s6;
}
function LinkOff(li)
{
clearTimeout(bt); bc = 0; document.getElementById(li).style.color = '#FF4500'; window.status = s2;
}

// mouse over url link to swap colour|ui:url id ok
function LookOn(ui)
{
document.getElementById(ui).style.color = '#FFCC00'; window.status = s8;
}
function LookOff(ui)
{
document.getElementById(ui).style.color = '#FF4500'; window.status = s2;
}

// mouse over mail link to swap colour|ei:email link id ok
function MailOn(ei)
{
document.getElementById(ei).style.color = '#FFCC00'; window.status = s5;
}
function MailOff(ei)
{
document.getElementById(ei).style.color = '#FF4500'; window.status = s2;
}

// mouse over text to swap remote page link colour|li:link id ok
function PageOn(li)
{
document.getElementById(li).style.color = '#FFCC00'; window.status = s7;
}
function PageOff(li)
{
clearTimeout(bt); bc = 0; document.getElementById(li).style.color = '#FF4500'; window.status = s2;
}

// site blink to blink and swap colour|bc:blink counter|bt:blink timer|si:site id ok
function SiteBlink(si)
{
bc =  bc + 1; window.status = s9;
if   (bc == 1 || bc == 15 || bc == 29 || bc == 43 || bc == 57)
     {document.getElementById(si).style.color = '#585858';}
if   (bc == 8 || bc == 22 || bc == 36 || bc == 50 || bc == 64) 
     {document.getElementById(si).style.color = '#FFCC00';}
if   (bc < 92) 
     {bt = setTimeout('SiteBlink("'+si+'")', 1);}
if   (bc == 92)
     {clearTimeout(bt); bc = 0; window.status = s2;}
}

// mouse over text to swap remote url link colour|ui:url id ok
function SiteOn(ui)
{
document.getElementById(ui).style.color = '#FFCC00'; window.status = s9;
}
function SiteOff(ui)
{
clearTimeout(bt); bc = 0; document.getElementById(ui).style.color = '#FF4500'; window.status = s2;
}

// mouse over text to swap remote text colour|ti:text id ok
function TextOn(ti)
{
document.getElementById(ti).style.color = '#FFCC00';
}
function TextOff(ti)
{
clearTimeout(bt); bc = 0; document.getElementById(ti).style.color = '#FF4500';
}

// text for status messages
var s4 = 'Click, to add the Mini-Kiln to your list of favourites.';
var s5 = 'Click, to mail Mini-Kiln about anything on this page.';
