
var arVersion = navigator.appVersion.split("MSIE")
var version = parseFloat(arVersion[1])

function fixPNG(myImage) 
{
    if ((version >= 5.5) && (version < 7) && (document.body.filters)) 
    {
       var imgID = (myImage.id) ? "id='" + myImage.id + "' " : ""
	   var imgClass = (myImage.className) ? "class='" + myImage.className + "' " : ""
	   var imgTitle = (myImage.title) ? 
		             "title='" + myImage.title  + "' " : "title='" + myImage.alt + "' "
	   var imgStyle = "display:inline-block;" + myImage.style.cssText
	   var strNewHTML = "<span " + imgID + imgClass + imgTitle
                  + " style=\"" + "width:" + myImage.width 
                  + "px; height:" + myImage.height 
                  + "px;" + imgStyle + ";"
                  + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
                  + "(src=\'" + myImage.src + "\', sizingMethod='scale');\"></span>"
	   myImage.outerHTML = strNewHTML	  
    }
}

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 goURL(url)
{
	window.location.href = url;
}


function CallPrint(strid)
{
	var prtContent = document.getElementById(strid);
	var prtTitle = document.getElementById("imgTitle");
	 var strOldOne = prtContent.innerHTML;
	 var WinPrint = window.open('','','letf=0,top=0,width=450px,height=550px,toolbar=0,scrollbars=0,status=0');
	 WinPrint.document.writeln("<html><head><title></title><LINK href='Stylesheet/deltion.css' type='text/css' rel='stylesheet'></head><body style='margin:10px;'>");
     WinPrint.document.writeln("<div class='top-header-img' id='logo' title='Deltion'><img src='http://www.deltion.co.uk/images/deltion-logo.gif' alt='Deltion' title='Deltion' width='168' height='47' /></div>");
	 WinPrint.document.writeln("<div class='prt-hd'>"+prtTitle.title+"</div>");
	 WinPrint.document.write(prtContent.innerHTML);
	 WinPrint.document.writeln("</body></html>");
	 WinPrint.document.close();
	 WinPrint.focus();
	 WinPrint.print();
	 WinPrint.close();
	 prtContent.innerHTML=strOldOne;
}

function emailthisPage()
{
	var url = window.location.pathname;
	var filename = url.substring(url.lastIndexOf('/')+1);
	window.location.href= "mail_this_page.asp?pg=" + filename;
}


function HeaderMenuHighlights(mid)
{
	if(mid != "")
    {
        document.getElementById("HeaderMenu"+mid).className = "active";
    }
}

function LeftMenuHighlights(mid)
{
	if(mid != "")
    {
        document.getElementById("LeftMenu"+mid).className = "active";
    }
}

function footrMenuHighlights(mid)
{
	if(mid != "")
    {
        document.getElementById("FooterMenu"+mid).className = "active";
    }
}

function HeaderTopMenuHighlights(mid)
{
	if(mid != "")
    {
        document.getElementById("HeaderTopMenu"+mid).className = "active";
    }
}

