//wid == Widget ID
//uid == User ID

var wid = null;
var uid = null;
var widgetURL = 'http://external.artician.com/widgets/objects/01/';
var width = null;
var height = null;
var wmode = 'transparent';
var type = 'application/x-shockwave-flash';
var allowFullScreen = true;
var flashObject = null;

function createArticianWidget(wid,uid){
	switch(wid)
	{
	case 1:
		width = 198;
		height = 128;
		break;    
	case 2:
		width = 296;
		height = 128;
		break;
	case 3:
		width = 391;
		height = 128;
		break;
	case 4:
	default:
		width = 487;
		height = 128;
	}

	flashObject = '<object width="'+width+'" height="'+height+'"><param name="movie" value="'+widgetURL+wid+'.swf?uid='+uid+'"></param><param name="allowFullScreen" value="'+allowFullScreen+'"></param><param name="wmode" value="'+wmode+'"></param><embed src="'+widgetURL+wid+'.swf?uid='+uid+'" type="'+type+'" allowfullscreen="'+allowFullScreen+'" wmode="'+wmode+'" width="'+width+'" height="'+height+'"></embed></object>';
	document.write(flashObject);
}