//<![CDATA[
/**
 * Profile Module automation class
 */
var ProfileModule =
{
	init: function (controller, container) {
		$(controller).attr('href', 'javascript:void(0)');
		$(container).addClass('collapsed');
		$(controller).click(
			function () {
				var cont = $(container);
				if (cont.is('.collapsed')) {
					cont.removeClass('collapsed');
				} else {
					cont.addClass('collapsed');
				}
			}
		);
	}
}
var getElementByName = function (n) {
    if (navigator.appName.indexOf('Microsoft') !== -1) {
        return window[n];
    } else {
        return document[n];
    }
}; 

var swapDepths = function(panelExpanded){
    if (panelExpanded == undefined){
        panelExpanded = "";
    }
    if(panelExpanded){
        $("#h-locale").css("z-index","100")
    }else{
        $("#h-locale").css("z-index","9")
    }
}

var newwindow;
function poptastic(url,popWidth,popHeight)
{
	newwindow =window.open(url,'name','width=' + popWidth + ',height=' + popHeight + ',resizable=no,scrollbars=yes');
	if (window.focus) {newwindow.focus()}
}


//]]>