<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
		<meta name="generator" content="Adobe GoLive 6" />
		<title>Menu Extension</title>
	</head>

	<body>
		<hr />
		<p>ADOBE SYSTEMS INCORPORATED</p>
		<p>Copyright 2000 - 2002 Adobe Systems Incorporated<br />
			All Rights Reserved</p>
		<p>NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms of the Adobe license agreement accompanying it. If you have received this file from a source other than Adobe, then your use, modification, or distribution of it requires the prior written permission of Adobe.</p>
		<hr />
		<p><b>Extension Name:</b> MobileConvert</p>
		<p><b>Folder name:</b> MobileConvert</p>
		<hr />
		<p><b>Description:</b></p>
		<p>Mobile Convert - Converts an html page for mobile display.</p>
		<hr />
		<p><b>Module Definition:</b></p>
		<jsxmodule info="$$$/info=This extension filters an HTML page for mobile displays." name="Mobile Convert" version="1.0" /> 
		<p><b>Scripts:</b></p>
		<script><!--
//--------------------------------------------------------------------
// CALLBACK FUNCTIONS
//--------------------------------------------------------------------

// test the preferences by using a persistent counter

function initializeModule()
{
	if (prefs.count == undefined)
		prefs.count = 0;
	
}

//-------------------------------------------
//	menuSetup
//-------------------------------------------

function menuSetup(menuItem)
{
	switch (menuItem.name)
	{
		case "tomobile":
			menuItem.enabled = (document != undefined) || (website != undefined);
			break;
	}
}

//-------------------------------------------
//	menuSignal
//-------------------------------------------

function menuSignal(menuItem)
{
	switch (menuItem.name)
	{
		case "tomobile":
			convertDialog.destFolderUse.state = false;
			convertDialog.browseButton.enabled = false;
			convertDialog.folderStatic.text = "";
			
			convertDialog.cssStrip.state = false;
			convertDialog.brStrip.state = false;
			
			if (convertDialog.runModal())
				{
				convertDialog.maxImageSize = parseInt(convertDialog.sizeEdit.text);
				convertDialog.scaleWidth = parseInt(convertDialog.scaleEdit.text);
				convertDialog.scaleFactor = 2*convertDialog.scaleWidth - convertDialog.maxImageSize;
				
				if(document != null && document.view != undefined && document.view == "layout")
					{
					var newFile = convertPage(document);
					newFile.openDocument();
					}
				else
					convertSitePages();
				}
			break;
	}
}


function controlSignal (control) 
{
	switch (control.name)
		{
		case "destFolderUse":
			if(control.state)
				{
				if(convertDialog.folderFileObj != null)
					{
					convertDialog.folderStatic.text = convertDialog.folderFileObj.absurl;
					convertDialog.browseButton.enabled = true;
					}
				else
					{
					convertDialog.folderFileObj = folderGetDialog(module.localize("$$$/choosedest=Choose Destination Folder"));
					if(convertDialog.folderFileObj != null)
						{
						convertDialog.folderStatic.text = convertDialog.folderFileObj.absurl;
						convertDialog.browseButton.enabled = true;
						}
					else
						{
						control.state = false;
						convertDialog.folderStatic.text = "";
						convertDialog.browseButton.enabled = false;
						}
					}
				}
			else
				{
				convertDialog.browseButton.enabled = false;
				convertDialog.folderStatic.text = "";				
				}
			break;
		case "browseButton":
			{
			convertDialog.folderFileObj = folderGetDialog(module.localize("$$$/choosedest=Choose Destination Folder"));
			if(convertDialog.folderFileObj != null)
				{
				convertDialog.folderStatic.text = convertDialog.folderFileObj.absurl;
				}
			else
				convertDialog.folderStatic.text = "";
			}
			break;
		}
}



//-------------------------------------------
//	checkProperty
//-------------------------------------------

