/* Copyright 1997-2005 Syndicat. All rights reserved. */

var D=document,NN=D.layers;

function ref(n,d){var p,i,x;d=d?d:D;if(!(x=d[n])&&d.all)x=d.all[n];for(i=0;!x&&i<d.forms.length;i++)x=d.forms[i][n];for(i=0;!x&&d.layers&&i<d.layers.length;i++)x=ref(n,d.layers[i].document);if(!x&&D.getElementById)x=d.getElementById(n);return x}
function sref(t){return NN?ref(t):ref(t).style}

function divShow(t){sref(t).visibility=NN?'show':'visible'}
function divHide(t){sref(t).visibility=NN?'hide':'hidden'}
function divSet(t,c){with(ref(t)){if(NN){with(document){open();write(c);close()}}else{innerHTML=c}}}
function pxToInt(s){return parseInt((new String(s)).replace(/px/,''))}
function intToPx(i){return NN?i:i+'px'}

function setLanguage(lang){D.location=lang.options[lang.options.selectedIndex].value}
function printPage(){if(window.print){window.print()}}

function overTR(me){
	if(me && me.className.indexOf('_active')==-1){
		me.className	= me.className + "_active"
	}
}

function outTR(me){
	if(me && me.className.indexOf('_active')>0){
		me.className	= me.className.replace("_active","")
	}
}

function get(url){document.location=url}