$(document).ready(function()
{   



$('.slideshow').cycle({
fx:     'scrollLeft',
timeout: 5000
});

$('.slideshow2').cycle({
fx:     'fade',
timeout: 5000
});


$('#box1').show();
$('#box2').hide();
$('#box3').hide();
$('#box4').hide();

$("#tab1").click(function () 
{    
    $('#box1').show();
    $('#box2').hide();
    $('#box3').hide();
    $('#box4').hide();
    $('#box5').hide();
    $('#box6').hide();
    $('#box7').hide();
    $("#tabs li").removeClass("currenttab");
    $("#tab1").addClass("currenttab"); 
     
});

$("#tab2").click(function () 
{
    $('#box1').hide();
    $('#box2').show();
    $('#box3').hide();
    $('#box4').hide();
    $('#box5').hide();
    $('#box6').hide();
    $('#box7').hide();
    $("#tabs li").removeClass("currenttab");
    $("#tab2").addClass("currenttab");
        
});

$("#tab3").click(function () 
{
    $('#box1').hide();
    $('#box2').hide();
    $('#box3').show();
    $('#box4').hide();
    $('#box5').hide();
    $('#box6').hide();
    $('#box7').hide();
    $("#tabs li").removeClass("currenttab");
    $("#tab3").addClass("currenttab");   
    
});

$("#tab4").click(function () 
{
    $('#box1').hide();
    $('#box2').hide();
    $('#box3').hide();
    $('#box4').show();
    $('#box5').hide();
    $('#box6').hide();
    $('#box7').hide();
    $("#tabs li").removeClass("currenttab");
    $("#tab4").addClass("currenttab");  
});

$("#tab5").click(function () 
{
    $('#box1').hide();
    $('#box2').hide();
    $('#box3').hide();
    $('#box4').hide();
    $('#box5').show();
    $('#box6').hide();
    $('#box7').hide();
    $("#tabs li").removeClass("currenttab");
    $("#tab5").addClass("currenttab");  
});

$("#tab6").click(function () 
{
    $('#box1').hide();
    $('#box2').hide();
    $('#box3').hide();
    $('#box4').hide();
    $('#box5').hide();
    $('#box6').show();
    $('#box7').hide();
    $("#tabs li").removeClass("currenttab");
    $("#tab6").addClass("currenttab");  
});

$("#tab7").click(function () 
{
    $('#box1').hide();
    $('#box2').hide();
    $('#box3').hide();
    $('#box4').hide();
    $('#box5').hide();
    $('#box6').hide();
    $('#box7').show()
    $("#tabs li").removeClass("currenttab");
    $("#tab7").addClass("currenttab");  
});

$('#boxmain1').css({'z-index' : '3'});


$("#tabmain1").click(function () 
{    
    $("#tabsmain li").removeClass("currenttabsmain");
    $("#tabmain1").addClass("currenttabsmain");
    $('div.boxmain').css({'z-index' : '1'});
    $('#boxmain1').css({'z-index' : '3'});    
});
$("#tabmain2").click(function () 
{
    $("#tabsmain li").removeClass("currenttabsmain");
    $("#tabmain2").addClass("currenttabsmain");
    $('div.boxmain').css({'z-index' : '1'});
    $('#boxmain2').css({'z-index' : '3'});
        
});
$("#tabmain3").click(function () 
{
    $("#tabsmain li").removeClass("currenttabsmain");
    $("#tabmain3").addClass("currenttabsmain");
    $('div.boxmain').css({'z-index' : '1'});
    $('#boxmain3').css({'z-index' : '3'});        
});


   
});
 
