//JS script for Joomla template
//ggg get.geekgenius.com
//20090524 1745hrs

function gggResizeMainbody() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }

//  window.alert( 'Width = ' + myWidth );
//  window.alert( 'Height = ' + myHeight );

var gScrL;
//gScrL=0;
//var gScrR;
//gScrR=0;

gScrLpx = 200;
gScrRpx = 200;

//gScrL = .30;
//gScrR = .20;

var gScrCW=0;
var gScrMB=0;

 //cols = ( ( myWidth * gScrL ) + ( myWidth * gScrR ) );
 //gScrCW = ( myWidth -  cols ) - 40;
 gScrCW = myWidth - ( gScrLpx + gScrRpx ) - 90;
 gScrMB = ( myWidth - gScrRpx ) - 50;

// window.alert( 'gScrCW = ' + gScrCW );
// window.alert( 'gScrMB = ' + gScrMB );
 document.getElementById("ja-mainbody").style.width = gScrMB + "px";
 document.getElementById("ja-contentwrap").style.width = gScrCW + "px";

//  var gScrL = document.getElementById("ja-col1");
//  var gScrR = document.getElementById("ja-col2").style.width;
//alert(gScrL.style.width);
//alert(gScrR);
//document.getElementById("ja-col2").style.width;
//alert(window.innerWidth);
//document.getElementById("ja-mainbody").style.width = gScrMB + "px";
//document.getElementById("ja-contentwrap").style.width = gScrCW + "px";

}
