function commonInit() {
}
toolToggleSpeed = 150;
$(document).ready(function () {
    $("#share_button").click(function () {
        $("#share_list").slideToggle(toolToggleSpeed);
    });
    $("#share_list a").each(function () {
        $(this).attr("href", $(this).attr("href").replace("cUrl", window.location.href));
    });

    $(".footer_qrcode").CreateBubblePopup();
    $(".footer_qrcode").mouseover(function () {
        var html = $("#qrHelp").html();
        $(this).ShowBubblePopup({
            position: top,
            width: 160,
            innerHtml: html,
            innerHtmlStyle: { "color": "#fff", "text-align": "center" },
            themeName: "all-black",
            themePath: "inc/styles/jquerybubblepopup-theme"
        });
    });
});






/* MENU */
var obj = null;
$(document).ready(function() {
    $(".menu a").each(function() {
        if ($(this).attr("href") != "#" && window.location.href.indexOf($(this).attr("href"))>-1) {
            if ($(this).hasClass("ssmenu")){
                $(this).parents("div").first().children("a").attr("selected", "1").addClass("selectedMenu");
                $(this).addClass("selectedSousMenu");
                $(this).parents("ul").first().fadeIn("fast").slideDown("fast");
            } else {
                $(this).attr("selected", "1").addClass("selectedMenu");
            }
        }
    });

	$(".menu div").bind("mouseenter", function() {
		$(this).children("a").addClass("selectedMenu");
        //$(this).children("ul").fadeIn("fast").slideDown("fast");
	}).bind("mouseleave", function() { 
		$(this).children("a:not([selected='1'])").removeClass("selectedMenu");
		//$(this).children("ul:visible").slideUp("fast").fadeOut();	
	}).bind("click", function() { }); 
});










