$(document).ready(function()
{
	// what is browser  ??
	 var ie = 0/*@cc_on+@_jscript_version*10@*/; 
	 var hght = 0;
	 var scrollf = 0;
	 var ypos=0;

	$("#content.people #minifoto a, .mini-photo-a").click(function()
													 {
														 $("#big_foto_wrapper #blend").stop().animate({opacity: 0.85},200);
														 $("#big_foto_wrapper #image img").attr("src",jQuery(this).attr("href"));
														 $("#big_foto_wrapper").css("display","block");
													 });
	
	$("#big_foto_wrapper #blend, #big_foto_wrapper #image img, #uniqeflr, #forum-register").click(function()
												 {
													 if ($("#big_foto_wrapper #image img").attr("src")) 
													 {
														 	// we are in the gallery
														 $("#big_foto_wrapper #blend").css("opacity",0);
														 $("#big_foto_wrapper #image img").attr("src","/import/i/doomer.gif");
														 $("#big_foto_wrapper #image img").css("display","none");
														 $("#big_foto_wrapper").css("display","none");	
													 }
													// CloseWindow();
												 });
	
	$("#forum-register").click(function()
						{
							$("#big_foto_wrapper #blend").css("opacity",0);
						 $("#big_foto_wrapper").css("display","none");	
						});
	
	$("ul#sub_menu a.text:not(.no-sub-themes)").hover(function()
												  {	
												  	
													  $("ul#sub_menu li.menu .sub-menu").css("dislpay","none");
													  jQuery(this).parent("span").parent("li").children("ul#sub_menu li.menu .sub-menu").css("display","block");												
													  $(".inside").css("z-index","-1");
													//}
												  },
												  function(){}
												  );
	
	$("ul#sub_menu li.menu .sub-menu").hover(function(){},
												  function()
												  	{
														
												  	//if (ie==56)
													//{														
														//jQuery(this).css("visibility","hidden");
													//}	
													///else
													//{
														jQuery(this).css("display","none");
														$(".inside").css("z-index","0");
													//}
														
													});
	
$("a.forum-auth-in").click(function()
													 {
														 $("#big_foto_wrapper #blend").stop().animate({opacity: 0.85},200);
														 //$("#big_foto_wrapper #image img").attr("src",jQuery(this).attr("href"));
														 $("#big_foto_wrapper").css("display","block");
													 });

});

function setWH(wgth,hgth)
			{
				document.getElementById("image").style.width=wgth+"px";
				document.getElementById("image").style.height=hgth+"px";
				document.getElementById("image").style.marginTop=-hgth/2+"px";
				document.getElementById("image").style.marginLeft=-wgth/2+"px";
				
				document.getElementById("uniqeftb").style.width=wgth-23+"px";
				document.getElementById("uniqeftb").style.height=hgth+"px";
				
				document.getElementById("uniqeflr").style.width=wgth+"px";
				document.getElementById("uniqeflr").style.height=hgth-24+"px";
			}
			
			function imgShow()
			{
			document.getElementById("bigpicture").style.display="block";
			}
			
