var head = document.getElementsByTagName('head')[0];
    var csslink = document.createElement('link');

    csslink.rel = 'stylesheet';
    csslink.type = 'text/css';
    csslink.href = 'http://xoax.net/xoax_styleprog.css';
    head.appendChild(csslink);

    var standardcss = document.createElement('link');

    standardcss.rel = 'stylesheet';
    standardcss.type = 'text/css';
    standardcss.href = 'http://xoax.net/css/xoax_style.css';
    head.appendChild(standardcss);

    if(BrowserDetect.browser == ("Chrome")) {

      var cssfile = document.createElement('link');

      cssfile.rel = 'stylesheet';
      cssfile.type = 'text/css';
      cssfile.href = 'http://xoax.net/css/xoax_chrome.css';
      head.appendChild(cssfile);
/*
      var menucsslink = document.createElement('link');

      menucsslink.rel = 'stylesheet';
      menucsslink.type = 'text/css';
      menucsslink.href = 'http://xoax.net/xoax_menu.css';
      head.appendChild(menucsslink);
*/      

    } else if(BrowserDetect.browser == ("Firefox")) {
      var cssfile = document.createElement('link');

      cssfile.rel = 'stylesheet';
      cssfile.type = 'text/css';
      cssfile.href = 'http://xoax.net/css/xoax_firefox.css';
      head.appendChild(cssfile);
/*
      var menucsslink = document.createElement('link');

      menucsslink.rel = 'stylesheet';
      menucsslink.type = 'text/css';
      menucsslink.href = 'http://xoax.net/xoax_menu.css';
      head.appendChild(menucsslink);
*/
    } else if((BrowserDetect.browser == ("Explorer")) && (BrowserDetect.version < 8.0)) {

       /* <link rel="stylesheet" type="text/css" href="./xoax_styleprog_down.css"/> */

       var csslink2 = document.createElement('link');

       csslink2.rel = 'stylesheet';
       csslink2.type = 'text/css';
       csslink2.href = 'http://xoax.net/xoax_styleprog_IE7.css';
       head.appendChild(csslink2);
/*
       var menucsslink = document.createElement('link');


       menucsslink.rel = 'stylesheet';
       menucsslink.type = 'text/css';
       menucsslink.href = 'http://xoax.net/xoax_menu_IE7.css';
       head.appendChild(menucsslink);
*/
    }  else {

       /* <link rel="stylesheet" type="text/css" href="./xoax_styleprog_down.css"/> */
/*
      var menucsslink = document.createElement('link');

      menucsslink.rel = 'stylesheet';
      menucsslink.type = 'text/css';
      menucsslink.href = 'http://xoax.net/xoax_menu.css';
      head.appendChild(menucsslink);
*/      
    }
