<!--



function getArgs()
{
  var regexS = "[\\#&]([^&#]*)";
  var regex = new RegExp( regexS );
  var tmpURL = window.location.href;
  var results = regex.exec( tmpURL );
  if( results == null )
    return "";
  else
    return results[1];
}


function getArgs2() {
	var args = new Object();
	var query = location.search.substring(1);
	var pairs = query.split("&");
	for(var i = 0; i < pairs.length; i++) {
		var pos = pairs[i].indexOf('=');
		if (pos == -1) continue;
		var argname = pairs[i].substring(0,pos);
		var value = pairs[i].substring(pos+1);
		args[argname] = unescape(value);
	}
	return args;
}
var args = getArgs();
if (args.a){	
	a = parseFloat(args.a);
	// alert(a); 
}



function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  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=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_swapLabel(elt,lbl,nm){
	if ((x=MM_findObj(elt))!=null){		
		alert(lbl);
		x.innerHTML=lbl;
		x.name=nm;
		//x1=MM_findObj(nm);
	}  	   
}

function MM_tryThis(elt){
	if ((x=MM_findObj(elt))!=null){
		nm=x.name;
		x1=MM_findObj(nm);
		doEventDispatch(nm);
	}  	   
}


function doEventDispatch(myelt) {
	var evt = null,
	elm = null;

	if(document.getElementById) {
		elm = document.getElementById(myelt);
	}
	if(document.createEvent) {
		evt = document.createEvent('MouseEvents');
	}

	if(elm && elm.dispatchEvent && evt && evt.initMouseEvent) {
		evt.initMouseEvent(
			'click',
			true, // Click events bubble
			true, // and they can be cancelled
			document.defaultView, // Use the default view
			1, // Just a single click
			0, // Don't bother with co-ordinates
			0,
			0,
			0,
			false, // Don't apply any key modifiers
			false,
			false,
			false,
			0, // 0 - left, 1 - middle, 2 - right
			null); // Click events don't have any targets other than
		// the recipient of the click
		elm.dispatchEvent(evt);
	}else{
		elm.fireEvent("onclick");
	}

}

/*************************************************************************
  This code is from Dynamic Web Coding at http://www.dyn-web.com/
  Copyright 2001-3 by Sharon Paine 
  See Terms of Use at http://www.dyn-web.com/bus/terms.html
  regarding conditions under which you may use this code.
  This notice must be retained in the code as is!
*************************************************************************/

// onresize for ns4
var origWidth, origHeight;
if (document.layers) {
	origWidth = window.innerWidth; origHeight = window.innerHeight;
	window.onresize = function() { if (window.innerWidth != origWidth || window.innerHeight != origHeight) history.go(0); }
}

var cur_lyr;	// holds id of currently visible layer
function swapLayers(id) {
  if (cur_lyr) hideLayer(cur_lyr);
  showLayer(id);
  cur_lyr = id;
}

function initLayer(id) {
	var lyr = getElemRefs(id+'2');
	if (lyr && lyr.css) {
		lyr.css.visibility = "visible";
		return true;
	}else{
		return false;
	}
}

function showLayer(id) {
		var lyr = getElemRefs(id);
		if (lyr && lyr.css) {
			lyr.css.visibility = "visible";
			return true;
		}else{
			return false;
		}
}

function hideLayer(id) {
		var lyr = getElemRefs(id);
		if (lyr && lyr.css){
			lyr.css.visibility = "hidden";
			return true;
		}else{
			return false;
  		}
}

function getElemRefs(id) {
	var el = (document.getElementById)? document.getElementById(id): (document.all)? document.all[id]: (document.layers)? document.layers[id]: null;
	if (el) el.css = (el.style)? el.style: el;
	return el;
}

