//********** Generic Div Switches **********//

	

function SwitchDiv(Switch,SwitchID)
	{
		if (Switch=='On')
		{
			document.getElementById(''+SwitchID).style.display = '';
			 
			
			
		
		}
		else
		{
			document.getElementById(''+SwitchID).style.display = 'none';
		}
		
	}
	
	
//********** Drop-Down Jumpt-To Menu **********//


function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

//********** Set Selected **********//

	

function SwitchSelect(Switch,SwitchID)
	{
		if (Switch=='On')
		{
			document.getElementById(''+SwitchID).className = 'Selected';
			 
			
			
		
		}
		else
		{
			document.getElementById(''+SwitchID).className = '';
		}
		
	}



function LoadImage(MyCat,MyImage) {
	Effect.ScrollTo('WrapperNav');
	Element.hide('ScreenRight');
	Element.show('ScreenLoading');
	new Ajax.Updater('ScreenRight', 'dx.screen.php', {method: 'post', postBody:''+'image=../portfolio_pictures/' + MyCat + '/' + MyImage + ''});
	Element.show('ScreenRight');
	setTimeout("Effect.toggle('ScreenLoading')", 2000);	
}

function LoadService(MyCat,MyImage) {
	Effect.ScrollTo('WrapperNav');
	Element.hide('ScreenRight');
	Element.show('ScreenLoading'); 
	new Ajax.Updater('ScreenRight', 'dx.screen.php', {method: 'post', postBody:''+'image=../services_pictures/' + MyCat + '/' + MyImage + ''});
	Element.show('ScreenRight');
	setTimeout("Effect.toggle('ScreenLoading')", 2000);	 
}