function checkProperty(element,prop)
	{
	var str = prop.toLowerCase();
	
	if(convertDialog.cssStrip.state && (str == "class" || str == "style"))
		return false;
	
	if(str == "usemap")
		return "";
	
	if(str == "background")
		return "";
	
	if(str == "onmouseover")
		return "";

	if(str == "onmouseup")
		return "";

	if(str == "onmousedown")
		return "";

	if(str == "onmouseout")
		return "";

	if(str == "onmouseclick")
		return "";
			
	if(str == "onload")
		return "";
		
	if(str == "onclick")
		return "";

	if(str == "ondblclick")
		return "";

	if(str == "onblur")
		return "";
	
	if(element.tagName == "body")
		{
		if(str == "link" || str == "alink" || str == "vlink")
			return false;
		}			
	/*
	
	if(str == "border"
		|| str == "cellspacing"
		|| str == "cellpadding"
		|| str == "background"
		|| str == "bgcolor"
		||  str == "align"
		||  str == "valign"
		||  str == "width" 
		||  str == "height"
		||  str == "rowspan" 
		||  str == "colspan")
		return true;
	return false;
	*/
	return true;
	}
	
//-------------------------------------------
//	createStartTag
//-------------------------------------------

function filterProperty(element,property)
	{
		var value = element[property];
		var outStr = "";
		
		var tagName = element.tagName.toLowerCase();
		
		if(tagName == "img" || tagName == "iframe" || tagName == "embed"
			&& (property == "width" || property == "height"))
				{
				if(property == "width" && value.indexOf("%") == -1)
					{
					var newWidth = parseInt(value);
					if(newWidth > convertDialog.maxImageSize)
						{
						if(newWidth > (2*convertDialog.scaleWidth))
							newWidth = convertDialog.scaleWidth;
						else
							{
							var factor = 1;
							if(convertDialog.scaleWidth > convertDialog.maxImageSize)
								{
								factor = (newWidth - convertDialog.maxImageSize);
								factor /= convertDialog.scaleFactor;
								factor += 1;
								}
							
							newWidth = Math.floor(newWidth/factor);
							
							}
						value = newWidth;
						}
					
					}
						
				if(property == "height" && value.indexOf("%") == -1)
					{
					if(element["width"] != undefined)
						{
						var widthValue = element["width"];
						var newWidth = 0;
						//var factor = 1;
						
						if(widthValue.indexOf("%") == -1)
							{
							newWidth = parseInt(widthValue);
							}

						if(newWidth > convertDialog.maxImageSize)
							{
							var factor = 1;
							
							if(newWidth > (2*convertDialog.scaleWidth))
								{
								factor = newWidth/convertDialog.scaleWidth;
								}
							else
								{
								
								if(convertDialog.scaleWidth > convertDialog.maxImageSize)
									{
									factor = (newWidth - convertDialog.maxImageSize);
									factor /= convertDialog.scaleFactor;
									factor += 1;
									}
								}							
							value = Math.floor(parseInt(value)/factor);
							}
						}
					}
				}
				
		if(property == "href" || property == "src")
			{
			if(convertDialog.folderFileObj != null)
				{
				value = absoluteURL(value,convertDialog.currentDoc.ref.absurl);
				value = relativeURL(value,convertDialog.folderFileObj.absurl+"/");
				}
			}
			
		outStr += " " + property + "=" +"\"";
		outStr += value +"\"";
		
		return outStr;
	}
	

//-------------------------------------------
//	createStartTag
//-------------------------------------------

function createStartTag(element)
	{
		if(element.tagName == "img")
			{
			return handleImageTag(element);
			}
			
		var str = "";
		
		
		str = "<" + element.tagName;
		
		for(var prop in element)
			{
			if(checkProperty(element,prop))
				{
				if(element.getAttribute(prop) != null && element[prop] != undefined)
					{
					str += filterProperty(element,prop);
					}
				}
			}

		str += ">";	
		return str;
	}
	
//-------------------------------------------
//	createStartTag
//-------------------------------------------