function TextScroll()
{
    this.div_name = 'lyr';
    this.name = 'div_scroll1';
    var	scrollname=this.name;
    this.scrollCursor = anchor;
    this.speed = 10;
    this.timeoutID = 0;
    this.div_obj = null;
    this.left_name = 'goleft';
    this.left2_name = 'goleft2';
    this.right_name = 'goright';
    this.right2_name = 'goright2';

	{
        	if (document.getElementById) {
            		div_obj = document.getElementById(this.div_name);
            		if (div_obj) {
                		this.div_obj = div_obj;
                		this.div_obj.style.overflow = 'hidden';
            		}
            		div_up_obj = document.getElementById('goleft');
            		div_up_obj2 = document.getElementById('goleft2');
            		div_dn_obj = document.getElementById('goright');
            		div_dn_obj2 = document.getElementById('goright2');
            		if (div_up_obj && div_dn_obj) {
				div_up_obj.onmouseover = function() { eval(scrollname + ".MyScrollLeft();") };
				div_up_obj.onmouseout = function() { eval(scrollname + ".stopScroll();") };

				div_up_obj2.onmouseover = function() { eval(scrollname + ".MyScrollLeft2();") };
				div_up_obj2.onmouseout = function() { eval(scrollname + ".stopScroll();") };

				div_dn_obj.onmouseover = function() { eval(scrollname + ".MyScrollRight();") };
				div_dn_obj.onmouseout = function() { eval(scrollname + ".stopScroll();") };	

				div_dn_obj2.onmouseover = function() { eval(scrollname + ".MyScrollRight2();") };
				div_dn_obj2.onmouseout = function() { eval(scrollname + ".stopScroll();") };		
            		}
        	}
    	}

	this.stopScroll = function() {
        	clearTimeout(this.timeoutID);
    	}

	this.MyScrollLeft = function() {
        	if (this.div_obj) {
            		this.scrollCursor = (this.scrollCursor - (this.speed)) < 0 ? 0 : this.scrollCursor - (this.speed+30);
            		this.div_obj.scrollLeft = this.scrollCursor;
            		this.timeoutID = setTimeout(this.name + ".MyScrollLeft()", 60);
        	}
    	}

	this.MyScrollLeft2 = function() {
        	if (this.div_obj) {
            		this.scrollCursor = (this.scrollCursor - this.speed) < 0 ? 0 : this.scrollCursor - this.speed;
            		this.div_obj.scrollLeft = this.scrollCursor;
            		this.timeoutID = setTimeout(this.name + ".MyScrollLeft()", 60);
        	}
    	}

	this.MyScrollRight = function() {
        	if (this.div_obj) {
            		this.scrollCursor += (this.speed+30);
            		this.div_obj.scrollLeft = this.scrollCursor;
            		this.timeoutID = setTimeout(this.name + ".MyScrollRight()", 60);
        	}
	}

	this.MyScrollRight2 = function() {
        	if (this.div_obj) {
            		this.scrollCursor += this.speed;
            		this.div_obj.scrollLeft = this.scrollCursor;
            		this.timeoutID = setTimeout(this.name + ".MyScrollRight()", 60);
        	}
	}


	this.resetScroll = function() {
        	if (this.div_obj) {
			this.div_obj.scrollTop = 0;
			this.scrollCursor = 0;
        	}
    	}
}

function gotopos(scrollname, div_name) {
	this.speed = 1;
	this.name = scrollname;	
	if (document.getElementById) {
		this.div_obj = document.getElementById(div_name);
		this.div_obj.scrollLeft = anchor;
        }
}

function gotopos1(scrollname, div_name) {
	this.speed = 1;
	this.name = scrollname;	
	if (document.getElementById) {
		this.div_obj = document.getElementById(div_name);
		this.div_obj.scrollLeft = anchor1;
        }
}
function gotopos2(scrollname, div_name) {
	this.speed = 1;
	this.name = scrollname;	
	if (document.getElementById) {
		this.div_obj = document.getElementById(div_name);
		this.div_obj.scrollLeft = anchor2;
        }
}

var opt=-1;
var opt1=-1;

function gomenu(elt,nb,level,move){
	if (level=='') {
		opt=nb;
	}
	if (level==1) opt1=nb;

	outmenu(elt,level);
	overmenu(elt,nb);
	var i=1;
	var j=1;
	var max=10;
	var elt_name=elt+'_'+i;
	while((hideLayer(elt_name)&&(i<=max))){
		var sub_elt_name=elt_name+'_'+j;
		while((hideLayer(sub_elt_name)&&(j<=max))){
			j++;
			var sub_elt_name=elt_name+'_'+j;		
		}			
		i++;
		var elt_name=elt+'_'+i;
		j=1;
	}
	var elt_name=elt+'_'+nb;
	showLayer(elt_name);
	if (move){
		if (level==''){
			gotopos1('div_scroll1', 'lyr');
			div_scroll1.scrollCursor=anchor1;
		}
		if (level==1) {
			gotopos2('div_scroll1', 'lyr');	
			div_scroll1.scrollCursor=anchor2;
		}
	}
}

function gomenu_archives(elt,nb,level,move){

}

function overmenu(elt,nb){
	var elt_name=getElemRefs(elt+nb);
	if (elt_name) elt_name.className='selected';
}

function outmenu(elt,level){
	var i=1;
	var max=10;
	var elt_name=getElemRefs(elt+i);
	while((elt_name)&&(i<=max)){
		if (((level=='')&&(opt==i))||((level==1)&&(opt1==i))){
			elt_name.className='selected';
		}else{
			elt_name.className='unselected';
		}
		i++;
		var elt_name=getElemRefs(elt+i);
	}
}


/*************************************************
Mouse Position
****************************************************/

/*
// Detect if the browser is IE or not.
// If it is not IE, we assume that the browser is NS.
var IE = document.all?true:false

// If NS -- that is, !IE -- then set up for mouse capture
if (!IE) document.captureEvents(Event.MOUSEMOVE)

// Set-up to use getMouseXY function onMouseMove
document.onmousemove = getMouseXY;

// Temporary variables to hold mouse x-y pos.s
var tempX = 0
var tempY = 0

// Main function to retrieve mouse x-y pos.s

function getMouseXY(e) {
  if (IE) { // grab the x-y pos.s if browser is IE
    tempX = event.clientX + document.body.scrollLeft
    tempY = event.clientY + document.body.scrollTop
  } else {  // grab the x-y pos.s if browser is NS
    tempX = e.pageX
    tempY = e.pageY
  }  
  // catch possible negative values in NS4
  if (tempX < 0){tempX = 0}
  if (tempY < 0){tempY = 0}  
  // show the position values in the form named Show
  // in the text fields named MouseX and MouseY
   
  document.loginform.login.value=tempX;

  // tempY
  return true
}

*/

//-->