/**
 * @author Falsanu
 */

 function blendMsgBox(time){
	$("msg").style.display="block";
	window.setTimeout(blendBox,time);
	
//	$('msg').fade({ duration: 3.0, from:1.0, to:0.0 });

}

function blendBox(){
	Effect.Fade("msg", {from:1.0, to:0.0, duration:3});
}

function getWindowHeight() {
 //if innerHeight is unknown [Internet Explorer] use offsetHeight
  if (window.innerHeight) {
    return window.innerHeight;
  } else if (document.body && document.body.offsetHeight) {
 // important: for IE set body height = 100%
 document.getElementsByTagName("body")[0].style.setAttribute("height", "100%", "false");
    return document.body.offsetHeight;
  } else {
    return 0;
  }
}

function getSize() {   
    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;   
    }   
    return [ myWidth, myHeight ];   
} 
