var i_onlineMammo, i_ir, I_MERCI, i_rsna09RMS, i_MB, i_lowDoseCCTA, i_NIH2008, i_3DSoftware, i_Kirsch, i_ctc, i_Vinuela, i_rsnaGrant08, i_wis, i_tateshima, i_saperstein, i_nejm, i_prostate, i_muir, i_vein, i_determine, i_LTablation, i_riskFactor, i_brainAttack, i_ctaFellowship;

var headlineList= new Array();
var newsCenter = new Array();
newsCenter[0] = new Array (2);
newsCenter[0].className = "Health Watch";
newsCenter[0].subClass = new Array();
newsCenter[1] = new Array(2);
newsCenter[1].className = "Academic/Research";
newsCenter[1].subClass = new Array();

var newsIndex = 0;
var newsSubClass, newsItem;


newsSubClass = new Array(2);
newsSubClass.subClassName= "OnlineMammo";
newsSubClass.news = new Array();

newsItem = new Array (7);
newsItem.type = "OnlineMammo";
newsItem.headline = "Real-Time OnLine Scheduling for Routine Screening Mammogram";
newsItem.sHeadline = "<b>Real-Time OnLine Mammo Scheduling</b>";
newsItem.image = "/radweb/images/archive/2009October/online_mammo_412x182.jpg";
newsItem.link = "https://www.radiology.ucla.edu/radweb/modality/mammoScreen.jsp";
newsItem.story = "UCLA Breast Imaging is pleased to offer real-time online scheduling, a convenient alternative to scheduling routine screening mammograms to returning UCLA patients at both breast imaging facilities. On-line scheduling is now available in just four easy steps and you're done!";

newsItem.target="_self";
newsSubClass.news.push (newsItem);
newsCenter[0].subClass.push (newsSubClass);
headlineList.push (newsItem);
i_onlineMammo = newsIndex;
newsIndex++;


newsSubClass = new Array(2);
newsSubClass.subClassName= "MERCI";
newsSubClass.news = new Array();

newsItem = new Array (7);
newsItem.type = "MERCI";
newsItem.headline = "MERCI Story";
newsItem.sHeadline = "<b>MERCI Story</b>";
newsItem.image = "/radweb/images/archive/2009May/MERCI_Story_412x182.jpg";
newsItem.link = "/radweb/sections/endovascular/news/MERCI_Story.jsp";
newsItem.story = "UCLA interventional neuroradiology team invented a revolutionary device to save lives and limit disability of ischemic stroke victims. The device, known as the Concentric MERCI Retrieval System, was developed by Concentric Medical, Inc. of Mountain View, California. Two UCLA inventors, Drs. Y. Pierre Gobin and J.P. Wensel, were involved in the design. In August 2004, MERCI retriever became the first medical device cleared by the U.S. Food and Drug Administration to remove blood clots from the brain in patients experiencing an ischemic stroke. On January 26th, 2009, Concentric Medical announced that MERCI Retrieval System(TM) has been used in over 10,000 patients ever since its launch in 2004.";

newsItem.target="_self";
newsSubClass.news.push (newsItem);
newsCenter[0].subClass.push (newsSubClass);
headlineList.push (newsItem);
i_MERCI = newsIndex;
newsIndex++;

newsSubClass = new Array(2);
newsSubClass.subClassName= "MB Center";
newsSubClass.news = new Array();

newsItem = new Array (7);
newsItem.type = "MB Center";
newsItem.headline = "UCLA Health System Radiology Imaging Center Opens in Manhattan Beach";
newsItem.sHeadline = "<b>New Imaging Center in Manhattan Beach</b>";
newsItem.image = "/radweb/images/archive/2009April/MBcenter.gif";
newsItem.link = "/radweb/referral/news/ManhattanBeachCenter.jsp";
newsItem.story = "The new center is set to provide a comprehensive imaging solution that will prove to be a perfect fit for the South Bay community. Our offerings will include full-service adult and pediatric imaging services with an emphasis on sports injury diagnosis, treatment and pain management. We also plan to provide educational opportunities through a free lecture series geared toward both patients and doctors.";
newsItem.target="_self";
newsSubClass.news.push (newsItem);
newsCenter[0].subClass.push (newsSubClass);
headlineList.push (newsItem);
i_MB = newsIndex;
newsIndex++;

