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 FO2 = { movie:"", width:"262", height:"216", id:"mpl", bgcolor:"#000", wmode:"transparent", majorversion:"", build:"0", flashvars:"file=/xml/channel.php%3Fchannel_id%3D"+channel_id+"&shuffle=false&showdigits=true&linkfromdisplay=true&linktarget=_self&enablejs=true&javascriptid=mpl&showicons=true&autostart=true&repeat=true&usecaptions=false&usefullscreen=false&usekeys=false&global_url=www.famecast.com&plugins=yourlytics-1&yourlytics.callback=http://www.famecast.com/xml/mediaplayer_callback.php" }; UFO.create(FO2, "front_player"); } 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']+''; }