// Various functions used on the Canvas Etc homepage, including the random image slideshow

// -----------------------------------------------------------------------------------
//   Random Canvas
// -----------------------------------------------------------------------------------
// Set the slideshow speed (in milliseconds)
var SlideShowSpeed = 4000;

// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 1.5;

var Picture = new Array(); // don't change this
var Caption = new Array(); // don't change this 
var PicLink = new Array(); // don't change this 

// Specify the image files... all are 274px x 212px

Picture[1]  = 'images/1358a.jpg';
Picture[2]  = 'images/1490a.jpg';
Picture[3] = 'images/1350a.jpg';
Picture[4]  = 'images/1460a.jpg';
Picture[5] = 'images/1317a.jpg';
Picture[6]  = 'images/1309a.jpg';
Picture[7] = 'images/1075a.jpg';
Picture[8] = 'images/1312a.jpg';
Picture[9] = 'images/1027a.jpg';
Picture[10] = 'images/1259a.jpg';
Picture[11] = 'images/1031a.jpg';
Picture[12] = 'images/1476a.jpg';
Picture[13] = 'images/1461a.jpg';
Picture[14] = 'images/1543a.jpg';
Picture[15] = 'images/1170a.jpg';
Picture[16]  = 'images/1488a.jpg';

// Specify Links...
PicLink[1] = "canvas-art-1358.html";
PicLink[2] = "canvas-art-1490.html";
PicLink[3] = "canvas-art-1040.html";
PicLink[4] = "canvas-art-1460.html";
PicLink[5] = "canvas-art-1317.html";
PicLink[6] = "canvas-art-1309.html";
PicLink[7] = "canvas-art-1124.html";
PicLink[8] = "canvas-art-1410.html";
PicLink[9] = "canvas-art-1027.html";
PicLink[10] = "canvas-art-1006.html";
PicLink[11] = "canvas-art-1089.html";
PicLink[12] = "canvas-art-1476.html";
PicLink[13] = "canvas-art-1461.html";
PicLink[14] = "canvas-art-1543.html";
PicLink[15] = "canvas-art-1231.html";
PicLink[16] = "canvas-art-1488.html";

// Specify Captions...
Caption[1] ="ocean colour scene";
Caption[2] ="electric growth";
Caption[3] ="army of feathers";
Caption[4] ="going underground";
Caption[5] ="chopper";
Caption[6] ="before the storm";
Caption[7] ="floral explosion";
Caption[8] ="bubbles";
Caption[9] ="desert breeze";
Caption[10] ="sandstorm sunset";
Caption[11] ="kiss me";
Caption[12] ="feathery";
Caption[13] ="burning love";
Caption[14] ="engulfed";
Caption[15] ="caribbean green";
Caption[16] ="abstract orchids";

// Do not edit anything below this line!
var tss;
var lss;
var iss;
var jss = 1;
var pss = Picture.length-1;

var preLoad = new Array();
for (iss = 1; iss < pss+1; iss++){
preLoad[iss] = new Image();
preLoad[iss].src = Picture[iss];}

function runSlideShow(){
if (document.all){
document.images.PictureBox.style.filter="blendTrans(duration=2)";
document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox.filters.blendTrans.Apply();}
document.images.PictureBox.src = preLoad[jss].src;
document.getElementById('PictureBoxLink').href = PicLink[jss];
document.getElementById('PictureBox').title = Caption[jss];
document.getElementById('PictureBoxCaption').innerHTML = Caption[jss];
//if (document.getElementById) document.getElementById("CaptionBox").innerHTML= Caption[jss] ;
if (document.all) document.images.PictureBox.filters.blendTrans.Play();
lss = jss;
jss = jss + 1;
if (jss > (pss)) jss=1;
tss = setTimeout('runSlideShow()', SlideShowSpeed);}


// -----------------------------------------------------------------------------------
//  Customer Quotes
// -----------------------------------------------------------------------------------
var Quotation=new Array()
Quotation[0] = '<span>"Almost every customer who has come into the salon this week has mentioned the new canvas art we recently bought from you. Thanks again for such a wonderful service and picture..."</span><BR>-- Miss D Lefebvre, London --';
Quotation[1] = '<span>"Fantastic canvas, beyond expectation , and great packaging , thanks very much. We are browsing your website for our next one..."</span><BR>-- P Appleford, London --';
Quotation[2] = '<span>"My parents opened the abstract canvas print I bought for them for their anniversary yesterday and they absolutely LOVED it!! My mum was in floods of tears. Thanks again for your help and the great picture."</span><BR>-- Miss M Nairns, Wiltshire --';
Quotation[3] = '<span>"Hello, had to drop you another line to thank you for the amazing Strawberry Swirls print. I picked it as a wedding gift for my brother and his new wife who were absolutely delighted with it! I have already recommended your site to all my friends and will be back to buy more prints as gifts very soon. Thanks again for your help."</span><BR>-- Miss J Farrelly, Hampshire --';
Quotation[4] = '<span>"Canvas Etc have once again surpassed all my expectations.  I have received the new print from your floral collection and will be back to purchase others. I have to say that these three flower prints are now the most talked about furnishings in our home..."</span><BR>-- Mrs A Ward, Bedfordshire --';
Quotation[5] = '<span>"The quality is very impressive and my wife\'s friends thought it was much more expensive than what we had paid for it. We would not hesitate to recommend your website to our friends, family and work colleagues..."</span><BR>-- Mr T Marshall, Suffolk --';
Quotation[6] = '<span>"Hi, had to email you to thank you for the fantastic canvas pictures. They were a birthday gift for my mother and she was delighted with them, the best present she had received in years she said. I will definitely be shopping with you again"</span><br>-- Mrs E Vasquez, Surrey --';

var Q = Quotation.length;
var whichQuotation=Math.round(Math.random()*(Q-1));
function showQuotation(){document.write(Quotation[whichQuotation]);}

// -----------------------------------------------------------------------------------
//   Collections
// -----------------------------------------------------------------------------------
var collection=new Array() 
var collurl=new Array() 
collection[0] = "images/collections_kiss.jpg";
collection[1] = "images/collections_animal_skin.jpg";
collection[2] = "images/collections_deluded.jpg";
collection[3] = "images/collections_neon_freeway.jpg";
collection[4] = "images/collections_pixellate.jpg";
collection[5] = "images/collections_psymokedelic.jpg";
collection[6] = "images/collections_red_flora.jpg";
collection[7] = "images/collections_subtle_flora.jpg";
collurl[0] = "canvas-art-1089.html";
collurl[1] = "canvas-art-1529.html";
collurl[2] = "canvas-art-1360.html";
collurl[3] = "canvas-art-1295.html";
collurl[4] = "canvas-art-1254.html";
collurl[5] = "canvas-art-1084.html";
collurl[6] = "canvas-art-1052.html";
collurl[7] = "canvas-art-1043.html";
var Q = collection.length;
var whichcollection=Math.round(Math.random()*(Q-1));
function showcollection(){document.write("<A href=\""+ collurl[whichcollection]+"\" title=\"click to view collection\"><img src=\"" + collection[whichcollection]+"\" border=0></a>");}

