function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function swfLink(_obj,_var,_data,_frame) {
	//target the flash object
	var _tar=MM_findObj(_obj);
	//send the data and call the frame
  	_tar.SetVariable("/:"+_var, _data);
	(_frame!='') ? _tar.TCallLabel ("/",_frame) : null;
}

function objSet(_obj,_prop,_val) {
	//target the flash object
	var _tar=MM_findObj(_obj);
	//alert((_val));
	_tar.style[_prop]=_val;
}

function popWin(_url,_name,_w,_h,_l,_t,_scroll,_resize,_center) {
		if (_center==1) { var _l=(screen.width-_w)/2; var _t=(screen.height-_h)/2; }
	window.open(_url,_name,'left='+_l+',top='+_t+',width='+_w+',height='+_h+',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars='+_scroll+',resizable='+_resize+'');
}

function regLaunch() {
	popWin('http://www.stereophonics.com/register.php','spREG',400,240,1,1,false,false,true);
}