var Chick = {
	addEvent: function(sr,ev,fn,can){
		if(sr.addEventListener){
		sr.addEventListener(ev,fn,can);
		return true;
		}
		else if(sr.attachEvent){	
		var rel = sr.attachEvent("on"+ev,fn);
		return rel;
		}
		else{
		sr["on"+ev]=fn;
		}		
	},	
	getWAH:function(e){
		if(window.innerHeight){	//firefox
			//document.getElementById("main0").innerHTML = "";
			if(window.innerHeight > 570){				
			document.getElementById("sound-success").style.right = 0;
			document.getElementById("sound-success").style.bottom = 0;
			document.getElementById("sound-success").style.left = "auto";
			document.getElementById("sound-success").style.top = "auto";	
			}
			else{
			document.getElementById("sound-success").style.right = "auto";
			document.getElementById("sound-success").style.bottom = "auto";		
			document.getElementById("sound-success").style.left = 895+"px";
			document.getElementById("sound-success").style.top = 535+"px";		
			}
		}
		else if(document.documentElement && document.documentElement.clientHeight){			
				if(document.documentElement.clientHeight > 600){
				document.getElementById("sound-success").style.right = 0;
				document.getElementById("sound-success").style.bottom = 0;
				document.getElementById("sound-success").style.left = "auto";
				document.getElementById("sound-success").style.top = "auto";	
				}
				else{	
				document.getElementById("sound-success").style.right = "auto";
				document.getElementById("sound-success").style.bottom = "auto";			
				document.getElementById("sound-success").style.left = 895+"px";
				document.getElementById("sound-success").style.top = 535+"px";	
				
				}
				// Explorer 6 Strict Mode
				//<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
				//<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
				//document.getElementById("main0").innerHTML = "";
		}	
		else if (document.body && document.body.clientHeight) {// other Explorers
				alert("Your Html is not writen by Explorer 6 Strict Mode!! So there is a probrem as you can see.");
		}
	}
};
Chick.addEvent(window,"load",Chick.getWAH,false);
Chick.addEvent(window,"resize",Chick.getWAH,false);