/* *		Description: Metso.com - Global JavaScript source *		Type: JavaScript *		Copyright: Metso Corporation *		Author: Morning Digital Design, Jani Tarvainen *		Created: 15/06/2004 * *		Modified: 27/09/2004 Eetu Puustinen  *		Picture URLs and action titles in several functions are now brought as parameters, not hardcoded defaults. * */ function changeURL(value) { temp=value.split('|'); var target=temp[2]; var URLAddress=temp[1]; if (URLAddress == undefined || URLAddress == "[NULL]") {  return; }top.window.location = URLAddress; }function clearInput(input) {	if (input.defaultValue==input.value){		input.value = "";	}}function resetInput(input,resetValue) {	if (input.value=="") {		input.value = input.defaultValue;	}} // Browser snifferfunction BrowserCheck() {var b = navigator.appNamethis.mac = (navigator.appVersion.indexOf('Mac') != -1)if (b=="Netscape") this.b = 'ns'else if (b=="Microsoft Internet Explorer") this.b = 'ie'else this.b = bthis.version = navigator.appVersionthis.v = parseInt(this.version)this.ns = (this.b=="ns" && this.v>=5)this.ns5 = (this.b=="ns" && this.v==5)this.ns6 = (this.b=="ns" && this.v==5)this.ie = (this.b=="ie" && this.v>=4)this.ie4 = (this.version.indexOf('MSIE 4')>0)this.ie5 = (this.version.indexOf('MSIE 5')>0)this.ie5mac = (this.ie && this.mac);this.ns5mac = (this.ns && this.mac);this.min = (this.ns||this.ie)}is = new BrowserCheck();function back(){	window.history.go(-1)}// Write bookmark icon & link, only with IEfunction writeBookmark(actionlabel) {	if (document.layers || !is.ie) {		// Not IE, do nothing	} else {		document.write('<div class="contentbottom_bookmark"><a href="javascript:window.external.AddFavorite(bMarkLocation,bMarkTitle)">'+actionlabel+'</a></div>');	}	}function switchFont(arg) {	if (getActiveStyleSheet() == "largeFonts") {		setActiveStyleSheet('default');		arg.innerHTML = arg.innerHTML.replace(decreaseTitle, increaseTitle);			} else {		setActiveStyleSheet('largeFonts');		arg.innerHTML = arg.innerHTML.replace(increaseTitle, decreaseTitle);			}}function writeCurrentFontSize(){	if (cookie == "largeFonts") {		document.write('<a href="#" onclick="switchFont(this);">' + decreaseTitle + '</a>');	} else {		document.write('<a href="#" onclick="switchFont(this);">' + increaseTitle + '</a>');	}}/* Generic Image Hover */function imageOver(arg) {	arg.src = arg.src.replace(".png", "_over.png");	arg.src = arg.src.replace(".gif", "_over.gif");}function imageOut(arg) {	arg.src = arg.src.replace("_over.png", ".png");	arg.src = arg.src.replace("_over.gif", ".gif");}/* Generic Image Change- with paths */function imageChange(arg, oldPath, newPath) {	arg.src = arg.src.replace(oldPath, newPath);}/* Contact Finder map */function changeImages() {	if (document.images && (preloadFlag == true)) {		for (var i=0; i<changeImages.arguments.length; i+=2) {			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];		}	}}function preloadImages(dbPath) {	if (document.images) {pi_link1 = newImage(dbPath + 'link_t_terracotta_10.gif');pi_link2 = newImage(dbPath + 'link_t_terracotta_11.gif');pi_link3 = newImage(dbPath + 'link_t_terracotta_13.gif');pi_link4 = newImage(dbPath + 'link_t_red_10.gif');pi_link5 = newImage(dbPath + 'link_t_red_11.gif');pi_link6 = newImage(dbPath + 'link_t_red_13.gif');pi_nts = newImage(dbPath + 'navi_topsearch_submit_over.gif?OpenFileResource');		pi_nts_over = newImage(dbPath + 'navi_topsearch_submit.gif?OpenFileResource');		pi_if = newImage(dbPath + 'navi_increasefont.gif');				pi_if_over = newImage(dbPath + 'navi_increasefont_over.gif');				pi_bg_over = newImage(dbPath + 'navi_bg_over.gif');		pi_mc_rss = newImage(dbPath + 'mc_rss_icon.png?OpenFileResource');		pi_mc_rss_over = newImage(dbPath + 'mc_rss_icon_over.png?OpenFileResource');		pi_lc_rss = newImage(dbPath + 'lc_rss_icon.png?OpenFileResource');	pi_lc_rss_over = newImage(dbPath + 'lc_rss_icon_over.png?OpenFileResource');		pi_bm = newImage(dbPath + 'contentbottom_bookmark.gif');pi_bm_over = newImage(dbPath + 'contentbottom_bookmark_over.gif');pi_pr = newImage(dbPath + 'contentbottom_print.gif');pi_pr_over = newImage(dbPath + 'contentbottom_print_over.gif');pi_sl = newImage(dbPath + 'contentbottom_sendlink.gif');pi_sl_over = newImage(dbPath + 'contentbottom_sendlink_over.gif');	}}// Image switching code (Adobe ImageReady)function newImage(arg) {	if (document.images) {		rslt = new Image();		rslt.src = arg;		return rslt;	}}// Form reset confirmationfunction confirmReset() {	var answer = confirm ("Do you wish to reset form values?")	if (answer) {		document.forms[0].reset();	}}// Popup opener, MacroMediafunction MM_openBrWindow(theURL,winName,features) { //v2.0  window.open(theURL,winName,features);}/* page set mouse over & out functions */function pageSetOver(arg) {	if(arg.getAttribute("class") == "inactive" || arg.getAttribute("className") == "inactive") {		arg.setAttribute("class", "hover");		arg.setAttribute("className", "hover"); 	}}function pageSetOut(arg) {	if(arg.getAttribute("class") == "hover" || arg.getAttribute("className") == "hover") {		arg.setAttribute("class", "inactive");		arg.setAttribute("className", "inactive"); 	}}