var buttons = new Array ("homebutton", "aboutbutton"
, "productsbutton", "servicesbutton", "linksbutton", "contactbutton" );
var initiate = 0;
var candles = false;
var titletext = new Array("s1","o1","l1","u1","t1","i1","o2","n1","s2","o3","f1");
var solpics = new Array("4","4","4a","4aa","4b","4bb","4c","4d","4e","4ee","4f","4ff","4g","4","4");
var aboutblank = new Array("00","01","02","03","04","05", "06", "07", "08", "09", "10", "11","12", "13", "14", "15");
var finished = 0;
var bothup = 0;
var countdown= 0;
var blue = "_blue";
var colourtype = new Array("","_blue","_pink");
var colournumber = 1;
var element = document.getElementById('howdense');
var interval = 0;
var j=100;
var wordno = -1;
var width1 = 1;
var width2 = 1;
var identity = 0;
var fred=0;
var countdown_number = 0;

var countdown2;
var startup = 0;
var imagearray = new Array();
var aboutarray = new Array();
imagearray[0] = new Image(270,240);
imagearray[1] = new Image(270,240);
imagearray[2] = new Image(270,240);
imagearray[3] = new Image(270,240);
imagearray[4] = new Image(270,240);
imagearray[5] = new Image(270,240);
imagearray[6] = new Image(270,240);
imagearray[7] = new Image(270,240);
imagearray[8] = new Image(270,240);
imagearray[9] = new Image(270,240);
imagearray[10] = new Image(270,240);
imagearray[11] = new Image(270,240);
imagearray[12] = new Image(270,240);
imagearray[13] = new Image(270,240);

imagearray[14] = new Image(270,240);

imagearray[15] = new Image(44,90);
imagearray[16] = new Image(44,90);
imagearray[17] = new Image(118,22);
imagearray[18] = new Image(118,22);
imagearray[19] = new Image(118,22);
imagearray[20] = new Image(118,22);
imagearray[21] = new Image(118,22);
imagearray[22] = new Image(118,22);
imagearray[23] = new Image(109,35);
imagearray[24] = new Image(109,35);
imagearray[25] = new Image(109,35);
imagearray[26] = new Image(109,35);
imagearray[27] = new Image(109,35);
imagearray[28] = new Image(109,35);
imagearray[29] = new Image(109,35);
imagearray[30] = new Image(109,35);
imagearray[31] = new Image(109,35);
imagearray[32] = new Image(109,35);
imagearray[33] = new Image(109,35);


aboutarray[0] = new Image(190,190);
aboutarray[1] = new Image(190,190);
aboutarray[2] = new Image(242,269);
aboutarray[3] = new Image(245,265);



aboutarray[0].src="../image/coasterseg8.jpg";
aboutarray[1].src="../image/apronseg2.jpg";
aboutarray[2].src="../image/homelhspic2.jpg";
aboutarray[3].src="../image/homerhspic2.jpg";



imagearray[0].src="../image/solutions4.jpg";
imagearray[1].src="../image/solutions4a.jpg";
imagearray[2].src="../image/solutions4aa.jpg";
imagearray[3].src="../image/solutions4b.jpg";
imagearray[4].src="../image/solutions4bb.jpg";

imagearray[5].src="../image/solutions4c.jpg";
imagearray[6].src="../image/solutions4cc.jpg";
imagearray[7].src="../image/solutions4d.jpg";

imagearray[8].src="../image/solutions4e.jpg";

imagearray[9].src="../image/solutions4ee.jpg";
imagearray[10].src="../image/solutions4f.jpg";
imagearray[11].src="../image/solutions4ff.jpg";
imagearray[12].src="../image/solutions4g.jpg";

imagearray[13].src="../image/solutions4.jpg";

imagearray[15].src="../image/logo3.jpg";
imagearray[16].src="../image/logo4.jpg";
imagearray[17].src="../image/homebuttonhot.jpg";
imagearray[18].src="../image/aboutbuttonhot.jpg";
imagearray[19].src="../image/productsbuttonhot.jpg";
imagearray[20].src="../image/servicesbuttonhot.jpg";
imagearray[21].src="../image/linksbuttonhot.jpg";
imagearray[22].src="../image/contactbuttonhot.jpg";
imagearray[23].src="../image/shirtsbuttonhot.jpg";
imagearray[24].src="../image/coastersbuttonhot.jpg";
imagearray[25].src="../image/mousebuttonhot.jpg";
imagearray[26].src="../image/hivizbuttonhot.jpg";
imagearray[27].src="../image/fridgebuttonhot.jpg";
imagearray[28].src="../image/flagsbuttonhot.jpg";
imagearray[29].src="../image/apronsbuttonhot.jpg";
imagearray[30].src="../image/jewellerybuttonhot.jpg";
imagearray[31].src="../image/cardsbuttonhot.jpg";
imagearray[32].src="../image/petsbuttonhot.jpg";
imagearray[33].src="../image/otherbuttonhot.jpg";


