ÿþ/ / S p e c i f y   s p e e d   o f   s c r o l l .   L a r g e r = f a s t e r   ( i e :   5 )  
 v a r   s c r o l l s p e e d = c a c h e = 1 ; 	 	 	 / / s c r o l l   s p e e d  
 v a r   s c r o l l d i r e c t i o n = " v e r t i c l e " ; 	 	 / / s c r o l l   d i r e c t i o n  
 v a r   i e d o m = d o c u m e n t . a l l | | d o c u m e n t . g e t E l e m e n t B y I d 	 / / c h e c k   f o r   B r o w s e r  
 / / - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
 v a r   c s s _ f i l e _ n a m e   =   " " ; 	 	 	 	 / / C S S   f i l e   p a t h  
 v a r   b b _ b g I m a g e   =   " " ; 	 	 	 	 / / b a c k g r o u n d   i m a g e   o f   B B S  
 v a r   b b _ b g F o o t e r I m g   =   " " ; 	 	 	 / / B G   I m g   f o r   F o o t e r  
 v a r   b b _ b g H e a d I m g   =   " " ; 	 	 	 	 / / B G   I m g   f o r   H e a d e r  
 v a r   b b _ b g C o n t e n t I m g   = " " ; 	 	 	 / / B G   I m g   f o r   C o n t e n t  
  
 v a r   c o l _ s e p   =   " þ " ; 	 	 	 	 	 / / c o l u m n   s e p e r a t o r  
 v a r   r o w _ s e p   =   " ÿ " ; 	 	 	 	 	 / / r o w   s e p e r a t o r  
  
 v a r   b b _ H e a d l i n e   =   " " ; 	 	 	 	 / / H e a d i n g  
 v a r   b b _ H e a d l i n e _ L _ I m g =   " " ; 	 	 	 / / H e a d i n g   L e f t   I m a g e  
 v a r   b b _ H e a d l i n e _ R _ I m g =   " " ; 	 	 	 / / H e a d i n g   R i g h t   I m a g e    
  
 v a r   b b _ f o o t e r _ l i n k = " " ; 	 	 	 	 / / F o o t e r   L i n k   a n d   1 .   T e x t   /   2 .   I m a g e   /   3 .   B u t t o n  
 v a r   b b _ c o n t e n t _ a r r _ s i z e   =   0 ; 	 	 / / C o n t e n t   B a s i c   S i z e  
 v a r   b b _ c o n t e n t _ a r r a y   =   n e w   A r r a y ( ) ; 	 / / I n i t i a l i z e   w i t h   a r r a y   f o r   c o n t e n t  
 v a r   v R e c o r d s   =   n e w   A r r a y ( ) ; 	 	 	 / / I n i t i a l i z e   w i t h   a r r a y   f o r   c o n t e n t  
 v a r   b b _ c o n t e n t   = " " ; 	 	 	 	 	 / / C o n t e n t   S t r i n g  
 v a r   b b _ H e i g h t   =   1 5 0 ; 	 	 	 	 / / B B S   H e i g h t   B a s i c   ( d e f a u l t   f r o m   s c r i p t   i f   n o t   s p e c i f i e d   i s   1 5 0 )  
 / / = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =  
 f u n c t i o n   c o n s t r u c t _ B B ( v N O R e c , v R e c , v c s s _ f i l e _ n a m e , v H e a d i n g , v F o o t e r L i n k , v L I m g , v R I m g , v H e i g h t , v B B S B G , v B B S H B G , v B B S C B G , v B B S F B G ) {  
 / / - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
 	 b b _ c o n t e n t   	 	 	 =   ( v R e c   ! = ' n u l l ' ) ?   v R e c   :   v N O R e c ;  
 	 c s s _ f i l e _ n a m e   	 	 =   ( v c s s _ f i l e _ n a m e   ! =   ' n u l l ' ) ?   v c s s _ f i l e _ n a m e   :   " c s s / e v e . c s s " ;  
 	 b b _ H e a d l i n e   	 	 =   ( v H e a d i n g   ! = ' n u l l ' ) ?   v H e a d i n g   :   " " ;  
 	 b b _ H e a d l i n e _ L _ I m g   	 =   ( v L I m g   ! = ' n u l l ' ) ?   v L I m g   :   " " ;  
 	 b b _ H e a d l i n e _ R _ I m g   	 =   ( v R I m g   ! = ' n u l l ' ) ?   v R I m g   :   " " ;  
 	 b b _ f o o t e r _ l i n k   	 	 =   ( v F o o t e r L i n k   ! =   ' n u l l ' ) ?   v F o o t e r L i n k   :   " " ; 	 	 	 / / f o o t e r   l i n k  
 	 b b _ H e i g h t   	 	 	 =   ( v H e i g h t   ! =   ' n u l l ' ) ?   v H e i g h t   :   b b _ H e i g h t ;  
 	 b b _ b g I m a g e 	 	 	 =   ( v B B S B G   ! =   ' n u l l ' ) ?   v B B S B G   :   " " ;  
 	 b b _ b g H e a d I m g   	 	 =   ( v B B S H B G   ! =   ' n u l l ' ) ?   v B B S H B G   :   " " ;  
 	 b b _ b g C o n t e n t I m g   	 =   ( v B B S C B G   ! =   ' n u l l ' ) ?   v B B S C B G   :   " " ;  
 	 b b _ b g F o o t e r I m g   	 	 =   ( v B B S F B G   ! =   ' n u l l ' ) ?   v B B S F B G   :   " " ;  
 	  
 	 d o c u m e n t . g e t E l e m e n t B y I d ( " B B S " ) . s t y l e . h e i g h t   =   b b _ H e i g h t ;  
 	 i f ( v N O R e c   ! = ' n u l l ' )  
 	 	 s c r o l l s p e e d   =   c a c h e = 0 ; 	  
 	 v R e c o r d s   	 	 	 =   b b _ c o n t e n t . s p l i t ( r o w _ s e p ) ;  
 	 b b _ c o n t e n t _ a r r _ s i z e 	 =   v R e c o r d s . l e n g t h ;  
  
 	 f o r ( v a r   l p = 0 ;   l p   <   v R e c o r d s . l e n g t h ;   l p + + ) {  
 	 	 v a r   d u m m y   =   v R e c o r d s [ l p ] ;  
 	 	 b b _ c o n t e n t _ a r r a y [ l p ]   =   d u m m y . s p l i t ( c o l _ s e p ) ;  
 	 }  
 	 s e t I m g ( ) ;  
 	 d o c u m e n t . g e t E l e m e n t B y I d ( " d a t a c o n t a i n e r " ) . i n n e r H T M L   =   g e t C o n t e n t s ( ) ;  
 	 d o c u m e n t . g e t E l e m e n t B y I d ( " d a t a m a i n " ) . s t y l e . h e i g h t =   b b _ H e i g h t   + " p x " ;  
 	 i f ( d o c u m e n t . a l l ) {  
 	 	 d o c u m e n t . a l l . B B S T a b l e . b a c k g r o u n d =   b b _ b g I m a g e ;  
 	 	 d o c u m e n t . a l l . b b _ H e a d T r . b a c k g r o u n d =   b b _ b g H e a d I m g ;  
 	 	 d o c u m e n t . a l l . b b _ F o o t L i n e . b a c k g r o u n d =   b b _ b g F o o t e r I m g ;  
 	 	 d o c u m e n t . a l l . b b _ C o n t e n t . b a c k g r o u n d =   b b _ b g C o n t e n t I m g ;  
 	 } e l s e {  
 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " B B S T a b l e " ) . s t y l e . b a c k g r o u n d   = " u r l ( " + b b _ b g I m a g e   + " ) ; " ;  
 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " b b _ H e a d T r " ) . s t y l e . b a c k g r o u n d   = " u r l ( " + b b _ b g H e a d I m g   + " ) ; " ;  
 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " b b _ F o o t L i n e " ) . s t y l e . b a c k g r o u n d   = " u r l ( " + b b _ b g F o o t e r I m g   + " ) ; " ;  
 	 	 d o c u m e n t . g e t E l e m e n t B y I d ( " b b _ C o n t e n t " ) . s t y l e . b a c k g r o u n d   = " u r l ( " + b b _ b g C o n t e n t I m g   + " ) ; " ;  
 	 }  
 }  
  
 f u n c t i o n   B R O W ( ) {  
 	 i f   ( i e d o m | | d o c u m e n t . l a y e r s ) {  
 	 	 w i t h   ( d o c u m e n t ) { 	 i f   ( i e d o m ) {  
 	 	 	 w r i t e ( ' < d i v   i d = " d a t a m a i n "     s t y l e = " p o s i t i o n : r e l a t i v e ; w i d t h : 1 0 0 % ; h e i g h t : 1 5 0 p x ; o v e r f l o w : h i d d e n "   o n M o u s e o v e r = " s c r o l l s p e e d = 0 "   o n M o u s e o u t = " s c r o l l s p e e d = c a c h e " > ' )  
 	 	 	 w r i t e ( ' < d i v   i d = " d a t a c o n t a i n e r "   s t y l e = " p o s i t i o n : a b s o l u t e ; l e f t : 0 p x ; t o p : 0 p x ; w i d t h : 1 0 0 % ; " > ' )  
 	 	 	 w r i t e ( ' < / d i v > < / d i v > ' )  
 	 } e l s e   i f   ( d o c u m e n t . l a y e r s ) {  
 	 	 	 w r i t e ( ' < i l a y e r   w i d t h = ' + s c r o l l e r w i d t h + '   h e i g h t = ' + s c r o l l e r h e i g h t + '   n a m e = " d a t a m a i n " > ' )  
 	 	 	 w r i t e ( ' < l a y e r   n a m e = " d a t a c o n t a i n e r "     l e f t = 0   t o p = 0   o n M o u s e o v e r = " s c r o l l s p e e d = 0 "   o n M o u s e o u t = " s c r o l l s p e e d = c a c h e " > < / l a y e r > ' )  
 	 	 	 w r i t e ( ' < / i l a y e r > ' )  
 	 	 	 }  
 	 	 }  
 	 }  
 }  
  
 f u n c t i o n   g e t C o n t e n t s ( ) {  
 	 v a r   d u m m y = " " ;  
 	 i f ( b b _ c o n t e n t _ a r r a y [ 0 ] [ 0 ]   = =   b b _ c o n t e n t )  
 	 {  
 	 	 d u m m y   =   "   < f o n t   c l a s s = b b _ c o n t e n t > " + b b _ c o n t e n t ;  
 	 	 r e t u r n   d u m m y ;  
 	 }  
 	 f o r ( j = 0 ;   j <   b b _ c o n t e n t _ a r r a y . l e n g t h   ;   j + + ) {  
 	 	 f o r ( v a r   i = 0 ;   i <   b b _ c o n t e n t _ a r r a y [ j ] . l e n g t h   ; i + + ) {  
 	 	 	 s w i t c h ( i ) {    
 	 	 	 c a s e   0 :   	 	 / / m a k i n g   c o n t e n t   t y p e   h e r e  
 	 	 	 	 i f ( b b _ c o n t e n t _ a r r a y [ j ] [ 4 ]   ! =   ' n u l l '   & &   b b _ c o n t e n t _ a r r a y [ j ] [ i ]   ! = ' n u l l ' )  
 	 	 	 	 	 d u m m y   + =   " [ < a   h r e f = \ " " + b b _ c o n t e n t _ a r r a y [ j ] [ 4 ] + " \ " > < f o n t   c l a s s = b b _ T y p e > " + b b _ c o n t e n t _ a r r a y [ j ] [ i ] + " < / f o n t > < / a > ]   " ;    
 	 	 	 	 e l s e   i f ( b b _ c o n t e n t _ a r r a y [ j ] [ i ]   ! =   ' n u l l ' )  
 	 	 	 	 	 d u m m y   + =   " [ < f o n t   c l a s s = b b _ T y p e > " + b b _ c o n t e n t _ a r r a y [ j ] [ i ] + " < / f o n t > ]   " ;    
 	 	 	 	 b r e a k ;  
 	 	 	 c a s e   1 :   	 	 / / m a k i n g   c o n t e n t   t i t l e   h e r e  
 	 	 	 	 i f ( b b _ c o n t e n t _ a r r a y [ j ] [ i ]   ! = ' n u l l ' )  
 	 	 	 	 { 	 / / a l e r t ( b b _ c o n t e n t _ a r r a y [ j ] [ i ] + " \ ¥ " + " a b c " ) ;  
 	 	 	 	 	 / / i f ( b b _ c o n t e n t _ a r r a y [ j ] [ i ] . l e n g t h   > = 3 0 )  
 	 	 	 	 	 / / 	 d u m m y   + =   "   < f o n t   c l a s s = b b _ T i t l e > " + b b _ c o n t e n t _ a r r a y [ j ] [ i ] . s u b s t r ( 0 , 3 0 ) + " . . .   < / f o n t >   " ;    
 	 	 	 	 	 / / e l s e  
 	 	 	 	 	 	 d u m m y   + =   "   < f o n t   c l a s s = b b _ T i t l e > " + b b _ c o n t e n t _ a r r a y [ j ] [ i ] + " < / f o n t >   " ;    
 	 	 	 	 } b r e a k ;  
 	 	 	 c a s e   2 :   	 	 / / m a k i n g   c o n t e n t   h e r e  
 	 	 	 	 / / i f ( b b _ c o n t e n t _ a r r a y [ j ] [ i ]   ! = ' n u l l ' )  
 	 	 	 	 	 / / i f ( b b _ c o n t e n t _ a r r a y [ j ] [ i ] . l e n g t h   > = 5 0 )  
 	 	 	 	 	 	 / / d u m m y   + =   "   < f o n t   c l a s s = b b _ c o n t e n t > " + b b _ c o n t e n t _ a r r a y [ j ] [ i ] . s u b s t r ( 0 , 5 0 ) + " . . .   " ;  
 	 	 	 	 	 / / e l s e  
 	 	 	 	 / / 	 	 d u m m y   + =   "   < f o n t   c l a s s = b b _ c o n t e n t > " + b b _ c o n t e n t _ a r r a y [ j ] [ i ] + " . . .   " ;  
 	 	 	 	 i f ( b b _ c o n t e n t _ a r r a y [ j ] [ 5 ]   ! = ' n u l l '   & &   b b _ c o n t e n t _ a r r a y [ j ] [ i ]   ! = ' n u l l ' )  
 	 	 	 	 	 d u m m y   + = " < f o n t   c l a s s = b b _ c o n t e n t >   < a   h r e f = \ " " + b b _ c o n t e n t _ a r r a y [ j ] [ 5 ] + " \ " > " + b b _ c o n t e n t _ a r r a y [ j ] [ i ] + " < / a >   < / f o n t > " ;    
 	 	 	 	 e l s e   i f ( b b _ c o n t e n t _ a r r a y [ j ] [ i ]   ! = ' n u l l ' )  
 	 	 	 	 	 d u m m y   + = " < f o n t   c l a s s = b b _ c o n t e n t >   " + b b _ c o n t e n t _ a r r a y [ j ] [ i ] + "   < / f o n t > " ;    
 	 	 	 	 b r e a k ;  
 	 	 	 c a s e   3 :   	 	 / / m a k i n g   c o n t e n t   f o o t e r   h e r e  
 	 	 	 	 i f ( b b _ c o n t e n t _ a r r a y [ j ] [ i ]   ! = ' n u l l '   & &   b b _ c o n t e n t _ a r r a y [ j ] [ 2 ]   ! = ' n u l l ' )  
 	 	 	 	 	 d u m m y   + =   "   < f o n t   c l a s s = b b _ c o n t e n t _ f o o t e r > " + b b _ c o n t e n t _ a r r a y [ j ] [ i ] + " < / f o n t > " ;    
 	 	 	 	 b r e a k ;  
 	 	 	 }  
 	 	 }  
 	 	 i f ( d u m m y . s u b s t r ( d u m m y . l e n g t h - 4 , 4 )   ! = " < b r > " ) {  
 	 	 	 d u m m y   + =   " < b r > < b r > " ;  
 	 	 }  
 	 }  
 	 / / d u m m y   =   b b _ c o n t e n t ;  
 	 r e t u r n   d u m m y ;  
 }  
  
 f u n c t i o n   g e t H e a d l i n e ( ) {   r e t u r n   b b _ H e a d l i n e ; }  
  
 f u n c t i o n   g e t C S S ( ) {   r e t u r n   c s s _ f i l e _ n a m e ;   }  
  
 f u n c t i o n   s e t I m g ( ) {  
 	 d o c u m e n t . g e t E l e m e n t B y I d ( " a c t i v e _ c s s " ) . h r e f   =   c s s _ f i l e _ n a m e ;  
 	 i f ( b b _ H e a d l i n e _ L _ I m g )   d o c u m e n t . g e t E l e m e n t B y I d ( " l i m g " ) . i n n e r H T M L   =   " < i m g   b o r d e r = \ " 0 \ "   s r c = \ " " + b b _ H e a d l i n e _ L _ I m g + " \ " > " ;    
 	 	 e l s e   d o c u m e n t . g e t E l e m e n t B y I d ( " l i m g " ) . i n n e r H T M L = " " ;  
 	 i f ( b b _ H e a d l i n e _ R _ I m g )   d o c u m e n t . g e t E l e m e n t B y I d ( " r i m g " ) . i n n e r H T M L   =   " < i m g   b o r d e r = \ " 0 \ "   s r c = \ " " + b b _ H e a d l i n e _ R _ I m g + " \ " > " ;    
 	 	 e l s e   d o c u m e n t . g e t E l e m e n t B y I d ( " r i m g " ) . i n n e r H T M L = " " ;  
 	 d o c u m e n t . g e t E l e m e n t B y I d ( " d i v _ H e a d L i n e " ) . i n n e r H T M L   =   b b _ H e a d l i n e ;    
 	 d o c u m e n t . g e t E l e m e n t B y I d ( " d i v _ F o o t L i n e " ) . i n n e r H T M L   =   g e t F o o t e r T e x t ( ) ;  
 }  
  
 f u n c t i o n   g e t F o o t e r T e x t ( ) {    
 	 v a r   f l i n k s   =   b b _ f o o t e r _ l i n k . s p l i t ( r o w _ s e p ) ;  
 	 v a r   F o o t e r L i n k s   =   " " ;  
 	 v a r   F T x t S t y l e   =   " "  
 	 v a r   H L N K   =   " " ;  
 	 f o r ( v a r   l p = 0 ;   l p   <   f l i n k s . l e n g t h ;   l p + + ) {  
 	 	 v a r   d u m m y   =   f l i n k s [ l p ] ;  
 	 	 f l i n k s [ l p ]   =   d u m m y . s p l i t ( c o l _ s e p ) ;  
 	 }  
 	 v a r   c s s C l a s s =   " " ;  
 	 f o r ( i = 0 ;   i <   f l i n k s . l e n g t h   ;   i + + ) {  
 	 	 i f ( i = = 0 ) {   	 c s s C l a s s = " b b _ f o o t e r _ l i n k _ a r c h i v e " ;   }  
 	 	 e l s e   i f ( i = = 1 ) {   c s s C l a s s = " b b _ f o o t e r _ l i n k _ m o r e " ; }  
 	 	 s w i t c h ( f l i n k s [ i ] [ 0 ] )  
 	 	 {  
 	 	 	 c a s e   " 1 " :   	 / / f o r   t e x t   t y p e  
 	 	 	 	 i f ( f l i n k s [ i ] [ 1 ]   ! = ' n u l l ' )  
 	 	 	 	 {  
 	 	 	 	 	 i f ( f l i n k s [ i ] [ 2 ]   ! =   ' n u l l ' )  
 	 	 	 	 	 	 H L N K   =   " < a   h r e f = \ " " + f l i n k s [ i ] [ 2 ] + " \ " > < f o n t   c l a s s = \ " " +   c s s C l a s s + " \ " > " + f l i n k s [ i ] [ 1 ] + " < / f o n t > < / a > " ;    
 	 	 	 	 	 e l s e  
 	 	 	 	 	 	 H L N K   =   " < f o n t   c l a s s = \ " " +   c s s C l a s s + " \ " > " + f l i n k s [ i ] [ 1 ] + " < / f o n t > " ;    
 	 	 	 	 } b r e a k ;  
 	 	 	 c a s e   " 2 " :   	 / / f o r   i m a g e   t y p e  
 	 	 	 	 i f ( f l i n k s [ i ] [ 1 ]   ! = ' n u l l ' )  
 	 	 	 	 {  
 	 	 	 	 	 i f ( f l i n k s [ i ] [ 2 ]   ! =   ' n u l l ' )  
 	 	 	 	 	 	 H L N K   =   " < a   h r e f = \ " " + f l i n k s [ i ] [ 2 ] + " \ " > < i m g   s r c = \ " " + f l i n k s [ i ] [ 1 ] + " \ "   b o r d e r = 0 > < / a > " ;    
 	 	 	 	 	 e l s e  
 	 	 	 	 	 	 H L N K   =   " < i m g   s r c = \ " " + f l i n k s [ i ] [ 1 ] + " \ "   b o r d e r = 0 > " ;    
 	 	 	 	 }  
 	 	 	 	 b r e a k ;  
 	 	 	 c a s e   " 3 " :   	 / / f o r   b u t t o n   t y p e  
 	 	 	 	 i f ( f l i n k s [ i ] [ 1 ]   ! = ' n u l l ' )  
 	 	 	 	 {  
 	 	 	 	 	 i f ( f l i n k s [ i ] [ 2 ]   ! =   ' n u l l ' )  
 	 	 	 	 	 	 H L N K   =   " < i n p u t   t y p e = b u t t o n   v a l u e = \ " " + f l i n k s [ i ] [ 1 ] + " \ "   o n c l i c k = \ " l o c a t i o n . h r e f = ' " + f l i n k s [ i ] [ 2 ] + " ' \ "   c l a s s = \ " " + c s s C l a s s + " \ " > " ;    
 	 	 	 	 	 e l s e  
 	 	 	 	 	 	 H L N K   =   " < i n p u t   t y p e = b u t t o n   v a l u e = \ " " + f l i n k s [ i ] [ 1 ] + " \ "   o n c l i c k = \ " \ "   c l a s s = \ " " + c s s C l a s s + " \ " > " ;    
 	 	 	 	 } 	 	 	 	 	  
 	 	 	 	 b r e a k ;  
 	 	 }  
 	 	 i f ( i + 1   ! =   f l i n k s . l e n g t h   & &   H L N K . l e n g t h > 0 )  
 	 	 	 F o o t e r L i n k s   + =   H L N K   + "   -   " ;  
 	 	 e l s e  
 	 	 	 F o o t e r L i n k s   + =   H L N K ;  
 	 }  
 	 r e t u r n   F o o t e r L i n k s ; 	  
 }  
 
