

function Is() {
 var agent = navigator.userAgent.toLowerCase();
 this.major = parseInt(navigator.appVersion);
 this.minor = parseFloat(navigator.appVersion);
 this.ns = ((agent.indexOf('mozilla')!=-1) && ((agent.indexOf('spoofer')==-1) && (agent.indexOf('compatible') == -1)));
 this.ns2 = (this.ns && (this.major == 2));
 this.ns3 = (this.ns && (this.major == 3));
 this.ns4 = (this.ns && (this.major == 4));
 this.ns5 = (this.ns && (this.major > 4));
 this.ns6 = (this.ns && (agent.indexOf('netscape6')!=-1) );
 this.ns7 = (this.ns && (agent.indexOf('netscape/7')!=-1) );
 this.ns7pr = (this.ns && (agent.indexOf('netscape/7.0b1')!=-1) );
 this.ns71 = (this.ns && (agent.indexOf('netscape/7.1')!=-1) );
 this.ns72 = (this.ns && (agent.indexOf('netscape/7.2')!=-1) );
 this.ie = (agent.indexOf("msie") != -1);
 this.ie3 = (this.ie && (this.major == 2));
 this.ie4 = (this.ie && (this.major >= 4));
 this.ie5 = (this.ie && (this.major == 4) && (agent.indexOf("msie 5.0") != -1));
 this.ie55 = (this.ie && (this.major == 4) && (agent.indexOf("msie 5.5") != -1));
 this.ie6 = (this.ie && (agent.indexOf("msie 6.0")!=-1));
 this.op3 = (agent.indexOf("opera") != -1);
 this.pc  = (agent.indexOf("win") != -1);
 this.mac = (agent.indexOf("mac")!=-1); // Mac detect
 this.client = ( (navigator.userAgent.indexOf('AOL')!=-1) || (navigator.userAgent.indexOf('CS 2000')!=-1) )? 1 : 0;
 this.moz = ( this.ns && (agent.indexOf("netscape/") == -1) );
 if (this.moz) this.ns = 0;

}

var is = new Is()

if (is.ie)
 if (is.pc)  document.write("<link rel='stylesheet' href='http://www.chefdecuisine.com/global_files/03_pc_ie.css' type='text/css'>");
 else  document.write("<link rel='stylesheet' href='http://www.chefdecuisine.com/global_files/03_mac_ie.css' type='text/css'>");
if (is.ns4) {
 if (is.pc) {
  document.write("<link rel='stylesheet' href='http://www.chefdecuisine.com/global_files/03_pc_ns4.css' type='text/css'>");
 } else {
  document.write("<link rel='stylesheet' href='http://www.chefdecuisine.com/global_files/03_pc_ns4.css' type='text/css'>");
 }
}
if (is.ns5) document.write("<link rel='stylesheet' href='http://www.chefdecuisine.com/global_files/03_pc_ns5.css' type='text/css'>");

// popup
var _js12 = false;
var winHeight=0;
