Div resize with forcing to keep aspect ratio
<p>I'm trying to take div and resize it according container which is resized on <code>window.resize</code> but i need it to mach some specific aspect ratio.</p>

<pre><code>var hconainer,wcontainer;
hconainer=$('#container').height();
wconainer=$('#container').width();
now i need that h:w=some specific aspect ratio.
</code></pre>
