/*
version 3.0
ABC Japon
*/

function makeStyleSheet(){
var style = 0;
var styletype = 0;
var ostype = 0;
var theAgent = navigator.userAgent;
browserName = navigator.appName;

if (theAgent.indexOf("Win") >= 0) ostype = ('winType')
if (theAgent.indexOf("Mac") >= 0) ostype = ('macType')
if (getBrowserVersion() >= 5 && getBrowserName() =="Explorer") styletype = ('ie5Type')
else if (getBrowserVersion() <= 5 && getBrowserName() =="Netscape") styletype = ('NN4Type')
else styletype = ('geckoType')

style = '<style type="text/css"><!--h1,h2,h3,h4{font-weight:normal;} ';

if (styletype == "NN4Type") style += (' .texte, .main{line-height:21pt;} .size6{font-size:14pt;} .size5{font-size:13pt;} .size4{font-size:12pt;} p,.size3{font-size:11pt; line-height:12pt;} .size2, .size2 td{font-size:10pt;} .size1, .size1 td{font-size:9pt;}');

else if (ostype == "macType" && styletype == "ie5Type") style += (' .texte, .main{font-size:8pt; line-height:16pt;} .size6{font-size:11pt;} .size5{font-size:10pt;} .size4{font-size:9pt;} p,.size3{font-size:8pt; line-height:12pt;} .size2, .size2 td{font-size:7.5pt;} .size1, .size1 td{font-size:7pt;} #header h3 span{font-size:7pt;} .contentbody .rightbox{width:20%;} .contentbody .leftbox{width:20%;}');

else if (ostype == "winType" && styletype == "ie5Type") style += (' .texte, .main{font-size:7pt; line-height:16pt;} .size6{font-size:10pt;} .size5{font-size:9.5pt;} .size4{font-size:8pt;} p,.size3{font-size:7pt; line-height:12pt;} .size2, .size2 td{font-size:6pt;} .size1, .size1 td{font-size:5pt;} #header h3 span{font-size:6.5pt;} .contentbody .rightbox{width:20%;} .contentbody .leftbox{width:20%;}');

else /*if (styletype == "geckoType" || getBrowserName() == "Unknown")*/ style += (' .texte, .main{font-size:9pt; line-height:15.75pt;} .size6{font-size:12pt;} .size5{font-size:11pt;} p,.size4{font-size:10pt;} .size3{font-size:9pt; line-height:12pt;} .size2, .size2 td{font-size:8pt;} .size1, .size1 td{font-size:7pt;}');

style += '--></style>';

return style;
}

document.write(makeStyleSheet());
