var scW = screen.availWidth ? screen.availWidth : screen.width;
var scH = screen.availHeight ? screen.availHeight : screen.height;

var onlineshopwindow = '';
var subsitewindow = '';
var oldbookwindow = '';
var news1window = '';
	
function onlineshop() {
	/*
  var imageWidth = 966;
  var imageHeight = 600;
  if (!onlineshopwindow.closed && onlineshopwindow.location) {
  	  //onlineshopwindow.location.href = 'online_shop/evo_online_stoor.html';
  	  onlineshopwindow.focus();
  } else {
  	  onlineshopwindow = window.open('online_shop/evo_online_stoor.html','onlinestoor','scrollbars=yes,toolbar=no,resizable=yes,width='+(imageWidth)+',height='+(imageHeight)+',left='+(Math.round((scW-imageWidth)/2)+',top='+Math.round((scH-imageHeight)/2))+'');
  }
  if( onlineshopwindow.focus ) { 
      onlineshopwindow.focus(); 
  }
  */
}	

function subsite() {
  var imageWidth = 950;
  var imageHeight = 695;
  if (!subsitewindow.closed && subsitewindow.location) {
  	  //subsitewindow.location.href = 'subsite.html';
  	  subsitewindow.focus();
  } else {
  	  subsitewindow = window.open('subsite.html','subsite','scrollbars=no,toolbar=no,resizable=no,width='+(imageWidth)+',height='+(imageHeight)+',left='+(Math.round((scW-imageWidth)/2)+',top='+Math.round((scH-imageHeight)/2))+'');
  }
  if( subsitewindow.focus ) { 
      subsitewindow.focus(); 
  }
}

function oldbook() {
  var imageWidth = 838;
  var imageHeight = 595;
  if (!oldbookwindow.closed && oldbookwindow.location) {
  	  //oldbookwindow.location.href = 'past001/lookbook.html';
  	  oldbookwindow.focus();
  } else {
  	  oldbookwindow = window.open('./../../vanity/lookbook/lookbook.html','lookbook','scrollbars=no,toolbar=no,resizable=no,width='+(imageWidth)+',height='+(imageHeight)+',left='+(Math.round((scW-imageWidth)/2)+',top='+Math.round((scH-imageHeight)/2))+'');
  }
  if( oldbookwindow.focus ) { 
      oldbookwindow.focus(); 
  }
}

function news1() {
  var imageWidth = 834;
  var imageHeight = 590;
  if (!news1window.closed && news1window.location) {
  	  //oldbookwindow.location.href = 'past001/lookbook.html';
  	  news1window.focus();
  } else {
  	  news1window = window.open('news1.html','news1','scrollbars=no,toolbar=no,resizable=no,width='+(imageWidth)+',height='+(imageHeight)+',left='+(Math.round((scW-imageWidth)/2)+',top='+Math.round((scH-imageHeight)/2))+'');
  }
  if( news1window.focus ) { 
      news1window.focus(); 
  }
}
