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;
}
function getLanguage(){
	var x = readCookie('luplanguage');
	if (x) {
		if(x=="Spanish")spanish();
		if(x=="French")french();
		if(x=="English")english();
		if(x=="German")german();
	}
}
function x(ele,wd){
	document.getElementById(ele).innerHTML=wd;
}

var num=43;

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;
}
function getLanguage(){
	var x = readCookie('luplanguage');
	if (x) {
		if(x=="Spanish")spanish();
		if(x=="French")french();
		if(x=="English")english();
		if(x=="German")german();
	}
}
function x(ele,wd){
	document.getElementById(ele).innerHTML=wd;
}

function english(){
	var arrayID=ids();
	var myArray = eng();
	for (var i=0;i<num;i++){
		x(arrayID[i],myArray[i]);
	}
}
function spanish(){
	var arrayID=ids();
	var myArray = spa();
	for (var i=0;i<num;i++){
		x(arrayID[i],myArray[i]);
	}
}
function french(){
	var arrayID=ids();
	var myArray = fre();
	for (var i=0;i<num;i++){
		x(arrayID[i],myArray[i]);
	}

}
function german(){
	var arrayID=ids();
	var myArray = ger();
	for (var i=0;i<num;i++){
		x(arrayID[i],myArray[i]);
	}
}

function ids(){
var idsArr=[
	'title',
	'msg',
	'dir',
	'yp1',
	'yp2',
	'yp3',
	'yp4',
	'yp5',
	'yp6',
	'yp7',
	'yp8',
	'yp9',
	'yp10',
	'yp11',
	'yp12',
	'yp13',
	'yp14',
	'yp15',
	'yp16',
	'yp17',
	'yp18',
	'yp19',
	'yp20',
	'yp21',
	'yp22',
	'yp23',
	'yp24',
	'yp25',
	'yp26',
	'yp27',
	'yp28',
	'yp29',
	'yp30',
	'yp31',
	'yp32',
	'yp33',
	'yp34',
	'yp35',
	'yp36',
	'yp37',
	'yp38',
	'yp39',
	'yp40'];
	return idsArr;
}

function spa(){
var arr=[
'Páginas Amarillas',
'Mensaje',
'El directorio es solamente para información, las recomendaciones no están incluidos. <br />Si usted desea que su negocio no aparece aquí, envíenos un correo electrónico con su información.',
'Abogados',
'Marinas',
'Autopartes',
'Partes Marinas',
'De Reparación de Automóviles',
'De Reparación de Barcos',
'Panaderia',
'Mecánica',
'Esteticista',
'Cambio de Dinero',
'El fabricante de Barco/Corredor de',
'Motor Concho',
'Renta de Autos',
'óptico',
'Iglesias',
'Plomero',
'Computadoras',
'Inmobiliario',
'Dentistas',
'Residencia',
'laboratorio Diesel',
'Restaurante',
'Médicos',
'Reparación de la Vela',
'Eléctrica',
'Transporte',
'Electrónica',
'Pernos de Acero Inoxidable',
'Fábrica',
'Medida',
'Farmacia',
'Embajada',
'Teléfonos',
'Comestibles',
'Tours',
'Hípica',
'Veterinario',
'Internet',
'Vivero',
'Intérpretes'];
return arr;
}

function eng(){
var arr=[
'Yellow Pages',
'Message',
'Directory is only for information, recommendations are not included. <br /> If you want your business listed here, email us with your information. ',
'Lawyers',
'Marinas',
'Auto Parts',
'Marine Parts',
'Car Repair',
'Boat Repair',
'Bakery',
'Mechanics',
'Beautician',
'Change of Money',
'Boat Manufacturer/Broker',
'Motor Concho',
'Rates',
'Opticians',
'Churches',
'Plumber',
'Computers',
'Real Estate',
'Dentists',
'Residence',
'Diesel Laboratory',
'Restaurant',
'Doctors',
'Sail Repair',
'Electric',
'Shipping',
'Electronics',
'Stainless Steel Bolts',
'Factory',
'Measure',
'Pharmacy',
'Embassy',
'Mobile',
'Edible',
'Tours',
'Horse',
'Veterinarian',
'Internet',
'Nursery',
'Interpreter'];
return arr;
}

function ger(){
var arr=[
'Gelbe Seiten',
'Message',
'Das Verzeichnis ist nur für Informationen, Empfehlungen nicht inbegriffen. <br /> Wenn Sie Ihr Unternehmen hier aufgeführten möchten, mailen Sie uns mit Ihren Informationen. ',
'Rechtsanwalt',
'Häfen',
'Auto-Teile',
'Marine Parts',
'Auto-Reparatur',
'Boat Repair',
'Bakerei',
'Mechanik',
'Liebling',
'Geldwechsel',
'Der Hersteller des Bootes/Broker',
'Motor Concho',
'Preise',
'Optische',
'Kirchen',
'Klempner',
'Computer',
'Immobilien',
'Zahnärzte',
'Residence',
'Diesel-Labor',
'Restaurant',
'Ärzte',
'Segel Reparatur',
'Electric',
'Express',
'Electronics',
'Edelstahl-Schrauben',
'Factory',
'Maßnahme',
'Pharmacy',
'Botschaft',
'Mobile',
'Essbare',
'Tours',
'Pferd',
'Tierarzt',
'Internet',
"Kindergarten",
'Dolmetscher'
];
	return arr;
}

function fre(){
var arr=[
'Pages Jaunes',
'Message',
'Directory est pour information seulement, les recommandations ne sont pas inclus. <br /> Si vous voulez que votre entreprise apparaisse ici, nous envoyer un email avec vos coordonnées. ',
'Avocats',
'Ports',
'Auto Parts',
'Marine Parts',
'Réparation d\'automobiles',
'Bateau de réparation',
'Boulangerie',
'Mécanique',
'Esthéticienne',
'Changer de l\'argent',
'Le fabricant de bateau/Broker',
'Motor Concho',
'Prix',
'Optique',
'Églises',
'Plombier',
'Ordinateurs',
'Real Estate',
'Dentistes',
'Résidence',
'Diesel de Laboratoire',
'Restaurant',
'Docteurs',
'Des voiles de réparation',
'Électrique',
'Expédition',
'Electronics',
'Stainless Steel Bolts',
'Factory',
'Mesure',
'Pharmacie',
'Ambassade',
'Mobiles',
'Comestibles',
'Tours',
'Cheval',
'Vétérinaire',
'Internet',
'Nursery',
'Interprète'];
return arr;
}

