/* clears default text entered into fields */
function clearSwapIts(){
	for(allSwaps in swapItArray)
	{
		if(document.getElementById(swapItArray[allSwaps][0]).value == 
swapItArray[allSwaps][1])
		{
			document.getElementById(swapItArray[allSwaps][0]).value = "";
		}

}}

/* form default swap out function */
function swapIt(element,content){
	if(typeof(swapItArray) != "object"){
		swapItArray = new Array();
	}
	if(document.getElementById(element).value=="")
	{
		document.getElementById(element).value=content;
		var count = swapItArray.length;
		swapItArray[count] = new Array(element, content);
	}
}

/* bookmark page function */
function bookmark(url,title){
  if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
  window.external.AddFavorite(url,title);
  } else if (navigator.appName == "Netscape") {
    window.sidebar.addPanel(title,url,"");
  } else {
    alert("Press CTRL-D (Netscape) or CTRL-T (Opera) to bookmark");
  }
}



/* homepage flash movie */
function flashbanner(movie, width, height) {
	document.writeln('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="' + width + '" height="' + height + '">');
    document.writeln('<param name="movie" value="' + movie + '">');
	document.writeln('<param name="quality" value="high" />');
	document.writeln('<param name="menu" value="false">');
	document.writeln('<param name="wmode" value="transparent">');
	document.writeln('<embed src="' + movie + '" width="' + width + '" height="' + height + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" menu="false" wmode="transparent"></embed>');
    document.writeln('</object>');
}
