

  if(document.images) {
    pics = new Array();
    pics[01] = new Image();
    pics[01].src = "images/nav_currch_off.gif";
    pics[02] = new Image();
    pics[02].src = "images/nav_currch_on.gif";
    pics[03] = new Image();
    pics[03].src = "images/nav_about_off.gif";
    pics[04] = new Image();
    pics[04].src = "images/nav_about_on.gif";
    pics[05] = new Image();
    pics[05].src = "images/nav_prevch_off.gif";
    pics[06] = new Image();
    pics[06].src = "images/nav_prevch_on.gif";
    pics[07] = new Image();
    pics[07].src = "images/nav_contact_off.gif";
    pics[08] = new Image();
    pics[08].src = "images/nav_contact_on.gif";
    pics[09] = new Image();
    pics[09].src = "images/nav_shop_off.gif";
    pics[10] = new Image();
    pics[10].src = "images/nav_shop_on.gif";
	pics[11] = new Image();
    pics[11].src = "images/nav_home_off.gif";
    pics[12] = new Image();
    pics[12].src = "images/nav_home_on.gif";
  }
    function changer(from,to) {
    if(document.images) {
    document.images[from].src = pics[to].src;
    }
  }

function runflash()
{

//var MM_contentVersion = 5; // Change this value to match your movies exported version 4, 5, 6 
//var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
//if ( plugin ) {
//		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
//	    for (var i = 0; i < words.length; ++i)
//	    {
//		if (isNaN(parseInt(words[i])))
//		continue;
//		var MM_PluginVersion = words[i]; 
//	    }
//	var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
//}
//else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
//   && (navigator.appVersion.indexOf("Win") != -1)) {
//	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
//	document.write('on error resume next \n');
//	document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
//	document.write('</SCR' + 'IPT\> \n');
//}
//if ( MM_FlashCanPlay ) {
                // This is where JS writes your Flash OBJECT code if the plugin is present 
		document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
	document.write('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" ');
	document.write(' ID="creamy" WIDTH="282" HEIGHT="329">');
	document.write(' <PARAM NAME=movie VALUE="creamyflash.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#1b7ea7>  '); 
	document.write(' <EMBED src="creamyflash.swf" quality=high bgcolor=#1b7ea7  ');
	document.write(' swLiveConnect=FALSE WIDTH="282" HEIGHT="329" NAME="creamy"');
	document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
	document.write(' </EMBED>');
	document.write(' </OBJECT>');
//} else{
//        // This is where JS writes your NON Flash version code - you could add a redirect here to your HTML version. 
//	document.write('<a href="cgi-bin/store/imageFolio.pl"><IMG SRC="images/newimage1.jpg" WIDTH="275" HEIGHT="400" usemap="#SwishBannerFinal2" BORDER=0></a>');
//}
}

function popup(url)
{					
	window.self.name = 'mainWin';	newwindow=window.open(url,'','height=425,width=700,resizable=no,scrollbars=yes,toolbar=no,menubar=no,location=no,status=yes');
	if(window.focus) {newwindow.focus()}
}

function bookmarksite(title, url){
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}


function validate() {

mEv=document.form1.email.value;
mE2v=document.form1.repeat.value;
// mspamv=document.form1.spam.value;
if (mEv=='') {
alert('Please enter your email address');
return false;
}
if (mE2v=='') {
alert('Please enter your email again to make sure it is correct');
return false;
}

if (mEv!=mE2v)
{
alert('Emails are different.  Please check and try again!');
return false;

}
// if (mspamv=='1')
// {
// alert('Are you really a spammer?  If not, select the other box');
// return false;

// }

emailRegex=/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
if (!mEv.match(emailRegex)) {
alert('Please check your email address is correct, and without spaces');
return false


}

document.form1.submit();

}

