<!--
function init(category)
{
if (parent.length == 0) {
	// No frames yet, so rebuild frameset.
	// Occurs in case of direct access of contentpage from another web/context.
	var thisurl = document.location.href;
	var thistitle = escape(document.title);


// This makes is dependand on the excistanse of 'load' in the URL
//	var number = thisurl.indexOf('load');
//	var webserver = thisurl.substring(0,number-1);
// This is a better way
//
	var webserver = document.location.protocol + "//" + document.location.host;


	// Only rebuild frameset when the user visits the page for first time.
	// When the user visited the page and the frameset was rebuild and then
	// presses the BACK button, the user must be taken back to the previous page
	// instead of rebuilding the frameset again (resulting in showing the same page).
	// How is it done? On first visit of this if-part set a cookie of the contentpage.
	// When the cookie is not set: it is the first visit (set the cookie and redirect).
	// When the cookie is set: the user pressed BACK button, so reset cookie and perform
	// another back to show the real previous page for the user.
	//
	// CURRENT PROBLEM: WHEN THE USER CLICKS A CONTENTPAGE ON THE HOME PAGE OF THE SITE
	// AND THEN GOES BACK TO THE HOME PAGE WITH THE "Home" HYPERLINK INSTEAD OF BACK-BUTTON
	// THEN THE COOKIE WILL NOT BE SET TO "empty". IN THIS CASE: WHEN THE USER AGAIN CHOOSES
	// THE SAME CONTENTPAGE THE COOKIE WILL BE THE SAME AS THE URL AND HENCE ANOTHER BACK WILL
	// BE ISSUED: THE USER REMAINS ON THE HOME PAGE. ANOTHER TRY SUCCEEDS BECAUSE THE COOKIE
	// WILL THEN BE SET TO EMPTY. SOLUTION COULD BE TO SET COOKIE TO "empty" WHEN CHOOSING THE
	// "Home" link. THIS PROBLEM OCCURS IN GENERAL WHEN THERE IS ANOTHER WAY (EXCEPT FOR BACK) TO
	// GO BACK TO THE PREVIOUS PAGE BECAUSE IN THAT CASE THE COOKIE WILL REMAIN SET.
	start=document.cookie.indexOf("url=",0) + 4;
	end=document.cookie.indexOf("$",0);

	// In N3 a problem arises when the title contains spaces.
	// url=webserver+"/includes/link.htm?target="+thisurl+"&title="+thistitle;
	url='http://www.takahashiamerica.com'+"/includes/link.htm?target="+thisurl+"&title="+thistitle;

	// alert("URL: "+url+"; COOKIE PART: "+document.cookie.substring(start,end));
	if (document.cookie.substring(start,end) == url) {
  		document.cookie = "url=empty$";
  		// alert("User pressed BACK so perform another BACK");
  		history.back();
	}
	else {
  		document.cookie = "url="+url+"$";
 		// alert("Set cookie: "+document.cookie);
  		window.location.href=url;
	}
}
else {
	// Frameset already exists: show right image in left frame.
	
	}
}
//-->
