$(function(){

 var temp=$("#temp").attr("value");
$("#menu a").removeClass("now");
$("#menu a").eq(temp).addClass("now") 
var menu = $("#menu");		  
var popm = $("#smenu");
var obja = menu.find("a")
var objd = popm.find(".sm")

$("#smenu ul:empty").parent("dd").remove();		

var chtm = $("#navlist").html();
$("#navTop").html(chtm);
var menu = $("#menu");		  
var popm = $("#smenu");
var obja = menu.find("a")
var objd = popm.find(".sm")
obja.hover(function(){
var objs = obja.index($(this));
objd.hide();objd.eq(objs).show();
},function(){objd.hide();});
objd.hover(function(){
obja.unbind("hover");$(this).show();
var num2 = objd.index($(this));
obja.eq(num2).addClass("now");
},function(){var num3 =  objd.index($(this));
obja.eq(num3).removeClass("now");
$(this).hide();}) 
var obmdt = $("#smenu dt");
var obmdd = $("#smenu dd");
var obmli = $("#smenu li");
obmdt.hover(function(){$(this).addClass("ov");
$(this).next("dd").show();},function(){
$(this).removeClass("ov");
$(this).next("dd").hide();});
obmdd.hover(function(){obmdt.unbind("hover");
$(this).show();$(this).prev("dt").addClass("ov");},function(){
$(this).prev("dt").removeClass("ov");$(this).hide();})	
obmli.hover(function(){$(this).addClass("ov");},function(){
$(this).removeClass("ov");})	

$("#newBox").click(function(){
$(".newslist li").show();});
$("#newroom").click(function(){
$(".newslist li").show();							 
$(".newslist li:contains('Media Say')").each(function(){ $(this).hide()})});
$("#newsay").click(function(){
$(".newslist li").show();
$(".newslist li:contains('Newsroom')").each(function(){ $(this).hide()})});


}) 
