NewsDelay=5000		//Time each story is displayed for
NewsFadeDelay=1000	//Time taken to fade from one story to the next
NewsFont='Verdana'	//Ticket font family
NewsFontSize='1.5'	//Ticket font size
NewsTextColor=new Array("#000000","#111111","#222222","#333333","#444444","#555555","#666666","#777777","#888888","#999999","#aaaaaa","#bbbbbb","#cccccc","#dddddd","#eeeeee","#ffffff")
NewsStory=0		//Working Variable
LastNewsStory=0		//Working Variable
NewsColor=0		//Working Variable
NewsArray=new Array(

	'<b>EUROPE [31 May 2007]</b><br>BUSINESS IN DEVELOPMENT - CHALLENGE 2007<br></i>  details »', 'news.htm#Business_in_development',

	'<b>KARACHI [22-25 Feb 2006]</b><br>SA 8000 Lead Auditor Course organized jointly by RBI and SAI <br></i>  details »', 'news.htm#SA8000',	

	'<b>Germany [2-4 November 2005]</b><br>RBI amongst network sponsors of<br> TBL Investing Conference  <br> Frankfurt</i>  details »', 'news.htm#asianf',

	
	'<b>Pakistan [17 October 2005]</b><br>RBI as a launch partner<br> Globally Responsible Leadership (GRL) Initiative <br> Lahore</i>  details »', 'news.htm#EFMD_Launch',
	
	'<b>Pakistan [26 September 2005]</b><br>RBI with SECP and UNDP organizes <br> APEX Consultation on CSR Strategy <br> Lahore</i>  details »', 'news.htm#CSR_SECP',

	'<b>United States [11-13 September 2005]</b><br>RBI as a participating partner<br> International Business Forum Globally Responsible Businesses <br> New York  details »', 'news.htm#Biz_Forum',


	'<b>Indonesia [8-9 September 2005]</b><br>RBI is an official organizing partner of<br> the Asian Forum on Corporate Social Responsibility <br> Jakarta  details »', 'news.htm#asianf',


    '<b>Malaysia [3 September 2004]</b><br>RBI was an official partner organization of<br> the Asian Forum on CSR-Asia Foremost <br>Conference & Expo on CSR  details »', 'news.htm#asianf',

	'<b>Singapore [12 July 2004]</b><br>RBI represented Pakistan as Founder-Member<br> of the Asia-Pacific CSR Group details »' , 'news.htm#csrl',

	'<b>Sri Lanka [24 May 2004]</b> <br>RBI plays a key role in the Workshop<br> on TBL implementation: A Path to CSR details »' , 'news.htm#wtbl',

	'<b>Lahore [08 March 2004]</b> <br>G-ForSE 2004 Preliminary Meeting<br>organizedby RBI in Lahore details »' , 'news.htm#gforsem',	

	'<b>Hong Kong [February 2004]</b> <br>RBI represented Pakistan in the GRI<br>Round Guest speaker Mr. Farrukh <br>Nizami table Conference in Hong Kong details »' , 'news.htm#gric',

	'')


    function DisplayNews(){
    	LastNewsStory=NewsStory
    	NewsStory++; if( NewsStory>(Math.floor(NewsArray.length/2)) ){NewsStory=1}
    	FadeNews()
}


    function FadeNews(){
    	if (NewsColor<(NewsTextColor.length)/2){var NewsLayer=1}
    	else {var NewsLayer=2}
    	//Old Story


        	if (LastNewsStory>0){
        		var NewsText = '<A href="'+ NewsArray[(LastNewsStory-1)*2+1] +'" target="_blank"><FONT color="'+ NewsTextColor[NewsColor] +'" face="'+ NewsFont +'" size="'+ NewsFontSize +'">'+ NewsArray[(LastNewsStory-1)*2] +'</FONT></A>'
        			if(document.layers){ document.eval('newslayer'+(3-NewsLayer)).document.write(NewsText); document.eval('newslayer'+(3-NewsLayer)).document.close() }//NN4
        			if(document.all){ eval('newslayer'+(3-NewsLayer)).innerHTML=NewsText }//IE
        			if(!document.all && document.getElementById){ document.getElementById('newslayer'+(3-NewsLayer)).innerHTML=NewsText }//NN6
        	}
        	//New Story
        		var NewsText = '<A href="'+ NewsArray[(NewsStory-1)*2+1] +'" target="_blank"><FONT color="'+ NewsTextColor[(NewsTextColor.length)-NewsColor-1] +'" face="'+ NewsFont +'" size="'+ NewsFontSize +'">'+ NewsArray[(NewsStory-1)*2] +'</FONT></A>'
        			if(document.layers){ document.eval('newslayer'+NewsLayer).document.write(NewsText); document.eval('newslayer'+NewsLayer).document.close() }//NN4
        			if(document.all){ eval('newslayer'+NewsLayer).innerHTML=NewsText }//IE
        			if(!document.all && document.getElementById){ document.getElementById('newslayer'+NewsLayer).innerHTML=NewsText; }//NN6
        	NewsColor++
        	if (NewsColor>=NewsTextColor.length){ NewsColor=0; setTimeout('DisplayNews()',NewsDelay) }
        	else { setTimeout('FadeNews()',NewsFadeDelay/NewsTextColor.length) }
    
}

