function setCurrentPage() {
	var pathname = window.location.pathname;
	var filename = pathname.substr(pathname.lastIndexOf('/')+1,pathname.length);
	if(filename=='') {
		filename = 'index.html';
	}
	var links = document.getElementsByTagName('a');
	for (var i=0;i<links.length;i++) {
		var current_pathname = links[i].getAttribute("href");
		var current_filename = current_pathname.substr(current_pathname.lastIndexOf('/')+1,current_pathname.length);
		if(current_filename == filename) {
			var attribute = document.createAttribute("class");
     		attribute.nodeValue = "selected";
 			var link = links[i];
     		link.setAttributeNode(attribute);
		}
	}
}

function isCurrentPage(filename) {
	var pathname = window.location.pathname;
	var filename2 = pathname.substr(pathname.lastIndexOf('/')+1,pathname.length);
	return(filename == filename2);
}
// * add by NWI
function addEvent()
	{
		iFrameDiv = document.getElementById("iFrameConfigurator");
		if (window.addEventListener)
			iFrameDiv.addEventListener("load", resizeCaller, false)
		else if (window.attachEvent)
			iFrameDiv.attachEvent("onload", resizeCaller)
	}
	
	function resizeCaller()
	{
		
		iFrameDiv.style.height = '750px';
	
	}

	