var shopwindow = '';
function openshop(url) {
   if (!shopwindow.closed && shopwindow.location) {
        shopwindow.location.href = url;
		}
		else {
		shopwindow=window.open(url,'name','height=600,width=900,toolbar=yes,menubar=yes,scrollbars=yes,resizable=yes,location=yes');
		if (!shopwindow.opener) shopwindow.opener = self;
        }
		if (window.focus) {shopwindow.focus()}
		return false;
}

var smallwin = '';
function openswin(url) {
   if (!smallwin.closed && smallwin.location) {
        smallwin.location.href = url;
		}
		else {
		smallwin=window.open(url,'name','height=600,width=700,toolbar=no,menubar=yes,scrollbars=yes,resizable=no,location=no');
		if (!smallwin.opener) smallwin.opener = self;
        }
		if (window.focus) {smallwin.focus()}
		return false;
}

function bookmark(url,title)
{
    if (window.sidebar)
    {
        window.sidebar.addPanel(title, url,"");
        alert("Firefox users: After you've saved this link, it will open in your Sidebar\nrather than the main page!\nTo prevent this please right click the link in your bookmarks\n choose 'Properties' and then uncheck the box marked:\n'Load This Bookmark in the Sidebar'\n\nSorry about this, but it is unavoidable with Firefox");

    } else if( window.opera && window.print )
    {
    alert("Opera users: By Default this link will open in your Sidebar\nrather than the main page!\nTo prevent this please uncheck the box marked\n'Show in Panel' that appears on the Add Bookmark window\n\nSorry about this, but it is currently unavoidable with Opera");
    var mbm = document.createElement('a');
    mbm.setAttribute('rel','sidebar');
    mbm.setAttribute('href',url);
    mbm.setAttribute('title',title);
    mbm.click();
    } else if( document.all )
    {
    window.external.AddFavorite( url, title);
    }
}
