function PopUp(url,name,breite,hoehe,scrollbars) {
	var xPos = (screen.availWidth - breite) / 2
	var yPos = (screen.availHeight - hoehe ) / 2

	myWindow = window.open(url,name,"menubar=no,toolbar=no,resizeable=no,scrollbars="+scrollbars+",width="+breite+",height="+hoehe+",screenX="+xPos+",screenY="+yPos+",left="+xPos+",top="+yPos+",screenX="+xPos+",screenY="+yPos+",left="+xPos+",top="+yPos);

	if (myWindow!=null) {
		myWindow.focus();
	}
	else {
		alert('please deactivate your popup-blocker to open the tris popup and reload the page.');
	}
}

function OpenPopUp(popup) {
	switch (popup) {
		case 'contact':
			PopUp('/tris/uk/contact/','',500,700,'no');
			break;
		case 'tellafriend':
			PopUp('/tris/uk/tellafriend/','',570,560,'no');
			break;
		case 'broschuere':
			PopUp('/tris/uk/broschuere/','',570,400,'no');
			break;
		case 'imprint':
			PopUp('/tris/uk/imprint/','',570,400,'no');
			break;
		case 'wheretofind':
			PopUp('/tris/uk/wheretofind/','',570,250,'no');
			break;
		default:
			break;
	}
}

function doLinkTo(name) {
    url = "";
    
    switch (name.toLowerCase()) {
        case "de":
            url = "http://www.idealstandard.de";
            break;
        case "uk":
            url = "http://www.idealstandard.co.uk";			
            break;
        case "es":
            url = "http://www.idealstandard.es";
            break;
        case "it":
            url = "http://www.idealstandard.it";
            break;
        case "fr":
            url = "http://www.idealstandard.fr";
            break;
        default:
            url = "http://www.idealstandard.com";
            break;     
        
    }
	
    win = window.open(url, name);
	win.focus();
}