﻿function bookmarkSite(title,url){
    if (window.sidebar){
	    window.sidebar.addPanel(title, url, "");
    }else if(window.opera && window.print){
	    var elem = document.createElement('a');
	    elem.setAttribute('href',url);
	    elem.setAttribute('title',title);
	    elem.setAttribute('rel','sidebar');
	    elem.click();
    }else if(document.all){
	    window.external.AddFavorite(url, title);
	}
}
function embedVideo(videoLocation, pageURL, videoTitle, videoID){
	// Load the 16x9 player
	var so = new SWFObject("/common/flash/video-player-16x9.swf", "vp", "533", "332", "7", "#eae9d8");
    so.addParam("wmode", "transparent");
    so.addParam("allowScriptAccess", "sameDomain");
    so.addParam("swLiveConnect", "true");
    so.addVariable("video", videoLocation);
    so.addVariable("currentURL", pageURL);
    so.addVariable("videoTitle", videoTitle);
    so.addVariable("videoID", videoID);
    so.write("flashcontent");
}
function changeContent(id,content){
    var container = document.getElementById(id);
    container.innerHTML = content;
}

function TerreceVideo(pageURL){
    embedVideo("http://media.cancercenter.com/cancerfighters/Terrece-16x9-533x300-042709-V1.flv",pageURL,"Using Art to Cope","1");
    changeContent('videoTitle','Using Art to Cope');
    changeContent('videoDesc','Terrece had been an artist for years, but never imagined her art would become an inspiration for so many people. After receiving a diagnosis of breast cancer, Terrece immersed herself in art as a means of emotional coping. Other cancer patients she met at Cancer Treatment Centers of America (CTCA) noticed and began to inquire about her art. Find out how Terrece began an art-based cancer support group. "You share hope together and you become a family," says Terrece, "I\'m going to be connected to these people forever."')
}
function LinaRobbieVideo(pageURL){
    embedVideo('http://media.cancercenter.com/cancerfighters/LinaRobbie-16x9-533x300-042709-V1.flv',pageURL,'Partners in Music','1');
    changeContent('videoTitle','Partners in Music');
    changeContent('videoDesc','After meeting at Cancer Treatment Centers of America (CTCA), Lina Schaal and Robbie Robinson found they shared a common passion for music. Learn how they started a support group for cancer patients interested in music. This growing group meets each week at CTCA at Midwestern Regional Medical Center and consists of individuals that play an instrument or sing, from beginners to experts. Listeners are also welcomed!')
}
function RoseVideo(pageURL){
    embedVideo('http://media.cancercenter.com/cancerfighters/Rose-16x9-533x300-042709-V1.flv',pageURL,'Sharing Her Story','1');
    changeContent('videoTitle','Sharing Her Story');
    changeContent('videoDesc','Breast cancer survivor, Rose Sajuan, discusses the support group she started and the benefits of sharing your story with people affected by cancer. "I wanted these women to know that there is life beyond cancer," says Rose. She encourages cancer patients and survivors to join Cancer Fighters and describes the group as one big family.');
}
function PuckettVideo(pageURL){
    embedVideo('http://media.cancercenter.com/cancerfighters/Puckett-16x9-533x300-042709-V1.flv',pageURL,'What is a support group?','1');
    changeContent('videoTitle','What is a support group?');
    changeContent('videoDesc','Listen to Dr. Katherine Puckett and Karen Van Zuiden describe the benefits of support groups from a mind-body perspective. They credit open communication as an effective means of maintaining positive emotions while undergoing cancer treatment. They encourage cancer patients and their caregivers to get involved in various forms of support groups.');
}
function BlaineVideo(pageURL){
    embedVideo('http://media.cancercenter.com/cancerfighters/BlaineD-16x9-534x300-042909-V1.flv',pageURL,'Getting Started','1');
    changeContent('videoTitle','Getting Started');
    changeContent('videoDesc','After completing treatment for prostate cancer, David Blain became interested in sharing his story with other cancer patients. David is now deciding how he can help others undergoing cancer treatment, "I\'m thinking about retiring and I\'m going to need something to do. What better than come to CTCA and get involved."');
}