fires when window resizing was finished
w1.attachEvent("onResizeFinish", function(win){ // code here });