Write a simple width/height jQuery script

Avg Bid (USD)
$9 / hr
Project Budget (USD)
$2 - $15 / hr

Project Description:
I need a very simple jQuery script that does the following:

1) Get width and height of window using something like: $ (document). ready(function () { showWidth(".pre_banner", $(window).width()); });

2) Looks for these break points. and store the corresponding width and height as variables.
If window is larger than 1400px wide, width = 600px, height = 400px;
If window is 1000px to 1399px wide, width = 500px, height = 300px;
etc. I will define all the sizes, you just need to make sure I can add more easily

3) Display this image where the 1st variable (width) and 2nd variable (height) are the variables from #2

As the window size changes so should the width/height variables of the image, reloading the src with the proper ending when needed.

I know javascript may be slightly faster but please use jQuery.

Hours of work: Unspecified Project Duration: < 1 week Skills required:
AJAX, Javascript, jQuery / Prototype
About the employer:
Public Clarification Board
Bids are hidden by the project creator. Log in as the employer to view bids or to bid on this project.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.

$9 / hr
Hours: 3 hr/ week
$12 / hr
Hours: 5 hr/ week
$8 / hr
Hours: 3 hr/ week
$9 / hr
Hours: 3 hr/ week
$9 / hr
Hours: 10 hr/ week