
function overlay2(id){
	

									var size = $(window).getSize();
									if(!$defined($('bb'))){
										
										var el=new Element('div',{
											'id': 'bb',
											'class': 'myClass',
											'html': '',
											'styles': {
												'display': 'block',
												'border': '1px solid black',
												'position': 'fixed',
												'background':'#ffffff',
												'opacity': '0.8',
												'width': size.x+'px',
												'height':size.y+'px',
												'left':'0px',
												'top': '0px',
												'z-index':'1000',
												'text-align':'center'
											},
											'events': {
												'click': function(){
													//$('bb').setStyle('display','none');
													//$('wrapper_22').setStyle('display','none');
													//$('wrapper_222').setStyle('display','none');
												},
												'mouseover': function(){
												}
											}
										});
										if (document.all && !window.opera && !window.XMLHttpRequest) {
											//IE6 stuff
											el.setStyles({
														'position':'absolute',
														'width':$(document.body).getScrollSize().x,
														'height':$(document.body).getScrollSize().y
														
														 });
										}
										el.inject($(document.body));
									}else{
										$('bb').setStyle('display','');
										$(id).setStyle('display','');
									}
									
									$(id).setStyles({
														   	"width":"694px",
															"position":"fixed",
															"top":'40px',
															"left":(window.getSize().x-694)/2+'px',
															'display':'',
															'z-index':'1001'

									});
									
									if (document.all && !window.opera && !window.XMLHttpRequest) {
											//IE6 stuff
											$(id).setStyles({
														   	"width":"694px",
															"position":"absolute",
															"top":($(document.body).getScroll().y+($(window).getSize().y-300)/2),
															"left":(window.getSize().x-694)/2+'px',
															'display':'',
															'z-index':'1001'

											});
									}
									/*
									
									*/

									$$('#wrapper_22 a.shwclose').each(function(el){
											el.addEvent('click',function(){
													ovelay2_hide()
													return false;
																		 });
									});
									$$('#wrapper_222 a.shwclose').each(function(el){
											el.addEvent('click',function(){
																		 
													ovelay2_hide()
													return false;
																		 });
									});

}
function ovelay2_hide(){
	$('bb').setStyle('display','none');
													$('wrapper_22').setStyle('display','none');
													$('wrapper_222').setStyle('display','none');
}

