window.defaultStatus="";function getRefToDivMod(a,b){b||(b=document);if(document.layers)if(b.layers[a])return b.layers[a];else{for(var c=0,e;!e&&c<b.layers.length;c++)e=getRefToDivMod(a,b.layers[c].document);return e}if(document.getElementById)return b.getElementById(a);if(document.all)return b.all[a];return document[a]}
function resizeWinTo(){document.images.length||(document.images[0]=document.layers[0].images[0]);if(!document.images[0].height||window.doneAlready)return false;var a=getRefToDivMod("myID");if(!a)return false;var b=a.clip?a.clip.width:a.offsetWidth;a=a.clip?a.clip.height:a.offsetHeight;if(!a)return false;if(!a||window.doneAlready)return false;window.doneAlready=true;var c=window;c.resizeTo(b+200,a+200);var e=0,f=0,d=c.document.documentElement,g=c.document.body;if(c.innerWidth){e=c.innerWidth;f=c.innerHeight}else if(d&&
d.clientWidth){e=d.clientWidth;f=d.clientHeight}else if(g&&g.clientWidth){e=g.clientWidth;f=g.clientHeight}if(window.opera&&!document.childNodes)e+=16;c.resizeTo(b+(b+200-e),a+(a+200-f));return false}
function openPerfectPopup(a,b,c,e){PositionY=PositionX=20;defaultWidth=600;defaultHeight=400;var f="";f=b+30;var d;d="<table border='0' cellspacing='10' cellpadding='0' style='text-align:center; width:"+b+"px; height:100px;'>\n";d+="<tr><td style='white-space:nowrap; width:"+b+"px;'>";d+="<img src='"+a+"' alt='' style='width:"+b+"px;'  />";d+="</td></tr>\n";d+="<tr><td class='poptext' style='width:"+b+"px; text-align:left;'>"+e+"</td></tr>\n";d+="<tr><td colspan='2' style='white-space:nowrap; width:"+
b+"px; text-align:right;'><input class='button' type='button' value='close' onClick='window.close();' /></td></tr>\n";d+="</table>\n";a=window.open("","name","scrollbars=no,resizable=1,width="+defaultWidth+",height="+defaultHeight+",left="+PositionX+",top="+PositionY);if(!a)return true;a.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html>\n<head>\n<title>'+c+'</title>\n<script type="text/javaScript">\n//get reference object for popup\nfunction getRefToDivMod( divID, oDoc ) {\n\tif( !oDoc ) { oDoc = document; }\n\tif( document.layers ) {\n\t\tif( oDoc.layers[divID] ) { return oDoc.layers[divID]; } else {\n\t\t\tfor( var x = 0, y; !y && x < oDoc.layers.length; x++ ) {\n\t\t\t\ty = getRefToDivMod(divID,oDoc.layers[x].document);\n\t\t\t}\n\t\t\treturn y;\n\t\t}\n\t}\n\tif( document.getElementById ) { return oDoc.getElementById(divID); }\n\tif( document.all ) { return oDoc.all[divID]; }\n\treturn document[divID];\n}\n\n//resize method for popup window (resize to fit contents)\nfunction resizeWinTo() {\n\tif( !document.images.length ) { document.images[0] = document.layers[0].images[0]; }\n\tif( !document.images[0].height || window.doneAlready ) { return; } //in case images are disabled\n\tvar oH = getRefToDivMod( "myID" ); if( !oH ) { return false; }\n\tvar oW = oH.clip ? oH.clip.width : oH.offsetWidth;\n\tvar oH = oH.clip ? oH.clip.height : oH.offsetHeight; if( !oH ) { return false; }\n\tif( !oH || window.doneAlready ) { return; } //in case images are disabled\n\twindow.doneAlready = true; //for Safari and Opera\n\tvar x = window; x.resizeTo( oW + 200, oH + 200 );\n\tvar myW = 0, myH = 0, d = x.document.documentElement, b = x.document.body;\n\tif( x.innerWidth ) { myW = x.innerWidth; myH = x.innerHeight; }\n\telse if( d && d.clientWidth ) { myW = d.clientWidth; myH = d.clientHeight; }\n\telse if( b && b.clientWidth ) { myW = b.clientWidth; myH = b.clientHeight; }\n\tif( window.opera && !document.childNodes ) { myW += 16; }\n\tx.resizeTo( oW = oW + ( ( oW + 200 ) - myW ), oH = oH + ( (oH + 200 ) - myH ) );\n}\n<\/script>\n<style type="text/css">\nhtml,body{\n\ttext-align:center;\n\tfont-family: arial, verdana, helvetica, tahoma, sans-serif;\n\tfont-size: 11px;\n\tcolor: #444;\n\tmargin-left: auto;\n  \tmargin-right: auto;\t\n  \tmargin-top:0px;\n\tmargin-bottom:0px;\n\tpadding: 0px;\n\tbackground-color:#FFF;\n\theight:100%;\n\tcursor:default;\n}\n.poptext{\n\tfont-size: 11px;\n\ttext-align:left;\n\tcolor:#444;\n\tline-height:140%;\n\tvertical-align:top;\n\ttext-align:left;\n}\n.button{\n\tborder:1px solid #444;\n\tcolor: #444;\n\tbackground-color:#FFF;\n\tfont-size: 11px;\n\tpadding:2px;\n\tcursor:pointer;\n\twidth:50px;\n}\n</style>\n</head>\n<body onload="resizeWinTo();">\n'+
(document.layers?'<layer left="0" top="0" id="myID">\n':'<div style="width:'+f+'px; position:absolute;left:0px;top:0px;" id="myID" >\n')+d+(document.layers?"</layer>\n":"</div>\n")+"</body>\n</html>\n");a.document.close();a.focus&&a.focus();return false};
