function attachMochaLinkEvents(){

	if ($('lawwindow')){ 
		$('lawwindow').addEvent('click', function(e){
			new Event(e).stop();
			
			law_file = "../include/rechtliches";
			if (document.URL.toLowerCase().indexOf('manage')>-1){ law_file += '_vtm'; }
			if (document.URL.toLowerCase().indexOf('events')>-1){ law_file += '_events';}
			if (document.URL.toLowerCase().indexOf('time')>-1){ law_file +='_time';}
			if (document.URL.toLowerCase().indexOf('professional')>-1){ law_file +='_prof';}	
	
			if (document.URL.toLowerCase().indexOf('_en')>-1){
				law_file += '_en';
			}
			law_file +='.html';     	
			
			document.mochaUI.newWindow({
				id: 'ajaxpage',
				title: 'Rechtliches',
				maximizable: true,	
				loadMethod: 'iframe',
				contentURL: law_file ,
                width: 580,
                height: 370,
                x: 70,
                y: 70,
                cornerRadius: 3
			});
		});
	}


 	if ($('dbsearchwindow')){ 		
		$('dbsearchwindow').addEvent('click', function(e){	
			new Event(e).stop();
			db_titel = 'Datenbank Suchergebniss';
			db_file = '../include/dbsearch';
			
			if (document.URL.toLowerCase().indexOf('_en')>-1){
				db_titel = 'Database search result'; 
				db_file += '_en';
			}
			
			db_file +='.php?' + document.jobs.skills.value,
			
			document.mochaUI.newWindow({
				id: 'dbwin',
				title: db_titel,
				maximizable: true,	
				loadMethod: 'iframe',
				contentURL: db_file,
                width: 580,
                height: 470,
                x: 30,
                y: 30,
                cornerRadius: 3
			});
		});
	}

 	if ($('dbsearchwindow2')){ 		
		$('dbsearchwindow2').addEvent('click', function(e){	
			new Event(e).stop();
			db_titel = 'Datenbank Suchergebniss';
			db_file = '../include/dbsearch';
			
			if (document.URL.toLowerCase().indexOf('_en')>-1){
				db_titel = 'Database search result'; 
				db_file += '_en';
			}
			
			db_file +='.php?' + document.jobs2.skills.value,
			
			document.mochaUI.newWindow({
				id: 'dbwin2',
				title: db_titel,
				maximizable: true,	
				loadMethod: 'iframe',
				contentURL: db_file,
                width: 580,
                height: 470,
                x: 30,
                y: 30,
                cornerRadius: 3
			});
		});
	}



                   
                    
	if ($('kati')){ 
		$('kati').addEvent('click', function(e){
			new Event(e).stop();		      	
			document.mochaUI.newWindow({
				id: 'pic_kati',
				title: 'Katja Lorenowicz',
				maximizable: true,	
				loadMethod: 'iframe',
				contentURL: '../include/kati.html' ,
                width: 580,
                height: 470,
                x: 50,
                y: 50,
                cornerRadius: 3
			});
		});
	}                   
           
    
	if ($('tvt')){ 
		$('tvt').addEvent('click', function(e){
			new Event(e).stop();		      	
			document.mochaUI.newWindow({
				id: 'pic_tvt',
				title: 'Martina Voigtländer-Tetzner',
				maximizable: true,	
				loadMethod: 'iframe',
				contentURL: '../include/tvt.html' ,
                width: 580,
                height: 370,
                x: 50,
                y: 50,
                cornerRadius: 3
			});
		});
	}                   

           
	if ($('elm')){ 
		$('elm').addEvent('click', function(e){
			new Event(e).stop();		      	
			document.mochaUI.newWindow({
				id: 'pic_elm',
				title: 'Eleni Markou',
				maximizable: true,	
				loadMethod: 'iframe',
				contentURL: '../include/elm.html' ,
                width: 580,
                height: 370,
                x: 50,
                y: 50,
                cornerRadius: 3
			});
		});
	}                   


	if ($('grp')){ 
		$('grp').addEvent('click', function(e){
			new Event(e).stop();		      	
			document.mochaUI.newWindow({
				id: 'pic_grp',
				title: 'Workgroup',
				maximizable: true,	
				loadMethod: 'iframe',
				contentURL: '../include/group.html' ,
                width: 580,
                height: 370,
                x: 50,
                y: 50,
                cornerRadius: 3
			});
		});
	}                   

	if ($('contact')){
                $('contact').addEvent('click', function(e){
                    new Event(e).stop();
					
					contact_file = "../include/kontakt";
					if (document.URL.toLowerCase().indexOf('_en')>-1){
						contact_file += '_en';
					}
					contact_file +='.php';
     	
                    document.mochaUI.newWindow({
                        id: 'contactwin',
                        title: 'Kontakt',
                        loadMethod: 'iframe',
                        contentURL: contact_file,
                        width: 580,
                        height: 370
                    });

                });
				
    };	
	
	if ($('route')){
                $('route').addEvent('click', function(e){
                    new Event(e).stop();
					
				    route_file = "../include/anfahrt";
					if (document.URL.toLowerCase().indexOf('_en')>-1){
						route_file += '_en';
					}
					route_file +='.html';
					
                    document.mochaUI.newWindow({
                        id: 'routewin',
                        title: 'Wegbeschreibung',
                        loadMethod: 'iframe',
                        contentURL: route_file,
                        width: 620,
                        height: 470,
                        x: 50,
                        y: 20
                    });

                });
    };
	
	
	if ($(' gmaps')){
                $('g maps').addEvent('click', function(e){
                    new Event(e).stop();
					
					
				    /*route_file = "http://maps.google.de/maps?f=q&amp;hl=";
					if (document.URL.toLowerCase().indexOf('_en')>-1){
						route_file += 'us';
					} else {
						route_file += 'de';
					}
					route_file +="&amp;geocode=&amp;time=&amp;date=&amp;ttype=&amp;q=Staufenstrasse+46,+60323+Frankfurt+am+Main&amp;sll=50.11863,8.664649&amp;sspn=0.009975,0.022573&amp;ie=UTF8&amp;om=0&amp;ll=50.125421,8.668814&amp;spn=0.019259,0.036478&amp;z=14&amp;iwloc=addr&amp;source=embed; text-align:left','Anfahrt',1000,600)";
					*/
					alert('MAX');
					document.mochaUI.maximizeWindow($('routewin'));
					//this.getSubElement($('routewin'), 'iframe').maximizeWindow();
					//document.mochaUI.getSubElement($('routewin'), 'iframe').src = route_file;
					
                    

                });
    };
	
	
	
	// Deactivate menu header links
	$$('a.returnFalse').each(function(el){
		el.addEvent('click', function(e){
			new Event(e).stop();
		});
	});
	
}