function rotate() 
{
//alert(navigator.appName);
//SET QSTRING TO "Home page" - if it isn't changed
//then we are not coming from the Links page
qstring = window.location.search.substring(1);
// if we are coming from an external page...
// test to see if it's a call to home page..
// if so load as normal
//alert("qstring = " + qstring);
if (qstring.length > 3)
{
if (qstring != "Home page")
{
hideindex();
document.title = "Solutions of Alyth - " + qstring;
finished =99;
document.images["logo3"].src="../image/logo3.jpg";
document.images["logo4"].src="../image/logo4.jpg";
document.images["logo3"].height=90;
document.images["logo4"].height=90;
setnav();


if (qstring == "About us") goabout();
if (qstring =="Products") goproduct();
if (qstring == "Services") goservices();
if (qstring == "Links") golinks();
if (qstring == "Contact") gocontact();
qstring = "xx";
//alert (qstring);
return;
}
//alert("Line 149");
//document.images["prods"].height = 222;
//document.images["prods"].width = 254;
}
//alert("*" + document.title+ "*");
if (document.title == "Solutions of Alyth - Home page")
{
//alert("here");
$('homecentre').style.display = "block";
}

window.scroll(0,0);



//$('wholepage').style.display = "block";
if (document.title == "Solutions of Alyth - Services")
		{
		
		new Effect.Appear("servicesrhs", { duration: 2.0, afterFinish: function() 
{
 
//$('servicetext').style.display='block';
//$('servicetext').innerHTML = "We offer prompt, friendly services to all our customers. Hover over a button to find out more.";
$('servicesmiddle').style.display='block';
}
});
	
		
		
		}
		
if (document.title == "Solutions of Alyth - Links")
	{
	document.getElementById('middlebit').style.display='block'; 
	document.getElementById('leftbit').style.display='block'; 
	document.getElementById('rightbit').style.display='block'; 
	
		

}


if (document.title == "Solutions of Alyth - Home page")
	{
	$('middlebit').style.display='block';
	$('middlebit').style.display='block'; 
	
new Effect.Appear("indexlhs1", { duration: 2.0 });
			new Effect.Appear("indexrhs1", { duration: 2.0, afterFinish: function() 
{
$('sendmessage1').style.display='block';
$('sendmessage').style.display='block';	
}

 });
}
if (document.title == "Solutions of Alyth - Cards")
	{
  document.getElementById('middlebit').style.display='block'; 
  
new Effect.Appear("cardsrhs", { duration: 2.0	});
new Effect.Appear("cardslhs", { duration: 2.0	});

}
if (document.title == "Solutions of Alyth - Fridge")
	{
	//alert("before middle");
  document.getElementById('middlebit').style.display='block'; 
  
new Effect.Appear("fridgerhs", { duration: 4.0	});
//alert("before rhs");
new Effect.Appear("fridgelhs", { duration: 4.0	});

}

if (document.title == "Solutions of Alyth - Mouse")
	{
  document.getElementById('middlebit').style.display='block'; 
  
new Effect.Appear("mouserhs", { duration: 4.0	});
new Effect.Appear("mouselhs", { duration: 4.0	});

	
		

}

if (document.title == "Solutions of Alyth - About us")
	{
   	$('middlebit').style.display='block'; 
  }
if (document.title == "Solutions of Alyth - Aprons")
	{
  document.getElementById('middlebit').style.display='block'; 
  
new Effect.Appear("apronsrhs", { duration: 4.0	});
new Effect.Appear("apronslhs", { duration: 4.0	});

	
		

}

if (document.title == "Solutions of Alyth - Hiviz")
	{
  document.getElementById('middlebit').style.display='block'; 
  
new Effect.Appear("hivizrhs", { duration: 4.0	});
new Effect.Appear("hivizlhs", { duration: 4.0	});

	
		

}

if (document.title == "Solutions of Alyth - Other products")
	{
  document.getElementById('middlebit').style.display='block'; 
 // $('othertext2').style.display = 'none';
  //  $('othertext1').style.display = 'block';
new Effect.Appear("otherrhs", { duration: 4.0	});
new Effect.Appear("otherlhs", { duration: 4.0	});

	
		

}

if (document.title == "Solutions of Alyth - Ironing")
		{
		
		new Effect.Appear("ironinglhs", { duration: 4.0, afterFinish: function() 
{
 
$('ironinglhspictext').style.display='block';
}
});
		

		
		
		new Effect.Appear("ironingrhs", { duration: 4.0, afterFinish: function() 
{
 
$('ironingrhspictext').style.display='block';
}
});
		
			
		
	
		
	
		
		}
	if (document.title == "Solutions of Alyth - Xmas")
		{
			$('middlebit').style.display='block'; 
		new Effect.Appear("xmaslhs", { duration: 4.0 } );
		new Effect.Appear("xmasrhs", { duration: 4.0 } );		
		}


fred = window.setInterval('donothing();',900);




}



