function getWndSize() {
 var wnd = {width: 0, height:0};
 if( typeof( window.innerWidth ) == 'number' ) {
     //Non-IE, normal browsers
  wnd.width = window.innerWidth;
  wnd.height = window.innerHeight;
 } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
     //IE 6+ in 'standards compliant mode'
  wnd.width = document.documentElement.clientWidth;
  wnd.height = document.documentElement.clientHeight;
 } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
  //IE compatible
  wnd.width = document.body.clientWidth;
  wnd.height = document.body.clientHeight;
 }
 return wnd;
}

function getDocHeight() {
    return Math.max(
        Math.max(document.body.scrollHeight, document.documentElement.scrollHeight),
        Math.max(document.body.offsetHeight, document.documentElement.offsetHeight),
        Math.max(document.body.clientHeight, document.documentElement.clientHeight)
    );
}

function getScrollXY() {
 var scroll = {x:0, y:0};
 if( typeof( window.pageYOffset ) == 'number' ) {
  //Netscape compliant
  scroll.y = window.pageYOffset;
  scroll.x = window.pageXOffset;
 } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
  //DOM compliant
  scroll.y = document.body.scrollTop;
  scroll.x = document.body.scrollLeft;
 } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
     //IE
  scroll.y = document.documentElement.scrollTop;
  scroll.x = document.documentElement.scrollLeft;
 }
 return scroll;
}

function ShowHide(id){
	if ($('#' + id).css('display') == 'none'){
		$('#' + id).show(300);
	}else{
		$('#' + id).hide(300);
	}
}

function dummy(){
	
}
