title: Resizing canvas, where's the problem?
body: <p>I'll post a link since theres to much to post here:</p>
  
  <p><a href="http://hem.bredband.net/noor/canvas.htm" rel="nofollow noreferrer">http://hem.bredband.net/noor/canvas.htm</a></p>
  
  <p>My goal is to make the picture fit inside the window with the width of the image being the same as the window, even after resize. If the pictures height becomes to big for the window then the picture should resize itself according to the height and not the width.</p>
  
  <p>Somewhere along my code there is something wrong.. forgive me if this is stupid, i am still learning..</p>
  
  <p>Thanks!</p>