//window.setInterval('rotate();',100);
  

function scrolltext()
{

width1 = width1 + 1;
width2=width2+1;
document.images["logo3"].height=width1;
document.images["logo4"].height=width1;
//alert(width1);


//window.setInterval('scrolltext();',3000);

if (document.images["logo3"].height >90)
{ 
//alert (width1);
clearInterval(identity);

sunburst(); 



}

}




function sunburst() {
    countdown_number = 0;
	countdown_number2 = 0;
    countdown_trigger();
	clearTimeout(countdown2);
	
	
	
	}

function countdown_trigger() {

	if(countdown_number <13) {
        countdown_number++;
	countdown_number2++;
	//alert("countdown no. = " + countdown_number);
        document.images["solutions4"].src=imagearray[countdown_number].src;
	/*if (document.title == "Solutions of Alyth - About us")
	{

   	document.images["aboutleftpic4"].src=aboutarray[countdown_number2].src;
   	document.images["aboutrightpic4"].src=aboutarray[countdown_number2].src;
        }*/
	if(countdown_number <13) {
            countdown = setTimeout('countdown_trigger()', 100);
        }
    }
	else
	clearTimeout(countdown);
	//alert(countdown_number);
	
	
if (countdown_number == 13)
{
  finished = 99;
	
	


	if (document.title == "Solutions of Alyth - Home page")
	{
	setnav();
	
//	Effect.Pulsate('special1', { pulses: 2, from: 0.5, duration: 1.5, afterFinish: function() 
//{
 
$('sendmessage1').style.display='block';
$('sendmessage').style.display='block';
//}
//});

	}
}

}







function donothing()
{
//alert ("at beginning of nothin g");

clearTimeout(fred);

identity = window.setInterval('scrolltext();',1);
document.images["logo3"].src = imagearray[15].src;
document.images["logo4"].src = imagearray[16].src;

}
function showpics()
{
alert("hi mom");
}

function servicetext1()
{
$('servicesrhs').style.display='none'; 

$('servicetext').style.display='none';
$('servicesrhs').innerHTML = '<a href="ironing.htm"><img src="../image/servicepic2.jpg" height=268 width = 250 name = "servicepic" border = 0></a>';
new Effect.Appear("servicesrhs", { duration: 4.0, afterFinish: function() 
{
 
//$('servicetext').style.display='block';
//$('servicetext').innerHTML = "Fed up with ironing? We provide a swift and professional service for all your needs - click the button for more.";
}
});
}
function servicetext2()
{
$('servicesrhs').style.display='none'; 
$('servicetext').style.display='none';
$('servicesrhs').innerHTML = '<a href="cattery.htm"><img src="../image/servicepic3.jpg" height = 268 width = 250 name = "servicepic" border = 0></a>';

new Effect.Appear("servicesrhs", { duration: 4.0, afterFinish: function() 
{
//$('servicetext').style.display='block';

//document.getElementById('servicetext').innerHTML = "Does your cat deserve the lap of luxury when  put  out to board? We can offer just that. Click the button for more.";

}
});

}
function servicetext3()
{
$('servicesrhs').style.display='none'; 
$('servicetext').style.display='none';
$('servicesrhs').innerHTML = '<a href="dancing.htm"><img src="../image/servicepic4.jpg" height=268 width = 250 name = "servicepic" border = 0></a>';


new Effect.Appear("servicesrhs", { duration: 4.0, afterFinish: function() 
{
//$('servicetext').style.display='block';
//document.getElementById('servicetext').innerHTML = "We give ballroom, Latin American and other dancing classes in Alyth during the winter months. Click the button  for more.";

}
});

}