newsSubClass = new Array(2);
newsSubClass.subClassName= "Image Gently";
newsSubClass.news = new Array();

newsItem = new Array (7);
newsItem.type = "Image Gently";
newsItem.headline = "Your Heart Imaged Gently: Low Dose Coronary CTA at UCLA";
newsItem.sHeadline = "<b>Low Dose CCTA</b>";
newsItem.image = "/radweb/images/archive/2009March/lowDoseCCTA_s.jpg";
newsItem.link = "/radweb/sections/dcvi/news/lowDoseCCTA.jsp";
newsItem.story = "Coronary CTA (CCTA) is an accurate method for the non-invasive diagnosis of coronary artery disease. However, recent advances in speed, spatial resolution, and image quality were achieved at the cost of an increased radiation dose. In this context concerns about the increased use of CT and the associated increase in collective radiation dose to the general population have emerged.";
newsItem.target="_self";
newsSubClass.news.push (newsItem);
newsCenter[0].subClass.push (newsSubClass);
headlineList.push (newsItem);
i_lowDoseCCTA = newsIndex;
newsIndex++;

newsSubClass = new Array(2);
newsSubClass.subClassName= "New Software";
newsSubClass.news = new Array();

newsItem = new Array (7);
newsItem.type = "New Software";
newsItem.headline = "UCLA Pioneering a 3-D Imaging Software that Targets Brain Aneurysms";
newsItem.sHeadline = "<b>Aneurysm Targeting Software</b>";
newsItem.image = "/radweb/images/archive/2009January/Duckwiler_Tateshima_s.jpg";
newsItem.link = "/radweb/sections/endovascular/news/AneurysmTargetingSoftware.jsp";
newsItem.story = "A new 3-D imaging software enables doctors to see the brain aneurysms better than ever and to predict whether they are likely to rupture and require immediate treatment. UCLA interventional neuroradiologists, Dr. Tateshima and Dr. Duckwiler, discussed this new 3-D imaging software on news aired across the country. They explained how this new advanced imaging technology help doctors to assess a patient's condition before they decide their course of action. Rebecca Gadberry, one of Dr. Tateshima's patients, shared her success story on treating her aneurysms. Dr. Duckwiler also discussed the minimally invasive treatment with Coil Embolization for brain aneurysms in the NBC Nightly News";
newsItem.target="_self";
newsSubClass.news.push (newsItem);
newsCenter[0].subClass.push (newsSubClass);
headlineList.push (newsItem);
i_3DSoftware = newsIndex;
newsIndex++;

newsSubClass = new Array(2);
newsSubClass.subClassName= "CT Imaging Updates";
newsSubClass.news = new Array();

newsItem = new Array (7);
newsItem.type = "CT Colonography";
newsItem.headline = 'CT COLONOGRAPHY: A Noninvasive Colorectal Cancer Screening Option';
newsItem.sHeadline = '<b>CT Colonography</b>:<br>A Noninvasive Colorectal Cancer Screening Option';
newsItem.image = "/radweb/images/archive/2008December/CTColonTeam_s.jpg";
newsItem.link = "/radweb/sections/abdominal/news/CTColonography.jsp";
newsItem.story = "Computerized tomographic colonography (CTC), also known as virtual colonoscopy, can be adopted into clinical practice as another screening option for colorectal cancer - the nation's second-leading cause of cancer death. The National CT Colonography Trial, results of which were published in the September 18 issue of the New England Journal of Medicine demonstrated that CTC is highly accurate for the detection of intermediate and large polyps, which are the ones more likely to develop into cancer.";

newsItem.target="_self";
newsSubClass.news.push (newsItem);
newsCenter[0].subClass.push (newsSubClass);
headlineList.push (newsItem);
i_ctc = newsIndex;
newsIndex++;

newsSubClass = new Array(2);
newsSubClass.subClassName= "Women's Imaging";
newsSubClass.news = new Array();

