
function openLayerBC()
{

 tWidth = $(document).width();
 tHeight = $(document).height();
 //$("select").fadeOut('fast');
 $('#filter').css("width",tWidth+"px");
 $('#filter').css("height",tHeight+"px");
// $('#filter').css('z-index',9990);
 $("#filter").css("opacity", 0.6);
 $('#filter').fadeIn('fast');
 //$('#filter').bind("click",closePopup1);

 } 	
function closePopup1(divid)
  {
	  $('#filter').fadeOut('fast');
	  o = document.getElementById(divid);
	  o.style.display = o.style.display=='block'?'none':'block';
	  //document.getElementById('filter').style.display='block'?'none':'block';
  }



function openPopUp1(divid,parent)
	{
		openLayerBC();
	
	ww = $(document).width();
	
	//alert(st);
	newLeft = (ww/2)-(950/2);
	$('#popup').css('z-index',2000000);
	$("#popup").css("left",newLeft);
	$("#popup").css("top",$(window).scrollTop()+0); 
	$("#popup").show();
	
	}
	

