/**
 * portfolio js
*/
var gPath = "fileadmin/portfolio/images/";
var oFile = "fileadmin/portfolio/images/btn_swapon.jpg";
var cActive = null;
var cActived = null;
var oActived = null;
// preload images
var newimages=new Array()
function preLoadpic(){
	for (i=0;i<preLoadpic.arguments.length;i++){
		newimages[i]=new Image()
		newimages[i].src=gPath+preLoadpic.arguments[i]
	}
}
preLoadpic("port111.jpg","port112.jpg","port113.jpg","port114.jpg",
			"port121.jpg","port122.jpg","port123.jpg","port124.jpg",
			"port131.jpg","port132.jpg","port133.jpg","port134.jpg",
			"port141.jpg","port142.jpg","port143.jpg","port144.jpg",
			"port151.jpg","port152.jpg","port153.jpg","port154.jpg",
			"port162.jpg","port163.jpg","port163.jpg");
function swapImgRestore()
{
	var i,x,a=document.sr;
	for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc&&x.id!=cActived;i++) x.src=x.oSrc;
}
function findObj(n, d)
{
	var p,i,x;
	if(!d) d=document;
	cActive=n;
	if((p=n.indexOf("?"))>0&&parent.frames.length)
	{
		d=parent.frames[n.substring(p+1)].document;
		n=n.substring(0,p);
	}
	if(!(x=d[n])&&d.all) x=d.all[n];
	for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document);
	if(!x && d.getElementById) x=d.getElementById(n);
	return x;
}
function swapImage()
{
	var i,j=0,x,a=swapImage.arguments;
	document.sr=new Array;
	for(i=0;i<(a.length-2);i+=3)
	if ((x=findObj(a[i]))!=null)
	{
		document.sr[j++]=x;
		if(!x.oSrc) x.oSrc=x.src;
		x.src=gPath+a[i+2];
		cActive=x.id;
	}
}
///////////////////////////////////////
function oReplace(bool)
{
	var tip1 = document.getElementById("tip1");
	var tip2 = document.getElementById("tip2");
	var sub1 = document.getElementById("portfoliosub1");
	var sub2 = document.getElementById("portfoliosub2");
	if (bool)
	{
		if (tip1.style.display != 'none')
		{
			tip1.style.display = 'none';
			tip2.style.display = 'block';
		}
		
		if (sub1.style.display != 'none')
		{
			sub1.style.display = 'none';
			sub2.style.display = 'block';
		}
	}
	else
	{
		if (tip2.style.display != 'none')
		{
			tip2.style.display = 'none';
			tip1.style.display = 'block';
		}
		
		if (sub2.style.display != 'none')
		{
			sub2.style.display = 'none';
			sub1.style.display = 'block';
		}
	}
}

function showDetail(title,contents,url)
{
	document.getElementById("CompanyTitle").innerHTML=title;
	document.getElementById("CompanyContent").innerHTML=contents;
	document.getElementById("CompanyURLs").innerHTML=url;
}

function fMovie(flafolder,transparent)
{
	objflash=document.getElementById("portfoliosub2");
	objflash.innerHTML="";
	if (transparent){
	objflash.innerHTML="<embed src=\"fileadmin/portfolio/flash/"+flafolder+"/web.swf\" quality=\"high\"  pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"378\" height=\"256\" wmode=\"transparent\"><\/embed>";
	}else{
	objflash.innerHTML="<embed src=\"fileadmin/portfolio/flash/"+flafolder+"/web.swf\" quality=\"high\"  pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"378\" height=\"256\"><\/embed>";
	}
}
////////////////////////////////////////////////////////////
// simplification function
function swapImg(img) {
	swapImage(img,'',img+'.jpg',0);
}

