
function SymError()
{
  return true;
}

window.onerror = SymError;

//macwincss
    // OS
    var Win   = navigator.userAgent.indexOf("Win") != -1 ? true : false 
    var Mac   = navigator.userAgent.indexOf("Mac") != -1 ? true : false 
    var X11   = navigator.userAgent.indexOf("X11") != -1 ? true : false 
  
  if (document.getElementById) {

    if (Win)     cssurl = "http://www.designlabo.com/css/winie.css" // Win W3C対応ブラウザ用CSS
    else if(Mac) cssurl = "http://www.designlabo.com/css/mac.css" // Mac W3C対応ブラウザ用CSS
    else if(X11) cssurl = "http://www.designlabo.com/css/winie.css" // X11 W3C対応ブラウザ用CSS

  } else if (document.all) {

    if (Win)     cssurl = "http://www.designlabo.com/css/winie.css"  // Win IE用CSS
    else if(Mac) cssurl = "http://www.designlabo.com/css/mac.css"  // Mac IE用CSS

  } else if (document.layers) {
  
    if (Win)     cssurl = "http://www.designlabo.com/css/winie.css"  // Win N4用CSS
    else if(Mac) cssurl = "http://www.designlabo.com/css/mac.css"  // Mac N4用CSS
    else if(X11) cssurl = "http://www.designlabo.com/css/winie.css"  // X11 N4用CSS
  
  } else {
                 cssurl ="http://www.designlabo.com/css/winie.css"     // その他用CSS
  }
  //CSS読み込みタグlinkの書き出し
  document.write('<link rel="stylesheet" ')
  document.write('      type="text/css"  ')
  document.write('      href="'+cssurl+'"')
  document.write('>')


//画像先読込
preloadimg1 = new Image();
preloadimg1.src = "http://www.designlabo.com/img/mupdate.gif";
preloadimg2 = new Image();
preloadimg2.src = "http://www.designlabo.com/img/maboutus.gif";
preloadimg3 = new Image();
preloadimg3.src = "http://www.designlabo.com/img/mworks.gif";
preloadimg4 = new Image();
preloadimg4.src = "http://www.designlabo.com/img/mcolumn.gif";
preloadimg5 = new Image();
preloadimg5.src = "http://www.designlabo.com/img/memail.gif";
preloadimg6 = new Image();
preloadimg6.src = "http://www.designlabo.com/img/works/m1residential.gif";
preloadimg7 = new Image();
preloadimg7.src = "http://www.designlabo.com/img/works/m1commercial.gif";
preloadimg8 = new Image();
preloadimg8.src = "http://www.designlabo.com/img/works/m1other.gif";

//winopen
function SeeDetailsWinOpen(smwinname,smtitle,smimg,smwidth,smheight){
  var SDWO = window.open("",smwinname,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=" + smwidth + ",height=" + smheight );
  SDWO.focus();
  SDWO.document.write("<html><head><title>" + smtitle + "</title></head>");
  SDWO.document.write("<body bgcolor='#FFFFFF' marginwidth='0' marginheight='0' topmargin='0' leftmargin='0'>");
  SDWO.document.write("<table border='0' cellpadding='0' cellspacing='0' width='" + smwidth + "' height='" + smheight + "'><td background='" + smimg + "'><a href='javascript:top.close();'>");
  SDWO.document.write("<img alt='' border='0' src='http://www.designlabo.com/img/s.gif' width='" + smwidth + "' height='" + smheight + "'>");
  SDWO.document.write("</a></td></tr></table></body></html>");
  SDWO.document.close();
}