var title = document.title;
var url = document.location.pathname;
var Fach;
if (url.search(/\/webunits\/deutsch/) != -1)
	Fach = 1; // Deutsch
else if (url.search(/\/webunits\/englisch/) != -1)
	Fach = 2; // Englisch
else if (url.search(/\/webunits\/franzoesisch/) != -1)
	Fach = 3; // Französisch
else if (url.search(/\/webunits\/politik/) != -1)
	Fach = 4; // Politik
else if (url.search(/\/webunits\/webwerkstatt/) != -1)
	Fach = 5; // Webwerkstatt
else
	Fach = 0; // unbekannt
var strOg;
switch (Fach)
{
	case 2: strOg = "UVO";
	case 3: strOg = "Sek - Französisch";
	default: strOg = "Webunits";
}

var metatags = "<META name=\"WT.ti\" content=\"" + strOg + " ," + title + ":" + url + "\">" + 
	"<META name=\"CO.vb\" content=\"2\">" + 
	"<META name=\"CO.re\" content=\"OD\">" + 
	"<META name=\"CO.sf\" content=\"Sekundarstufen\">";
switch (Fach)
{
	case 1: metatags += "<META name=\"CO.fa\" content=\"Deutsch\">" + 
						"<META name=\"CO.cm\" content=\"\">";
	case 2: metatags += "<META name=\"CO.fa\" content=\"Englisch\">" + 
						"<META name=\"CO.cm\" content=\"KDL\">";
	case 3: metatags += "<META name=\"CO.fa\" content=\"Franzoesisch\">" + 
						"<META name=\"CO.cm\" content=\"elb\">";
	case 4: metatags += "<META name=\"CO.fa\" content=\"Politik\">" + 
						"<META name=\"CO.cm\" content=\"\">";
	case 5: metatags += "<META name=\"CO.fa\" content=\"Webwerkstatt\">" + 
						"<META name=\"CO.cm\" content=\"\">";
	default: metatags += "<META name=\"CO.fa\" content=\"\">" + 
						"<META name=\"CO.cm\" content=\"\">";
}
	
metatags +=  "<META name=\"CO.og\" content=\"" + strOg + "\">" + 
 "<META name=\"CO.br\" content=\"" + title + "\">" + 
 "<META name=\"CO.ru\" content=\"\">" + 
 "<META name=\"CO.ag\" content=\"\">" + 
 "<META name=\"CO.og_r\" content=\"\">" + 

 "<META name=\"CO.ag_a\" content=\"\">" + 
 "<META name=\"CO.ag_b\" content=\"\">" + 
 "<META name=\"CO.ag_c\" content=\"\">" + 
 "<META name=\"CO.ag_d\" content=\"\">" + 
 "<META name=\"CO.ag_e\" content=\"\">" + 

 "<META name=\"CO.vp\" content=\"" + url + "\">" + 
 "<META name=\"CO.za\" content=\"ht\">" +  
 "<META name=\"CO.rc\" content=\"no\">" + 
 "<META name=\"CO.sy\" content=\"0\">" + 

 "<META name=\"WT.cg_n\" content=\"zielgruppenorientiert\">";
if (Fach == 3)
	metatags += "<META name=\"WT.cg_s\" content=\"Schüler\">";
else
	metatags += "<META name=\"WT.cg_s\" content=\"Lehrer Sekundarstufen\">";
 "<META name=\"WT.mc_n\" content=\"\">" + 
 "<META name=\"WT.mc_id\" content=\"\">" + 
 "<META name=\"WT.ad\" content=\"\">" + 
 "<META name=\"WT.ac\" content=\"\">" + 

 "<META name=\"WT.si_n\" content=\"\">" + 
 "<META name=\"WT.si_x\" content=\"\">" + 
 "<META name=\"WT.si_p\" content=\"\">";

document.write(metatags);

