@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

#grabanddrag-button {
  -moz-image-region: rect(24px 24px 48px 0px);
  list-style-image: url(chrome://grabanddrag/skin/grabanddragtb.png);
}
#grabanddrag-button[gadOn="false"] {
  -moz-image-region: rect(0px 48px 24px 24px);
}
#grabanddrag-button[gadOn="false"]:hover {
  -moz-image-region: rect(24px 48px 48px 24px);
}
#grabanddrag-button[gadOn="false"]:hover:active {
  -moz-image-region: rect(48px 48px 72px 24px);
}
#grabanddrag-button[gadOn="true"] {
  -moz-image-region: rect(0px 72px 24px 48px);
}
#grabanddrag-button[gadOn="true"]:hover {
  -moz-image-region: rect(24px 72px 48px 48px);
}
#grabanddrag-button[gadOn="true"]:hover:active {
  -moz-image-region: rect(48px 72px 72px 48px);
}
#grabanddrag-button[gadOn="QT"] {
  -moz-image-region: rect(0px 96px 24px 72px);
}
#grabanddrag-button[gadOn="QT"]:hover {
  -moz-image-region: rect(24px 96px 48px 72px);
}
#grabanddrag-button[gadOn="QT"]:hover:active {
  -moz-image-region: rect(48px 96px 72px 72px);
}
toolbar[iconsize="small"] > #grabanddrag-button {
  -moz-image-region: rect(16px 16px 16px 0px);
  list-style-image: url(chrome://grabanddrag/skin/grabanddragtbsmall.png);
}
toolbar[iconsize="small"] > #grabanddrag-button[gadOn="false"]  {
  -moz-image-region: rect(0px 32px 16px 16px);
}
toolbar[iconsize="small"] > #grabanddrag-button[gadOn="false"]:hover  {
  -moz-image-region: rect(16px 32px 32px 16px);
}
toolbar[iconsize="small"] > #grabanddrag-button[gadOn="false"]:hover:active  {
  -moz-image-region: rect(32px 32px 48px 16px);
}
toolbar[iconsize="small"] > #grabanddrag-button[gadOn="true"] {
  -moz-image-region: rect(0px 48px 16px 32px);
}
toolbar[iconsize="small"] > #grabanddrag-button[gadOn="true"]:hover {
  -moz-image-region: rect(16px 48px 32px 32px);
}
toolbar[iconsize="small"] > #grabanddrag-button[gadOn="true"]:hover:active {
  -moz-image-region: rect(32px 48px 48px 32px);
}
toolbar[iconsize="small"] > #grabanddrag-button[gadOn="QT"] {
  -moz-image-region: rect(0px 64px 16px 48px);
}
toolbar[iconsize="small"] > #grabanddrag-button[gadOn="QT"]:hover {
  -moz-image-region: rect(16px 64px 32px 48px);
}
toolbar[iconsize="small"] > #grabanddrag-button[gadOn="QT"]:hover:active {
  -moz-image-region: rect(32px 64px 48px 48px);
}