function firsttime()
{
if (startup == 0)
{
document.images['servicepic'].src = '../image/servicepic1a.jpg';
startup = 99;
}

}

function homepage()
{
document.images["vrulelhs"].src = "../image/vrule10.jpg";
document.images["vrulerhs"].src = "../image/vrule11.jpg";
$('indexlhs1').style.display = 'none';
$("backtonews").style.display = "block";
new Effect.Appear("indexlhs2", { duration: 2.0});
$('indexrhs1').style.display = 'none';
new Effect.Appear("indexrhs2", { duration: 2.0});

}

function showmoreleft()
{
bothup = bothup+1;
$('moreleft').style.display = 'block';
//$('morelhs').style.display = 'none';
$('lessleft').style.display = 'block';
document.images['hleft'].height = '269'; 
document.images['hleft'].src = "../image/homelhspic2.jpg";
document.images["vrulelhs"].src = "../image/vrule10a.jpg";
document.images["vrulerhs"].src = "../image/vrule11a.jpg";
window.scrollBy(0,110);

}

function showmoreright()
{
bothup = bothup+1;
$('moreright').style.display = 'block';
document.images['hright'].height = '265'; 
document.images['hright'].width = '245';
document.images['hright'].src = "../image/homerhspic2.jpg";
$('lessright').style.display = 'block';
document.images["vrulelhs"].src = "../image/vrule10a.jpg";
document.images["vrulerhs"].src = "../image/vrule11a.jpg";
window.scrollBy(0,110); 
}
function showlessleft()
{
bothup = bothup-1;
$('moreleft').style.display = 'none';
$('lessleft').style.display = 'none';
document.images['hleft'].height = '286'; 
document.images['hleft'].src = "../image/homelhspic.jpg";

if (bothup ==0)
{
document.images["vrulelhs"].src = "../image/vrule10.jpg";
document.images["vrulerhs"].src = "../image/vrule11.jpg";
}
}
function showlessright()
{
bothup = bothup -1;
$('moreright').style.display = 'none';
$('lessright').style.display = 'none';
//$('morerhs').style.display = 'block';
document.images['hright'].height = '281'; 
document.images['hright'].src = "../image/homerhspic.jpg";
if (bothup ==0)
{
document.images["vrulelhs"].src = "../image/vrule10.jpg";
document.images["vrulerhs"].src = "../image/vrule11.jpg";
}
}
function newspage()
{
document.images['hleft'].height = '286'; 
document.images['hleft'].src = "../image/homelhspic.jpg";
document.images['hright'].height = '281'; 
document.images['hright'].src = "../image/homerhspic.jpg";
$('indexlhs2').style.display = 'none';
$("backtonews").style.display = "none";
new Effect.Appear("indexlhs1", { duration: 2.0 });
$('indexrhs2').style.display = 'none';
		new Effect.Appear("indexrhs1", { duration: 2.0 });
$('moreleft').style.display = 'none';
$('lessleft').style.display = 'none';
//$('morelhs').style.display = 'block';
$('moreright').style.display = 'none';
$('lessright').style.display = 'none';
//$('morerhs').style.display = 'block';
bothup = 0;
}

function gocontact()

{
if (finished == 99)
{
$('sendmessage1').style.display='none';
$('special2').style.display = "none";
clearpage();
window.scroll(0,0);
document.title = "Solutions of Alyth - Contact";
//$('b5a').style.display = "block";
//$('b5b').style.display = "none";
hideindex();


//$('middlebit').style.display = "none";
$('contactlhs').style.display = "none";
$('contactrhs').style.display = "none";
$('contactmiddle').style.display = "block";
$('contactmiddle1').style.display = "block";
document.images["vrulelhs"].src = "../image/vrule8.jpg";
document.images["vrulerhs"].src = "../image/vrule8.jpg";
countdown = 0;
countdown_number = 0;
width1 = 1;
width2 = 1;

sunburst();
 
	
	
new Effect.Appear("contactrhs", { duration: 4.0 } );


new Effect.Appear("contactlhs", { duration: 4.0 });
	

}
}

