function getWindowSize(specific) {
var substract = 45;
var myWidth = 0, myHeight = 0;
if( typeof( window.innerWidth ) == 'number' ) {
//Para no IE
myWidth = window.innerWidth;
myHeight = window.innerHeight;
} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
//IE 6+ en 'standards compliant mode'
myWidth = document.documentElement.clientWidth;
myHeight = document.documentElement.clientHeight;
} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
//IE 4
myWidth = document.body.clientWidth;
myHeight = document.body.clientHeight;
}
if(specific == 'height')
{
return myHeight - substract;
}
else if(specific == 'width')
{
return myWidth;
}
else
{
return [myWidth,myHeight];
}

}