if (typeof Common_js_parsed == 'undefined')
{

function OpenFullScreenFlash(contentId)
{
    window.open('/cms/WorkArea/linkit.aspx?LinkIdentifier=id&ItemID=' + contentId, 'FullScreenFlash', 'height=768,width=1024,resizable=1,menubar=0,status=0,scrollbars=1,toolbar=0');
}

function searchFocus(box)
{
    box.value = '';
}

function searchTest(box, event)
{
    if (document.all)
    {
        if (event.keyCode == 13)
        {
            event.returnValue = false;
            event.cancel = true;
            searchGo(box.id);
            return false;
        }
    }
    else if (document.getElementById)
    {
        if (event.which == 13)
        {
            event.returnValue = false;
            event.cancel = true;
            if (typeof event.preventDefault != 'undefined')
                event.preventDefault();
            searchGo(box.id);
            return false;
        }
    }
    else if(document.layers)
    {
        if(event.which == 13)
        {
            event.returnValue = false;
            event.cancel = true;
            searchGo(box.id);
            return false;
        }
    }
}

function searchBlur(box)
{
    if (box.value == '')
        box.value = 'Search';
}

function searchGo(boxId)
{
    var box = document.getElementById(boxId);
    if (box + box.value != '')
    {
        window.location.href = '/SearchResults.aspx?query=' + box.value;
    }
    return false;
}

function bWindow()
  {
        this.left = 0;
        this.windowOffsetLeft = 0;
        this.top = 0;
        this.windowOffsetTop = 0;
        this.width = 0;
        this.height = 0;
        this.windowTop = 0;
        this.windowLeft = 0;
        this.windowRight = 0;
        this.windowBottom = 0;
   
    this.init = function()
        {
        if(!document.height)
        {
            this.height = document.body.offsetHeight;    
            this.width = document.body.offsetWidth;    
        } else
        {
            this.height = document.height;
            this.width = document.width;
        }
        // get width/height
        if( typeof( window.innerWidth ) == 'number' ) {
          //Non-IE
          this.windowRight = window.innerWidth;
          this.windowBottom = window.innerHeight;
        } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
          //IE 6+ in 'standards compliant mode'
          this.windowRight = document.documentElement.clientWidth;
          this.windowBottom = document.documentElement.clientHeight;
        } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
          //IE 4 compatible
          this.windowRight = document.body.clientWidth;
          this.windowBottom = document.body.clientHeight;
        }
        this.windowTop = 0;
        this.windowLeft = 0;
        // add scroll offset
        if( typeof( window.pageYOffset ) == 'number' ) {
          //Netscape compliant
          this.windowTop = window.pageYOffset;
          this.windowLeft = window.pageXOffset;
          this.windowBottom += window.pageYOffset;
          this.windowRight += window.pageXOffset;
        } else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
          //DOM compliant
          this.windowTop = document.body.scrollTop;
          this.windowLeft = document.body.scrollLeft;
          this.windowBottom += document.body.scrollTop;
          this.windowRight += document.body.scrollLeft;
        } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
          //IE6 standards compliant mode
          this.windowTop = document.documentElement.scrollTop;
          this.windowLeft = document.documentElement.scrollLeft;
          this.windowBottom += document.documentElement.scrollTop;
          this.windowRight += document.documentElement.scrollLeft;
        }
    }
  }
  
  function EkTbWebMenuPopUpWindow (url, hWind, nWidth, nHeight, nScroll, nResize) {
	if (nWidth > screen.width) {
		nWidth = screen.width;
	}
	if (nHeight > screen.height) {
		nHeight = screen.height;
	}
	var cToolBar = 'toolbar=0,location=0,directories=0,status=' + nResize + ',menubar=0,scrollbars=' + nScroll + ',resizable=' + nResize + ',width=' + nWidth + ',height=' + nHeight;
	var popupwin = window.open(url, hWind, cToolBar);
	return popupwin;
}

Common_js_parsed = true;
}
if (typeof(Sys) !== 'undefined') Sys.Application.notifyScriptLoaded();
