var currxPos = 1var newxPos = 1var xDistance = 1var curryPos = 1var newyPos = 1var yDistance = 1function scrollH(newxPos){                if(newxPos > currxPos){                        xDistance = newxPos - currxPos                        while (xDistance > 0){                        xDistance = Math.round(xDistance - 10)                        currxPos=(newxPos-xDistance)                      frames['mainframe'].scroll(currxPos, curryPos);                }                currxPos = (newxPos-xDistance)        }        else{                        xDistance = currxPos - newxPos                        while (xDistance > 0){                        xDistance = Math.round(xDistance - 10)                        currxPos=(newxPos+xDistance)                        frames['mainframe'].scroll(currxPos, curryPos);                }                currxPos = (newxPos+xDistance)        }}function scrollV(newyPos){                if(newyPos > curryPos){                        yDistance = newyPos - curryPos                        while (yDistance > 0){                        yDistance = Math.round(yDistance - 10)                        curryPos=(newyPos-yDistance)                      frames['mainframe'].scroll(currxPos,curryPos);                }                curryPos = (newyPos-yDistance)        }        else{                        yDistance = curryPos - newyPos                        while (yDistance > 0){                        yDistance = Math.round(yDistance - 10)                        curryPos=(newyPos+yDistance)                        frames['mainframe'].scroll(currxPos,curryPos);                }                curryPos = (newyPos+yDistance)        }}function reset(){if (navigator.appVersion.indexOf('Mac') == -1){frames['mainframe'].document.tba1.GotoFrame(9);  } }function freeze(){if (navigator.appVersion.indexOf('Mac') == -1){frames['mainframe'].document.tba1.GotoFrame(10);  } }function settv(){window.open('http://www.bandagency.com/TBAtv', 'TBAtv','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=645,height=545,left=30,top=20');}function loadArtists(){frames['mainframe'].frames['framea'].location.href = "iveygreen/artists.php";}function loadTheScene(){frames['mainframe'].frames['framea'].location.href = "iveygreen/template.php?type=thescene";}function popPlayer(){window.open('http://www.bandagency.com/TBAplayer', 'TBAplayer','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=435,height=335,left=100,top=50');}function pop(url){window.open(url, 'TBA','toolbar=1,location=1,directories=1,status=0,menubar=1,scrollbars=1,resizable=1,copyhistory=1,width=630,height=610,left=50,top=20');}function popLive(){window.open('../TBAlive/index2.html', 'TBAlive','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=645,height=547,left=100,top=50');}function cBreaker(){ if (document.all || document.getElementById)        var xMax = screen.width, yMax = screen.height;    else        if (document.layers)            var xMax = window.outerWidth, yMax = window.outerHeight;        else            var xMax = 1024, yMax=768;    var xOffset = (xMax - 800)/2, yOffset = (yMax - 580)/2;  var correctwidth=1024;var correctheight=768;if (screen.width<correctwidth||screen.height<correctheight){window.open('http://www.bandagency.com/UKnetwork/home2.html','UKnetwork','type=fullWindow,fullscreen,scrollbars=0,resizable=1');}else{window.open('http://www.bandagency.com/UKnetwork/home2.html','UKnetwork','width=800,height=580,resizable=0,toolbar=0,status=0,scrollbars=0,screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+'');}}
