// JavaScript Document
	
	function closediv(url,w,h){
		document.getElementById('d1').style.display = 'none';
		if(document.getElementById('oasis'))document.getElementById('oasis').style.display = 'none';
		document.test.src='img/blank.gif';
	}
	function opentmpdiv()	
	{
		var iLeft = Math.round ((screen.width-600) / 2)-23;

		scrtop=document.documentElement.scrollTop;
		document.getElementById('oasis').style.marginTop=scrtop+50+"px";
		document.getElementById('oasis').style.marginLeft= iLeft+"px";			
		document.getElementById('oasis').style.display="block";
	}
	function opendiv(url,w,h){
		
		var str=document.test.src;
		if (str.match(url)){
			return false;
		}
		
		document.test.style.opacity = 0;
		document.test.style.filter = 'alpha(opacity=0)';
		document.test.style.MozOpacity = 0;
		document.getElementById('d1').style.display = '';
			
		document.test.src=url;
		document.test.width=w;
		document.test.height=h;
		
		
		var iWidth=w;
	   	var iHeight=h;
        var iRealWidth = iWidth ? iWidth : 800 ;
        var iRealHeight = iHeight ? iHeight : screen.height - 30 ;
        var iLeft = Math.round ((screen.width - iRealWidth) / 2)-23;
        var iTop =  Math.round ((screen.height - iRealHeight) / 2) ;
	    document.getElementById('d1').style.left= iLeft ;	
	  
	    if(document.all) {
			document.getElementById('d1').style.top= iTop + document.body.scrollTop;
	    }
		else if(document.getElementById) {
			document.getElementById('d1').style.top= iTop + window.pageYOffset;
		}
	}
function opendiv2(url,w,h){
		
		var str=document.test.src;
		if (str.match(url)){
			return false;
		}
		
		document.test.style.opacity = 0;
		document.test.style.filter = 'alpha(opacity=0)';
		document.test.style.MozOpacity = 0;
		document.getElementById('d1').style.display = '';
			
		document.test.src=url;
		document.test.width=w;
		document.test.height=h;
		
		
		var iWidth=w;
	   	var iHeight=h;
        var iRealWidth = iWidth ? iWidth : 800 ;
        var iRealHeight = iHeight ? iHeight : screen.height - 30 ;
        var iLeft = Math.round ((screen.width - iRealWidth) / 2)-23;
        var iTop =  Math.round ((screen.height - iRealHeight) / 2) + 70 ;
	    document.getElementById('d1').style.left= iLeft ;	
	  
	    if(document.all) {
			document.getElementById('d1').style.top= 40;
	    }
		else if(document.getElementById) {
			document.getElementById('d1').style.top=40;
		}
	}	
	function initAppear(){
		for (var i=0;i<11;i++)
			setTimeout('setOpacity('+i+')',35*i);
		return false;
	}

	function setOpacity(value){
		document.test.style.opacity = value/10;
		document.test.style.filter = 'alpha(opacity=' + value*10 + ')';
		document.test.style.MozOpacity = value/10;
	}