var project_id = new Array(10);
var project_title = new Array(10);
var project_url = new Array(10);
var project_description = new Array(10);
var project_technical = new Array(10);

//IDs
project_id[1]="littlelollypops";
project_id[2]="merrick";
project_id[3]="rbm";
project_id[4]="welichem";
project_id[5]="canadapaintings";
project_id[6]="ctysdal";
project_id[7]="picot";
project_id[8]="cosyposy";
	      
//Titles      
project_title[1]="Little Lollypops";
project_title[2]="Merrick Architecture";
project_title[3]="Response Biomedical Corp.";
project_title[4]="Welichem Biotech Inc.";
project_title[5]="Canada Paintings";
project_title[6]="C.Tysdal, Canadian Artist";
project_title[7]="Picot Entertainment";
project_title[8]="Cosyposy Childrenswear";

//Urls		 
project_url[1]="http://www.littlelollypops.co.uk";
project_url[2]="http://www.merrickarch.com";
project_url[3]="http://www.responsebio.com";
project_url[4]="";
project_url[5]="http://www.canadapaintings.com";
project_url[6]="http://www.ctysdal.com";
project_url[7]="";
project_url[8]="http://www.cosyposy.co.uk";

//Descriptions
project_description[1]="Little Lollypops is a gorgeous baby boutique offering stylish baby designer clothing, scrumptious nursery items and adorable gifts for the newest family member.";
project_description[2]="Web site makeover for an eminent Canadian architect firm, involving cosmetic and back-end restructuring.";
project_description[3]="Response Biomedical commissioned a new web site that would reflect the change in their corporate direction from startup investor phase to a marketing and sales phase.<p>This multi-million dollar corporation required the site to introduce their new corporate branding and market positioning initiatives. In addition, the easily navigated site sets the stage for further development of on-line purchasing and customer service functions.<p>We also developed an application for HTML generated newsletters for the client.";
project_description[4]="Experts in the field of symbiotic microorganisms, Welichem Biotech had recently made ground breaking discoveries in their field, and decided they needed a new web site to reflect their rise in status within the industry.";
project_description[5]="CanadaPaintings.com is a show case for the work of Marianne Schovsbo Smyth, a very talented Canadian artist.<p>The dark background we used makes a perfect foil to the brilliant colors on display in her paintings.";
project_description[6]="A show case for the artwork of C. Tysdal. The color scheme and feel of the site was inspired by one of her paintings.";
project_description[7]="This web site was commissioned by Picot Entertainment, an event organizing company based in London. They requested a trendy, young look consistent with their clientele. Our solution included the use of graphics with 'edge' and a fashionable color scheme.";
project_description[8]="E-commerce web site for &acute;Cosy Posy&acute;, a retailer of high-end children&acute;s clothing.";

//Technical details
project_technical[1]="<ul><li>PHP E-commerce web site with DHTML, CSS</li><li>User subscriptions</li><li>Secure Credit Card input</li><li>E-mail generation</li><li>Shopping bag</li><li>Management functions</li><li>One-click customer invoice generation</li><li>Newsletter generation</li><li>Real-time log viewing</li>";
project_technical[2]="<ul><li>PHP web site with DHTML, CSS</li><li>User subscriptions</li><li>Cross-browser transparency effects on home page slide show</li><li>Client administration pages to effect site updates</li><li>Contact form(s) with HTML e-mail generation</li></ul>";
project_technical[3]="<ul><li>ASP web site with CSS</li><li>User subscriptions</li><li>Newsletters</li><li>Client administration pages to effect site updates</li><li>SSL Certificate</li><li>Contact form(s) with HTML e-mail generation</li></ul>";
project_technical[4]="<ul><li>ASP web site with CSS</li><li>Client administration pages to effect site updates</li><li>Contact form with HTML e-mail generation</li></ul>";
project_technical[5]="<ul><li>Web site</li><li>CSS</li><li>Contact form with HTML e-mail generation</li>";
project_technical[6]="<ul><li>Web site</li><li>Contact form with HTML e-mail generation</li>";
project_technical[7]="<ul><li>Web site</li><li>Contact form with HTML e-mail generation</li>";
project_technical[8]="<ul><li>PHP E-commerce web site with DHTML, CSS</li><li>User subscriptions</li><li>Secure Credit Card input</li><li>E-mail generation</li><li>Shopping bag</li><li>Management functions</li><li>One-click customer invoice generation</li><li>Newsletter generation</li><li>Real-time log viewing</li>";

function xclickedButton(whichbutton) {
	document.getElementById("hrefxbutton1").style.backgroundPosition="0px 0px";
	document.getElementById("hrefxbutton2").style.backgroundPosition="0px 0px";
	document.getElementById("hrefxbutton3").style.backgroundPosition="0px 0px";
	document.getElementById("hrefxbutton"+whichbutton).style.backgroundPosition="-83px 0px";
	document.getElementById("xProjectLargeImage").src="../images/portfolio_" + currentProject + "_shot0" + whichbutton + ".jpg";
	}
function readProject()	{
	xs = "" + document.location + "";
	xs = midOf(xs,xs.indexOf("?project=")+10);
	return xs
	}
function midOf(what,fromwhere) {
	return what.substr(fromwhere-1,what.length-fromwhere+1)
	}
function browserDetect(withform) {
	var browserName=navigator.appName; 
	if (browserName!="Microsoft Internet Explorer")
		{
		document.getElementById("horizontalmenu").style.top="18px";
		document.getElementById("horizontalmenu").style.left="-18px";
		if (withform=="with_form")
			document.getElementById("pagecontent").style.top="65px";
		}
	}
function initAllProjects(xcurrentproject,fromwhere) {
		currentProject=xcurrentproject;
		for (j=1;j<=8;j++)
			{
			if (project_id[j]==xcurrentproject)
				document.getElementById("xProjectName" + j.toString()).innerHTML="<b>"+project_title[j]+"</b>";
			else
				document.getElementById("xProjectName" + j.toString()).innerHTML=project_title[j];
			if (fromwhere=="fromMainPage")
				{
				//main page
				document.getElementById("xProjectThumbnail" + j.toString()).src="../images/portfolio_" + project_id[j] + ".jpg";
				document.getElementById("xProjectThumbnail" + j.toString()).alt=document.getElementById("xProjectName" + j.toString()).innerHTML;
				}
			document.getElementById("xProjectLink" + j.toString()).href="portfolio_viewer.php?project="+project_id[j];
			document.getElementById("yProjectLink" + j.toString()).href="portfolio_viewer.php?project="+project_id[j];
			if (project_id[j]==xcurrentproject)
				{
				document.getElementById("xProjectLink"+j.toString()).style.backgroundColor="#FFFFFF";
				document.getElementById("xImageProjectName"+j.toString()).src="../images/spacer.gif";
				document.getElementById("projectDefinition").innerHTML=project_description[j];
				if (project_url[j]=="")
					{ document.getElementById("projectSpecification").innerHTML=project_technical[j]; }
				else
					{ document.getElementById("projectSpecification").innerHTML=project_technical[j] + "<p><a href='" + project_url[j] + "' class='standard'>Visit " + project_title[j] + "</a>"; }
				if (fromwhere!="fromMainPage")
					{
					//previewer
					document.getElementById("xProjectName").innerHTML=project_title[j];
					document.getElementById("xProjectLargeImage").src="../images/portfolio_" + project_id[j] + "_shot01.jpg";
					document.getElementById("xProjectLargeImage").alt=project_title[j];
					}
					
				}
			}
	}
