var fileNames = new Array("discount-art-prints-canvas-prints", "discount-pc-software-computer-games", "discount-movie-documentaries-blockbusters", "brand_name_watches", "fragrances_bath_body", "hand_painted_glassware", "cooking_tableware", "outdoor_lifestyle_gear", "discount-autograph-sports-collectibles", "signed-sports-memorabilia-online-store");
var catIDs = new Array("BE:Posters", "CA0009", "CA0629", "CA0164", "CA0316", "CA0343", "CA0239", "CA0456", "CA0109", "CB0109");

function adj_screen() {
    var uAgent = navigator.userAgent;
    if (uAgent.indexOf('seoprofiler.com/bot') == -1 && uAgent.indexOf('google.com/bot') == -1 && uAgent.indexOf('ysearch/slurp') == -1) {
        var url = location.href;    var swd = screen.width;   
        if (url.indexOf('BSW') == -1) {
            if (url.indexOf('html') == -1) { 
                if (url.indexOf('.pl') == -1) { 
                    var new_url = "http://www.evalushop.com/cgi-bin/shop/page.pl?pg=index&BSW="+swd; 
                    window.location.replace(new_url); 
                }
                else {
                    var len = url.indexOf('.pl')+3;
                    if (url.length != len) { var new_url = url+"&BSW="+swd;   window.location.replace(new_url); }
                }       
            }
            else {
                if (swd != 1280) {
                    var beg = url.lastIndexOf('/')+1;   var htm = url.substr(beg);
                    var end = htm.indexOf('.');         var page = htm.substr(0, end);  var match=0;
                    for (var i=0; i < catIDs.length; i++) { var input= fileNames[i];   if (input == page) { match=1;  var id=catIDs[i]; } }
                    if (match == 1) { var new_url = "http://www.evalushop.com/cgi-bin/shop/showcat.pl?search="+id+"&BSW="+swd; }
                    else { var new_url = "http://www.evalushop.com/cgi-bin/shop/page.pl?pg="+page+"&BSW="+swd; }
                    window.location.replace(new_url);
                }
            }
        }
        else {
            var beg = url.indexOf('BSW')+4;   var bsw = url.substr(beg);    
            if (swd != bsw) { var new_url = url.substr(0, beg)+swd;   window.location.replace(new_url);  }
        }
    }
}   
   
function showlabel(type) { document.images[type].src="images/"+type+"2.gif"; }
function hidelabel(type) { document.images[type].src="images/"+type+"1.gif"; } 
   