﻿/* Queue the Site Load Events
===================================================================================== */
addLoadEvent(initClearInputs)
addLoadEvent(initFlashBorders);

var rsAt = 980;

$(function(){
    $(window).resize(rwin);
    rwin();
});

function rwin(){
    var wd = $(window).width();
    var styleName = "1024" ;
    if (wd <= rsAt){			
			styleName = "800" ;
		}
		switchStylestyle(styleName);
}
function switchStylestyle(styleName) {
  $('link[@rel=alternate stylesheet][@title]').each(function(i) {
		this.disabled = true;
    if (this.getAttribute('title') == styleName) this.disabled = false;
  });
}