function handleImageTag(element)
	{
		if(convertDialog.spacerRemoveCheck.state)
			{
			if(element.getAttribute("src") != undefined)
				{
				var imageName = element.getAttribute("src");
				imageName = getURLName(imageName);
				
				if(imageName == convertDialog.spacerName.text)
					return "";
				}
			}
			
		convertDialog.newWidth = 0;
		convertDialog.newHeight = 0;
		
		var str = "";
		var value = "";
		var needsResize = false;
		var srcValue = "";
		
		str = "<" + element.tagName;
		
		for(var prop in element)
			{
			if(prop == "width")
				{
				value = element[prop];
				
				if(value.indexOf("%") == -1)
					{
					var newWidth = parseInt(value);
					if(newWidth > convertDialog.maxImageSize)
						{
						var factor = 1;
						
						if(newWidth > (2*convertDialog.scaleWidth))
							{
							newWidth = convertDialog.scaleWidth;
							}
						else
							{
							if(convertDialog.scaleWidth > convertDialog.maxImageSize)
								{
								factor = (newWidth - convertDialog.maxImageSize);
								factor /= convertDialog.scaleFactor;
								factor += 1;
								}
							newWidth /= factor;
							}
						

						newWidth = Math.floor(newWidth);
						convertDialog.newWidth = newWidth;
						value = newWidth;
						needsResize = true;
						}
					}
				str += " " + prop + "=" +"\"";
				str += value +"\"";

				continue;
				}
			if(prop == "height")
				{
				value = element[prop];
				
				if(value.indexOf("%") == -1)
					{
					if(element["width"] != undefined)
						{
						var widthValue = element["width"];
						var newWidth = 0;
						
						if(widthValue.indexOf("%") == -1)
							{
							newWidth = parseInt(widthValue);
							}

						if(newWidth > convertDialog.maxImageSize)
							{
							var factor = 1;
							
							if(newWidth > (2*convertDialog.scaleWidth))
								{
								factor = newWidth/convertDialog.scaleWidth;
								}
							else
								{
								
								if(convertDialog.scaleWidth > convertDialog.maxImageSize)
									{
									factor = (newWidth - convertDialog.maxImageSize);
									factor /= convertDialog.scaleFactor;
									factor += 1;
									}
								}							
							var newHeight = Math.floor(parseInt(value)/factor);

							value = newHeight;
							convertDialog.newHeight = newHeight;
							}
						}
					}

				str += " " + prop + "=" +"\"";
				str += value +"\"";

				continue;
				}
				
			if(prop == "src")
				{
				srcValue = element[prop];
				continue;
				}
				
			if(checkProperty(element,prop))
				{
				if(element.getAttribute(prop) != null && element[prop] != undefined)
					{
					str += filterProperty(element,prop);
					}
				}
			}
		
		if(needsResize)
			{
			var imageName = getURLName(srcValue);
			var imagePath = getURLPath(srcValue);
			
			imageName = "small_" + imageName;
			
			/*
			str += " livesrc=" +"\"";

			if(convertDialog.folderFileObj != null)
				{
				var absURL = absoluteURL(srcValue,convertDialog.currentDoc.ref.absurl);
				
				str += relativeURL(absURL,convertDialog.folderFileObj.absurl+"/") +"\"";
				}
			else
				str += srcValue +"\"";
			*/
			
			var srcURL = absoluteURL(srcValue,convertDialog.currentDoc.ref.absurl);
			
			var srcFile = new JSXFile(srcURL);
			
			if(!srcFile.exists)
				{
				if(convertDialog.folderFileObj != null)
					{
					srcValue = absoluteURL(srcValue,convertDialog.currentDoc.ref.absurl);
					srcValue = relativeURL(srcValue,convertDialog.folderFileObj.absurl+"/");
					}
				str += " src=" +"\"";
				str += srcValue +"\"";
				return str;
				}
			
			var destURL = absoluteURL(imagePath,getURLPath(convertDialog.currentDoc.ref.absurl));
			
			if(convertDialog.folderFileObj != null)
				{
				destURL = convertDialog.folderFileObj.absurl;
				}
			
			var imageSettings = new JSXImageSettings();
			
			imageSettings.outputSize = [convertDialog.newWidth,convertDialog.newHeight];
			
			if(getURLExtension(srcValue) == "gif")
				imageSettings.setGIFFormat("numColors",256);
			else
				imageSettings.setJPEGFormat("optimized","true");
					
			app.imageConverter.convertFile(srcURL,imageSettings,false,false,false,destURL,imageName);

			str += " src=" +"\"";
			
			if(convertDialog.folderFileObj != null)
				str += imageName +"\"";
			else
				str += relativeURL(destURL,convertDialog.currentDoc.ref.absurl) + "/" + imageName +"\"";
			}
		else
			{
			if(convertDialog.folderFileObj != null)
				{
				srcValue = absoluteURL(srcValue,convertDialog.currentDoc.ref.absurl);
				srcValue = relativeURL(srcValue,convertDialog.folderFileObj.absurl+"/");
				}
				
			str += " src=" +"\"";
			str += srcValue +"\"";
			}
		str += ">";	
		return str;
	}
	
