function openclose(id)
{	
	var obj = document.getElementById(id);
 	if(!obj.state)
 	{
		if(obj.style.display=='none')
		{
			obj.state="closed";
		}
		else
		{
			obj.state="open";
		}
	}
	 
	if(obj.state=="closed")	
	{		
		new Effect.BlindDown(id);					
		obj.state="open";
	}
	else
	{		
		new Effect.BlindUp(id);							
		obj.state="closed";	
	}
}
function my_toggle(id_o,id_c,id_but_o,id_but_c,class_o,class_c)
{
	var o = document.getElementById(id_o);
	var c = document.getElementById(id_c);

	var bo = document.getElementById(id_but_o);
	var bc = document.getElementById(id_but_c);	
	
	bo.className = class_o;
	bc.className = class_c;
	
	if(!o.state)
 	{
		if(o.style.display=='none')
			o.state="closed";
		else
			o.state="open";		
	}
	if(!c.state)
 	{
		if(c.style.display=='none')
			c.state="closed";
		else
			c.state="open";		
	}
	
	if(o.state=="closed")	
	{		
		new Effect.BlindDown(id_o);					
		o.state="open";
	}
	if(c.state=="open")
	{		
		new Effect.BlindUp(id_c);							
		c.state="closed";	
	}	
}

function move_bubbles()
{
 	var objH = 270;								 	
 	var winH;
 	var scrollH;
 	if( typeof( window.innerWidth ) == 'number' ) 
	{
	    //Non-IE
		winH = window.innerHeight;
	}
	else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) 
	{
	    //IE 6+ in 'standards compliant mode'
	    winH = document.documentElement.clientHeight;
  	}
	else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) 
	{
	    //IE 4 compatible
	    winH = document.body.clientHeight;
	}
	
 	scrollH = document.documentElement.scrollTop? document.documentElement.scrollTop:document.body.scrollTop;
	
	var pad = (winH - objH) + scrollH;					        		
	
	$('bule_l').style.marginTop = pad + 'px';
	$('bule_r').style.marginTop = pad + 'px';
}
//window.onload=move_bubbles;
//Event.observe(window, 'scroll', move_bubbles);
			  
