function openWin(wFile,wWidth,wHeight,wScrolling)
{
	myWin=window.open(wFile,'Win','width='+wWidth+'px,height='+wHeight+'px,resizable,scrollbars='+wScrolling);
	myWin.moveTo((screen.width/2)-(wWidth/2),(screen.height/2)-(wHeight/2));
	myWin.focus();
}

function changeStyle(id)
{
	obj = document.getElementById(id)	
	if(obj.className=="projects")
		obj.className = "projectsActive";
	else if(obj.className=="projectsActive")
		obj.className ="projects";
		
}

function show(id)
{
	obj = document.getElementById(id);
	objLink = document.getElementById(id+'Link');
	
	parentLink = document.getElementById('projectsLinks');
	parentImages = document.getElementById('projectsImagesContainer');
	
	links = parentLink.getElementsByTagName('a');
	for(i=0; i<links.length; i++)
	{
		if(links[i].id!=id+'Link')	
			links[i].style.fontWeight = "normal";
	}
	
	images = parentImages.getElementsByTagName('div');
	for(i=0; i<images.length; i++)
	{
		if(images[i].id!=id)	
			images[i].style.display = "none";
	}
	
	obj.style.display = "block";
	objLink.style.fontWeight = "bold";
}