function shownewwin(windowURL, windowName, windowFeatures) {
	var newWindow = window.open(windowURL, windowName, windowFeatures);
	newWindow.focus(); 
	return;
 }

/*##################################################################*/
/*             START THE FLASH FIX FOR THE WELCOME PAGE             */
/* <script type="text/javascript">playIndexFlash();</script> */
/*##################################################################*/
function playIndexFlash() { 
document.write('<script language="JavaScript" type="text/javascript">  \n');
document.write('var requiredMajorVersion = 6; \n');
document.write('var requiredMinorVersion = 0; \n');
document.write('var requiredRevision = 0; \n');
document.write('var jsVersion = 1.0; \n');
document.write('</script>  \n');
document.write('<script language="VBScript" type="text/vbscript">  \n');
document.write('Function VBGetSwfVer(i)  \n');
document.write('  on error resume next  \n');
document.write('  Dim swControl, swVersion  \n');
document.write('  swVersion = 0  \n');
document.write('  set swControl = CreateObject("ShockwaveFlash.ShockwaveFlash." + CStr(i))  \n');
document.write('  if (IsObject(swControl)) then  \n');
document.write('    swVersion = swControl.GetVariable("$version")  \n');
document.write('  end if  \n');
document.write('  VBGetSwfVer = swVersion  \n');
document.write('End Function  \n');
document.write('</script>  \n');
document.write('<script language="JavaScript1.1" type="text/javascript">  \n');
document.write('var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false; \n');
document.write('var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false; \n');
document.write('var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false; \n');
document.write('jsVersion = 1.1; \n');
document.write('function JSGetSwfVer(i) { \n');
document.write('	if (navigator.plugins != null && navigator.plugins.length > 0) { \n');
document.write('		if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) { \n');
document.write('			var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : ""; \n');
document.write('      		var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description; \n');
document.write('			descArray = flashDescription.split(" "); \n');
document.write('			tempArrayMajor = descArray[2].split("."); \n');
document.write('			versionMajor = tempArrayMajor[0]; \n');
document.write('			versionMinor = tempArrayMajor[1]; \n');
document.write('			if ( descArray[3] != "" ) { \n');
document.write('				tempArrayMinor = descArray[3].split("r"); \n');
document.write('			} \n');
document.write('			else { \n');
document.write('				tempArrayMinor = descArray[4].split("r"); \n');
document.write('			} \n');
document.write('      		versionRevision = tempArrayMinor[1] > 0 ? tempArrayMinor[1] : 0; \n');
document.write('            flashVer = versionMajor + "." + versionMinor + "." + versionRevision; \n');
document.write('      	} \n');
document.write('		else { \n');
document.write('			flashVer = -1; \n');
document.write('		} \n');
document.write('	} \n');
document.write('	else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4; \n');
document.write('	else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3; \n');
document.write('	else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2; \n');
document.write('	else { \n');
document.write('		flashVer = -1; \n');
document.write('	} \n');
document.write('	return flashVer; \n');
document.write('}  \n');
document.write('function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision)  {  \n');
document.write(' 	reqVer = parseFloat(reqMajorVer + "." + reqRevision);  \n');
document.write('	for (i=25;i>0;i--) {	  \n');
document.write('		if (isIE && isWin && !isOpera) {  \n');
document.write('			versionStr = VBGetSwfVer(i);  \n');
document.write('		}  \n');
document.write('		else {  \n');
document.write('			versionStr = JSGetSwfVer(i);  \n');		
document.write('		}  \n');
document.write('		if (versionStr == -1 ) {   \n');
document.write('			return false;  \n');
document.write('		}  \n');
document.write('		else if (versionStr != 0) {  \n');
document.write('			if(isIE && isWin && !isOpera) {  \n');
document.write('				tempArray         = versionStr.split(" ");  \n');
document.write('				tempString        = tempArray[1];  \n');
document.write('				versionArray      = tempString .split(",");  \n');				
document.write('			}  \n');
document.write('			else {  \n');
document.write('				versionArray      = versionStr.split(".");  \n');
document.write('			}  \n');
document.write('			versionMajor      = versionArray[0];  \n');
document.write('			versionMinor      = versionArray[1];  \n');
document.write('			versionRevision   = versionArray[2];  \n');
document.write('			versionString     = versionMajor + "." + versionRevision;     \n');
document.write('			versionNum        = parseFloat(versionString);  \n');
document.write('			if ( (versionMajor > reqMajorVer) && (versionNum >= reqVer) ) {  \n');
document.write('				return true;  \n');
document.write('			}  \n');
document.write('			else {  \n');
document.write('				return ((versionNum >= reqVer && versionMinor >= reqMinorVer) ? true : false );	  \n');
document.write('			}  \n');
document.write('		}  \n');
document.write('	}	  \n');
document.write('	return (reqVer ? false : 0.0);  \n');
document.write('}  \n');
// -->
document.write('</script>  \n');
	var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	if(hasRightVersion) { 
		document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="573" height="305" id="dealMax" align="middle"> \n');
         document.write('<param name="allowScriptAccess" value="sameDomain" /> \n');
         document.write('<param name="menu" value="false" /> \n');
         document.write('<param name="allowFullScreen" value="false" /> \n');
         document.write('<param name="movie" value="../flash/dealMax.swf" /> \n');
         document.write('<param name="quality" value="high" /> \n');
         document.write('<param name="bgcolor" value="#86a7c6" /> \n');
         document.write('<param name="wmode" value="transparent" /> \n');
         document.write('<param name="FlashVars" value="ID={Member.VLD.MemberID}" /> \n');
         document.write('<embed flashvars="ID={Member.VLD.MemberID}" src="../flash/dealMax.swf" quality="high" wmode="transparent" bgcolor="#86a7c6" width="573" height="305" name="dealMax" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> \n');		
        document.write('</object>\n');
	}
	else { 
        document.write('<a href="http://www.adobe.com/go/EN_US-H-GET-FLASH"><img src="../Images/Layout/en/no_flash.png" width="573" height="305" border="0" alt="Turn on Javascript and/or install latest flash player" /></a>\n');
  	}
}