function gohome()
{
//alert("line 606 and finished = " + finished);
if (finished == 99)
{
$('sendmessage1').style.display='none';
window.scroll(0,0);
$('special2').style.display = "none";
clearpage();
window.scroll(0,0);
document.title = "Solutions of Alyth - Home page";

$('homecentre').style.display = "block";
countdown = 0;
countdown_number = 0;
width1 = 1;
width2 = 1;
//document.images['hleft'].height = '286'; 
//document.images['hright'].height = '281'; 
document.images['hright'].src = "../image/homerhspic.jpg";
document.images['hleft'].src = "../image/homelhspic.jpg";

document.images["vrulelhs"].src = "../image/vrule10.jpg";
document.images["vrulerhs"].src = "../image/vrule11.jpg";

sunburst();
new Effect.Appear("indexlhs1", { duration: 2.0 });
		new Effect.Appear("indexrhs1", { duration: 2.0 });
		$('sendmessage1').style.display='block';
$('sendmessage').style.display='block';
$('indexlhs2').style.display = "none";
$('indexrhs2').style.display = "none";
$('middlebit').style.display = "block";
//('').style.display = "block";


}
}
function goabout()
{
$('special2').style.display = "none";
if (finished == 99)
$('sendmessage1').style.display='none';

{
clearpage();
window.scroll(0,0);
document.title = "Solutions of Alyth - About us";
hideindex();

$('aboutlhs').style.display = "none";
$('aboutrhs').style.display = "none";
//alert("hi mom");
$('aboutmiddle').style.display = "block";
$('aboutmiddle1').style.display = "block";
document.images["vrulelhs"].src = "../image/vrule12.jpg";
document.images["vrulerhs"].src = "../image/vrule12.jpg";
countdown = 0;
countdown_number = 0;
width1 = 1;
width2 = 1;
sunburst();
 //	$('aboutmiddle').style.display='block'; 
new Effect.Appear("aboutrhs", { duration: 4.0 } );
new Effect.Appear("aboutlhs", { duration: 4.0 });
//new Effect.Appear("aboutmiddle1", { duration: 4.0 });
}
}

function hideindex()
{
$('homecentre').style.display = "none";
$('indexlhs1').style.display = "none";
$('indexlhs2').style.display = "none";
//$('moreleft').style.display = "none";
$('indexrhs1').style.display = "none";
$('indexrhs2').style.display = "none";
//$('moreright').style.display = "none";
}
function clearpage()
{
if (document.title == "Solutions of Alyth - Contact")
{
$('contactmiddle').style.display = "none";
$('contactmiddle1').style.display = "none";
$('contactlhs').style.display = "none";
$('contactrhs').style.display = "none";
}
if (document.title == "Solutions of Alyth - About us")
{
$('aboutmiddle').style.display = "none";
$('aboutmiddle1').style.display = "none";
$('aboutlhs').style.display = "none";
$('aboutrhs').style.display = "none";
}
if (document.title == "Solutions of Alyth - Products")
{
$('productslhs').style.display = "none";
$('products').style.display = "none";
$('productsrhs').style.display = "none";
$('productbottom1').style.display = "none";
$('productbottom2').style.display = "none";
$('middle').style.display = "none";
$('leftpic').style.display = "none";
$('rightpic').style.display = "none";
}
if (document.title == "Solutions of Alyth - Services")
{
$('serviceslhs').style.display = "none";
$('servicesrhs').style.display = "none";
$('servicesmiddle').style.display = "none";
}
if (document.title == "Solutions of Alyth - Links")
{
$('linkslhs').style.display = "none";
$('linksrhs').style.display = "none";
$('linksmiddle').style.display = "none";
}
}
function showshirts()
{
cp();

$('productslhs').style.display='block';
$('productsrhs').style.display='block';
//reveal();
document.images['rhs'].src='../image/shirteg1.jpg';

$('leftpic').innerHTML = '<b>T shirt designed for the Perth race<br>meeting in August 2009</b>';
document.images['lhs'].src='../image/leftpic13.jpg';
document.images['product'].src='../image/shirtspage.jpg';
$('rightpic').innerHTML = "<b>A humorous image or text always makes a fun T shirt</b>";

$('middle').innerHTML = "T shirts, Polo shirts and Sweat shirts can all be personalised in a wide range of styles and colours, including glitter.<p> Click now to see more examples for men/unisex, children and babies, and ladies fitted.";
}
function showcoasters()
{
cp();
$('productslhs').style.display='block';
$('productsrhs').style.display='block';
//reveal();
document.images['product'].src='../image/coastani_1.gif';
document.images['rhs'].src='../image/coastersleftpic2.jpg';

$('leftpic').innerHTML = '<b>A wintry scene in Alyth makes an excellent coaster</b>';
document.images['lhs'].src='../image/coastersleftpic1.jpg';
$('rightpic').innerHTML = "<b>Coaster celebrating Alyth Musical Society's 2009 show</b>";
$('middle').innerHTML = "An ideal unique gift for friends, family or the workplace - personalised coasters and placemats.<p>You choose the text and image, we create them for you. Click to see some samples.";
}

