
// Distributed by http://www.hypergurl.com

// Scrollers width here (in pixels)
var scrollerwidth="430px"
var initposx = "5px";
var initposy = "0";
// Scrollers height here
var scrollerheight="225px"
var sinusit = 0;
// Scrollers speed here (larger is faster 1-10)
var scrollerspeed=10;

var frame = 0, frame2 = 0;
var amplitude1 = 2, amplitude2 = 0.025;
var offset = 0.02;
var offset2 = 0.3;
var twopi = Math.PI * 2;
var angle;
var angle2;
// Scrollers content goes here! Keep all of the message on the same line!


var scrollercontent='<div align="left" style="width:425">   <p align="justify"><left><font size="2" face="Arial, Helvetica, sans-serif"><strong>BALEARIC     SYMPHONY ORCHESTRA &#8220;City of Palma&#8221;</strong></font></left></p>  <p align="justify"><font size="2" face="Arial, Helvetica, sans-serif">The &#8216;Majorcan     Symphony Orchestra&#8217; was created by, amongst others, Jos&eacute; Balaguer     and Antonio Parietti in 1946. Its first principal conductor was South Korean     maestro Eaktay-Ahn, until 1959, when he was followed by Anthony Morss and     then Gerardo P&eacute;rez Busquier. </font></p>  <p align="justify"><font size="2" face="Arial, Helvetica, sans-serif">In late     1972, after a short break in its activities, the Orchestra passed under the     auspices of the Palma Town Hall, changing its title to that of City of Palma     Symphony Orchestra under the leadership of conductor Julio Ribelles, until     in 1988 a corporation was formed by the Balearic Government, Palma Town Hall     and the Majorcan Council, under the name of the &#8216;Balearic Public Music     Foundation&#8217;, and the Orchestra received its current title of Balearic     Symphony Orchestra &#8220;City of Palma&#8221;. The first principal conductor     of this new era was Luis Remart&iacute;nez (1989-1994), who was succeeded     by Philippe Bender (1994-1997), Salvador Brotons (1997-2000), Geoffrey Simon     (2001-2002), Edmon Colomer (2002-2005) and once again Philippe Bender, the     current chief conductor. </font></p>  <p align="justify"><font size="2" face="Arial, Helvetica, sans-serif">As well     as its concert season at the Auditorium in Palma, the Orchestra takes part     in the Opera Seasons of both the Majorcan Council and the &#8216;Friends of     the Opera&#8217; Association in Mah&oacute;n, the Summer Music Festival at     Bellver Castle, the International Music Festival in Pollensa, chamber music     seasons at the Museum of Majorca and the Casal Solleric and seasons of contemporary     music at the &#8216;Es Baluard&#8217; Museum and the Foundation &#8216;Pilar     y Joan Mir&oacute;&#8217;, not forgetting activities for schoolchildren and     family concerts.</font></p>  <p align="justify"><font size="2" face="Arial, Helvetica, sans-serif">The Orchestra     has performed around the length and breadth of the Balearic Islands and toured     extensively around the Spanish mainland and Southern France, and regularly     premieres, performs and records works by Balearic composers. <br>    </font> </p></div>';

var pauseit=0
var startit = 0;

// Change nothing below!

scrollerspeed=(document.all)? scrollerspeed : Math.max(1, scrollerspeed-1) //slow speed down by 1 for NS
var copyspeed=scrollerspeed
var iedom=document.all||document.getElementById
var actualheight=''
var cross_scroller, ns_scroller
var pausespeed=(pauseit==1)? copyspeed: 0
var direction = -1;

function uppressed(){
	startit = 1;
	direction = -1;
}

function upout(){
	startit = 0;
}

function downpressed(){
	startit = 1;
	direction = 1;
}

function downout(){
	startit = 0;
}

function populate(){
if (iedom){
cross_scroller=document.getElementById? document.getElementById("iescroller") : document.all.iescroller
cross_scroller.style.top= initposy;
cross_scroller.style.left= initposx;
cross_scroller.innerHTML=scrollercontent
actualheight=cross_scroller.offsetHeight
}
else if (document.layers){
ns_scroller=document.ns_scroller.document.ns_scroller2
ns_scroller.top=parseInt(scrollerheight)+8
ns_scroller.document.write(scrollercontent)
ns_scroller.document.close()
actualheight=ns_scroller.document.height
}
lefttime=setInterval("scrollscroller()",20)
}
window.onload=populate

function scrollscroller(){

		frame += offset;
		frame2 += offset2;
	if (frame > twopi) frame -= twopi;
	if (frame2 > twopi) frame2 -= twopi;
	
 	angle = frame;
	angle2 = frame2;
		

		
	if (iedom){

		if( (parseInt(cross_scroller.style.top)>(actualheight*(-1))) ){

//		characters[i].style.left = pos;		
//		characters[i].style.top = initialy + amplitude1 * Math.sin(angle) + amplitude2 * Math.sin(angle2);
//		angle += offset; 
//		angle2 += offset2;		
//			pos += charwidth;
		
		cross_scroller.style.top=parseInt(cross_scroller.style.top)+ direction * startit*(copyspeed)+"px";

//		cross_scroller.style.left=parseInt(cross_scroller.style.left);
		cross_scroller.style.left=parseInt(cross_scroller.style.left)+ sinusit*(startit*(1*(amplitude1 * Math.sin(angle)) + 1*(amplitude2 * Math.sin(angle2))))		
//		angle += offset;
//		angle2 += offset2;

		
		}else{
			if (parseInt(cross_scroller.style.top)<(actualheight*(-1)+8)){
				 cross_scroller.style.top=parseInt(scrollerheight)+8+"px"
			}
			if (parseInt(cross_scroller.style.left) > (scrollerwidth + 8) ){
				cross_scroller.style.left = initposx;
			}
		 }
	}else if (document.layers){
		if (ns_scroller.top>(actualheight*(-1)+8))	ns_scroller.top-=copyspeed;
		else ns_scroller.top=parseInt(scrollerheight)+8
	}
}



if (iedom||document.layers){
with (document){
if (iedom){
write('<div style="position:relative;width:'+scrollerwidth+';height:'+ scrollerheight +';overflow:hidden">')
write('<div id="iescroller" style="position:absolute;left:0px;top:0px;width:100%;">')
write('</div></div>')
}
else if (document.layers){
write('<ilayer width='+scrollerwidth+' height='+scrollerheight+' name="ns_scroller">')
write('<layer name="ns_scroller2" width='+scrollerwidth+' height='+scrollerheight+' left=0 top=0 onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=scrollerspeed"></layer>')
write('</ilayer>')
}
}
}
