$(document).ready(function(){
var s =0;
$(".webexnavigator li").each(function(){
s++;
$(this).attr("id","id"+s);
});
$(".webexnavigator li").click(function(){
$(".webexnavigator li").removeClass("navactive");	
$(this).addClass("navactive");
var id = Number($(this).attr("id").replace("id",""));
if ($(this).attr("id") == "id1") {$(this).parents("ul").animate({marginTop:0+'px'});} 
else if (id == s) {$(this).parents("ul").animate({marginTop:-86*id+258+'px'});
} else {$(this).parents("ul").animate({marginTop:-86*id+172+'px'});}
var curimg = $(".navactive a").attr("rel");
$(".image").css("background","url("+curimg+") no-repeat");
$(".image img").animate({}, 50, function() {
$(this).attr("src",curimg);
});
});
return false;
});
