﻿// JavaScript Document

// picture fade 
// picture popupperer
// htmlpage popupperer


<!--
// copyright by www.lostvision.org .... who??? 
// well.. tried to find out who and what.. but no such thing as lostvision.org so sorry copyright :P 
//-->
			nereidFadeObjects = new Object();

			nereidFadeTimers = new Object();
			
			function nereidFade(object, destOp, rate, delta){
			if (!document.all)
			return
			    if (object != "[object]"){
			        setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")",0);
			        return;
			    }
			        
			    clearTimeout(nereidFadeTimers[object.sourceIndex]);
			    
			    diff = destOp-object.filters.alpha.opacity;
			    direction = 1;
			    if (object.filters.alpha.opacity > destOp){
			        direction = -1;
			    }
			    delta=Math.min(direction*diff,delta);
			    object.filters.alpha.opacity+=direction*delta;
			
			    if (object.filters.alpha.opacity != destOp){
			        nereidFadeObjects[object.sourceIndex]=object;
			        nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);
			    }
			}

function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}


//-->
//--> begin picture popupperer script
var popupHandle;

function popup(picUrlString, windowWidth, windowHeight)
{

  // Always close the old one, so only one at a time is open
  if(popupHandle || popupHandle!=null)
  {
    if (!popupHandle.closed) popupHandle.close();
  }
  popupHandle=null;

  // create a feature string for the popup
  var x=(screen.width-windowWidth)/2
  var y=(screen.height-windowHeight)/2
  var featureString = "toolbar=no,scrollbars=no,resizable=no"
  featureString = ',left='+x + ',top='+y
  featureString += ',width='+windowWidth+',height='+windowHeight

  // html content of the popup
  var htmlString = "<html><head><title>Click to close.</title></head>"
  htmlString += "<body marginwidth=0 marginheight=0 leftmargin=0 topmargin=0 bgcolor=black text=\"white\" onclick=\"self.close()\">"
  htmlString += "<A HREF=\"javascript:window.close();\" title=\"Close.\" >"
  htmlString += "<IMG SRC=\"" + picUrlString + "\" BORDER=\"0\" WIDTH=" + windowWidth + " HEIGHT=" + windowHeight + "></A>"
  htmlString += "</body></html>"

  popupHandle = window.open("" ,"popup",featureString)
  popupHandle = window.open("" ,"popup")
  popupHandle.document.clear();
  popupHandle.document.writeln(htmlString);
  popupHandle.focus();
  popupHandle.document.close(); // should trigger the picture loading.
  return popupHandle;

}

function winclose()
{
  if (window.popupHandle!=null && !window.popupHandle.closed)
  {
    window.popupHandle.close();
  }
}

function doNothing(){} // does nothing but required by JavaScript in this case
//-->

//--> end picture popupperer script

//--> begin html page popupperer


function popitup(url)
{
	newwindow=window.open(url,'name','height=600,width=650');
	if (window.focus) {newwindow.focus()}
	return false;
}

// --> end

//--> begin statcounter


var sc_project=1830894; 
var sc_invisible=1; 
var sc_partition=17; 
var sc_security="ad4df8bf"; 



// --> end