if (document.images) {  

	image1on = new Image(); 
	image1on.src = "<?=$c->rootPath."/";?>images/template/navi/home_1.jpg";
	image1off = new Image();  
	image1off.src = "<?=$c->rootPath."/";?>images/template/navi/home_0.jpg";
	
	image2on = new Image(); 
	image2on.src = "<?=$c->rootPath."/";?>images/template/navi/aboutme_1.jpg";
	image2off = new Image();  
	image2off.src = "<?=$c->rootPath."/";?>images/template/navi/aboutme_0.jpg";

	image3on = new Image(); 
	image3on.src = "<?=$c->rootPath."/";?>images/template/navi/portfolio_1.jpg";
	image3off = new Image();  
	image3off.src = "<?=$c->rootPath."/";?>images/template/navi/portfolio_0.jpg";

	image4on = new Image(); 
	image4on.src = "<?=$c->rootPath."/";?>images/template/navi/projects_1.jpg";
	image4off = new Image();  
	image4off.src = "<?=$c->rootPath."/";?>images/template/navi/projects_0.jpg";

	image5on = new Image(); 
	image5on.src = "<?=$c->rootPath."/";?>images/template/navi/contact_1.jpg";
	image5off = new Image();  
	image5off.src = "<?=$c->rootPath."/";?>images/template/navi/contact_0.jpg";
}
function changeNaviImages(){ 
	if (document.images) 
	{ 
		for (var i=0; i<changeNaviImages.arguments.length; i += 2){  
			document[changeNaviImages.arguments[i]].src =  eval(changeNaviImages.arguments[i+1] + ".src"); 
	    }  
    }    
}

var gallerywin;

function mmcgallerypopup(dateiname, breite, hoehe) {
    
	content = '';
	content += '<html>';
	content += '<head>';
	content += '<title>Ceusnet Galerie</title>';
	content += '<body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0" bgcolor="white">';
	content += '<table cellspacing="0" cellpadding="0" border="0">';
	content += '<tr><td>';
	content += '<a href="javascript:window.self.close();"><img src="'+dateiname+'"width="'+breite+'" height="'+hoehe+'" border="0" alt="Close!"></a>';
	content += '</td></tr>';
	content += '</table>';
	content += '</body></html>';	
	
	if (gallerywin)	if(!gallerywin.closed) gallerywin.self.close();
		
	

	gallerywin = window.open('','gallerywin','width='+breite+',height='+hoehe+'');	
	
	gallerywin.document.open();
	gallerywin.document.writeln(content);
	gallerywin.document.close();

	gallerywin.focus();
}

function changeAboutMeBild(bildname) {		
	neu = document.images[bildname].src
	document.images["aboutme"].src = neu;
}

function testing() {
	alert("Das ist ein Test!");	
}
