window.defaultStatus ='P3P Writer'
function cky(n){return arguments.length>1?document.cookie=n+'='+arguments[1]+';path=/':(document.cookie.indexOf(n+'=')>=0?unescape(document.cookie.split(n+'=')[1].split(';')[0]):'')}

function pop(url, c) {
	mywin = window.open(url,"win","toolbar=" + c + ",location=" + c + ",directories=0,status=" + c + ",menubar=" + c + ",scrollbars=0,resizable=0,width=600,height=562,left=100,top=100");
	mywin.focus()
}

function mOvr(src,clrOver){src.style.cursor = 'hand';src.bgColor = clrOver} 
function mOut(src,clrIn){src.style.cursor = 'default';src.bgColor = clrIn} 
function mClk(src){src.children.tags('A')[0].click()}

function menuBtnDn(obj){if(document.all||document.getElementById){obj.className='buttonDn'}else{if (document.layers) {obj.borderStyle = 'none'}}}
function menuBtnUp(obj){if(document.all||document.getElementById){obj.className='buttonUp'}else{if (document.layers) {obj.borderColor = 'grey'; obj.borderWidthLeft = '0pt'; obj.borderWidthRight = '1pt'; obj.borderWidthTop = '1pt'; obj.borderWidthBottom = '0pt'; obj.borderStyle = 'outset'}}}
function menuBtnPrs(obj){if(document.all||document.getElementById){obj.className='buttonPrs'; mClk(obj)}}

//script for showHide
function show(itm, obj) {
  if(document.all){
		var pL=getPos(itm,"Left");
		while(pL>250){pL-=250}
		document.all[obj].style.pixelLeft=pL
		document.all[obj].style.pixelTop = getPos(itm,"Top") + itm.offsetHeight;
		document.all[obj].style.display = "block";
		itm.style.cursor="help";
  }else{
		if (document.getElementById){
			var pL=getPos(itm,"Left");
			while(pL>250){pL-=250}
			document.getElementById(obj).style.left=pL+'px';
			document.getElementById(obj).style.top = (getPos(itm,"Top")+20)+'px';
			document.getElementById(obj).style.display = "block";
			itm.style.cursor="help";
		}else{
			if (document.layers) {
				//document.layers[obj].pageX = document.layers[itm].pageX
				//document.layers[obj].pageY = document.layers[itm].pageY + itm.clip.height;
				//document.layers[obj].display = "block";
				//itm.cursor="help";
			}
		}
	}
}
function hide(obj) {
  if(document.all){
	    document.all[obj].style.display = "none";
	}
	else{
		if (document.getElementById){
			document.getElementById(obj).style.display = "none";
		}else{
			if (document.layers) {
				//document.layers[obj].display="none";
			}
		}
	}
}
function getPos(el,sProp) {
	var iPos = 0
	while (el!=null) {
		iPos+=el["offset" + sProp]
		el = el.offsetParent
	}
	return iPos
}
function preload(imgs,dir){
	for(var g in imgs.split(','))(new Image).src=(dir!=null?dir:'')+g+'.gif'
}
