function popupImage(url, imageHeight, imageWidth) 
{
		var newImageHeight = (parseInt(imageHeight) + 40);
		var yPos = ((screen.height / 2) - (parseInt(newImageHeight) / 2));
		var xPos = ((screen.width / 2) - (parseInt(imageWidth) / 2));

		imageWindow = window.open(url,'popupImages','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=' + imageWidth + ',height=' + newImageHeight + ',screenY=' + yPos + ',screenX=' + xPos + ',top=' + yPos + ',left=' + xPos);

		imageWindow.moveTo(xPos, yPos);
		imageWindow.resizeTo(parseInt(imageWidth), parseInt(newImageHeight));

		if (window.focus) 
		{
			imageWindow.focus();
		}
}


function CVVPopUpWindow(url) 
{
	window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=600,height=233,screenX=150,screenY=150,top=150,left=150')
}

function load_category_info(catID)
{
	var htmlData=$("#category_"+catID).html();
	$("#leftGallery").focus();
		
		
		$("#leftColumnGallery").queue( 
										  function() 
										  { 
										  $(this).fadeOut("slow");
										  $(this).dequeue(); 
										  } 
									  );	
		
		$("#leftColumnGallery").queue( 
										  function() 
										  { 
										  $(this).html(htmlData);
										  $(this).dequeue(); 
										  } 
									  );	
	
		$("#leftColumnGallery").queue( 
										  function() 
										  { 
										  $(this).fadeIn("slow");
										  $(this).dequeue(); 
										  } 
									  );	
		// Tran

		var imgno;
		var url=$("#p_link_"+catID).attr("href");
		
		switch(catID)
		{
			case 3:
			imgno=3;
			break;
			
			case 7:
			imgno=1;
			break;

			case 6:
			imgno=4;
			break;
			
			case 8:
			imgno=5;
			break;			
			
			case 9:
			imgno=2;
			break;			
			
		}


		bigImage(imgno,url);
			
}


function bigImage(imgno,url)
{
	var animationwindow = document.getElementsByName("animation")[0];
	animationwindow.image(imgno,url);
}
