ddsmoothmenu.init({
	mainmenuid: "smoothmenu1", //menu DIV id
	orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
	classname: 'ddsmoothmenu', //class added to menu's outer DIV
	//customtheme: ["#1c5a80", "#18374a"],
	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})

ddsmoothmenu.init({
	mainmenuid: "smoothmenu2", //Menu DIV id
	orientation: 'v', //Horizontal or vertical menu: Set to "h" or "v"
	classname: 'ddsmoothmenu-v', //class added to menu's outer DIV
	//customtheme: ["#804000", "#482400"],
	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})

ddsmoothmenu.init({
	mainmenuid: "smoothmenu-ajax",
	orientation: 'h',
	classname: 'ddsmoothmenu',
	customtheme: ["#1c5a80", "#18374a"], //override default menu CSS background values? Uncomment: ["normal_background", "hover_background"]
	contentsource: ["smoothcontainer", "smoothmenu.htm"] //"markup" or ["container_id", "path_to_menu_file"]
})

$(document).ready(function() {
    if (typeof pageLoad != 'undefined') {
        pageLoad();
    }
});

$(window).unload(function() {
    // alert('Handler for .unload() called.');
    if (typeof pageUnLoad != 'undefined') {
        pageUnLoad();
    }
});

/* get request.querystring */
function getParameterByName(name) {
    name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
    var regexS = "[\\?&]" + name + "=([^&#]*)";
    var regex = new RegExp(regexS);
    var results = regex.exec(window.location.href);
    console.log('getPara=' + results);
    if (results == null)
        return "";
    else
        return results[1];
}

// if console is not defined, e.g., Firebug console is not enabled or Non-Firefox browser  
if (typeof console == 'undefined') {
    var console = {};
    console.log = function(msg) {
        return;
    };
} 