function showaprons()
{
cp();
$('productslhs').style.display='block';
$('productsrhs').style.display='block';
//reveal();
document.images['rhs'].src='../image/apronsrightpic1.jpg';
document.images['product'].src='../image/apronani_1.gif';
$('leftpic').innerHTML = '<b>An apron for the Christmas season makes an ideal gift</b>';
document.images['lhs'].src='../image/apronsleftpic4.jpg';
$('rightpic').innerHTML = "<b>A shopping bag with a picture of local beauty spot Reekie Linn</b>";
$('middle').innerHTML = "Another unusual personalised duo of ideas - aprons and shopping bags created to your own individual design.<p>Just click to find out more.";
}

function showpets()
{
cp();
$('productslhs').style.display='block';
$('productsrhs').style.display='block';
//reveal();
document.images['lhs'].src='../image/petseg1.jpg';
document.images['product'].src='../image/petani_1.gif';
$('leftpic').innerHTML = '<b>Select a model pet from the wide range available</b>';
document.images['rhs'].src='../image/petseg2.jpg';
$('rightpic').innerHTML = "<b>Send off for a free engraved label which will personalise it</b>";
$('middle').innerHTML = "Now here's a really novel gift idea: select a  pet from a large range of  animals.<p>When you've made your purchase, you then send off for a free metal tag engraved with the wording of your choice.";
}
function showother()
{
cp();
$('productslhs').style.display='block';
$('productsrhs').style.display='block';
//reveal();
document.images['lhs'].src='../image/xmaseg2.jpg';
document.images['product'].src='../image/otherpage.jpg';
$('rightpic').innerHTML = '<b>One of the seasonal range of personalised gift ideas - a Santa sack</b>';
document.images['rhs'].src='../image/apronsleftpic5.jpg';
$('leftpic').innerHTML = "<b>A variety of candles for every occasion can be personalised</b>";
$('middle').innerHTML = "We have a range of other products, including personalised candles and seasonal offerings.<p>Click on the button to see details of our other products.<br>&nbsp;<br>&nbsp;";
}
function showhiviz()
{
cp();
$('productslhs').style.display='block';
$('productsrhs').style.display='block';
//reveal();
document.images['product'].src='../image/hivizpage.jpg';
document.images['rhs'].src='../image/hivizeg1.jpg';

$('rightpic').innerHTML = '<b>One of the Hi Viz range before it receives a personalised logo</b>';
document.images['lhs'].src='../image/hivizeg3.jpg';
$('leftpic').innerHTML = '<b>Be seen, be safe - with your customised logo</b>';
$('middle').innerHTML = "See, be seen and be safe in the workplace, and have the added bonus of your company logo and details printed on the jacket.<p>It's a great safety and promotional idea at an affordable cost.<br>&nbsp;";
}
function showfridge()
{
cp();
$('productslhs').style.display='block';
$('productsrhs').style.display='block';
//reveal();
document.images['product'].src='../image/fridgepage.jpg';
document.images['rhs'].src='../image/fridgeeg2.jpg';

$('leftpic').innerHTML = '<b>An excellent novelty gift idea - here a scene from Alyth</b>';
document.images['lhs'].src='../image/fridgeeg1.jpg';
$('rightpic').innerHTML = "<b>Another view of Alyth - ideal for a far-off relative or friend</b>";
$('middle').innerHTML = "Always popular, fridge magnets are even better when personalised. Constructed on a backing of magnetised material, they will brighten up any kitchen.<p>&nbsp;</p>";
}
function showflags()
{
cp();
$('productslhs').style.display='block';
$('productsrhs').style.display='block';
//reveal();
document.images['lhs'].src='../image/flagseg1.jpg';
document.images['product'].src='../image/flagani_1.gif';
$('leftpic').innerHTML = '<b>We can source a huge range of flags for you - from the Scottish Lion...</b>';
document.images['rhs'].src='../image/flagseg2.jpg';
$('rightpic').innerHTML = "<b>...to the Rock of Gibraltar and way beyond that</b>";
$('middle').innerHTML = "Fancy flying the flag? We can supply flags and bunting of all kinds at a very modest price. We can also supply table flags of all the nations for that special dinner.<p>&nbsp;</p>";
}
function showmouse()
{
cp();
$('productslhs').style.display='block';
$('productsrhs').style.display='block';
//reveal();
document.images['product'].src='../image/mousepage.jpg';
document.images['rhs'].src='../image/mouseeg2.jpg';
document.images['product'].src='../image/mousepage.jpg';
$('leftpic').innerHTML = '<b>Mouse mats to your own design - an excellent gift idea</b>';
document.images['lhs'].src='../image/mouseeg1.jpg';
$('rightpic').innerHTML = "<b>Another mouse mat - why not choose your own text and image?</b>";
$('middle').innerHTML = "Personalised mouse mats make an excellent present. Choose your own words and image and we'll do the rest.<p>Or why not treat yourself to your own individualised mouse mat?";
}
function showjewellery()
{
cp();
$('productslhs').style.display='block';
$('productsrhs').style.display='block';
//reveal();
document.images['rhs'].src='../image/jewelleryeg2.jpg';
document.images['product'].src='../image/scan1.gif';
$('rightpic').innerHTML = '<b>One of the attractive designs from our range of scarves</b>';
document.images['lhs'].src='../image/scarveseg2.jpg';
$('leftpic').innerHTML = "<b>Jewellery is on display in our Alyth shop - tasteful and affordable</b>";
$('middle').innerHTML = "Quality costume jewellery makes for an excellent accompaniment to day and evening wear, and we have a wide range on offer.<p>We also have a selection of tasteful ladies' scarves.<p>";
}
function showcards()
{
cp();
$('productslhs').style.display='block';
$('productsrhs').style.display='block';
//reveal();
document.images['rhs'].src='../image/cardseg2.jpg';
document.images['product'].src='../image/cardsani_1.gif';
$('rightpic').innerHTML = "<b>A personalised Christmas card<br>from Grangemount Cattery</b>";
document.images['lhs'].src='../image/cardseg1.jpg';
$('leftpic').innerHTML = "<b>Magnetic backed calendars make a gift<br>that lasts all year</b>";
$('middle').innerHTML = "For Christmas or any special occasion, there is nothing better than a personalised card.<p>And we also offer personalised calendars which make an excellent festive gift and keep on giving throughout the year.";
}

