//Si el Explorador es...

//Firefox 2
if (navigator.userAgent.toLowerCase().indexOf('firefox/2') > -1)
document.write('<style type="text/css"> \
a, span, img {display:-moz-inline-box;} \
.TB_overlayBG {-moz-opacity:0.75;} \
#TB_HideSelect {-moz-opacity:0;} \
</style>');

//Internet Explorer 6
if (navigator.userAgent.toLowerCase().indexOf('ie 6') > -1)
document.write('<style type="text/css"> \
.Home-ContactoBT {position:relative; margin-left:120px} \
a {color:expression(this.parentNode.currentStyle.color);} \
* html #TB_overlay {position:absolute; height:expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + "px");} \
* html #TB_window {position:absolute; margin-top:expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + "px");} \
* html #TB_load {position:absolute; margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + "px");} \
* html #TB_HideSelect {position:absolute; height:expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + "px");} \
#TB_iframeContent {margin-bottom:1px;} \
.TB_overlayBG {filter:alpha(opacity=75);} \
#TB_HideSelect {filter:alpha(opacity=0);} \
</style>');

//Internet Explorer 7
if (navigator.userAgent.toLowerCase().indexOf('ie 7') > -1)
document.write('<style type="text/css"> \
#Cabeza .Menu .SubMenu {margin-left:583px} \
#Cabeza #Programas {margin-left:172px} \
#Cabeza .LoginInfo {float:right; margin-bottom:15px; margin-right:20px; position:relative; width:180px; text-align:right; line-height:5px; padding-bottom:10px} \
#MOODLE .calendar-controls .previous, .calendar-controls .next {width:15%} \
#MOODLE form.mform input[type=text], form.mform input[type=file], form.mform input[type=password] {margin-left: 0} \
#MOODLE form.mform textarea {margin-left: 0} \
a {color:expression(this.parentNode.currentStyle.color);} \
.TB_overlayBG {filter:alpha(opacity=75);} \
#TB_HideSelect {filter:alpha(opacity=0);} \
</style>');

//Internet Explorer
if (navigator.userAgent.toLowerCase().indexOf('ie') > -1)
document.write('<style type="text/css"> \
\
</style>');

//Safari
if (navigator.userAgent.toLowerCase().indexOf('safari') > -1)
document.write('<style type="text/css"> \
textarea {resize:none;} \
</style>');

//Google Chrome
if (navigator.userAgent.toLowerCase().indexOf('chrome') > -1)
document.write('<style type="text/css"> \
textarea {resize:none;} \
</style>');

//Opera
if (navigator.userAgent.toLowerCase().indexOf('opera') > -1)
document.write('<style type="text/css"> \
\
</style>');

