function colorMenu(name)
 {
	if (document.getElementById([name]))
		{
			//document.getElementById([name]).style.backgroundImage="url(/images/BL_V4_Nav_Arrow.gif)";
			//document.getElementById([name]).style.backgroundRepeat="no-repeat";
			//document.getElementById([name]).style.color="#000000";
			//document.getElementById([name]).style.fontWeight="normal";
			//document.getElementById([name]).style.backgroundPosition="left";
			
		}	
	
	if (document.getElementById("switchSecondLevel"+[name]))
		{	
			document.getElementById("switchSecondLevel"+[name]).src = "/images/nav_arrow_down_on.gif";
	 	}
	
	if (document.getElementById("switchThirdLevel"+[name]))
		{	
			document.getElementById("switchThirdLevel"+[name]).src = "/images/nav_round_on.gif";
	 	}
 }



 
 
function openPicZoomWindow(url,m_left,m_top,m_width,m_height) 
	{    
		msgWindow=window.open(url,"video","left=300,top=200,width=500,height="+m_height+",resizable=0,toolbar=0,menubar=0,status=0,directories=0,scrollbars=no");
        msgWindow.window.focus();
    }

 
function openVideoWindow(url,m_left,m_top,m_width,m_height) 
	{    
		msgWindow=window.open(url,"video","left="+m_left+",top="+m_top+",width="+m_width+",height="+m_height+",resizable=0,toolbar=0,menubar=0,status=0,directories=0,scrollbars=no,statusbar=0");
        msgWindow.window.focus();
    }


function send2friendWindow(url,m_left,m_top,m_width,m_height) 
	{    
		msgWindow=window.open(url,"send2friend","left="+m_left+",top="+m_top+",width="+m_width+",height="+m_height+",resizable=0,toolbar=0,menubar=0,status=0,directories=0,scrollbars=no");
        msgWindow.window.focus();
    }

function printWindow(url,m_left,m_top,m_width,m_height) 
	{    
		print();
    }
	

function openPreviewWindow(url,m_left,m_top,m_width,m_height) 
	{    
		msgWindow=window.open(url,"preview","left="+m_left+",top="+m_top+",width="+m_width+",height="+m_height+",resizable=0,toolbar=0,menubar=0,status=0,directories=0,scrollbars=no");
        msgWindow.window.focus();
    }

	
	
function openSearchWindow(url,m_left,m_top,m_width,m_height) 
	{    
		msgWindow=window.open(url,"search","left="+m_left+",top="+m_top+",width="+m_width+",height="+m_height+",resizable=0,toolbar=0,menubar=0,status=0,directories=0,scrollbars=no");
        msgWindow.window.focus();
    }	


//function EventFilter(button, metatagID)
//	{
//		switch(button.name)
//		{
//			case "FilterA_button":
//				window.location.href = 'website_english.asp?metaTagTypeID=4&metatagID='+metatagID+'&pageTypeID=33&article_short_headline=Events&menuID=719&colorID=719';	
//			break;
//			
//			case "FilterB_button":
//				window.location.href = 'website_english.asp?metaTagTypeID=3&metatagID='+metatagID+'&pageTypeID=33&article_short_headline=Events&menuID=719&colorID=719';	
//			break;
//		}
//	}	



function EventFilter(formName, metatagID)
	{
		switch(formName.name)
		{
			case "FilterA":
				window.location.href = '/evt/33/4/'+metatagID+'/Events/';	
			break;
						
			case "FilterB":
				window.location.href = '/evt/33/3/'+metatagID+'/Events/';	
			break;
		}
	}	
	

