
	var myDomian = window.location.host;
	var myFull = window.location.href;
	
	function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
	}

	var ref_cookie = readCookie('hb_ref');
	if (ref_cookie != null) {
	myRef = ref_cookie;
	}

	//if (document.referer) myRef=escape(document.referer);
	//document.write(myDomain); //www.armagard.tld
	//document.write(full); //www.armagard.tld
	
//set some stuff
	
	switch(myDomian)
	{
   case 'www.armagard.co.uk':
		txt1_val = 'The content you are viewing is out of date. For more information on the Armagard range of products please visit our new site at ';
		atxt_val = 'www.armagard.co.uk';
		txt2_val = ' Thank you.';
   break;
	   case 'armagard.co.uk':
		txt1_val = 'The content you are viewing is out of date. For more information on the Armagard range of products please visit our new site at ';
		atxt_val = 'www.armagard.co.uk';
		txt2_val = ' Thank you.';
   break;
	case 'www.armagard.es':
		txt1_val = 'El contenido que está viendo no está actualizada . Para obtener más información sobre la gama de productos Armagard por favor visite nuestro nuevo sitio en  ';
		atxt_val = 'es.armagard.com';
		txt2_val = ' Gracias.';
   break;
	case 'armagard.es':
		txt1_val = 'El contenido que está viendo no está actualizada . Para obtener más información sobre la gama de productos Armagard por favor visite nuestro nuevo sitio en  ';
		atxt_val = 'es.armagard.com';
		txt2_val = ' Gracias.';
   break;
   case 'www.armagard.eu':
		txt1_val = "Le contenu que vous voyez n'est pas ŕ jour. Pour plus d'informations sur la gamme de produits Armagard s'il vous plaît visitez notre nouveau site ";
		atxt_val = 'fr.armagard.com';
		txt2_val = ' Merci.';
    break;
	 case 'armagard.eu':
		txt1_val = "Le contenu que vous voyez n'est pas ŕ jour. Pour plus d'informations sur la gamme de produits Armagard s'il vous plaît visitez notre nouveau site ";
		atxt_val = 'fr.armagard.com';
		txt2_val = ' Merci.';
    break;
	case 'www.armagard.de':
		txt1_val = "Der Inhalt Sie sehen gerade ist veraltet. Für weitere Informationen über die Armagard Palette von Produkten besuchen Sie bitte unsere neue Website unter ";
		atxt_val = 'de.armagard.com';
		txt2_val = ' Danke.';
   break;
	case 'armagard.de':
		txt1_val = "Der Inhalt Sie sehen gerade ist veraltet. Für weitere Informationen über die Armagard Palette von Produkten besuchen Sie bitte unsere neue Website unter ";
		atxt_val = 'de.armagard.com';
		txt2_val = ' Danke.';
   break;
	case "www.armagard.it":
		txt1_val = "Il contenuto che si sta visualizzando non č aggiornato. Per ulteriori informazioni sulla gamma di prodotti Armagard visitate il nostro nuovo sito all'indirizzo ";
		atxt_val = 'it.armagard.com';
		txt2_val = ' Grazie.';
	break;
	case "armagard.it":
		txt1_val = "Il contenuto che si sta visualizzando non č aggiornato. Per ulteriori informazioni sulla gamma di prodotti Armagard visitate il nostro nuovo sito all'indirizzo ";
		atxt_val = 'it.armagard.com';
		txt2_val = ' Grazie.';
	break;
   case "armagard.pl":                             
		txt1_val = "Zawarto\u015b\u0107 kt\u00f3r\u0105 przegl\u0105dasz jest nieaktualna. Wi\u0119cej informacji na temat zakresu Armagard produkt\u00f3w mo\u017cna znale\u017a\u0107 na naszej nowej stronie ";
		atxt_val = 'pl.armagard.com';
		txt2_val = ' dzi\u0119kuj\u0119';         
   break;
   case "www.armagard.pl":                             
		txt1_val = "Zawarto\u015b\u0107 kt\u00f3r\u0105 przegl\u0105dasz jest nieaktualna. Wi\u0119cej informacji na temat zakresu Armagard produkt\u00f3w mo\u017cna znale\u017a\u0107 na naszej nowej stronie ";
		atxt_val = 'pl.armagard.com';
		txt2_val = ' dzi\u0119kuj\u0119';         
   break;
   default:
		txt1_val = 'The content you are viewing is out of date. For more information on the Armagard range of products please visit our new site at ';
		atxt_val = 'www.armagard.co.uk';
		txt2_val = ' Ta.';
   break;              
}

	var para = document.createElement('p');
	para.setAttribute("id", "lookAtMe");
	var setStyle = document.createAttribute("style");
	para.setAttribute('style', "padding: 15px 5px 15px 52px;border: 1px dashed #CED0D3;font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;color: #666;background: #f4f4f4 url('http://www.argaco.com/dom/images/exclamation.png') no-repeat 10px 50%;");
	var txt1 = document.createTextNode(txt1_val);
	var myLink = document.createElement('a');
	var href = document.createAttribute('href'); 
	myLink.setAttribute('href','http://'+atxt_val+'?loc='+myFull+'&ref='+myRef); 
	var atxt = document.createTextNode(atxt_val);
	var txt2 = document.createTextNode(txt2_val);
	para.appendChild(txt1);
	myLink.appendChild(atxt);
	para.appendChild(myLink);
	para.appendChild(txt2);
	var alert = document.getElementById('alert');
	alert.appendChild(para);