function popup(url, width, height) {
     var popup_window;
     var popup_window = window.open(url, "Popup", "scrollbars=auto," + "width=" + width + ",height=" + height);
}

function popup2(url, width, height) {
     var popup_window;
     var popup_window = window.open(url, "Popup", "scrollbars=yes," + "width=" + width + ",height=" + height);
}
  
function nothing() {
}

if (document.images) {

  image1on = new Image(116,28);
  image1on.src = "images/addtocart_1.gif";
  image1off = new Image(116,28);
  image1off.src = "images/addtocart_0.gif";

  image2on = new Image(125,46);
  image2on.src = "images/buyonlinenow_1.gif";
  image2off = new Image(125,46);
  image2off.src = "images/buyonlinenow_0.gif";

  image3on = new Image(125,46);
  image3on.src = "images/preorder_1.gif";
  image3off = new Image(125,46);
  image3off.src = "images/preorder_0.gif";

  image4on = new Image(125,46);
  image4on.src = "images/listen_1.gif";
  image4off = new Image(125,46);
  image4off.src = "images/listen_0.gif";

  image22on = new Image(125,46);
  image22on.src = "images/music/buymusiconlinenow_1.gif";
  image22off = new Image(125,46);
  image22off.src = "images/music/buymusiconlinenow_0.gif";

  image22aon = new Image(125,46);
  image22aon.src = "images/music/buymusiconlinenow_1.gif";
  image22aoff = new Image(125,46);
  image22aoff.src = "images/music/buymusiconlinenow_0.gif";

  image23on = new Image(125,46);
  image23on.src = "images/music/preorder_1.gif";
  image23off = new Image(125,46);
  image23off.src = "images/music/preorder_0.gif";

}

function changeImages() {
  if (document.images) {
    for (var i=0; i<changeImages.arguments.length; i+=2) {
      document[changeImages.arguments[i]].src = eval(changeImages.arguments[i+1] + ".src");
	}
  }
}

function ONMOUSEOVER(object) {
        if (document.images) {
        document [object].src=eval(object + "_1").src;
        }
}
                
function ONMOUSEOUT(object) {
        if (document.images) {
        document [object].src=eval(object + "_0").src;
        }
}

flashfix = function() {
theObjects = document.getElementsByTagName("object");
for (var i = 0; i < theObjects.length; i++) {
theObjects[i].outerHTML = theObjects[i].outerHTML;
}
if (window.attachEvent)
window.attachEvent("onload", flashfix)
else
window.onload=flashfix;
}

/***********************************************
* Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
function bookmarksite(title, url){
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}

function Windowclose()
{window.close()
self.close()
close()
}

function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=300,height=150,left = 570,top = 300');");
}

/*
Select and Copy form element script- By Dynamicdrive.com
For full source, Terms of service, and 100s DTHML scripts
Visit http://www.dynamicdrive.com
*/

//specify whether contents should be auto copied to clipboard (memory)
//Applies only to IE 4+
//0=no, 1=yes
var copytoclip=1

function HighlightAll(theField) {
var tempval=eval("document."+theField)
tempval.focus()
tempval.select()
if (document.all&&copytoclip==1){
therange=tempval.createTextRange()
therange.execCommand("Copy")
window.status="Contents highlighted and copied to clipboard!"
setTimeout("window.status=''",1800)
}
}