//=====================================================================||

//Options for Everyone:
//naam = "";
//---------------------------------------------------------------------||
// FUNCTION:    function                                             ||
// PARAMETERS:  Quantity to                                            ||
// RETURNS:     Quantity as a number, and possible alert               ||
// PURPOSE:     Make sure quantity is represented as a number          ||
//---------------------------------------------------------------------||
function ShowPageName(pgname) {
   var strOutput ;	
	var commando = "<div style=\"left: 35 ; top: 21 ;width: 800 ; position: absolute;  height: 30\"><font size=\"2\" color=\"#fefeff\">" ;

	document.write(commando);

	document.write('<strong><em>');
	
	document.write(pgname);
	document.write('</em></strong>');
	document.write('</div>');
//	document.close();
}

// Functie die adhv NrOfBt de grootte berekent onder de custom buttons
function ShowButtonIsle(NrOfBt) {
	var Width ;
	var commando ;
	
	Width = ( NrOfBt * 60 ) + 20 ;
	Height = 40 ;
	StartX = 960 - Width ;
	StartY = 95 - 10 ;
	
	commando = "<div style=\"left: " + StartX + " ; top: " + StartY + " ;width: " + Width + " ; position: absolute;  height: " + Height + "\">";
	document.write(commando);
	commando = "<img src=\"images/headzw.gif\" class=\"glossy iradius5 ishade10 ibgcolor525252\" width=\"" + Width + "\" height = \"" + Height + "\" >";
	document.write(commando);
	document.write("</div>");
}

// laat de foto wat bij het iframe hoort zien op het scherm, 
// fn is het pad inclusief filenaam
function ShowPicture(ifpict) {
//	document.write ( '<div style=\"left: 720 ; top: 30 ;width: 300 ; position: absolute;  height: 300\">' );
	
//	var commando = "<img src=\"../images/checkout.gif\"  width=\"300\" border=\"0\" alt=\"\" align=\"middle\" 
//		 class=\"corner ishadow15 ishade10\" ></div> " ;

//	document.write( '<img src=\"../images/headzw.gif\"  width=\"300\" border=\"1\" alt=\"\" align=\"middle\" class=\"corner ishadow15 ishade10\" ></div> ' );
document.write('hallo');
}


function ShowIframe(fn) {
//	var strOutput = "<div style=\"left: 60 ; top: 100 ;width: 930 ; position: absolute;  height: 380\">";
//	strOutput += "<font size=\"1\"  color=\"#E5E5E5\"><iframe name=\"info\" src=\"winkeltxt.html\" width=\"930\" height=\"380\" scrolling=\"auto\" align=\"top\" frameborder=\"0\" marginwidth=\"0\"
//		marginheight=\"0\" allowtransparency></font></div>" ;
//		
	var commando = "<div style=\"left: 40 ; top: 160 ;width: 970 ; position: absolute;  height: 360\"><font size=\"2\" color=\"#555555\">" ;
	document.write(commando);
	
	commando = "<font size=\"1\"  color=\"#E5E5E5\">";
	document.write('<font size=\"1\"  color=\"#ffffff\">');
	commando = "<iframe name=\"info\" src=\"" + fn + ".html\" width=\"970\" height=\"360\" scrolling=\"auto\" align=\"top\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" allowtransparency>";
	document.write(commando);
	document.write('</div>');
}

// Deze funktie laat evt. afwijkende informatie zien. finfo is excl. extension
// in de toekomst wordt de horizontale positie variabel
// xpos is de eerste vrije positie vanaf rechts gemeten waar de button kan staan
// De functie returned een nieuwe vrije xpos voor een volgende button-funktie
function ShowInfoButton(finfo,xpos) {

	var commando = "<div style=\"left: " + xpos + " ; top: 540 ;width: 30 ; position: absolute;  height: 60\">";
	document.write(commando);
	
	commando = "<a href=\"" + finfo + ".html?TB_iframe=true&height=400&width=830\" title=\"additional information\" class=\"thickbox\"><img src=\"images/infobox.png\" class=\"glossy\" width=\"30\" ></a>";

	document.write(commando);
	
	document.write('</div>');

	xpos -= 40 ;
	return(xpos);
	
}

// deze funktie behandeld de speakerknop
// in de toekomst wordt de horizontale positie variabel
// zie showinfobutton() voor xpos
function ShowSoundButton(sound,xpos) {
	
	// plaats de button 
	var commando = "<div style=\"left: " + xpos + " ; top: 540 ;width: 30 ; position: absolute;  height: 30\">";
	document.write(commando);

	commando = "<a href=\"" + sound + ".html?TB_iframe=true&height=210&width=280\" title=\"Listen to samples\" class=\"thickbox\"><img src=\"images/headphone.png\" class=\"glossy\" width=\"30\" ></a>";

	document.write(commando);
	document.write('</div>');

	
	xpos -= 40 ;
	return (xpos);
}


function ShowPicsButton(pics,xpos) {
	var commando = "<div style=\"left: " + xpos + "; top: 540 ;width: 30 ; position: absolute;  height: 30\">";
	document.write(commando);

	commando = "<a href=\"page.html?naam=gallerie&?file="+pics+"&?close=true&\"><img src=\"images/camera.png\" class=\"glossy\" width=\"30\" ></a></div>";
	document.write(commando);

	xpos -= 40 ;
	return(xpos);
}




function ShowCloseButton(xpos) {
	var commando = "<div style=\"left: " + xpos + " ; top: 540 ;width: 30 ; position: absolute;  height: 30\"><a href=\"javascript:history.back(1)\" ><img src=\"images/closepopup.png\" width=\"30\" border=\"0\"></a></div>";
	document.write(commando);


	xpos -= 40 ;
	return(xpos);
}