/*########################################*/
/* END THE FLASH FIX FOR THE WELCOME PAGE */
/*########################################*/


/************************************************************************/
/*                        START BOOKMARK FUNCTION                       */
/************************************************************************/
// This is a cross browser (Firefox 1.x+, IE4+ and Opera7+) 
// script for allowing the user to easily bookmark the site, 
// by clicking on a link on the page.
// Add this to the href link: javascript:bookmarksite('Bookmark Name/Title','URL');
function bookmarksite(title,url){
	if (window.sidebar) // opens firefox bookmark dialogue
	window.sidebar.addPanel(title, url, "");
	else if(window.opera && window.print) { // opens opera bookmark dialogue
		var lvll = document.createElement('a');
		lvll.setAttribute('href',url);
		lvll.setAttribute('title',title);
		lvll.setAttribute('rel','sidebar');
		lvll.click();
	} 
	else if(document.all) // opens ie bookmark dialogue
	window.external.AddFavorite(url, title);
}

/************************************************************************/
/*                         END BOOKMARK FUNCTION                        */
/************************************************************************/







/************************************************************************/
/*               START NON-OBTRUSIVE IMAGE SWAP FUNCTION                */
/************************************************************************/

//addEvent by http://ejohn.org/projects/flexible-javascript-events
function addEvent(obj,type,fn){if(obj.attachEvent){obj['e'+type+fn]=fn;obj[type+fn]=function(){obj['e'+type+fn](window.event)};obj.attachEvent('on'+type,obj[type+fn])}else{obj.addEventListener(type,fn,false)}}function removeEvent(obj,type,fn){if(obj.detachEvent){obj.detachEvent('on'+type,obj[type+fn]);obj[type+fn]=null}else{obj.removeEventListener(type,fn,false)}}

//Non-Obtrusive Image Swap Script V1.1 by Hesido.com 
//(instead of default dreamweaver functions)
//http://www.hesido.com/web.php?page=imageswapping

function prepareImageSwap(elem,mouseOver,mouseOutRestore,mouseDown,mouseUpRestore,mouseOut,mouseUp){if(typeof(elem)=='string'){elem=document.getElementById(elem)}if(elem===null){return}var regg=/(.*)(_nm\.)([^\.]{3,4})$/;var prel=new Array(),img,imgList,imgsrc,mtchd;imgList=elem.getElementsByTagName('img');for(var i=0;img=imgList[i];i++){if(!img.rolloverSet&&img.src.match(regg)){mtchd=img.src.match(regg);img.hoverSRC=mtchd[1]+'_hv.'+mtchd[3];img.outSRC=img.src;if(typeof(mouseOver)!='undefined'){img.hoverSRC=(mouseOver)?mtchd[1]+'_hv.'+mtchd[3]:false;img.outSRC=(mouseOut)?mtchd[1]+'_ou.'+mtchd[3]:(mouseOver&&mouseOutRestore)?img.src:false;img.mdownSRC=(mouseDown)?mtchd[1]+'_md.'+mtchd[3]:false;img.mupSRC=(mouseUp)?mtchd[1]+'_mu.'+mtchd[3]:(mouseOver&&mouseDown&&mouseUpRestore)?img.hoverSRC:(mouseDown&&mouseUpRestore)?img.src:false}if(img.hoverSRC){preLoadImg(img.hoverSRC);img.onmouseover=imgHoverSwap}if(img.outSRC){preLoadImg(img.outSRC);img.onmouseout=imgOutSwap}if(img.mdownSRC){preLoadImg(img.mdownSRC);img.onmousedown=imgMouseDownSwap}if(img.mupSRC){preLoadImg(img.mupSRC);img.onmouseup=imgMouseUpSwap}img.rolloverSet=true}}function preLoadImg(imgSrc){prel[prel.length]=new Image();prel[prel.length-1].src=imgSrc}}function imgHoverSwap(){this.src=this.hoverSRC}function imgOutSwap(){this.src=this.outSRC}function imgMouseDownSwap(){this.src=this.mdownSRC}function imgMouseUpSwap(){this.src=this.mupSRC}

function shownewwin(windowURL, windowName, windowFeatures) {
	var newWindow = window.open(windowURL, windowName, windowFeatures);
	newWindow.focus(); 
	return;
}

//add events to window onload
addEvent(window, "load", function(){
  prepareImageSwap("common_top_nav_wrapper_btm");
  prepareImageSwap("personal_assistant");
  
});

/************************************************************************/
/*                END NON-OBTRUSIVE IMAGE SWAP FUNCTION                 */
/************************************************************************/