newsItem = new Array (7);
newsItem.type = "New Center";
newsItem.headline = "UCLA Women's Imaging Services";
newsItem.sHeadline = "<b>Women's Imaging</b>";
newsItem.image = "/radweb/images/archive/2008October/WomensImagingFaculty_412x182.jpg";
newsItem.link = "/radweb/sections/breast/news/WomensImagingServices.jsp";
newsItem.story = "UCLA Radiology offers two locations specifically designed for women's imaging needs. At the forefront of technology, these facilities offer the broadest spectrum of state-of-the-art tools available to ensure the highest level of quality for screening, diagnosis and treatment. This includes imaging of breast, heart, hip and uterine fibroids. The newly opened Santa Monica-UCLA Women's Imaging Center caters to the unique needs of women with a strict women-only policy during the daytime. Throughout their treatment, women are cared for in a relaxing, spa-like setting -- warm, soothing and private. The Iris Cantor Center for Breast Imaging at UCLA, located on the UCLA campus in Westwood, is renowned for its groundbreatking contributions to breast imaging. UCLA was the first mammography center in Los Angeles, the first to offer breast ultrasound, the first accredited by the Mammography Accreditation Program and the first totally digital mammography facility in California. And today it remains a leader in breast MRI."; 

newsItem.target="_self";
newsSubClass.news.push (newsItem);
newsCenter[0].subClass.push (newsSubClass);
headlineList.push (newsItem);
i_wis = newsIndex;
newsIndex++;

newsSubClass = new Array(2);
newsSubClass.subClassName= "New Facility";
newsSubClass.news = new Array();

newsItem = new Array (7);
newsItem.type = "New Facility";
newsItem.headline = "We're Expanding!";
newsItem.sHeadline = '<b>IR Center Expansion</b>';
newsItem.image = "/radweb/images/archive/2009August/IRsuites_S.jpg";
newsItem.link = "/radweb/referral/news/IRsuites.jsp";
newsItem.story = "UCLA Radiology is proud to announce the expansion of our combined specialty Interventional Radiology Consultation Center. They provide all outpatient service needs including new consultations and ongoing patient management. The scope of the center will include Interventional Oncology, Interventional Spine Program, Peripheral and Neurointerventional Radiology, and the Treatment of Varicose Veins.";

newsItem.target="_self";
newsSubClass.news.push (newsItem);
newsCenter[0].subClass.push (newsSubClass);
headlineList.push (newsItem);
i_ir = newsIndex;
newsIndex++;

newsSubClass = new Array(2);
newsSubClass.subClassName= "Interventional Rad.";
newsSubClass.news = new Array();

newsItem = new Array (7);
newsItem.type = "Interventional Rad.";
newsItem.headline = 'Varicose Vein Treatment, Interventional Radiology';
newsItem.sHeadline = '<b>Varicose Vein Treatment</b>';
newsItem.image = "/radweb/images/archive/2007November/varicoseVein_412x182.jpg";
newsItem.link = "/radweb/sections/cardioInterventional/news/VaricoseVeinTreatment.jsp";
newsItem.story = "The Interventional Radiology section is pleased to announce the launch of our Varicose Vein Treatment program. Our physicians, nurse practitioners and technologists perform sclerotherapy, ambulatory phlebectomy, microphlebectomy and laser therapy of diseased superficial veins at both the UCLA Westwood and UCLA Santa Monica Campuses.";

newsItem.target="_self";
newsSubClass.news.push (newsItem);
newsCenter[0].subClass.push (newsSubClass);
headlineList.push (newsItem);
i_vein = newsIndex;
newsIndex++;

newsSubClass = new Array(2);
newsSubClass.subClassName= "New Development";
newsSubClass.news = new Array();

newsItem = new Array (7);
newsItem.type = "New Development";
newsItem.headline = "UCLA Prostate Cancer Imaging";
newsItem.sHeadline = "UCLA <b>Prostate Cancer Imaging</b>";
newsItem.image = "/radweb/images/archive/2008January/prostateMRI_s.jpg";
newsItem.link = "/radweb/sections/abdominal/news/prostateMRI.jsp";
newsItem.story = 'Prostate cancer is the second most commonly diagnosed abdominal cancer in men and the second leading cause of cancer death in American men. The radiologists, scientists and technologists at UCLA are working hard to bring cutting-edge science into clinical practice. We strive to help the urologists and cancer specialists of UCLA and the surrounding communities provide the most accurate and comprehensive treatment of prostate cancer available.';
newsItem.target="_self";
newsSubClass.news.push (newsItem);
newsCenter[0].subClass.push (newsSubClass);
headlineList.push (newsItem);
i_prostate = newsIndex;
newsIndex++;

