// opens a new window and forces IE not to resize the picture
function popup(source,width,height,scrollers)
{
                var is_scroller = 0;
                var winobj = '';
                
                if(navigator.appName.indexOf("Microsoft") > -1) {}
                else { if(source.match(/\.wmv/)) { height += 46; } }

                if(scrollers == 1) is_scroller = 1;

                var dev_width = screen.availWidth-10;
                var dev_height = screen.availHeight-30;

                if(dev_width < width)
                {
                                var width = dev_width;
                                is_scroller = 1;
                }

                if(dev_height < height)
                {
                                var height = dev_height;
                                is_scroller = 1;
                }

                var X = (dev_width-width)/2;
                var Y = (dev_height-height)/2;
                var params = "width="+width+",innerWidth="+width;

                params+= ",height="+height+",innerHeight="+height;
                params+= ",left="+X+",screenX="+X;
                params+= ",top="+Y+",screenY="+Y;
                params+= ",resizable=yes";

                if(is_scroller == 1) params += ",scrollbars";

                winobj = window.open(source,"_blank",params);

                //if(source.match("info.quest.com")) { winobj = window.open(source,"_blank",params); }
                //else { winobj = window.open("/images/popup.asp?path="+escape(source)+"&width="+width+"&height="+height,"_blank",params); }

                //winobj.moveTo(X, Y);
}

                function init()
                {
                var loc = location.href;
                if(loc.indexOf("id=1") >= 0) { document.getElementById('ln-necklaces').className = 'purpleleftnav'; }
                else if(loc.indexOf("id=2") >= 0) { document.getElementById('ln-bracelets').className = 'purpleleftnav'; }
                else if(loc.indexOf("id=3") >= 0) { document.getElementById('ln-earrings').className = 'purpleleftnav'; }
                else if(loc.indexOf("id=4") >= 0) { document.getElementById('ln-bridal').className = 'purpleleftnav'; }
                }
                window.onload = init;
