// JavaScript Document
<!--
//Cross Fading News Ticker - Copyright (
//     c) 2002, Nick Radford
//Use this script as you want... though 
//     give me credit for it!
NewsDelay=7000		//Time each story is displayed for
NewsFadeDelay=1000	//Time taken to fade from one story to the next
NewsFont='Calibri, Myriad, Arial, sans-serif'	//Ticket font family
NewsFontSize='2'	//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(
	'Ambry Genetics News &amp; Events: To view all news &amp; events please click here.' , 'Press.html',
	//'Ambry Genetics announced as first Certified Service Provider (CSP) for the NimbleGen SeqCap EZ Human Exome...' , 'SeqCap-EZ-Exome-Sequencing-News.html',
	'Ambry Genetics announces the addition of Illumina HiSeq 2000 and BeadXpress...' , 'HiSeq2000-Next-Generation-Sequencing-System-News.html',
    'Ambry Genetics Announces Test for Familial Adenomatous Polyposis' , 'Familial-Adenomatous-Polyposis.html',
    'Ambry Genetics Introduces AmbryScreen™, A Genetic Test Screening For Some of The Most...' , 'AmbryScreen-News.html',
	'Ambry launches First X-Linked Intellectual Disabilities Diagnostics using...' , 'X-Linked-Intellectual-Disabilities-News.html',
	'RainDance Technologies announces Partnership with Ambry for Diagnostics &amp; Genomics Services...' , 'RainDance-Technologies-RDT-1000-News.html',
	'SoftGenetics forms Exclusive Alliance with Ambry Genetics for Extended Bioinformatics Support...' , 'SoftGenetics-NextGENe-Software-News.html',
	'Appointed first Certified Service Provider for Agilent’s SureSelect Target Enrichment System...' , 'Agilent-SureSelect-News.html',
	'Ambry Genetics announces new status as Certified Service Provider for Agilent MicroArray...' , 'Agilent-MicroArray-News.html',
	'Ambry Genetics announces launch of Chromosomal Microarray to offer Whole Genome Analysis...' , 'Chromosomal-MicroArray-Analysis-News.html',
	'Ambry Genetics announces the addition of Array CGH Services ...' , 'Array-CGH-News.html',
	'Ambry Genetics announces Illumina CSPro&trade; Certification for GA Sequencing...' , 'Illumina-CSPro-Certification-News.html',
	'Ambry Genetics introduces Sequence Capture for High Throughput Sequencing Applications...' , 'Next-Generation-Sequencing-News.html',
	'Ambry announces Next Generation Sequencing Services for Support of Pharmacogenomic Research...' , 'Next-Generation-Sequencing-Pharmocogenomic-News.html',
	
	'')


    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] +'"><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] +'"><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) }
    }

    //-->