newsSubClass = new Array(2);
newsSubClass.subClassName = "Success Story";
newsSubClass.news = new Array();
	
newsItem = new Array (7);
newsItem.type = "Success Story";
newsItem.headline = "Atherosclerosis: Risk Factors and Treatment";
newsItem.sHeadline = "<b>Atherosclerosis</b>: Risk Factors and Treatment";
newsItem.image = "/radweb/images/archive/2006May/atherosclerosis_Waycott_s.jpg";
newsItem.link = "/radweb/sections/endovascular/stories/atherosclerosis_Waycott.jsp";
newsItem.story = 'Atherosclerosis can occur at any age; it is however more common in people who are over the age of 45. The risk factors depend upon the overall state of health of the individual. The treatment of atherosclerosis depends upon the severity of the disease.';
newsItem.target="_self";
newsSubClass.news.push (newsItem);
headlineList.push (newsItem);
i_riskFactor=newsIndex;
newsIndex++;

newsItem = new Array (7);
newsItem.type = "Success Story";
newsItem.headline = "Understanding and Surviving a Brain Attack";
newsItem.sHeadline = "Understanding and Surviving a <b>Brain Attack</b>";
newsItem.image = "/radweb/images/archive/2006March/stroke_Richardson_s.jpg";
newsItem.link = "/radweb/sections/endovascular/stories/stroke_richardson.jsp";
newsItem.story = '"I was sitting at my desk at work when I had the stroke and suddenly I could not say a single word or move my right side. But, thanks to the pioneering work of the Interventional Neuroradiologists and the Stroke Team, I had a miraculous recovery. I returned to work in just a month and am able to enjoy all of my favorite outdoor activities just like always."';
newsItem.target="_self";
newsSubClass.news.push (newsItem);
headlineList.push (newsItem);
i_brainAttack= newsIndex;
newsIndex++;

newsCenter[0].subClass.push (newsSubClass);

newsSubClass = new Array(2);
newsSubClass.subClassName = "Continuing EDU.";
newsSubClass.news = new Array();
	
newsItem = new Array (7);
newsItem.type = "Course";
newsItem.headline = "Intensive Coronary CTA Visiting Fellowship Course";
newsItem.sHeadline = "<b>Intensive Coronary CTA Course</b>";
newsItem.image = "/radweb/images/archive/2006August/coronaryCTA_vfc.gif";
newsItem.link = "http://www.radiology.ucla.edu/dcvi/html/vf_coronaryCTA.html";
newsItem.story = 'The two-day course on Cardiac CTA is designed to cover all aspects of Cardiac CTA. In this course all aspects of Coronary CT Angiography, including patient selection, data acquisition techniques and post processing are covered. The course will be a combination of didactic lectures, which address the fundamentals of Cardiac CTA and its clinical application. The live cases will be performed and post processed at the time of acquisition. In addition the attendees will have the opportunity to review the extensive collection of cases already acquired in the Department teaching file. This will be done in the company of the Faculty members present that day. The objective of the course is to set the groundwork for level one readership and to become familiar with the basics of Cardiac CTA.'; 
newsItem.target="blank";
newsSubClass.news.push (newsItem);
headlineList.push (newsItem);
i_ctaFellowship=newsIndex;
newsIndex++;

newsCenter[1].subClass.push (newsSubClass);

newsSubClass = new Array(2);

newsSubClass.subClassName = "Awards & Honors";
newsSubClass.news = new Array();


newsItem = new Array (7);
newsItem.type = "Awards";
newsItem.headline = "Cristian Coroian & Jennifer Kung Awarded 2009 RSNA Medical Student Research Grant";
newsItem.sHeadline = "<b>Cristian Coroian</b> & <b>Jennifer Kung</b> Awarded 2009 RSNA Medical Student Research Grant";
newsItem.image = "/radweb/images/archive/2009May/Noriko_group1_412x182.jpg";
newsItem.link = "/radweb/sections/neuro/news/2009RSNA_medicalStudentGrant.jsp";

