// JavaScript Document
<!--

function correctPNG(){
   var arVersion = navigator.appVersion.split("MSIE")
   var version = parseFloat(arVersion[1])
   if ((version >= 5.5) && (document.body.filters)){
      for(var i=0; i<document.images.length; i++){
         var img = document.images[i]
         var imgName = img.src.toUpperCase()
         if (imgName.substring(imgName.length-3, imgName.length) == "PNG"){
            var imgID = (img.id) ? "id='" + img.id + "' " : "";
            var imgClass = (img.className) ? "class='" + img.className + "' " : "";
            var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' ";
            var imgStyle = "display:inline-block;" + img.style.cssText ;
            //if (img.align == "left"){ imgStyle = "float:left;" + imgStyle; }
            //if (img.align == "right"){ imgStyle = "float:right;" + imgStyle; }
            if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
            var strNewHTML = "<span " + imgID + imgClass + imgTitle
            + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
            + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
            + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>";
            img.outerHTML = strNewHTML;
            i = i-1;
         }
      }
   }    
}


function init(){
	addEvent(window, "load", correctPNG);
	addEvent(window, "load", alterAnchors);
}

function addEvent(obj, evType, fn){
	if (obj.addEventListener){
   		obj.addEventListener(evType, fn, false);
   		return true;
	}else if (obj.attachEvent){
   		var r = obj.attachEvent("on"+evType, fn);
   		return r;
 	}else{
   		return false;
 	}
}


function openwin(inpage){
	window.open(inpage, '_blank');
}

//<!--MOUSE TRACKER-->//

cursorX = 0;
cursorY = 0;
offsetX = 0;
offsetY = 0;
infoboxW = 0;

function coor() {
	
	
	if (document.getElementById('infobox').style.posLeft <= 0)
	 document.getElementById('infobox').style.posLeft = 0;
	else
	 document.getElementById('infobox').style.posLeft = finalX;
	
}


function showquote(quote_num) {
	//document.getElementById(in_obj).className = 'selected';
	blockquotes = document.getElementsByTagName('blockquote');
	for(var i = 0; i<blockquotes.length;i++){
		bq_span = blockquotes[i].getElementsByTagName('span');
		if(blockquotes[i].id=="quote_"+quote_num){
			bq_span[0].style.display = "inline";
			bq_span[1].style.display = "none";
		}else{
			bq_span[1].style.display = "inline";
			bq_span[0].style.display = "none";
		}
		//alert(blockquotes[i].id);
	}
}

function hide_infobox() {
	document.getElementById('quotebox').style.display = 'none';
}

function alterAnchors(){
	as = document.getElementsByTagName('a');
	if(as.length>0){
		for(var i = 0; i<as.length;i++){
			atitle = String(as[i].title);
			if(atitle.indexOf("New Window: ")==0){
				as[i].target="_blank";
			}
		}
	}
}
-->