//-------------------------------------------
//	createEndTag
//-------------------------------------------

function getURLName(url)
{
	var subIdx = 0;
	for(var i=(url.length-1);i>=0;i--)
		{
		if(url.charAt(i) == '/')
			{
			subIdx = i+1;
			break;
			}
		
		}
	if(subIdx == 0)
		return url;
		
	return url.substr(subIdx,url.length)
}
	
//-------------------------------------------
//	createEndTag
//-------------------------------------------

function getURLExtension(url)
{
	var subIdx = 0;
	for(var i=(url.length-1);i>=0;i--)
		{
		if(url.charAt(i) == '.')
			{
			subIdx = i+1;
			break;
			}
		
		}
	if(subIdx == 0)
		return "";
		
	return url.substr(subIdx,url.length)
}
	
//-------------------------------------------
//	createEndTag
//-------------------------------------------

function getURLPath(url)
{
	var subIdx = 0;
	for(var i=(url.length-1);i>=0;i--)
		{
		if(url.charAt(i) == '/')
			{
			subIdx = i+1;
			break;
			}
		
		}
	
	if(subIdx == 0)
		return "";
		
	return url.substr(0,subIdx)
}
	
//-------------------------------------------
//	createEndTag
//-------------------------------------------

function createEndTag(element)
	{
		var str = "";
		
		str = "</" + element.tagName + ">\n";
		return str;
	}
	
//-------------------------------------------
//	convertPage
//-------------------------------------------

function checkElement(element)
	{
	switch(element.elementType)
		{
			
		case "tag":
			switch(element.tagName)
				{
				case "link":
					if(convertDialog.cssStrip.state && element.getAttribute("type") != null && element.getAttribute("type") == "text/css")
						return 0;
					return 2;

				case "style":
					if(convertDialog.cssStrip.state)
						return 0;
					return 2;
				case "span":
					if(convertDialog.cssStrip.state)
						return 1;
					return 2;
					
				case "th":
				case "td":
				case "caption":
					if(element.subElements.length==0)
						return 0;
					return 4;
					
				case "html":
					return 1;
					
				case "tr":
					return 3;
					
				case "table":
				case "thead":
				case "tbody":
				case "font":
				case "nobr":
				case "noscript":
					if(element.subElements.length==0)
						return 0;
					return 1;
					
				case "applet":
				case "map":
				case "spacer":
				case "script":
					return 0;
					
				case "br":
					if(convertDialog.brStrip.state)
						return 0;
					return 2;
					
				default:
					return 2;
				}
			break;
		case "text":
			return 2;
		case "comment":
			return 2;
		}
	return 0;
	}

//-------------------------------------------
//	isBinary
//-------------------------------------------

function isBinary(element)
	{
	var tagName = element.tagName.toLowerCase();
	if(tagName == "img" || tagName=="br" || tagName == "hr" || tagName == "input"
		 || tagName == "keygen" || tagName == "link" || tagName == "param"
		  || tagName == "wbr")
		return false;
	return true;
	}
	
//-------------------------------------------
//	convertPage
//-------------------------------------------

