
	function DESemail(emailname,emailserver) {
		document.write("<a href='mailto:" + emailname + "@" + emailserver +"'>");
		document.write(emailname + "@" + emailserver); 
		document.write("</a>"); 
	}

	function DESopen(url, width, height, toolbar, scroll) {
		window.open(url, "", "scrollbars=" + scroll + ", toolbar=" + toolbar + ", height=" + height + ", width=" + width);
		return false;
	}


	$(function() {

		if ($('#home_banner').get(0)) {
			$('#cycle_pics').cycle({
				fx:      'fade',
				speed:   700,
				timeout: 4000
			});

			$('"#recent_prev').css('display', 'block');
			$('#recent_next').css('display',  'block');

			recent_bg_ext = $.browser.msie && $.browser.version == '6.0' ? 'gif' : 'png';

			$('#home_recent_wrapper').css('background-image', 'url("/img/design/recent_bg.'+recent_bg_ext+'")');

			$('#recent_next').click(function() {
				$('#home_recent_content').animate( { left: 400 }, 200, 'linear', function() {
					$(this).load('/incs/ajax/home_recent.php', function() {
						$(this)
							.css('left', -320)
							.animate({ left : 10 }, 350, 'swing');
					});
				});

				return false;
			});

			$('#recent_prev').click(function() {
				$('#home_recent_content').animate( { left: -400 }, 200, 'linear', function() {
					$(this).load('/incs/ajax/home_recent.php?prev=true', function() {
						$(this)
							.css('left', 700)
							.animate({ left : 10 }, 350, 'swing');
					});
				});

				return false;
			});
		}

		if ($('.products_list li a').get(0)) $('.products_list a').lightBox();

	});
