
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 openPopUp1(divid,parent)
	{
		openLayerBC();
	
	ww = $(document).width();
	
	//alert(st);
	newLeft = (ww/2)-(567/2-30);
	$('#popup1').css('z-index',2000000);
	$("#popup1").css("left",newLeft);
	$("#popup1").css("top",$(window).scrollTop()+20); 
	$("#popup1").show();
	
	}
	
function openPopUp2(divid,parent)
	{
		openLayerBC();
	
	ww = $(document).width();
	
	//alert(st);
	newLeft = (ww/2)-(567/2-30);
	$('#popup2').css('z-index',2000000);
	$("#popup2").css("left",newLeft);
	$("#popup2").css("top",$(window).scrollTop()+20); 
	$("#popup2").show();
	
	}
	

function openPopUp3(divid,parent)
	{
		openLayerBC();
	
	ww = $(document).width();
	
	//alert(st);
	newLeft = (ww/2)-(567/2-30);
	$('#popup3').css('z-index',2000000);
	$("#popup3").css("left",newLeft);
	$("#popup3").css("top",$(window).scrollTop()+20); 
	$("#popup3").show();
	
	}

function openPopUp4(divid,parent)
		{
			openLayerBC();

		ww = $(document).width();

		//alert(st);
		newLeft = (ww/2)-(567/2-30);
		$('#popup4').css('z-index',2000000);
		$("#popup4").css("left",newLeft);
		$("#popup4").css("top",$(window).scrollTop()+20); 
		$("#popup4").show();

		}

function openPopUp5(divid,parent)
		{
				openLayerBC();

			ww = $(document).width();

			//alert(st);
			newLeft = (ww/2)-(567/2-30);
			$('#popup5').css('z-index',2000000);
			$("#popup5").css("left",newLeft);
			$("#popup5").css("top",$(window).scrollTop()+20); 
			$("#popup5").show();

			}
			
function openPopUp6(divid,parent)
		{
				openLayerBC();

				ww = $(document).width();

			//alert(st);
			newLeft = (ww/2)-(567/2-30);
			$('#popup6').css('z-index',2000000);
			$("#popup6").css("left",newLeft);
			$("#popup6").css("top",$(window).scrollTop()+20); 
			$("#popup6").show();

			}

function openPopUp7(divid,parent)
		{
				openLayerBC();

				ww = $(document).width();

			//alert(st);
			newLeft = (ww/2)-(567/2-30);
			$('#popup7').css('z-index',2000000);
			$("#popup7").css("left",newLeft);
			$("#popup7").css("top",$(window).scrollTop()+20); 
			$("#popup7").show();

			}
			
function openPopUp8(divid,parent)
		{
				openLayerBC();

				ww = $(document).width();

			//alert(st);
			newLeft = (ww/2)-(567/2-30);
			$('#popup8').css('z-index',2000000);
			$("#popup8").css("left",newLeft);
			$("#popup8").css("top",$(window).scrollTop()+20); 
			$("#popup8").show();

						}
						
function openPopUp9(divid,parent)
		{
				openLayerBC();

				ww = $(document).width();

			//alert(st);
			newLeft = (ww/2)-(567/2-30);
			$('#popup9').css('z-index',2000000);
			$("#popup9").css("left",newLeft);
			$("#popup9").css("top",$(window).scrollTop()+20); 
			$("#popup9").show();

							}

function openPopUp10(divid,parent)
			{
					openLayerBC();

					ww = $(document).width();

				//alert(st);
				newLeft = (ww/2)-(567/2-30);
				$('#popup10').css('z-index',2000000);
				$("#popup10").css("left",newLeft);
				$("#popup10").css("top",$(window).scrollTop()+20); 
				$("#popup10").show();

													}

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 closePopup2(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 closePopup3(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 closePopup4(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 closePopup5(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 closePopup6(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 closePopup7(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 closePopup8(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 closePopup9(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 closePopup10(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';
  }



