var fctv_channel_offset = 0; var fctv_total_channels = 0; function outputFameCastTV(init) { if(init) { fctv_total_channels = fctv_data.length; } var markup_array = new Array(); for(var i=0; i < 3; i++) { var data_offset = fctv_channel_offset+i; if(fctv_data[data_offset]) { s = fctv_data[data_offset]; markup_array[i] = '
'; } else { markup_array[i] = ""; } } } function fadeInFCTVSpot(spot_index) { var target_id = 'fctv_spot_inner'+spot_index; $(target_id).style.visibility = 'visible'; } function fadeOutFCTVSpot(spot_index) { var target_id = 'fctv_spot_inner'+spot_index; $(target_id).style.visibility = 'hidden'; } function channelsPageRight() { if(fctv_channel_offset+6 > fctv_total_channels) fctv_channel_offset = fctv_total_channels-3; else fctv_channel_offset += 3; outputFameCastTV(false); } function channelsPageLeft() { if(fctv_channel_offset-3 < 0) fctv_channel_offset = 0; else fctv_channel_offset -= 3; outputFameCastTV(false); } function playFCTVChannel(channel_id) { var flashvars = { "config":"/xml/player_conf_int.php", "autostart":"false", "controlbar":"over", "repeat":"always", "logo.file":"http://www.famecast.com/img/px.gif", "logo.hide":"false", "famecast.position":"top", "famecast.size":"0", "playlistfile":"/xml/channel.php%3Fchannel_id%3D" + channel_id + "%26site_id%3D1" }; var params = {"allowscriptaccess":"true", "allowfullscreen":"true", "wmode":"transparent", "bgcolor":"#000"}; var attributes = {"id": "mpl"}; swfobject.embedSWF("/flash/fcp/player.swf?"+(Math.round(1000 * Math.random())), "front_player", "262", "216", "10.0.0", "/js/expressInstall.swf", flashvars, params, attributes); } function videoPlayerItemStarted(itemobj) { if(itemobj['artist_id'] == FAMECAST_ARTIST_ID) $('fctv_now_playing').innerHTML = ''+itemobj['video_title']+''; else $('fctv_now_playing').innerHTML = ''+itemobj['artist_name']+''; }