function goproduct()
{
//alert(finished);
if (finished == 99)
{
$('sendmessage1').style.display='none';
document.images["lhs"].height=222;
document.images["rhs"].height=222;
document.images["lhs"].width=254;
document.images["rhs"].width=254;
document.images['rhs'].src="../image/prodleftpic.jpg";
document.images['lhs'].src="../image/prodrightpic.jpg";
$('leftpic').innerHTML = "";
$('rightpic').innerHTML = "";
clearpage();
window.scroll(0,0);
document.title = "Solutions of Alyth - Products";
hideindex();
document.images["vrulelhs"].src = "../image/vrule2.jpg";
document.images["vrulerhs"].src = "../image/vrule2.jpg";
countdown = 0;
countdown_number = 0;
width1 = 1;
width2 = 1;
sunburst();
//alert("Line 795");
$('special2').style.display = "block";
$('productbottom1').style.display = "block";
$('productbottom2').style.display = "block";
//$('productslhs').style.display = "none";
$('products').style.display = "block";
$('leftpic').style.display = "block";
$('rightpic').style.display = "block";
//$('productsrhs').style.display = "none";
//alert("line 814");
new Effect.Appear("productslhs", { duration: 4.0 } );
new Effect.Appear("productsrhs", { duration: 4.0 } );
$('middle').innerHTML = "Many of our products can be personalised. You'd be surprised at the wide range of choices on offer.<p>To see more, hover over a button below - to get fuller details, click on the button.<br>&nbsp;<br>";
$('middle').style.display = "block";
//document.images["lhs"].src = "../image/prodleftpic.jpg";
//document.images["rhs"].src = "../image/prodrightpic.jpg";
document.images["product"].src = "../image/productspage.jpg";
}
}
function cp()
{
document.images["special"].src = "../image/special.jpg";
document.images["special"].height=60;
document.images["lhs"].height=190;
document.images["rhs"].height=190;
document.images["lhs"].width=190;
document.images["rhs"].width=190;
}