function GoSolution(x)
	 {
 		if(x == "nothing")
		{
   			document.forms[0].reset();
   			document.forms[0].elements[0].blur();
   			return;
		}
 		else
		{
   			switch(x)
				{
				
				// Solution listbox located with the Product and Solution page
				// English
				
								
				case "1": window.location.href = '/scripts/website_english.asp?menuDeactivate=1&articleTypeID=269&pageTypeID=18&article_short_headline=The Integrated Neuroscience Center';	
						  break;	
				case "2": window.location.href = '/scripts/website_english.asp?menuDeactivate=1&articleTypeID=284&pageTypeID=24&article_short_headline=RT/Oncology Solutions';
				 		  break;	
				case "3": window.location.href = '/scripts/website_english.asp?menuDeactivate=1&articleTypeID=285&pageTypeID=25&article_short_headline=ENT Solutions';
				 		  break;	
				case "4": window.location.href = '/scripts/website_english.asp?menuDeactivate=1&articleTypeID=268&pageTypeID=17&article_short_headline=The next CAS generation: Essential and Unlimited';
						   break;		
				case "16": window.location.href = '/scripts/website_english.asp?menuDeactivate=1&articleTypeID=263&pageTypeID=2&article_short_headline=Spine and Trauma Solutions';
				 		  break;	
				case "17": window.location.href = '/scripts/website_english.asp?menuDeactivate=1&articleTypeID=261&pageTypeID=2&article_short_headline=Integrated OR Solutions';
						   break;		
				case "18": window.location.href = '/scripts/website_english.asp?menuDeactivate=1&articleTypeID=288&pageTypeID=28&article_short_headline=Healthcare IT Solutions';
						   break;	
				
				
				// German
				case "5": window.location.href = '/scripts/website_german.asp?menuDeactivate=1&articleTypeID=194&pageTypeID=2&article_short_headline=Neurochirugie';	
						  break;	
				case "6": window.location.href = '/scripts/website_german.asp?menuDeactivate=1&articleTypeID=214&pageTypeID=2&article_short_headline=Radiotherapie';
				 		  break;	
				case "7": window.location.href = '/scripts/website_german.asp?menuDeactivate=1&articleTypeID=199&pageTypeID=2&article_short_headline=HNO';
				 		  break;	
				case "8": window.location.href = '/scripts/website_german.asp?menuDeactivate=1&articleTypeID=251&pageTypeID=2&article_short_headline=Orthopädie';
						   break;
				
				
				//Japanese
				//Neuro
				case "12": window.location.href = '/scripts/website_japanese.asp?menuDeactivate=1&articleTypeID=254&pageTypeID=2&article_short_headline=__33075;__31070;__32076;__22806;__31185;__29992;__35069;__21697;';	
						  break;	
				//Radio
				case "13": window.location.href = '/scripts/website_japanese.asp?menuDeactivate=1&articleTypeID=257&pageTypeID=2&article_short_headline=__25918;__23556;__32218;__27835;__30274;__35069;__21697;';
				 		  break;	
				//ENT
				case "14": window.location.href = '/scripts/website_japanese.asp?menuDeactivate=1&articleTypeID=256&pageTypeID=2&article_short_headline=__32819;__40763;__31185;__29992;__35069;__21697;';
				 		  break;	
				//Ortho
				case "15": window.location.href = '/scripts/website_japanese.asp?menuDeactivate=1&articleTypeID=255&pageTypeID=2&article_short_headline=__25972;__24418;__22806;__31185;__29992;__35069;__21697;';
						   break;	   			  
				
								
				// Language listbox
				//English 
				case "9": window.location.href = '/scripts/website_english.asp?menuDeactivate=1';
				 		  break;	
				//German 			
				case "10": window.location.href = '/scripts/website_german.asp?menuDeactivate=1';
						   break;		
				//Japanese 
				case "11": window.location.href = '/scripts/website_japanese.asp?menuDeactivate=1';
						   break;							   
				//Chinese 
				//case "19": window.parent.location = 'http://www.google.com';
				//break;		
				
				 				
				}

   			document.forms[0].reset();
   			document.forms[0].elements[0].blur();
			
			
 		}
	}
	
	
function menuJump(targ,selObj,restore)
	{ //Patients Source
  		eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  		if (restore) selObj.selectedIndex=0;
	}


function clearSearchBox()
{
	if (document.forms['searchSite'].elements['searchText'])
			{
			
						
			if (document.forms['searchSite'].elements['searchText'].value == "search")
				{
			  		
					document.forms['searchSite'].elements['searchText'].value = "";
					document.forms['searchSite'].elements['searchText'].focus();					
					
					return false;
				}	
			}

}

