function startallprojectsdemo1(){
	display=new Array('none','none','none','none','none','none');
	className=new Array('AllProjectsIntro1TopButtonTableCellNotActive','AllProjectsIntro1TopButtonTableCellNotActive','AllProjectsIntro1TopButtonTableCellNotActive','AllProjectsIntro1TopButtonTableCellNotActive','AllProjectsIntro1TopButtonTableCellNotActive','AllProjectsIntro1TopButtonTableCellNotActive');
	$='document.getElementById';
	str='';
	for(i=1;i<7;i++){
		display[i-1]='block';
		className[i-1]='AllProjectsIntro1TopButtonTableCellActive';
		id1=$+'("AllProjectsIntro1TopButtonA'+i+'")';
		if(eval(id1)==null){continue;}
		str += id1+'.onclick = function(){';
		z=0;
		for(j=1;j<7;j++){
			str += $+'("AllProjectsIntro1TopButtonA'+j+'").className="'+className[z]+'";';
			str += $+'("AllProjectsDemo1MiddlePanelB'+j+'").style.display="'+display[z]+'";';
			z++;
		}
		str += '};';
		display[i-1]='none';
		className[i-1]='AllProjectsIntro1TopButtonTableCellNotActive';
	}
	eval(str);
};

function allprojectsdemo1ShowBigImg(){
	SetBigImg();
	CloseBigImg();
	$='document.getElementById';
	str='';
	str1='';
	id2 = $ + '("DivBigImg1")';
	id3 = $ + '("ImgBigImg2")';
	id4 = $ + '("ImgBigImg1")'
	for(i=1;i<7;i++){
		id1 = $ + '("AllProjectsIntro1Img'+i+'")';
		if(eval(id1)==null){continue;}
		str += id1 + '.onclick = function(){SetBigImg();';
		str += id3 + '.style.display="none";';
		str += id4 + '.style.display="inline-block";';
		str += 'loadingImgTimer=setTimeout("SwapBigImg()",2000);';
		str += 'eval(\'if(window.innerHeight>600){valHeight=window.innerHeight/2-300;}else{valHeight=0;}\');';
		str += 'eval(\'if(window.innerWidth>800){valWidth=window.innerWidth/2-400;}else{valWidth=0;}\');';
		str += 'eval(\'if(loadingImgIE==1){window.innerWidth=null;}\');';
		str += id2 + '.style.left=eval(\'\"\'+(valWidth)+\'px\"\');';
		str += id2 + '.style.top=eval(\'\"\'+(valHeight)+\'px\"\');';
		str += id2 + '.style.display="block";';
		str += id3 + '.src="'+(eval(id1).src).replace(/\.jpg/,"_big.jpg")+'";';	
		str += '};';
	}
	eval(str);
};
