// Custom js!
ImageLoader= new Image(32,32);
ImageLoader.src = "/sites/all/themes/basic/images/product_load.gif";
function openWindow(url, width, height)
{
	window.open(url, '', 'location=1,status=1,scrollbars=1,width=' + width + ',height=' + height);
}
$(document).ready(function()
{
	//Sub-menu sliding
	/*$('ul.leaf').each(function()
	{
		//$(this).hide();
	});
	$('a.active').each(function ()
	{
		$(this).parent().parent().show();
	});
	$('a.menu-toggle').each(function ()
	{
		var menu = $(this).attr('menu');
		$(this).mouseover(function ()
		{
			$("li.parent").removeClass("parent").addClass("parent-collapsed");
			//$("li.parent").removeClass("parent").addClass("parent-collapsed");
			$("li#li-" + menu).removeClass("parent-collapsed").addClass("parent");
			$('ul.leaf').each(function ()
			{
				if($(this).hasClass('menu-' + menu))
					$(this).slideDown('fast');
				else
					$(this).slideUp('1800');
			});
		});
	});*/
	
	$('#content-area #comments-pane').addClass('collapsed');
	
	//Auto check the "My billing information is the same as my delivery information."
    $('#edit-panes-billing-copy-address').attr('checked',true);
	if(typeof uc_cart_copy_address == 'function') {
	  uc_cart_copy_address(true,'delivery','billing');	
    }
});