newsItem.story = "UCLA Radiology is pleased to announce that Cristian Coroian and Jennifer Kung have been awarded a research grant by the Radiological Society of North America. Cristian and Jennifer are both under the mentorship of Dr. Noriko Salamon, MD, PhD in Neuroradiology from UCLA Medical Center.";

newsItem.target="_self";
newsSubClass.news.push (newsItem);
headlineList.push (newsItem);
i_rsna09RMS =newsIndex;
newsIndex++;

newsItem = new Array (7);
newsItem.type = "Awards";
newsItem.headline = "Dr. Kangarloo Receives NIH/NIBIB Grant to Study Osteoporosis";
newsItem.sHeadline = "<B>Dr. Kangarloo</b> Receives NIH/NIBIB Grant";
newsItem.image = "/radweb/images/archive/2009March/NIH2008_s.jpg";
newsItem.link = "/radweb/news/academicResearch/2008NIH_Grant.jsp";

newsItem.story = "UCLA Radiology is pleased to announce that Dr. Hooshang Kangarloo, Director of the Medical Imaging Informatics Group (MII), has been awarded a NIH/NIBIB Research Project Grant (R01) to develop an imaging-based disease model for bone development to better comprehend the genesis of osteoporosis, a debilitating disease in which bones become fragile and more likely to break due to a loss of bone mineral density (BMD)...";

newsItem.target="_self";
newsSubClass.news.push (newsItem);
headlineList.push (newsItem);
i_NIH2008 =newsIndex;
newsIndex++;

newsItem = new Array (7);
newsItem.type = "Awards";
newsItem.headline = "Dr. Vinuela Received Awards & Recognitions in Uruguay";
newsItem.sHeadline = "<B>Dr. Vinuela</b> Received Awards & Recognitions in Uruguay";
newsItem.image = "/radweb/images/archive/2008December/Vinuela_UruguayTrip_S.jpg";
newsItem.link = "/radweb/sections/endovascular/news/VinuelaUruguayTrip.jsp"

newsItem.story = 'Dr. Fernando Vinuela received numerous awards and recognitions in Uruguay this summer. He was invited to a national convention on Acute Cerebral Stroke held in Sheraton Hotel in Montevideo, the capital city of Uruguay, on August 18th, 2008. Before the beginning of the conference, there was a special ceremony involving the President of Uruguay (Dr. Tabare Vazquez) , the Mayor of Montevideo, and the Dean of School of Medicine of Montevideo. In this ceremony, Dr. Vinuela received the following awards and recognitions...';

newsItem.target="_self";
newsSubClass.news.push (newsItem);
headlineList.push (newsItem);
i_Vinuela=newsIndex;
newsIndex++;

newsItem = new Array (7);
newsItem.type = "Awards";
newsItem.headline = "2008 RSNA R&E Foundation Grant Recipients: Edward W. Lee, MD, PhD & Nam C. Yu, MD";
newsItem.sHeadline = "<b>Dr. Edward Lee</b> and <b>Dr. Nam Yu</b> Received 2008 RSNA R&E Foundation Grant";
newsItem.image = "/radweb/images/archive/2008December/2008RSNA_GrantRecipients_S.jpg";
newsItem.link = "/radweb/sections/csir/news/2008RSNA_Grant.jsp";

newsItem.story = "UCLA Radiology is pleased to announce that Dr. Edward Lee and Dr. Nam Yu have been selected to receive the 2008 RSNA Research & Education Foundation's Resident Grant. Dr. Edward W. Lee, MD, PhD, under the mentorship of Dr. Stephen Kee, MD in Interventional Radiology from UCLA Medical Center, will study the novel tumor ablation method called irreversible electroporation (IRE, aka NanoKnife) on head and neck tumors using a VX2 tumor model. Dr. Yu, under the mentorship of Professor David S. K. Lu, MD of the Abdominal Imaging section, will study the biological alterations in tumors treated by image-guided therapies.";

newsItem.target="_self";
newsSubClass.news.push (newsItem);
headlineList.push (newsItem);
i_rsnaGrant08=newsIndex;
newsIndex++;

newsCenter[1].subClass.push (newsSubClass);

