self.onError=null;
lastScrollX = 0;
lastScrollY = minScrollY= -80;//390;
flotingMarginTop=-80;
NS = (document.layers) ? 1 : 0;IE = (document.all) ? 1: 0;
function moveObj() { 
if(IE)
	diffY = Math.max (document.body.scrollTop+flotingMarginTop,minScrollY);
else if(NS) { 
	diffY = Math.max (self.pageYOffset+flotingMarginTop,minScrollY);
}

if(diffY != lastScrollY) {
	percent = .1 * (diffY - lastScrollY); 
	if(percent > 0) 
		percent = Math.ceil(percent);
	else 
		percent = Math.floor(percent); 
	if(IE) {
	handleFP.style.pixelTop += percent;
	//document.all.layer2.style.pixelTop += percent;
	}
	if(NS){
	handleFP.top += percent;     
	//document.layer2.top += percent; 
	}
	lastScrollY = lastScrollY + percent;
	}
}

function initFloatingPanel(){
	if(NS || IE){
		handleFP=IE?document.all.layerfloatingpanel:document.layerfloatingpanel;
		winwidth=IE?window.document.body.clientWidth:window.innerWidth;
		if (winwidth<880){
			handleFP.style.display="none";
		}else{
			handleFP.style.display="block";
		}
		action = window.setInterval("moveObj()",1);

		if(IE) {

		handleFP.style.pixelTop = lastScrollY

		//handleFP.style.pixelLeft = window.document.body.clientWidth-123;

		//document.all.layer2.style.pixelTop += percent;

		}

		if(NS){

		handleFP.top = lastScrollY;     

		//handleFP.left = window.innerWidth-123;     

		//document.layer2.top += percent; 

		}

	}

	

}





function initParameters(prefix){

	if(!prefix)

		prefix='';

	var pairs = document.location.search.substring(1).split("&");

	for (var i=0; i < pairs.length; i++) {

		var values = pairs[i].split("=");

		eval(prefix+values[0]+'="'+unescape(values[1])+'"');

	}

}



function getParameters(){
	return document.location.search.substring(1);
}
//system compatibility codes
function isIE(){
	return navigator.appName=="Microsoft Internet Explorer";
}
function isNetscape(){
	return navigator.appName=="Netscape";
}
function isOpera(){
	return navigator.appName=="Opera";
}
function isMac(){
	return navigator.platform=="MacPPC";
}
function isodd(n){
	return !(Math.floor(n/2)==n/2);
}





//window popup and resizing codes

function _popup(url,target,feature){

	w=open(url,target,feature);

	w.focus;

}



function window_center(w,h){

	window.resizeTo(w,h);

	window.moveTo((screen.width-w)/2,(screen.height-h)/2);

} 

function window_expand(w,h,w0,h0,steps) { //v2.0

	if(!steps)

		steps=10;

	if(!w0)

		w0=350;

	if(!h0)

		h0=200;

	window_center(w0,h0);

	if(isIE()){

		dw=w0-window.document.body.clientWidth;

		dh=h0-window.document.body.clientHeight;

	}else{

		dw=w0-window.innerWidth;

		dh=h0-window.innerHeight;

	}

	if(isOpera())

		dw-=16;

//	alert('dw='+dw+' app='+navigator.appName);

	window.focus();

	setTimeout('do_expand('+w+','+h+','+w0+','+h0+','+steps+')',200);

}



function do_expand(w,h,w0,h0,steps){

	for(n=0;n<=steps;n++){

		if(window.closed)

			return;

		window_center(w0+(w-w0)/steps*n+dw,h0+dh);

	}

	for(n=0;n<=steps;n++){

		if(window.closed)

			return;

		window_center(w+dw,h0+(h-h0)/steps*n+dh);

	}

	window_center(w+dw,h+dh);

	if(isNetscape()&&isMac())

		window.setResizable(false);

}