function openVideoPlayer(videoID, videoCategory, category, channel){
	Shadowbox.open({
        content:    '/flash/hcp_videoplayer/flash/swf/main.swf',
        player:     'swf',
        height:     550,
        width:      780,
        viewportPadding: 0,
        title:		'Video Library',
        handleOversize: 'none',
        options: {
	        flashVars: {
				pathToXML: '/flash/hcp_videoplayer/flash/xml/config.xml',
				category: category,
				videoCategory: videoCategory, 
				videoID: videoID,
				autoplay: 'yes' 
			},
			flashParams: {
				bgcolor: '#ffffff',
				wmode: 'opaque',
				scale: 'noscale',
				salign: 'tl',
				swliveconnect: 'true',
				allowscriptaccess: 'always'
			},
			onClose: function()
			{ 
				s.channel = s.siteName + ":" + s.indication + ":" + s.siteAudience;
				}
		},
        flashVersion: '9.0.0'
    });
	
	videoplayerCategoryChanged(videoCategory);
}

function openVideoPlayerPatient(videoID, videoCategory, category, channel){
	Shadowbox.open({
        content:    '/flash/patient_videoplayer/flash/swf/main.swf',
        player:     'swf',
        height:     550,
        width:      780,
        viewportPadding: 0,
        title:		'Video Library',
        handleOversize: 'none',
        options: {
	        flashVars: {
				pathToXML: '/flash/patient_videoplayer/flash/xml/config.xml',
				category: category,
				videoCategory: videoCategory, 
				videoID: videoID,
				autoplay: 'yes' 
			},
			flashParams: {
				bgcolor: '#ffffff',
				wmode: 'opaque',
				scale: 'noscale',
				salign: 'tl',
				swliveconnect: 'true',
				allowscriptaccess: 'always'
			},
			onClose: function()
			{ 
				s.channel = s.siteName + ":" + s.indication + ":" + s.siteAudience;
				}
		},
        flashVersion: '9.0.0'
    });
	
	videoplayerCategoryChanged(videoCategory);
}

$(document).ready(function(){
	// intialize the shadwbox script on document ready with jQuery
	Shadowbox.init();
});

function videoplayerCategoryChanged(category){
	$('#sb-title').removeClass();
	$('#sb-title').addClass(category);
	var c = category;
	if (c == "pancreatic")
		{
		category = "pc";
		
		}
	s.channel = s.siteName + ":" + category + ":" + s.siteAudience;
	//s.indication = category;
	//alert (s.indication); 

}