var rad_headlineRotateOrder = [i_onlineMammo, i_ir, i_MERCI, i_rsna09RMS, i_MB, i_lowDoseCCTA, i_NIH2008, i_3DSoftware, i_ctc, i_Vinuela, i_rsnaGrant08, i_wis, i_prostate, i_vein, i_ctaFellowship, i_riskFactor, i_brainAttack];

var rad_headlineRotateIndex = 0;
var rad_headlineIndex = rad_headlineRotateOrder[rad_headlineRotateIndex];
var numHeadlines = headlineList.length;
var numRotateHeadlines = rad_headlineRotateOrder.length;

var address = window.location.href;
var index = address.indexOf ("?");

//
// HSU: always show first news (no auto rotating news)
//
rad_headlineIndex = rad_headlineRotateOrder[0];
var linkName = "Click here to start!";

if (index != -1) {
	var newsIndex = address.substring(index + 1);
	if (newsIndex.length>2) {
		if (newsIndex == "AvonGrant") {
			window.location.href="/radweb/education/fellowshipNews/2006/BreastImagingAvonGrant.jsp";
		}
		else if (newsIndex == "neuro") {
			window.location.href="/radweb/sections/endovascular/news/2008SteinOppenheimerEndowmentAward.jsp";
		}
		else if (newsIndex == "acrin") {
			window.location.href="/radweb/news/byYear.jsp";
		}

	}
	else {
		rad_headlineIndex = parseInt (newsIndex);	
//		rad_headlineRotateIndex = parseInt (newsIndex);
//		if (rad_headlineRotateIndex == NaN) {
//			rad_headlineRotateIndex = 0;		
//		}
//		else if (rad_headlineRotateIndex < rad_headlineRotateOrder.length) {
//			;			
//		}
//		else {
//			rad_headlineRotateIndex = 0;		
//		}
	}
}

  
//rad_getCookies 
//var flag = false;
//if (index == -1) {
//	var cookies = document.cookie.split ("; ");
//	for (var i = 0; i < cookies.length; i++) {
//		var nameValuePair = cookies[i].split ('=');
//		if (nameValuePair[0] == "radNews") {  
//			rad_headlineRotateIndex = parseInt(nameValuePair[1]);
//			rad_headlineRotateIndex++;
//			if (rad_headlineRotateIndex == numRotateHeadlines) {
//				rad_headlineRotateIndex= 0
//			}

//			if (flag) {
//				break;
//			}
//			else {
//				flag = true;
//			}
//		}
//	}
//}
//rad_headlineIndex = rad_headlineRotateOrder[rad_headlineRotateIndex];


//set cookie
//document.cookie='radNews=' + rad_headlineRotateIndex;

//
// store the news Id of currently display headline news 
// that does not have a full story page
var shortNews = -1;

