$(function() {
    adjustStyle($(this).width());


$(window).resize(function() {
 adjustStyle($(this).width());
    });
});

function adjustStyle2(width) {
    width = parseInt(width);


} 


var copyaspect = 0;


function adjustStyle() {
 




var w = screen.width;
var h = screen.height;
var aspect = 100*(w/h);
aspect = parseInt(aspect);

var width = parseInt($(this).width());




//alert("aspect = " + aspect + " width = " + width);


copyaspect = parseInt(aspect);



if ((aspect >= 177) && (width < 0.6*screen.width)) {


$("#size-stylesheet").attr("href", "Styles/133.css");

    }

else if ((aspect >= 177) && (width <= 0.8*screen.width)) {

$("#size-stylesheet").attr("href", "Styles/166.css");
    
} 

else if ((aspect >= 177) && (width > 0.8*screen.width)) { 

$("#size-stylesheet").attr("href", "Styles/177.css"); 
   
 }



else if ((aspect >= 160) && (width <= 0.7*screen.width)) {

$("#size-stylesheet").attr("href", "Styles/133.css");
    
} 

else if ((aspect >= 160) && (width > 0.7 *screen.width)) { 

$("#size-stylesheet").attr("href", "Styles/166.css"); 
   
 }


else  { 
$("#size-stylesheet").attr("href", "Styles/133.css"); 
   
 }






}






