// re-located Macromedia javascript to external js file

function MM_findObj(n, d)
{ //v4.01
	var p,i,x; 
	if(!d) d=document; 
	if((p=n.indexOf("?"))>0&&parent.frames.length) 
	{
  		d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);
	}
  	if(!(x=d[n])&&d.all) x=d.all[n]; 
		
	for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
		
  	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  	
	if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() 
{ //v6.0
  var i,p,d,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  	if ((obj=MM_findObj(args[i]))!=null) 
	{ 
		d=args[i+2];
    	if (obj.style) 
		{ 
			obj=obj.style;
			d=(d=='show')?'block':(d=='hide')?'none':d;
		}
		obj.display=d;
	}
}

function hideNshow (showMe)
{
	var sub_content_Array = new Array("sub_content_1","sub_content_2","sub_content_3","sub_content_4","sub_content_5","sub_content_6","sub_content_7","sub_content_8","sub_content_9","sub_content_10");
	
	//loop through rollOutArray and hide them
	for(i=0; i < sub_content_Array.length; ++i)
	{
		MM_showHideLayers(sub_content_Array[i],'','hide');
	}
	
	//if any variable except null is sent, show that variable; if showMe == null, don't show anything
	if(showMe != 'null')
	{
		MM_showHideLayers(showMe,'','show');
	}
	
	showMe = 'null';
}