window.onerror=null;
window.Fenster=true;

function openwin(url,name,title,W,H,X,Y) {
if (X==0){if(screen.width) {targetX = Math.round(screen.width/2-W/2)}else {targetX = 200}}else{targetX = X};
if (Y==0){if (screen.height) {targetY = Math.round(screen.height/2-H/2)}else {targetY = 100}}else{targetY = Y};
features = 'toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width='+W+',height='+H+',screenX='+targetX+',left='+targetX+',screenY='+targetY+',top='+targetY;
window.Fenster=window.open(url,name,features);
}
function openwin2(url,name,title,W,H,X,Y) {
if (X==0){if(screen.width) {targetX = Math.round(screen.width/2-W/2)}else {targetX = 200}}else{targetX = X};
if (Y==0){if (screen.height) {targetY = Math.round(screen.height/2-H/2)}else {targetY = 100}}else{targetY = Y};
features = 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width='+W+',height='+H+',screenX='+targetX+',left='+targetX+',screenY='+targetY+',top='+targetY;
window.Fenster=window.open(url,name,features);
}


function nf(a)
{
if (window.Fenster.closed == false) window.Fenster.close();
/*projekte*/
switch(a) {
  case "game":
openwin('projects/game/game.html','project','game',300,500,0,0);
 break;
   case "senses":
openwin('projects/senses/senses_extracts.html','project','SENSES_extendYourmind',800,480,0,0);
 break;
   case "iclue":
openwin('projects/iclue/iclue/iclue.html','project','i-clue fast forward communication',900,485,0,0);
 break;
   case "tzones":
openwin('projects/tzones/tzones.html','project','t-mobile // t-zones',770,500,0,0);
 break;
    case "ramazzotti":
openwin('projects/ramazzotti/ramazzotti/start.html','project','ramazzotti',1003,575,0,0);
 break;
     case "bntb":
openwin2('projects/bntb/bntb/bntb_presentation.html','project','butterfield bank',820,575,0,0);
 break;
      case "lp":
openwin('projects/lp/lp_web/index.html','project','lochain patrick',900,575,0,0);
 break;
     case "tigerentenclub":
openwin('projects/tigerentenclub/tigerentenclub/start.html','project','tigerentenclub',1003,575,0,0);
 break;
      case "duravit":
openwin('projects/duravit/duravit/start.html','project','duravit',1000,600,0,0);
 break;
}
}