// Function Library by OUT Media Design GmbH, Switzerland
// Copyright 1997 - 2000. All rights reserved.

function adjFrameSrcs() {
	var URLparams=window.location.search;
	if (URLparams!='') {
		URLparams=URLparams.substring(URLparams.indexOf('?')+1, URLparams.length);
		URLparams=URLparams.split('&');
		for (var i=0; i<URLparams.length; i++) {
			var p=URLparams[i].split('=');
			if (window.frames[p[0]]) {
				window.frames[p[0]].location.href=p[1];
			}
		}
	}
	return true;
}

function newFrameDocWindow() {
	var wf = "";
	var cfdURL = top.wipo_content_frame.location.href;
	wf = wf + "width=" + (arguments[0]!=null ? arguments[0] : 600);
	wf = wf + ",height=" + (arguments[1]!=null ? arguments[1] : 400);
	wf = wf + ",resizable=" + (arguments[2]!=null ? arguments[2] : "no");
	wf = wf + ",scrollbars=" + (arguments[3]!=null ? arguments[3] : "no");
	wf = wf + ",menubar=" + (arguments[4]!=null ? arguments[4] : "no");
	wf = wf + ",toolbar=" + (arguments[5]!=null ? arguments[5] : "no");
	wf = wf + ",directories=" + (arguments[6]!=null ? arguments[6] : "no");
	wf = wf + ",location=" + (arguments[7]!=null ? arguments[7] : "no");
	wf = wf + ",status=" + (arguments[8]!=null ? arguments[8] : "no");		
	window.open(cfdURL,"wipo_no_frame_content",wf);
}


//Functions adapted from the Adobe GoLive Action Library

function CSFixFct() {
	var d = document; var w = window;
	if (d.cs.csFix.w != w.innerWidth || d.cs.csFix.h != w.innerHeight) {
		d.location = d.location; }
}
function CSNSFix(action) { 
	var d = document; var w = window;
	if ((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) == 4)) {
		if (typeof d.cs == 'undefined') { 
			d.cs = new Object;
			d.cs.csFix = new Object; 
		} else if (CSIsFrame (w) == true) CSFixFct();
		d.cs.csFix.w = w.innerWidth;
		d.cs.csFix.h = w.innerHeight; 
		window.onresize = CSFixFct;
	  }
}
function CSIsFrame (window) {
	var rootWindow = window.parent;
	if (rootWindow == 'undefined') return false;
	for (i = 0; i < rootWindow.frames.length; i++)
		if (window == rootWindow.frames[i]) return true;
	return false;
}

CSNSFix();

function setImageURL(iName, iUrl) {
	var img = null;
	if (document.images) {
		img = document.images[iName];
		if (img) img.src = iUrl;
	}
}
CSImages=new Array();
function CSPreloadImage(url) {
	if (document.images) { CSImages[CSImages.length]=new Image(); CSImages[CSImages.length-1].src=url; }
}


//preload the 