function traverseTree(element)
	{
	var str = "";
	switch(element.elementType)
		{
		case "tag":
			var result = checkElement(element);
			if(result == 0)
				return str;
			
			var tagStr = "";
			if(result == 2)
				{
				tagStr += createStartTag(element);
				}
			
			if(result == 3)
				tagStr += "<div>";
			
			var oldStr = tagStr;
			
			for(var i=0;i<element.subElements.length;i++)
				{
				tagStr += traverseTree(element.subElements[i]);
				}
			
			if(tagStr != oldStr || !isBinary(element))
				{
				if(result == 2 && isBinary(element))
					{
					tagStr += createEndTag(element);
					}
					
				if(result == 3)
					tagStr += "</div>\n";
				if(result == 4)
					tagStr += " ";
				}
			else
				tagStr = "";
			
			str += tagStr;
				
			break;
		case "text":
			str += element.getOuterHTML();
			break;
		/*
		case "comment":
			str += element.getOuterHTML();
			break;
		*/
		}
		
	return str;
	}
//-------------------------------------------
//	convertPage
//-------------------------------------------

function convertSitePages()
	{
	if(website == null)
		return;
	var iterator = website.getSelectedFiles();
	var len = iterator.length();
			
	if(len != 0)
		{
		var aFile = iterator.first();
	
		if(aFile != null)
			{
			var curDoc = aFile.file.openMarkup();
			convertPage(curDoc);
			curDoc.close();
			}

		for(var i=1;i<len;i++)
			{
			aFile = iterator.next();
			if(aFile != null)
				{
				var curDoc = aFile.file.openMarkup();
				convertPage(curDoc);
				curDoc.close();
				}
			}
		}
		
	website.refreshFileView();
	
	}
//-------------------------------------------
//	convertPage
//-------------------------------------------

function convertPage(curDoc)
	{
	convertDialog.currentDoc = curDoc;
	
	var destFileURL = "";
	
	if(convertDialog.folderFileObj != null)
		{
		destFileURL = convertDialog.folderFileObj.absurl + "/" + "mb_" + curDoc.ref.name;
		}
	else
		{
		destFileURL = getURLPath(curDoc.ref.absurl) + "mb_" + curDoc.ref.name;
		}
		
	var contentStr = traverseTree(curDoc.element.getSubElement("html"));
	
	var newFile = new JSXFile(destFileURL);
	
	contentStr = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">\n\n<html xmlns=\"http://www.w3.org/1999/xhtml\">" + contentStr + "</html>";
	
	newFile.open("w");
	newFile.write(contentStr);
	newFile.close();
	
	return newFile;
	}
