var activeshowcase = 'wedding';
var activepage = 'coverpage';
var activesub = 'blank';
var total_products;
var thumbloc;
var blurb;
var z = 0;
var btnloc = "/images/buttons/";
var largeimgloc = new Array();
var thumbimgloc = new Array();
var z;

function setactiveshowcase(showcase)
{

	if(showcase == 'wedding')
	{
		thumbloc = "/images/wedding/showcase/";
		total_products = 40; //WeddingImages
		blurb = "&quot;Wow&quot; photography to tell a story of the day in a relaxed and informal style. Take advantage of the spectacular beach scenery in Cornwall. We cover from the bride getting ready to the reception. We capture the fun, romance, glamour and elegance of the day. We include a stunning DVD slideshow put to music. We have a range of beautiful storybook albums to showcase your photographs. A husband and wife team, our mission is to turn your dreams into reality. Ring or email us to make an appointment to see our portfolio. If you live out of county we will send a DVD and price-list.";

	}
	if(showcase == 'portrait1')
	{
		thumbloc = "/images/portrait1/showcase/";
		total_products = 5; //Portrait1Images
		blurb = "Formal and informal relaxed portraits in your home or in the environment. We come to you and take a number of informal portraits. Costs: £50 per hour session, plus travel. Included is a free 10x8 print. The portraits make wonderful presents.";
	}
	if(showcase == 'portrait2')
	{
		thumbloc = "/images/portrait2/showcase/";
		total_products = 13; //Portrait2Images
		blurb = "Formal and informal relaxed portraits in your home or in the environment. We come to you and take a number of informal portraits. Costs: £50 per hour session, plus travel. Included is a free 10x8 print. The portraits make wonderful presents.";
	}
	if(showcase == 'portrait3')
	{
		thumbloc = "/images/portrait3/showcase/";
		total_products = 8; //Portrait3Images
		blurb = "Formal and informal relaxed portraits in your home or in the environment. We come to you and take a number of informal portraits. Costs: £50 per hour session, plus travel. Included is a free 10x8 print. The portraits make wonderful presents.";
	}
	if(showcase == 'portrait4')
	{
		thumbloc = "/images/portrait4/showcase/";
		total_products = 7; //Portrait4Images
		blurb = "Formal and informal relaxed portraits in your home or in the environment. We come to you and take a number of informal portraits. Costs: £50 per hour session, plus travel. Included is a free 10x8 print. The portraits make wonderful presents.";
	}
	if(showcase == 'landscape')
	{
		thumbloc = "/images/landscape/showcase/";
		total_products = 6; //LandscapeImages
		blurb = "We cover events tailored to suit your specific requirements. A popular choice for formal events at a hotel is to set up a mini studio and to print the photographs on the night, with the option to buy there and then.";
	}
	if(showcase == 'events')
	{
		thumbloc = "/images/event/showcase/";
		total_products = 6; //EventImages
		blurb = "We cover events tailored to suit your specific requirements. A popular choice for formal events at a hotel is to set up a mini studio and to print the photographs on the night, with the option to buy there and then.";
	}
	document.getElementById('showcaseblurb').innerHTML = blurb;

	z = 0;
	thumbnails();
	document.getElementById('showcasemainimg').style.display = 'none';
	document.getElementById('showcaseblurb').style.display = 'block';
}
//showcase functions below

function mouseclick(pos)
{
	document.getElementById('showcaseblurb').style.display = 'none';
	var num = z+pos+1;
	var showcasemainimg = document.getElementById('showcasemainimg');
	showcasemainimg.setAttribute('src', (thumbloc+num+".jpg"));
	document.getElementById('showcasemainimg').style.display = 'block';

}
function mouseout(pos)
{
	var num = z+pos+1;
	var thumbimg = eval("document.getElementById('thumb"+pos+"')");
	thumbimg.setAttribute('src', (thumbloc+"square/"+num+"bw.jpg"));
}
function mouseover(pos)
{
	var num = z+pos+1;
	var thumbimg = eval("document.getElementById('thumb"+pos+"')");
	thumbimg.setAttribute('src', (thumbloc+"square/"+num+".jpg"));
}
function next()
{
if ((z+5)<total_products)
	{
	z = z+1;
	thumbnails();
	}
}

function previous()
{
	if (z>0)
	{
		z = z-1;
		thumbnails();
	}
}

function thumbnails()
{
	for(i=0; i<5; i++)
	{
	var num = z+i+1
		thumbimg = eval("document.getElementById('thumb"+i+"')");
		thumbimg.setAttribute('src', (thumbloc+"square/"+num+".jpg"));
	}
}