Hi I have been trying to find out this two simple program for class and have googled it and reread my book over and over again but I'm totally stuck. Ok here's the issues...

First, I need to use javascript to change an image when mousing over a link. I can't seem to get the function "file" to recognize the work 'asian' as the file name. When I use google chrome to look at what file it's trying to find it is looking in ...../images/+file+.jpg instead of for the ..../images/asian.jpg file. I think I have the code part write because the image changes but just to the symbol that it hasn't found the image it was looking for, so I'm just not sure what I am doing wrong with the + file + part. Thanks

HTML Code:
function switchPix(file,desc){
  document.getElementById('pix').innerHTML = '<img src=\"images/ + file + .jpg\" width = \"480\" height = \"270\" alt=\"desc\" />';
}
HTML Code:
<li><a href="http://www.asianart.org/" onmouseover="switchPix('asian','Asian Art Museum')">Asian Art Museum</a></li>


Then the second part is I have to open up a section like the accordion. I can get the open part to work on each part but the close never works. The error that is returned in chrome inspector tool is "Uncaught TypeError: Cannot read property 'style' of null. This stuff is all pretty new to me and the book is terrible so not sure why the open part is working and the closing is not. Thanks for your help!

HTML Code:
var openAccordion = '';
function runAccordion(index) {
  var nID ='Accordion' + index + 'Content';
  if (openAccordion == nID){
    nID = '';
  }
  var opening = (nID == '') ? null : document.getElementById(nID);
  var closing = (openAccordion == '') ? null : document.getElementById(openAccordion);
  
  if (opening != null){
    opening.style.height = '300px';
    opening.style.display = 'block';
  }
  if (closing == null){
    closing.style.height = '0px';
    closing.style.display = 'none';
  }
  openAccordion = nID;
}
HTML Code:
<h3 class="AccordionTitle"><a href="#" onclick='runAccordion(1)' onselectstart='return false'>Purple</a></h3>
        <div class="AccordionContent" id="Accordion1Content">