var fileref=document.createElement("link")
fileref.setAttribute("rel", "stylesheet")
fileref.setAttribute("type", "text/css")
fileref.setAttribute("href", "style/iepngfix.css")
document.getElementsByTagName("head")[0].appendChild(fileref)


function ContentHeightCorrection() {
	$leftHeight = document.getElementById('leftcolumn').offsetHeight;
	$contentHeight = document.getElementById('contentcolumn').offsetHeight;
	if($contentHeight < $leftHeight) {document.getElementById('contentcolumn').style.height = ($leftHeight-25) + 'px'}
}

function popupPic(FILE, FEATURES, H, W) {

        CONTENT = "<html><head><title>DUAL P SYSTEMS</title><script type=\"text/javascript\">windowHeight=" + H + "; windowWidth=" + W + "; if (parseInt(navigator.appVersion) >= 4) window.moveTo((screen.width/2)-(windowWidth/2+10),(screen.height/2)-(windowHeight/2+20)); </script></head>" + "<body style=\"margin:0 auto;\"><center><a href=\"javascript:void(0)\" onClick='window.close()' style=\"cursor:pointer;\"><img src=\"" + FILE + "\" border=\"0\" height=\"" + H + "\" width=\"" + W + "\" alt=\" \" /></a>" + "</center>" + "</body></html>";
        pop = window.open("","",FEATURES);
        pop.document.open();
        pop.focus();
        pop.document.write(CONTENT);
        pop.document.close();

    }

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_findObj(n, d) { //v4.01
  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);
  if(!x && d.getElementById) x=d.getElementById(n); 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];}
}


// Wizard popup
/*<a href="http://wsabstract.com" onclick="NewWindow(this.href,'name','400','400','yes');return false">Website</a>*/
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}
