
var i = 0
var count = 1 * 3

	function UpTimer() {
		i = i + 5
	  showMessage()
	}

	function DownTimer() {
		i = i - 5 
		hideMessage()
	}
	
	function pozisyon(){
	
		var ie=document.all && !window.opera
		var dom=document.getElementById
		iebody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body
		objref=(dom)? document.getElementById("Layer1") : document.all.Layer1
		var scroll_top=(ie)? iebody.scrollTop : window.pageYOffset
		var docwidth=(ie)? iebody.clientWidth : window.innerWidth
		docheight=(ie)? iebody.clientHeight: window.innerHeight
		var objwidth=objref.offsetWidth
		objheight=objref.offsetHeight
		
        setInterval("kaydir()", 1)
	
	    el=document.getElementById('Layer1');
	    el.style.right='2px';
	    el.style.top=(scroll_top + docheight) - objheight - 7 + "px";
	    el.style.filter='';
	
	}

function kaydir() {
	var ie=document.all && !window.opera
	var scroll_top=(ie)? iebody.scrollTop : window.pageYOffset
	objref.style.top= (scroll_top + docheight) - objheight - 7 + "px";
}
	
	function showMessage(){

		pozisyon();

		if(Layer1.style.display == "none"){
		
			for(var j=1;j<=count;j=j+3){
				eval("Layer" +  j + ".style.display = 'block'")
			}
			
		}
		for(var j=1;j<=count;j=j+3){
				eval("Layer" +  j + ".style.height = " + i + "")
			}

		
		if(i>20){
			for(var j=2;j<=count;j=j+3){
				eval("Layer" +  j + ".style.display = 'block'")
			}
		}
		
		if(i>30){			
			for(var j=3;j<=count;j=j+3){
				eval("Layer" +  j + ".style.display = 'block'")
			}
			
			
			for(var j=3;j<=count;j=j+3){
				eval("Layer" +  j + ".style.height = " + (i - 25) + "")
			}

		}
		
		if(i<130){
			timerID  = setTimeout("UpTimer()", 20);
		}else{
			
			timerID  = setTimeout("DownTimer()", 10000);
		}
		
	}
	
	function hideMessage(){
	
		pozisyon();
	
		for(var j=1;j<=count;j=j+3){
			eval("Layer" +  j + ".style.height = " + i + "")
		}

		if(i<25){
			for(var j=2;j<=count;j=j+3){
				eval("Layer" +  j + ".style.display = 'none'")
			}
		}
		
		if(i<30){
			for(var j=3;j<=count;j=j+3){
				eval("Layer" +  j + ".style.display = 'none'")
			}
		}else{
			for(var j=3;j<=count;j=j+3){
				eval("Layer" +  j + ".style.height = " + (i - 25) + "")
			}
		}
		
		if(i>0){
			timerID  = setTimeout("DownTimer()", 50);
		}else{
			for(var j=1;j<=count;j=j+3){
				eval("Layer" +  j + ".style.display = 'none'")
			}
		}
	}
	function mesajikapat(lyr){
		eval("" + lyr + ".style.display = 'none'")
	}

	document.write ("<DIV onselectstart=\"return false;\" id=\"Layer1\" style=\"BORDER-RIGHT: #455690 1px solid; BORDER-TOP: #b9c9ef 1px solid; DISPLAY: none; RIGHT:1px; BACKGROUND: #e0e9f8; BORDER-LEFT: #b9c9ef 1px solid; WIDTH: 181px; BOTTOM: 0px; BORDER-BOTTOM:#455690 1px solid; POSITION: absolute; HEIGHT: 116px; z-index: 1;\">")
	document.write ("<DIV id=\"Layer2\" style=\"DISPLAY: none; BACKGROUND: #e0e9f8 url('http://www.tryama.net/photogallery/msn_bg_ust.gif'); LEFT: 2px; WIDTH: 177px; CURSOR: default; COLOR: #1f336b; POSITION: absolute; TOP: 2px; HEIGHT: 20px; TEXT-DECORATION: none; font-style:normal; font-variant:normal; font-weight:normal; font-size:11px; font-family:arial, sans-serif\">")
	document.write ("<center><SPAN><IMG style=\"LEFT: 2px; POSITION: absolute; TOP: 1px\" src=\"http://www.tryama.net/photogallery/msn.gif\">www.Tryama.Net</SPAN><SPAN onmousedown=\"event.cancelBubble=true;\" onmouseover=\"style.color='#455690';\" style=\"RIGHT: 3px; FONT: bold 12px arial,sans-serif; CURSOR: pointer; COLOR: #728eb8; POSITION: absolute; TOP: 2px\" onclick=mesajikapat('Layer1') onmouseout=\"style.color='#728EB8';\"><IMG src=\"http://www.tryama.net/photogallery/close.gif\" border=0></SPAN></DIV>")
	document.write ("<DIV onmousedown=\"event.cancelBubble=true;\" id=\"Layer3\" style=\"border-right:1px solid #b9c9ef; border-top:1px solid #728eb8; DISPLAY: none; FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr='#FFE0E9F8', EndColorStr='#FFFFFFFF'); BACKGROUND: url('http://www.tryama.net/photogallery/msn_bg.jpg');   LEFT: 1px; OVERFLOW: hidden; BORDER-LEFT:1px solid #728eb8; WIDTH: 177px; BORDER-BOTTOM: 1px solid #b9c9ef; POSITION: absolute; TOP: 23px; HEIGHT: 90px; TEXT-ALIGN: center; FONT: 11px/15px arial,sans-serif; COLOR: #1f336b; TEXT-DECORATION: none\"></DIV></DIV>")