function reImg() {
	swapImgRestore();
}
////////////////////////////////////////////////////////////
//
//     Portfolio page.
//       port111 is 'port'+<page>+<x>+<y>.
//
//                06.10.11
//
////////////////////////////////////////////////////////////
// return urls
var sURL;
function setURL(sURL)
{
	return "<div><a href='http://"+sURL+"/' target='_blank'>"+sURL+"</a></div>";
}
function pShow(s)
{
	var title,contents,url;
	oActived = cActived;
	cActived = cActive;
	if(oActived&&cActive!=oActived)
	{
		document.getElementById(oActived).src=oFile;
	}
	oReplace(true);
	switch (s)
	{
		//////////////////////Add,Modify Area////////////////
		case "port111" :
			title = "Crevople";
			contents = "A Canadian interactive media and IT solutions provider. Crevople and VisionTen also combine expertise and skillsets to co-deliver selected projects for Crevople customers.";
			//url = setURL('www.crevople.com'); // if have url call function setURL(<[str]url>); <url> such as: www.crevople.com, no 'http://'
			url = "Site now offline";
			fMovie("crevople",true); // the function fMovie(<[str]swf folder>, <[bol]transparent>);
			break;
		case "port112" :
			title = "Amongst White Clouds";
			contents = "VisionTEN designed and built this official movie website in late 2005 for its global premiere in California. The movie has played in about 15 festivals in North America and is currently distributed on DVD in America and Canada. In 2007 we installed a CMS and eCommerce system for the sale of DVDs and products worldwide.";
			url = setURL('www.amongstclouds.com');;
			fMovie("amongst",true);
			break;
		case "port113" :
			title = "FracRite Environmental";
			contents = "Fracrite is an environmental company focusing on Bio-remediation. We built a website and designed a company image for them. The website was also built to their target audience of technical and engineering people around the world.";
			url = setURL('www.fracrite.ca');
			fMovie("fracrite",true);
			break;
		case "port114" :
			title = "A Life in Shadows";
			contents = "This is the official movie site for the film A Life in Shadows. Built with interactivity, lots of images and a bit of fun from the film. The movie will be launching in 2007.";
			url = setURL('www.alifeinshadows.com');
			fMovie("shadows",true);
			break;
		////////////////	
		case "port121" :
			title = "Vacci-Test&trade;";
			contents = "Vacci-Test&trade; is a medical and bio-tech company that develops fast and efficient testing for diseases in humans and animals. Their audience of governments, scientists, doctors, investors and companies was also diverse geographically. We helped them with their Logo and branding, website with content management system, a secure site for investors. VisionTEN continues to work with Vacci-Test not only on the web but other technical projects as well.<p>2006 site</p>";
			url = setURL('www.vaccitest.com');
			fMovie("vacci-test",true);
			break;
		case "port122" :
			title = "TeeTime China";
			contents = "TeeTime China is a social golf community in Beijing, China. We gave them a new look for their website for the 2006 season.";
			url = setURL('www.teetimechina.com');
			fMovie("teetime",true);
			break;
		case "port123" :
			title = "Remedx";
			contents = "For 40 years, the staff at RemedX have been helping their customers solve environmental problems. We helped them with their image to the world on the web, created and built their new website.";
			url = setURL('www.remedx.net');
			fMovie("remedx",true);
			break;
		case "port124" :
			title = "Gertie Gertrude";
			contents = "Gertie Gertrude is a fun financial commentary that came to us as a concept. The writers wanted to have a design that was fun but also wanted to make sure that the site was easy to maintain and update.<br /><br />We implemented a blog style format for them and chose an open source content management platform that they could grow into.   The platform is expandable for future functionality and the current features will organize their content so it is easily found.<br /><br />We wish the best of luck for Gertie G. and hope her readers can also have some financial fun!";
			url = setURL('www.gertieg.com');
			fMovie("gertieg",true);
			break;
			//title = "Petro Andina Resources";
			//contents = "We started working with Petro Andina in 2005 when they were a small oil and gas company.  We built their first website with their existing corporate branding and image.   In 2007 they have made amazing progress and started trading publicly on the Toronto Stock Exchange.<br /><br />Petro Andina is based in Canada and Argentina and develops oil properties mostly in South America.  We look forward to continue working with them through their exceptional growth.";
			//url = setURL('www.petroandina.com');
			//fMovie("petroandina",true);
			//break;
		//////////////////	
		case "port131" :
			title = "Peak Performance Seminars";
			contents = "Peak Performance Seminars is an executive coaching and training company specializing in and partnered with Brian Tracy. We helped them design and develop their first website to enable them to get information to their customers. We implemented a custom content management system for them to be able to update the website at will.<br /><br />This website was built by VisionTEN and Crevople.";
			url = setURL('www.peakperformanceseminars.ca');
			fMovie("peak",true);
			break;
		case "port132" :
			title = "McNally Cuming Raymaker";
			contents = "McNally Cuming Raymaker is a law firm specializing in injuries, medical malpractice and class action lawsuits in Canada. We started out to redesign, build and maintain their website. We continue to work with them to help with their other technology needs such as designing and building custom database application to support large class action lawsuit and comply with relevant court orders. We look forward to continue to help them with solutions so they can concentrate on their law firm and clients.";
			url = setURL('www.mcnallycuming.com');
			fMovie("mcnally",true);
			break;
		case "port133" :
			title = "Knickers 'n Lace";
			contents = "Knickers 'n Lace is a high end lingerie boutique in Canada. They sell the best brands from around the world and their customers expect the best service. We helped to create that same upscale image for them and built their new (and first) website.";
			//url = setURL('www.knickersnlace.ca');
			url = "Site now offline";
			fMovie("knickers",true);
			break;
		case "port134" :
			title = "Jarrett Craig";
			contents = "Jarrett Craig is a Cinematographer and Director of Photography in the motion picture business. He has worked for the last ten years on many films and television shows. He wanted to create a presence on the web with a place for the industry to see his work.<br /><br />We designed a funky and fun site for him to show photos, video and keep everyone up to date.";
			url = setURL('www.jarrettcraig.com');
			fMovie("jarrett",true);
			break;
		/////////////////	
		case "port141" :
			title = "Cosmos Pictures";
			contents = "Cosmos Pictures is a Canadian film and media production company. They have completed two films to date. The first, Amongst White Clouds has played at over 15 film festivals in North America and will be distributed on DVD in 2007. We are responsible for all their websites, logos, graphics and images for promotion, marketing and distribution of the films and related products.";
			url = setURL('www.cosmos-pictures.com');
			fMovie("cosmos",true);
			break;
		case "port142" :
			title = "Tigersul";
			contents = "Tigersul is is the world leader in bentonite sulphur and bentonite micronutrient technology. They manufacture products for the Agricultural, Organic and Turf markets around the globe.<br /><br />VisionTEN helped them to re-design and rebuild their website with a fresh new image. We also implemented a content management system with &quot;Google like&quot; search, multilingual capability and many more features. They also can manage and update their site themselves with no technical know-how. The site will be launched very soon.";
			url = setURL('www.tigersul.com');
			fMovie("tigersul",true);
			break;
		case "port143" :
			title = "ArunaLabs";
			contents = "Is a suite of web based applications that is tailored specifically for the enterprise.  We have helped Aruna from concept, through design, web delivery and also the development, launch and maintenance of the hosted services and servers.  The multi domain websites were built around a common content management system to provide ease of maintenance and scalability for growth.<br /><br /><u>The Services Are:</u><br /><u><a href='http://email.arunalabs.com/' target='_blank'>Aruna eMail</a></u> - Hosted AJAX corporate email suite + collaboration<br /><u><a href='http://im.arunalabs.com/' target='_blank'>Aruna IM</a></u> - Secure IM (instant messaging) for companies<br /><u><a href='http://send.arunalabs.com/' target='_blank'>Aruna Send</a></u> - Send, manage and backup large files<br /><u><a href='http://erp.arunalabs.com/' target='_blank'>Aruna ERP</a></u> - In development.";
			url = setURL('http://www.arunalabs.com/');
			fMovie("arunalabs",true);
			break;
		case "port144" :
			title = "TwitTown Community";
			contents = "The TwitTown website brings together developers, users and fans of the Twitter communication platform.  It allows community members to chat in the forums, read news on the blogs and also provides a repository for Twitter tools services and applications that are relevant to the community.<br /><br />The site was designed in a simplistic but pleasing fashion while integrating web 2.0 features such as comments, linking, discussions, forums, bookmarking and blogs.  The underlying platform is a a powerful Content Management system that has been customized by VisionTEN to suit the specific needs of TwitTown.<br /><br />The site is already gaining traction and their community is growing quickly.  We look forward to working with them to help the TwitTown site and community grow.";
			url = setURL('www.twittown.com');
			fMovie("twittown",true);
			break;
		case "port151" :
			title = "Mensa Society";
			contents = "Mensa is the largest, oldest, and best-known high-IQ society in the world. The organization restricts its membership to people with high testable IQs.<br /><br />We worked with them to deliver a new fresh and clean design that would better accommodate their monthly newsletter format. We also, installed a content management system so the new editor can update, post and maintain the website themselves. Finally, we did work to make sure that the site is optimized for the search engines.<br /><br />We will continue to work with Mensa to build a site that is more and more interactive for their members to enjoy!";
			url = setURL('www.mensacalgary.org');
			fMovie("mensa",true);
			break;
		case "port152" :
			title = "Vacci-Test 2007 Website";
			contents = "This year Vacci-Test Corporation has been working hard on many aspects of their business.  They have made several acquisitions and their business is progressing in both Canada and Europe.<br /><br />This year they needed a refresh of their website to reflect the changes and growth in their business.   VisionTEN leveraged the powerful content management system initially implemented to get the changed site up and running quickly.";
			url = setURL('www.vaccitest.com');
			fMovie("vacci2007",true);
			break;
		case "port153" :
			title = "Moneylet";
			contents = "Moneylet is a global finance, business and investing news site that lets the users choose which financial news is popular. It combines web 2.0 features such as AJAX, tags, RSS, messaging, sharing and integration with other sites and blogs with plug-ins and widgets.<br /><br />We also helped them to build a facebook application that allows 32 Million Facebook users to read the financial news from within facebook.<br /><br />VisionTEN worked with ML to design, plan and build the website from concept through to implementation. We look forward to continue on the project as Moneylet's sole technology partner.";
			url = setURL('www.moneylet.com');
			fMovie("moneylet",true);
			break;
		//case "port154" :
			
		case "port154" :
			title = "Strategic Economic Decisions";
			contents = "Strategic Economic Decisions is a high end subscription based service which is the first research platform that fully integrates economic and market research with ongoing education about the counterintuitive behavior of the economy and the financial markets. Some of their previous clients are governments, heads of state, investment banks, portfolio managers and the largest corporations.<br/><br/>They wanted a re-designed site that has a bold style but also traditional looking to fit the likes of their discerning clientele. The site has an enterprise class CMS system that is the foundation for the subscription management and content management. We look forward to working with SED to help grow their web platform and business.";

			url = setURL('www.sedinc.com');
			fMovie("sed",true);
			break;
		case "port161" :
			title = "CampaignScape";
			contents = "Is a book that will be published exclusively online.  We designed the branding and website for them and will operate and maintain the site for them.  The synopsis is as follows:<br/><br/>\"A Presidential election campaign rampages along with a new drug, and a Chinese spy infiltrates both. Or is the spy a patriot? The drug extends human life to two hundred years. The battle to control the next President and the entire nation has just begun.\"<br/><br/>Chapters of the book will be released online throughout 2008.";
			url = setURL('www.CampaignScape.com');
			fMovie("campaignscape",true);
			break;
		case "port162" :
			title = "Tim Martin";
			contents = "Is one of the top international lawyers in the world and works with governments and companies at the highest levels.  He is known for his arbitration, governance and transactional work in over 47 countries.<br/><br/>We worked with Mr. Martin to develop branding, image, and a website design that would represent his consultancy business.  We also helped to create design collateral.  The website is driven by a powerful enterprise database driven CMS that allows his our our team to update the site at anytime.";
			url = setURL('www.timmartin.ca');
			fMovie("timmartin",true);
			break;
		
		/////////////////////////////////////////////////////
		default:
			break;
	}
	showDetail(title,contents,url);
}