function goservices()

{
if (finished == 99)
{
$('sendmessage1').style.display='none';
//hideindex();
$('special2').style.display = "none";
clearpage();
window.scroll(0,0);
document.title = "Solutions of Alyth - Services";
hideindex();
$('servicesrhs').style.display = "none";
$('servicesmiddle').style.display = "block";
document.images["vrulelhs"].src = "../image/vrule8.jpg";
document.images["vrulerhs"].src = "../image/vrule8.jpg";
countdown = 0;
countdown_number = 0;
width1 = 1;
width2 = 1;
document.images["servicepic"].src = "../image/servicepic1.jpg";
sunburst();
 		$('middlebit').style.display='block'; 
	new Effect.Appear("servicesrhs", { duration: 4.0 } );
$('serviceslhs').style.display = "block";
}
}


function golinks()

{

if (finished == 99)
{
$('sendmessage1').style.display='none';

$('special2').style.display = "none";
clearpage();
window.scroll(0,0);
document.title = "Solutions of Alyth - Links";
hideindex();
$('linksrhs').style.display = "none";
$('linkslhs').style.display = "none";
$('linksmiddle').style.display = "block";
document.images["vrulelhs"].src = "../image/vrule8.jpg";
document.images["vrulerhs"].src = "../image/vrule8.jpg";
countdown = 0;
countdown_number = 0;
width1 = 1;
width2 = 1;
sunburst();
 		$('middlebit').style.display='block'; 
	new Effect.Appear("linksrhs", { duration: 4.0 } );
new Effect.Appear("linkslhs", { duration: 4.0 } );
}

}
function ibehere()
{
alert ("here I be");
}

function setnav()
{
$('b0a').style.display='none';  $('b0b').style.display='block'; 
	$('b1a').style.display='none'; 	$('b1b').style.display='block';
  $('b2a').style.display='none'; 	$('b2b').style.display='block';
  $('b3a').style.display='none'; 	$('b3b').style.display='block';
  $('b4a').style.display='none'; 	$('b4b').style.display='block';
  $('b5a').style.display='none'; 	$('b5b').style.display='block';
  $('shiny').style.display='block';

}

function switchother()
{
if (candles == false)
{
candles = true;
 $('othertext1').style.display = 'none';
    $('othertext2').style.display = 'block';
    document.images["olhs"].src = "../image/candleseg1.jpg";
    document.images["orhs"].src = "../image/candleseg2.jpg";
$('otherrhs').style.display = 'none';
          $('otherlhs').style.display = 'none';  
new Effect.Appear("otherrhs", { duration: 4.0	});
new Effect.Appear("otherlhs", { duration: 4.0	});
}
else
{
candles = false;
 $('othertext2').style.display = 'none';
    $('othertext1').style.display = 'block';
     document.images["olhs"].src = "../image/otherlhspic.jpg";
      document.images["orhs"].src = "../image/otherrhspic.jpg";
      $('otherrhs').style.display = 'none';
          $('otherlhs').style.display = 'none';  
new Effect.Appear("otherrhs", { duration: 4.0	});
new Effect.Appear("otherlhs", { duration: 4.0	});
}
}
function message()
{


window.location.href = "http://www.alythsolutions.co.uk/text/message.htm";

}
function corpmessage()
{


window.location.href = "http://www.alythsolutions.co.uk/text/corpmessage.htm";

}
function showhospitality()
{
cp();

$('productslhs').style.display='block';
$('productsrhs').style.display='block';
//reveal();
document.images['rhs'].src='../image/barleft.jpg';

$('leftpic').innerHTML = '<b>A smart bar shirt with your company logo can make all the difference</b>';
document.images['lhs'].src='../image/chefleft.jpg';
document.images['product'].src='../image/corporate.jpg';
$('rightpic').innerHTML = "<b>One of our wide range of chef's whites which can easily be personalised</b>";

$('middle').innerHTML = "We can offer a wide range of personalised garments for the corporate and hospitality sector.<p>Click on the button to view a choice of our chef's whites, aprons, trousers, bar gear and shirts.<br>";
}


function xmas()
{
window.location.href= "xmas.htm";

}
