function popUpFullScreen(url) {
	popUp( url, 800, 600, 100, 100);
}

function popUp( url, width, height, left, top ) {
      var popupName = popUpIdent( url, width, height, left, top );

}

function popUpIdent( url, width, height, left, top ) {
      var rnum = Math.random()*200; rnum = Math.round(rnum);
      this['win'+rnum] =  window.open(url,
        "pup"+rnum,
        "width="+width+",height="+height+",left="+left+",top="+top+",resizable=yes,menubar=no,directories=no,toolbar=no,scrollbars=no"
      );
      return 'pup'+rnum;
}


function doResize() {
		var h;
		var wrapper;
		var trim;
		trim = getTrim();
		h = getDimension("height");
		wrapper = getElement('contentwrapper');
		alert('wrapper');
		wrapper.style.height = h-trim+"px";
		alert('wrapper');
		
}

function getTrim() {
		return 240;
}

function getDimension(w) {

  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;
  }
  if (w=="height") {
  		return myHeight;
  } else {
  	return myWidth;
  }

}

function getElement( elementId)
    {
    var element;

    if (document.all) {
        element = document.all[elementId];
        }
    else if (document.getElementById) {
        element = document.getElementById(elementId);
        }
    else element = -1;

    return element;
}


function doMo(nr) {
	getElement("mo"+nr).style.backgroundColor="#F9E70B";
}
function dontMo(nr) {
	getElement("mo"+nr).style.backgroundColor="#4B2202";

}




