function WhyName_pop()
{
  winWhy=window.open('index2.htm', 'winWhy', 'toolbar=no, status=no, width=200, height=100');
  winWhy.document.write("Why are we called Vox Concordia?")
};

var Flash;

function Page_Load()
{
	//alert("test")
	Page_Initialize(0);
}

function Page_Initialize(i)
{
	var val = jump1.myjumpbox.options[i].value
	var temp = new Array();
	temp = val.split('|');
	obj1.movie = temp[0];
	download.href=temp[1]
	var s = "Full res video: <b>'" + temp[2] + "' (" + temp[3] + ")</b> <font size=\"2\"></font>";
	downloadFile.innerHTML = s
	// myText.innerHTML = temp[1]
};

function downloadVideo()
{
	alert("This ought to download the AVI without have to right-click\nStill working on it :-)")
	
	GetDownloadPath();

	//Flash = document.getElementById("downloadButton");	
	
	//Flash.downloadFiles("http://localhost/RAC/Videos/Revit%20Architecture%202010%20Overview%20(1280x1024).avi");

	// downloadButton.location.href='http://localhost/RAC/Videos/Revit%20Architecture%202010%20Overview%20(1280x1024).avi';">
};

function GetDownloadPath() 
{
	var frm = document.forms[0];
	var Shell = new ActiveXObject("Shell.Application");
	var Folder = new Object;

	Folder = Shell.BrowseForFolder(0, "Choose a download folder", 0);

	var FolderItem = new Object;
	FolderItem = Folder.Items().Item();

	document.all.item("lblFilepath").InnerText = FolderItem.Path;
	frm.lblFilepath.Text = FolderItem.Path;
}