function showMenu(_type){
	if(_type == 1){
	  document.getElementById('closed_menu').style.display = 'none';
	  $('#open_menu').animate({
					left: '+=143'
				 }, 500);
	}else{
		$('#open_menu').animate({
					left: '-=143'
				 }, 500, function() {
				 	document.getElementById('closed_menu').style.display = 'block';
	  });
	  
	}
}



/*var aw = screen.availWidth;
var ah = screen.availHeight;
var vWidth = screen.width;
var vHeight = screen.height;*/
function openSite (url, full, w, h) {
  var opts = "width="+ w +",height="+ h +",scrollbars=1";
  if(full == true) { opts += ",fullscreen=1"; }
  //opts += ",top="+(vHeight-720)/2+",left="+(vWidth-1000)/2;
  opts += ",top=0,left=0";
  var ow = window.open(url,"ow",opts);
  ow.focus();
}


function windowSize(w_or_h) {
  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_or_h=='w') return myWidth;
  if (w_or_h=='h') return myHeight;
}
