$(function() {
	$('#slideshow_retail').cycle({
        fx:     'fade',
        speed:  300,
        timeout: 5000,
		pause:   1, 
        pager:  '#nav',
		slideExpr: 'div'
    });
});

$(function() {
	$('#slideshow_commercial').cycle({
        fx:     'fade',
        speed:  300,
        timeout: 5000,
		pause:   1, 
        pager:  '#nav2',
		slideExpr: 'div'
    });
    
    $('.slide .content,.slide .content + img').css('cursor', 'pointer');
    $(".slide .content,.slide .content + img").click(function(){
	var href=$('a',$(this).closest('.slide')).attr('href');
	if(href) window.location=href;
    });
});



/*sfHover = function() {
	var sfEls = document.getElementById("menu").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);*/