function nextNews (value) {
	// oldID is the index of the newsList
	var oldId = rad_headlineRotateOrder[rad_headlineRotateIndex];

	if (shortNews != -1) {
		//
		// reset cursor style of the short news in the right column
		//
		var myLink = document.getElementById ("radNews_" + shortNews);
		if (myLink != null) myLink.className= "radLinkUnderline";
	}
	
	if (value) {
		rad_headlineRotateIndex++;
		if (rad_headlineRotateIndex == numRotateHeadlines) rad_headlineRotateIndex = 0;
	}
	else {
		rad_headlineRotateIndex--;
		if (rad_headlineRotateIndex < 0) rad_headlineRotateIndex = numRotateHeadlines - 1;
	} 
	// newId is the index of the newsList
	var newId = rad_headlineRotateOrder[rad_headlineRotateIndex];

	//reset headline image
	rad_headlineIndex = rad_headlineRotateOrder[rad_headlineRotateIndex];
	var targetNews = headlineList[rad_headlineIndex];
	var targetImage = document.getElementById ("radHeadImage");
	targetImage.src = targetNews.image;
	targetImage.alt = targetNews.headline;

	var newsLink = document.getElementById ("linkText");
	var headlineCell = document.getElementById ("radHeadImageCell");
	
	if ((targetNews.link).length > 2) {	
//		var myCell = document.getElementById ("radHeadImage");
//		myCell.style.cursor= "pointer";
//		myCell.onclick= function() {
//			if (targetNews.target == "_self") {
//				window.location.href= targetNews.link;
//			}
//			else {
//				window.open (targetNews.link);
//			};
//		}
		headlineCell.onclick = function() {
			if (targetNews.target == "_self") {
				window.location.href= targetNews.link;
			}
			else {
				window.open (targetNews.link);
			};
		}
		headlineCell.style.cursor= "pointer";

		if (rad_headlineRotateIndex == 0) {
			linkName = "Click here to start!";
		}
		else { 
			linkName = "Full Story";
		}

		var textNode = document.createTextNode (linkName);
		newsLink.replaceChild (textNode, newsLink.firstChild); 
	
		if (shortNews != -1) {
			//
			// reset link in story 	

			var textNode = document.createTextNode (linkName);
			newsLink.replaceChild (textNode, newsLink.firstChild); 
						
			//
			// reset shortNews index;
			shortNews = -1;
		}

	}
	else {
		var myCell = document.getElementById ("radHeadImage");
		myCell.onclick= "";
		myCell.style.cursor = "default";

		//
		// specific for short news
		//
		var textNode = document.createTextNode ("");
		newsLink.replaceChild (textNode, newsLink.firstChild); 
		

		//
		// reset cursor style in right column
		//
		var myLink = document.getElementById ("radNews_" + newId);
		if (myLink != null) myLink.className= "radLinkText";


		//
		// shortNews without full story
		//
		headlineCell.onclick="";
		headlineCell.style.cursor="default";

		shortNews = newId;
	}

	var newHeaderText = document.createTextNode (targetNews.headline);
	var newStoryText = document.createTextNode (targetNews.story + " ");

	var newsHeader = document.getElementById ("radTopHeader");
	newsHeader.replaceChild (newHeaderText, newsHeader.firstChild);

	var newsStory = document.getElementById ("radTopStory");
	newsStory.replaceChild (newStoryText, newsStory.firstChild);

	document.cookie='radNews=' + rad_headlineRotateIndex;
}


function gotoNews (newsIndex) {

	// oldID is the index of the newsList
	var oldId = rad_headlineRotateOrder[rad_headlineRotateIndex];
	rad_headlineRotateIndex++;
	if (rad_headlineRotateIndex == numRotateHeadlines) {
		rad_headlineRotateIndex = 0;
	}

	//reset headline image
	rad_headlineIndex = newsIndex;
	var targetNews = headlineList[rad_headlineIndex];

	var targetImage = document.getElementById ("radHeadImage");
	targetImage.src = targetNews.image;
	targetImage.alt = targetNews.headline;

	var newsLink = document.getElementById ("linkText");
	var headlineCell = document.getElementById ("radHeadImageCell");	
	if (shortNews != -1) {
		//
		// reset cursor style of the short news in the right column
		//
		var myLink = document.getElementById ("radNews_" + shortNews);
		if (myLink != null) myLink.className= "radLinkUnderline";

		//
		// reset shortNews index;
		shortNews = -1;
	}


//	if (newsIndex == i_zucker) {
	
//		headlineCell.onclick = function() {
		//
		// specific for Zucker news
		//
//		window.open ("http://www.uclalumni.net/AlumniStories/BruinBites/DrZucker.cfm");
//		}

//		headlineCell.style.cursor="pointer";

		//
		// reset cursor style in right column
		//
//		var myLink = document.getElementById ("radNews_" + newsIndex);
//		if (myLink != null) myLink.className= "radLinkText";

//	}
//	else {
		newsLink.replaceChild (document.createTextNode (""), newsLink.firstChild); 

		headlineCell.style.cursor="default";
		headlineCell.onclick="";


		//
		// reset cursor style in right column
		//
		var myLink = document.getElementById ("radNews_" + newsIndex);
		if (myLink != null) myLink.className= "radLinkText";
//	}

	shortNews = newsIndex;	
	var newHeaderText = document.createTextNode (targetNews.headline);
	var newStoryText = document.createTextNode (targetNews.story + " ");

	var newsHeader = document.getElementById ("radTopHeader");
	newsHeader.replaceChild (newHeaderText, newsHeader.firstChild);

	var newsStory = document.getElementById ("radTopStory");
	newsStory.replaceChild (newStoryText, newsStory.firstChild);


//	document.cookie='radNews=' + rad_headlineRotateIndex;
}
