function load_new_color_picker(color_theme,color_string)
{
	var params = {};
	params.allowscriptaccess = "always";
	//so.addParam("allowscriptaccess","always");
	
	var attributes = {};
	attributes.showdownload = 'true';
	attributes.autostart =  'true';
	attributes.id = 'bumpinColorPicker2';
	attributes.name = 'bumpinColorPicker2';
	attributes.javascriptid = 'bumpinColorPicker2';
	attributes.enablejs = 'true';
	
	var flashvars = {};
	flashvars.skin = color_theme;
	flashvars.color_string = color_string;//"vbsbtcc:0x000000,vbsbtstc:0x000000,vbsbbgc:0x000000,ctsioc:13421772";
	swfobject.embedSWF("http://www.bumpin.com/new-colorpicker/getNewColorPicker.php", "bumpin-color-picker-2", "808", "450", "9.0.115","http://www.bumpin.com/web_widget/users/expressInstall.swf", flashvars,params,attributes);
}


function thisMovie(movieName) {
	
	return typeof window[movieName] != "undefined" ? window[movieName] : document[movieName];
	/*
	if (navigator.appName.indexOf("Microsoft") != -1)
	{
		//return document[movieName];
		var movie_obj = typeof window[movieName] != 'undefined' ? window[movieName] : document[movieName];
		return window[movieName];
		
	}else{
		return document[movieName];
	} */
}



function getColors()
{
	var colorString = thisMovie('bumpinColorPicker2').getSkin();
	var colorThemeString = thisMovie('bumpinColorPicker2').getColorTheme();
	
	alert("color_string: " + colorString + "\ncolor_theme: " + colorThemeString);
	
	/*
	var input = document.createElement("input");
	input.setAttribute("type", "hidden");
	input.setAttribute("name", "color_string");
	input.setAttribute("value", colorString);
	document.getElementById("client-create-form").appendChild(input);
	input = document.createElement("input");
	input.setAttribute("type", "hidden");
	input.setAttribute("name", "color_theme");
	input.setAttribute("value", colorThemeString);
	document.getElementById("client-create-form").appendChild(input);
	*/
}

function getNewColorString() {
	try{
		return thisMovie('bumpinColorPicker2').getSkin();
	}catch(e){
		return "";
	}
}

function getNewColorTheme() {
	try{
		return thisMovie('bumpinColorPicker2').getColorTheme();
	}catch(e){
		return "default";
	}
}





