image01=new Image();
image01.src="/images/companyNav.gif";
image02=new Image();
image02.src="/images/peopleNav.gif";
image03=new Image();
image03.src="/images/servicesNav.gif";
image04=new Image();
image04.src="/images/clientsNav.gif";
image05=new Image();
image05.src="/images/portfolioNav.gif";
image06=new Image();
image06.src="/images/homeNav.gif";

function getPath(o){
	var url=o.src;
	var x=url.length;
	while((url.substring(x,x-8))!="/images/"){x--;}
	var start=x;
	return url.substring(url.length,start);
	}

function getFile(o){
	var path=getPath(o);
	var x=path.length;
	while((path.substring(x,x-1))!="/"){x--;}
	var start=x;
	return path.substring(path.length,start);
	}


function swap(o){
	if(!document.s)document.s=true;
	else obj.src='/images/'+filePath;
	obj=o;
	fileName=getFile(o);
	filePath=getPath(o);
	var i=fileName.length;
	var x=0;
	while((filePath.substring(x,x+i))!=fileName){x++;}
	var end=x;
	path=filePath.substring(0,end);
	obj.src='/images/'+path+'over.'+fileName;
	}

function showSpecial(o){
	resetImg();
	if(!document.wd)document.wd=true;
	else tgt.visibility='hidden';
	tgt=get(o);
	tgt=(document.layers)?t:t.style;
	tgt.visibility='visible';
	}

function restore(){
	obj.src='/images/'+path+fileName;
	}

function navSwap(o){
	l=(document.layers)?document.navbarDIV.document.navbarIMG:document.navbarIMG;
	l.src='/images/'+o+'.gif';
	}

function get(w){
	if(document.layers)t=document.layers[w];
	else if(document.all&&!document.getElementById)t=document.all[w];
	else if(document.getElementById)t=document.getElementById(w);
	return t;
	}

function hideCaseStudy(o){
	var p=get(o);
	var p=(document.layers)?t:t.style;
	p.visibility="hidden";
}

function resetImg(){
	l=(document.layers)?document.photoDIV.document.photoIMG:document.photoIMG;
	l.src='/images/portfolio/spacer.gif';
	}

function showHow(){
	m=get('creativeDIV');
	m=(document.layers)?t:t.style;
	if(m.visibility=='visible')m.visibility='hidden';
	p=get('howDIV');
	p=(document.layers)?t:t.style;
	p.visibility="visible";
	}

function show(o){
	if(document.wd)tgt.visibility='hidden';
	if(o=='creativeDIV'){
		m=get('strategicDIV');
		m=(document.layers)?t:t.style;
		m.visibility="hidden";
		}
	if(o=='casestudyDIV'){
		resetImg();
		m=get('regmarksDIV');
		m=(document.layers)?t:t.style;
		m.visibility="hidden";
		}
	else{
		m=get('regmarksDIV');
		if(m){
			m=(document.layers)?t:t.style;
			m.visibility="visible";
			}
		m=get('webDIV');
		if(m){
			m=(document.layers)?t:t.style;
			if(m.visibility=='visible')m.visibility='hidden';
			}
		}
	if(!document.u)document.u=true;
	else p.visibility="hidden";
	p=get(o);
	p=(document.layers)?t:t.style;
	p.visibility="visible";
	}

function resetSpecial(){
	if(document.wd)tgt.visibility='hidden';
	}

function sub(o){
	resetSpecial();
	m=get('regmarksDIV');
	m=(document.layers)?t:t.style;
	m.visibility="visible";
	l=(document.layers)?document.photoDIV.document.photoIMG:document.photoIMG;
	l.src='/images/portfolio/photos/'+o;
	}

function reload(init){
	if(init==true)with(navigator){
		if((appName=="Netscape")&&(parseInt(appVersion)==4)){
			document.is_pgW=innerWidth;
			document.is_pgH=innerHeight;
			onresize=reload;
		}
	}
	else if(innerWidth!=document.is_pgW||innerHeight!=document.is_pgH)
		location.reload();
}
reload(true);