// JavaScript Document

jQuery(document).ready(function($) {
	$('ul.sf-menu').supersubs({ 
            minWidth:    8,   // minimum width of sub-menus in em units 
            maxWidth:    24,   // maximum width of sub-menus in em units 
            extraWidth:  1    // extra width can ensure lines don't sometimes turn over 
                               // due to slight rounding differences and font-family 
        }).superfish({delay:1200,dropShadows : false,autoArrows	: false}, function(){$('#prodmenu').css({width:'42em'});});
	$('#slideshow').lbListRotator({
		rotationInterval: 8000,
		effectTimer:5000,
		activeItemClass: 'slideshowItemActive'
	});
	$('.tabs').tabs();
var bridge = new ctRotatorBridgeRss20('xssi_news.php?rssfeed=1', function(dataSource){
  $('#news').ctRotator(dataSource, {
    showCount:1,
    speed: 6000,
	useTooltip:true
  });
});
$('#newsscroller').lbListRotator({
		rotationInterval: 18000,
		effectTimer:3000,
		activeItemClass: 'slideshowItemActive'
	});


bridge.getDataSource();
 
	$('a.lightbox').lightBox();
 	$('#trolley').load(function(){myframe=this;$('#trolley').contents().find("body a").css({'color':'#060'});});
	$('#trolley').click(function(){$('#trolley').contents().find("body a").css({'color':'#060'});});
	$('#trolley').ready(function(){});
	$('#prodmenu').css({width:'42em'});
	
});
function checkQuantity(iframe){
	$(iframe).contents().find("body #qty_1").val("100");
}


