/*
 
Correctly handle PNG transparency in Win IE 5.5 & 6.
http://homepage.ntlworld.com/bobosola. Updated 18-Jan-2006.

Use in <HEAD> with DEFER keyword wrapped in conditional comments:
<!--[if lt IE 7]>
<script defer type="text/javascript" src="pngfix.js"></script>
<![endif]-->

*/

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
      }
   }
}
<!--
/****************************************************
     Author: Eric King
     Url: http://redrival.com/eak/index.shtml
     This script is free to use as long as this info is left in
     Featured on Dynamic Drive script library (http://www.dynamicdrive.com)
****************************************************/
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}
// -->

/* Do not remove copyright information
** v 1.0 | Copyright 2006 | Thierry Koblentz, www.TJKDesign.com
Read: http://www.tjkdesign.com/articles/easy_way_to_generate_validation_links.asp  */

function TJK_validators(newWin){ // v 1.1 Copyright 2006 | Thierry Koblentz | www.TJKDesign.com
var TJK_target = (newWin) ? "_blank" : "_self";
var TJK_el =document.getElementById("TJK_validators");
	if (TJK_el){		
		var zAnchor = TJK_el.getElementsByTagName("a");
		var TJK_path;
		var TJK_CSS="http://jigsaw.w3.org/css-validator";
		var TJK_HTML="http://validator.w3.org/check?verbose=1";
		var TJK_508="http://www.contentquality.com/mynewtester/cynthia.exe?rptmode=-1";
		var TJK_WAI="http://www.contentquality.com/mynewtester/cynthia.exe?rptmode=2";
		for (var i=0;i<zAnchor.length;i++){
			if (zAnchor[i].href != null){
				if (zAnchor[i].href.indexOf(TJK_CSS) >= 0){TJK_path=TJK_CSS+"/validator?profile=css&amp;uri="+top.location.protocol+"//"+top.location.hostname+top.location.pathname;}
				if (zAnchor[i].href.indexOf(TJK_HTML) >= 0){TJK_path=TJK_HTML+"&amp;uri="+top.location.protocol+"//"+top.location.hostname+top.location.pathname;}
				if (zAnchor[i].href.indexOf(TJK_508) >= 0){TJK_path=TJK_508+"&url1="+top.location.protocol+"//"+top.location.hostname+top.location.pathname;}
				if (zAnchor[i].href.indexOf(TJK_WAI) >= 0){TJK_path=TJK_WAI+"&url1="+top.location.protocol+"//"+top.location.hostname+top.location.pathname;}
			}
			if(newWin){
				zAnchor[i].title=(zAnchor[i].title)?" (opens in new window).":"Opens in new window.";
			}
			zAnchor[i].href=TJK_path;
			zAnchor[i].target=TJK_target;
		}
	}
}