/* --------------- STUDIO CONNECTIONS EXTERNAL JAVASCRIPT FILE -------------- */
/*                                                                            */
/*    Description: JavaScript common to all pages                             */
/*         Author: Colin Abrahams                                             */
/*      Copyright: 2007 Colin Abrahams, Studio Connections                    */
/*       Location: Woy Woy Bay, NSW, Australia                                */
/*        Version: SC-5.6                                                     */
/*   Last Updated: 2007-05-13                                                 */


function BTOut(Button) {
if (Button.className && Button.className == "Sel") {Button.className = "";}
if (top.frames.length > 0 && top.BTOut) {top.BTOut(BTFind(Button));}
}
function BTSel(Button) {
if (!Button.className) {Button.className = "Sel";}
if (top.frames.length > 0 && top.BTSel) {top.BTSel(BTFind(Button));}
}
function BTDep(Button) {
for (var i=0; i < document.links.length; i++) {
if (document.links[i].className == "Act") {document.links[i].className = "";}}
Button.className = "Dep";
if (top.frames.length > 0 && top.BTDep) {top.BTDep(BTFind(Button));}
}
function BTClick(Button) {
Button.className = "Sel";
BTFail = top.frames.length > 0 && top.BTClick ? top.BTClick(BTFind(Button)) : true;
if (BTFail) {BTPageAd = Button.href; setTimeout("self.location = BTPageAd", 250);}
return false;
}
function BTFind(Button) {
if (document.links) {for (var f = 0; f < top.frames.length; f++) {
var BTList = top.frames[f].document.links;
for (var i = 0; i < BTList.length; i++) {
if (BTList[i].target == "Main" && escape(BTList[i].href).indexOf(escape(Button.href)) != -1) {
return BTList[i];}}}}return null;
}
function JukePick(SongLink) {
if (top.Upper && top.Upper.Loaded && top.Upper.JukeControl) {
top.Upper.JukeAddr = SongLink.href; top.Upper.JukeAuto = false;
top.Upper.JukeMode = "Play"; top.Upper.JukeControl(); return false;}
else {return true;}}
