// JavaScript Document

function getcss(cssfile){

loadcss = document.createElement('link')

loadcss.setAttribute("rel", "stylesheet")

loadcss.setAttribute("type", "text/css")

loadcss.setAttribute("href", cssfile)

document.getElementsByTagName("head")[0].appendChild(loadcss)

}

if(screen.width <= '800')

{

getcss('css/800x600.css')

}


else if(screen.width > '800' &amp; screen.width < '1280')

{

getcss('css/templatemo_style.css')


}


else if(screen.width > '1024' &amp; screen.width < '1600')


{

getcss('css/1600x.css')


}



else

{

getcss('css/1600x.css')
//This else statement has "if" condition. If none of the following criteria are met, load 1280x1024.css

}

