$(function(){
	// rollover
	$('.imgover').each(function(){
		this.osrc = $(this).attr('src');
		this.rollover = new Image();
		this.rollover.src = this.osrc.replace(/(\.gif|\.jpg|\.png)/, "_o$1");
	}).hover(function(){
		$(this).attr('src',this.rollover.src);
	},function(){
		$(this).attr('src',this.osrc);
	});
	// scroll
	$('a[@href^=#]').click(function() {
		var $t = $(this.hash);
		if (this.hash.length > 1 && $t.size()) {
			$.scrollTo($t, 400);
			return false;
		}
	});
});

$(document).ready(function(){
	$(".fadeOver").hover(function(){$(this).fadeTo("fast", 0.7);},function(){$(this).fadeTo("fast", 1);});
});


$.fn.cycle.defaults.timeout = 8000;
$(function() {

	$('#sliderH').cycle({
    fx:     'fade',
    speed:  1000
	/*,
	next:   '#next',
    prev:   '#prev'
	*/
});
	$('#slider').cycle({
    fx:     'scrollRight',
	speed:  'fast',
    timeout: 0,
    next:   '#next2'
});
	$('#slider').cycle({
    fx:     'scrollLeft',
	speed:  'fast',
    timeout: 0,
    prev:   '#prev2'
});
	
	$('#sliderElectronic1').cycle({
    fx:     'scrollRight',
	speed:  'fast',
    timeout: 0,
    next:   '#nextElectronic1'
});
	$('#sliderElectronic1').cycle({
    fx:     'scrollLeft',
	speed:  'fast',
    timeout: 0,
    prev:   '#prevElectronic1'
});
	
	$('#sliderElectronic').cycle({
    fx:     'scrollRight',
	speed:  'fast',
    timeout: 0,
    next:   '#nextElectronic'
});
	$('#sliderElectronic').cycle({
    fx:     'scrollLeft',
	speed:  'fast',
    timeout: 0,
    prev:   '#prevElectronic'
});
});