// This function replaces double and single quotes 
function sanitize( s ){
	return s.replace( /[']/g, '`' ).replace( /["]/g, '^' );
};

//quick function to change clips with a link
function changeClip(url, bgImage, text){
		$f().getPlugin("canvas").css({backgroundImage: 'url('+bgImage+')'});
		$f().getPlugin("controls").setInfoText(sanitize(text));
		$f().play(url);
}
// define controls settings
var ctrls = {
			url: 'swf/fp.custom.controls.swf',
			infoBgColor: 'rgb(0, 0, 0, 0)'
};
// define common clip settings
var clips = {
		autoPlay: false,
		autoBuffering: true
};
// define common canvase settings	
var canvs = {
		backgroundColor: 'transparent',
		backgroundGradient: 'none'
};