//-->
</script>
		<p>The menu bar</p>
		<jsxmenubar>
			<jsxmenu name="special">
				<jsxmenu name="CONV">
					<jsxitem dynamic="dynamic" name="tomobile" location="end" title="$$$/menu=To XHTML Mobile..." />
				</jsxmenu>
			</jsxmenu>
		</jsxmenubar>
		<p>The dialog</p>
		<jsxdialog height="270" name="convertDialog" resize="0" title="$$$/dialog=Convert to XHTML Mobile" width="272">
			<table width="375" border="0" cellspacing="0" cellpadding="0" cool="cool" gridx="5" gridy="5" height="263" showgridx="showgridx" showgridy="showgridy">
				<tr height="8">
					<td width="12" height="87" rowspan="8"></td>
					<td width="176" height="14" rowspan="3"></td>
					<td width="2" height="8"></td>
					<td width="43" height="12" colspan="3" rowspan="2"></td>
					<td width="55" height="15" rowspan="4"></td>
					<td width="86" height="87" rowspan="8"></td>
					<td width="1" height="8"><spacer type="block" width="1" height="8" /></td>
				</tr>
				<tr height="4">
					<td cslocked="cslocked" content="content" csheight="79" width="2" height="79" rowspan="7" valign="top" xpos="188">
						<jsxlayoutline direction="false" x="3" y="3" length="20" />
					</td>
					<td width="1" height="4"><spacer type="block" width="1" height="4" /></td>
				</tr>
				<tr height="2">
					<td width="43" height="26" colspan="3" rowspan="3" valign="top" align="left" xpos="190">
						<jsxcontrol halign="right" height="19" name="sizeEdit" posx="190" posy="12" type="edit" value="24" width="40"></jsxcontrol>
					</td>
					<td width="1" height="2"><spacer type="block" width="1" height="2" /></td>
				</tr>
				<tr height="1">
					<td width="176" height="24" rowspan="2" valign="top" align="left" xpos="12">
						<jsxcontrol height="16" name="static" posx="12" posy="14" type="static" value="$$$/static1=Downscale Images Bigger Than" width="176"></jsxcontrol>
					</td>
					<td width="1" height="1"><spacer type="block" width="1" height="1" /></td>
				</tr>
				<tr height="23">
					<td width="55" height="23" valign="top" align="left" xpos="233">
						<jsxcontrol halign="right" height="16" name="static" posx="233" posy="15" type="static" value="$$$/static4=Pixel" width="37"></jsxcontrol>
					</td>
					<td width="1" height="23"><spacer type="block" width="1" height="23" /></td>
				</tr>
				<tr height="3">
					<td width="176" height="3"></td>
					<td width="43" height="26" colspan="3" rowspan="2" valign="top" align="left" xpos="190">
						<jsxcontrol halign="right" height="19" name="scaleEdit" posx="190" posy="38" type="edit" value="170" width="40"></jsxcontrol>
					</td>
					<td width="55" height="3"></td>
					<td width="1" height="3"><spacer type="block" width="1" height="3" /></td>
				</tr>
				<tr height="23">
					<td width="176" height="23" valign="top" align="left" xpos="12">
						<jsxcontrol height="16" name="static" posx="12" posy="41" type="static" value="$$$/static2=Mobile Display Width" width="176"></jsxcontrol>
					</td>
					<td width="55" height="23" valign="top" align="left" xpos="233">
						<jsxcontrol halign="right" height="16" name="static" posx="233" posy="41" type="static" value="$$$/static4=Pixel" width="37"></jsxcontrol>
					</td>
					<td width="1" height="23"><spacer type="block" width="1" height="23" /></td>
				</tr>
				<tr height="23">
					<td width="176" height="23" valign="top" align="left" xpos="12">
						<jsxcontrol height="19" name="spacerRemoveCheck" posx="12" posy="64" type="checkbox" value="$$$/checkbox1=Remove Images Named" width="171"></jsxcontrol>
					</td>
					<td width="98" height="23" colspan="4" valign="top" align="left" xpos="190">
						<jsxcontrol height="19" name="spacerName" posx="190" posy="64" type="edit" value="spacer.gif" width="80"></jsxcontrol>
					</td>
					<td width="1" height="23"><spacer type="block" width="1" height="23" /></td>
				</tr>
				<tr height="17">
					<td width="374" height="17" colspan="8" valign="top" align="left" xpos="0">
						<jsxcontrol height="12" name="line" posx="0" posy="87" type="line" width="374"></jsxcontrol>
					</td>
					<td width="1" height="17"><spacer type="block" width="1" height="17" /></td>
				</tr>
				<tr height="4">
					<td width="12" height="46" rowspan="3"></td>
					<td width="176" height="4"></td>
					<td width="4" height="46" colspan="2" rowspan="3"></td>
					<td width="182" height="23" colspan="4" rowspan="2" valign="top" align="left" xpos="192">
						<jsxcontrol height="19" name="cssStrip" posx="192" posy="104" type="checkbox" value="$$$/checkbox3=CSS Styles" width="136"></jsxcontrol>
					</td>
					<td width="1" height="4"><spacer type="block" width="1" height="4" /></td>
				</tr>
				<tr height="19">
					<td width="176" height="19" valign="top" align="left" xpos="12">
						<jsxcontrol height="16" name="static" posx="12" posy="108" type="static" value="$$$/static3=Strip Code Elements" width="150"></jsxcontrol>
					</td>
					<td width="1" height="19"><spacer type="block" width="1" height="19" /></td>
				</tr>
				<tr height="23">
					<td width="176" height="23"></td>
					<td width="182" height="23" colspan="4" valign="top" align="left" xpos="192">
						<jsxcontrol height="19" name="brStrip" posx="192" posy="127" type="checkbox" value="$$$/checkbox4=BR Tags" width="136"></jsxcontrol>
					</td>
					<td width="1" height="23"><spacer type="block" width="1" height="23" /></td>
				</tr>
				<tr height="16">
					<td width="374" height="16" colspan="8" valign="top" align="left" xpos="0">
						<jsxcontrol height="11" name="line" posx="0" posy="150" type="line" width="374"></jsxcontrol>
					</td>
					<td width="1" height="16"><spacer type="block" width="1" height="16" /></td>
				</tr>
				<tr height="20">
					<td width="12" height="45" rowspan="3"></td>
					<td width="176" height="20" valign="top" align="left" xpos="12">
						<jsxcontrol height="19" name="destFolderUse" posx="12" posy="166" type="checkbox" value="$$$/checkbox2=Save to Folder" width="145"></jsxcontrol>
					</td>
					<td width="100" height="24" colspan="5" rowspan="2"></td>
					<td width="86" height="20"></td>
					<td width="1" height="20"><spacer type="block" width="1" height="20" /></td>
				</tr>
				<tr height="4">
					<td width="176" height="4"></td>
					<td width="86" height="25" rowspan="2" valign="top" align="left" xpos="288">
						<jsxcontrol halign="right" height="19" name="browseButton" posx="288" posy="186" type="button" value="$$$/button1=Browse..." width="77"></jsxcontrol>
					</td>
					<td width="1" height="4"><spacer type="block" width="1" height="4" /></td>
				</tr>
				<tr height="21">
					<td width="276" height="21" colspan="6" valign="top" align="left" xpos="12">
						<jsxcontrol halign="scale" height="19" name="folderStatic" posx="12" posy="190" type="static" valign="top" value="" width="269"></jsxcontrol>
					</td>
					<td width="1" height="21"><spacer type="block" width="1" height="21" /></td>
				</tr>
				<tr height="22">
					<td width="374" height="22" colspan="8" valign="top" align="left" xpos="0">
						<jsxcontrol height="13" name="line" posx="0" posy="211" type="line" width="374"></jsxcontrol>
					</td>
					<td width="1" height="22"><spacer type="block" width="1" height="22" /></td>
				</tr>
				<tr height="29">
					<td width="200" height="29" colspan="5"></td>
					<td width="88" height="29" colspan="2" valign="top" align="left" xpos="200">
						<jsxcontrol halign="right" height="19" name="dialogcancel" posx="200" posy="233" type="button" valign="bottom" value="$$$/button2=Cancel" width="80"></jsxcontrol>
					</td>
					<td width="86" height="29" valign="top" align="left" xpos="288">
						<jsxcontrol halign="right" height="19" name="dialogok" posx="288" posy="233" type="button" valign="bottom" value="$$$/button3=OK" width="77"></jsxcontrol>
					</td>
					<td width="1" height="29"><spacer type="block" width="1" height="29" /></td>
				</tr>
				<tr height="1" cntrlrow="cntrlrow">
					<td width="12" height="1"><spacer type="block" width="12" height="1" /></td>
					<td width="176" height="1"><spacer type="block" width="176" height="1" /></td>
					<td width="2" height="1"><spacer type="block" width="2" height="1" /></td>
					<td width="2" height="1"><spacer type="block" width="2" height="1" /></td>
					<td width="8" height="1"><spacer type="block" width="8" height="1" /></td>
					<td width="33" height="1"><spacer type="block" width="33" height="1" /></td>
					<td width="55" height="1"><spacer type="block" width="55" height="1" /></td>
					<td width="86" height="1"><spacer type="block" width="86" height="1" /></td>
					<td width="1" height="1"></td>
				</tr>
			</table>
		</jsxdialog>
	</body>

</html>