<!--//

function MM_openBrWindow(theURL,winName, height, width) {
  var popwidth = width;
  var popheight = height;
  var winw = (window.screen.width - popwidth) / 2;
  var winh = (window.screen.height - popheight) / 2;
  var features ='width='+popwidth+',height='+popheight+',resizable=yes,scrollbars=no,status=no,screenX='+winh+',screenY='+winw+',top='+winh+',left='+winw;
window.open(theURL,winName,features);
}


aQSSectionVars=("","");
sQSSectionVarsLong="";
aQSSectionVars[1]="";
sQSImgSectionVarsLong="";
sImgPath="";


function writeSwf() {
//We use this code to receive the variables sent via querystring to this page
//And to send it to the swf file before it loads
	queryVariables = location.search.substring (1,location.search.length);
//	alert(queryVariables);

	aQSImgVars = queryVariables.split("&");
	for (i=0; i<aQSImgVars.length; i++) {
		if (aQSImgVars[i].indexOf("img")!=-1) {
			sQSImgSectionVarsLong = aQSImgVars[i];
			aQSImgSectionVars = aQSImgVars[i].split("=");
			sImgPath='img=http://69.20.107.78/uploads/'+aQSImgSectionVars[1];
		}

	}

//do the query strings need to be attached to "name=" or just "src="?
//sQSSectionVarsLong or sImgPath?

	line='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="994" height="450" id="speakerphones.swf" align="middle">';
	line+='<param name="movie" value="speakerphones.swf?'+sImgPath+'">';
	line+='<param name="quality" value="high">';
	line+='<param name="wmode" value="transparent">';
	line+='<param name="bgcolor" value="#ffffff">';
	line+='<embed src="speakerphones.swf?'+sImgPath+'" quality="high" bgcolor="#ffffff" width="994" height="450" wmode="transparent" name="speakerphones.swf" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>';
	line+='</object>'
	document.write(line)
}


// The TrackTag variable refers to the location of the
// base action tag. In the actual implementation this
// action tag will point to a 1x1 pixel GIF.

var TrackTag = "http://switch.atdmt.com/action/";

function GetActionTag(URL){
//	alert(URL);
	if (GetActionTag) {
		document.action_tag.src = TrackTag + URL;
		// The URL passed from the SWF will be appended to TrackTag.
		// The image will be loaded into the img src tags below the
		// Flash ads OBJECT tag.
	}
}

//-->