// Argument 0: Name of DIV where links are to be displayed in
// Argument 1: Link nr 1's filename (*.pdf & *.gif but without extension)
// Argument 2: Link nr 2's filename (*.pdf & *.gif but without extension)
// Argument n: Link nr n's filename (*.pdf & *.gif but without extension)
//
function TvE_showPdfLinks() { // v 1.1 Shows additional links for PDF's, eg. multiple manuals and brochures
	var div				= arguments[0];
	var html 			= '';
	var pdfType			= '';
	var pathPdfFile		= '';
	var lastFolderName	= '';	
	var fileShortName	= '';
	var fileNameLength	= '';
	var path			= '/Sider/Produkter/Brochure_manual/';

	html += '<img src="/Shared_images/trans.gif" height="1" width="331"><br>';
	for (var i = 1; i < arguments.length; i++) {
		fileShortName = arguments[i];
		fileNameLength = fileShortName.length;
		pdfType = fileShortName.substr(fileNameLength-3 , 3);
		lastFolderName = fileShortName.split('_');
		pathPdfFile = path + lastFolderName[0] + '/' + fileShortName + '.pdf';

		html += '<a href="' + pathPdfFile + '" target="_blank">';
		html += '<img src="' + fileShortName + '.gif" title="Klik for at downloade ';

		if (pdfType == 'bro') {
			html += 'brochure';
			}
		else if (pdfType == 'man') {
			html += 'manual';
			}
		else if (pdfType == 'dat') {
			html += 'datablad';
			}
		html += ' i PDF format" border="0" height="17" width="331"></a><br>';
	}
	document.getElementById(div).innerHTML = html;
}


function TvE_tipEnVen() { // v 1.0
 var theUrl ;
  if (parent.indhold) { // if we have our frameset get the contentpage's url
    theUrl = parent.indhold.location.href ;
      } else {
        theUrl = location.href ; // if not get the naked page's url
      }
//  alert(theUrl); debug
return theUrl ;
}


