//select a background depending on the screen-resolution
if (screen.width<=640) {document.write("<body background='http://www.yhplakias.com/graphic/back640.jpg'>")}
if ((screen.width>640) && (screen.width <=800)) {document.write("<body background='http://www.yhplakias.com/graphic/back800.jpg'>");}
if ((screen.width>800) && (screen.width <=1024)) {document.write("<body background='http://www.yhplakias.com/graphic/back1024.jpg'>")}
if ((screen.width>1024) && (screen.width <=1152)) {document.write("<body background='http://www.yhplakias.com/graphic/back1152.jpg'>")}
if ((screen.width>1152) && (screen.width <=1200)) {document.write("<body background='http://www.yhplakias.com/graphic/back1200.jpg'>")}
if ((screen.width>1200) && (screen.width <=1280)) {document.write("<body background='http://www.yhplakias.com/graphic/back1280.jpg'>")}
if ((screen.width>1280) && (screen.width <=1600)){document.write("<body background='http://www.yhplakias.com/graphic/back1600.jpg'>")}
if ((screen.width>1600) && (screen.width <=1920)) {document.write("<body background='http://www.yhplakias.com/graphic/back1920.jpg'>")}
if ((screen.width>1920) && (screen.width <=2048)) {document.write("<body background='http://www.yhplakias.com/graphic/back2048.jpg'>")}
if (screen.width>2048) {document.write("<body background='http://www.yhplakias.com/graphic/back2048.jpg'>")}


//Bildschrimbreite als Cookie setzen
var scrw = screen.width;
jetzt=new Date();
Auszeit=new Date(jetzt.getTime()+3600000);
document.cookie="screenwidth"+"="+scrw+";path=/;expires="+Auszeit.toGMTString()+";";
