
$(function(){
var boxes = $(".smodeContent").find(".content");
boxes.each(function(index){
var tempBox = $(this);
setTimeout(function(){
tempBox.slideUp("slow",function(){
if(index == (boxes.length-1)){
$(boxes[0]).slideDown("slow",function(){
$("#content1").css({"overflow" : "auto", "height" : "auto"});
$.scrollTo(30,500)
});
}
});
},235*index);

var tempHeader = tempBox.parents(".colBoxContainer").find(".top");

tempHeader.toggle(function(){
tempBox.slideDown("fast");
},function(){
tempBox.slideUp("slow");
});
});
$(".smode-ref-wrapper").each(function(i){

var wrapper= $(this);
var thumbs= wrapper.find(".smode-ref");

thumbs.each(function(j){
var ref = $(thumbs[j]);
ref.hover(function(){
ref.css({"opacity" : "1.0"});
ref.find(".label").css({"display" : "block"});
},function(){
ref.css({"opacity" : "0.5"});
ref.find(".label").css({"display" : "none"});
});
});

  
});

});

