// This function provides a way to open a shadowbox with some graceful degradation for the case where
// one link should be opened if javascript is supported, and another link if not. The intended use is along these lines:
//	  <a href='http://www.nojslink.com' onclick="return shadowbox_gd_view('Funky Popup Title', 'http://www.jslink.com', 'iframe', 640, 480);">click me</a>


function shadowbox_gd_view(movie_title, url, mplayer, movie_width, movie_height){
	Shadowbox.open({
        player:     mplayer,
		type: mplayer,
        content:    url,
        height:     movie_height,
        width:      movie_width,
        title: movie_title,
    });
    
	return false;
}

function viewMovieNoTemplate(atag, movie_width, movie_height){ 
	/* 
	Shadowbox.open({
        player:     'iframe',
		type: 'iframe',
        content:    atag.href+'&notemplate=1',
        height:     movie_height,
        width:      movie_width,
        title: atag.title,
    });
    return false;
	*/
	var title = (typeof(atag.title) == 'string'? atag.title : '');
	var href = atag.href+'&notemplate=1';
	return shadowbox_gd_view(title, href, 'iframe', movie_width, movie_height);
}
