if((screen.width > 800 && location.href.split("?").length == 1) || (screen.width > 800 && location.href.split("=")[1] == 800)) {
location.replace(location.pathname + "?r=1024" )
}
if((screen.width == 800 && location.href.split("?").length == 1) || (screen.width == 800 && location.href.split("=")[1] == 1024)){
location.replace(location.pathname + "?r=800" )
}

