var gAgent=window.navigator.userAgent;var gAgentVers=parseInt(gAgent.charAt(gAgent.indexOf("/")+1),10);function is_explorer(){return gAgent.indexOf("MSIE")>0}var gImageHandling="";function check_flash(){var E=new Date();gImageHandling="none";if(navigator.mimeTypes&&navigator.mimeTypes["application/x-shockwave-flash"]&&navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){if(navigator.plugins&&navigator.plugins["Shockwave Flash"]){var D=navigator.plugins["Shockwave Flash"].description;var A=parseInt(D.charAt(16));if(A>=3){gImageHandling="swf"}}}if(gImageHandling=="none"&&navigator.mimeTypes&&navigator.mimeTypes["video/quicktime"]&&navigator.mimeTypes["video/quicktime"].enabledPlugin){var C=navigator.plugins;for(var B=0;B<C.length;B++){if(C[B].name.indexOf("QuickTime")>=0){var D=navigator.plugins[B].name;var A=parseInt(D.charAt(18));if(A>=2){gImageHandling="mov"}B=C.length}}}if(gImageHandling=="none"&&navigator.userAgent&&navigator.userAgent.indexOf("MSIE")>=0&&(navigator.userAgent.indexOf("Windows 95")>=0||navigator.userAgent.indexOf("Windows NT")>=0||navigator.userAgent.indexOf("Windows 98")>=0||navigator.userAgent.indexOf("Windows 2")>=0||navigator.userAgent.indexOf("Win32")>=0)){document.write("<script language=VBScript> \n");document.write('gImageHandling = "gif"\n');document.write("on error resume next \n");document.write('if (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3"))) then\n');document.write('  gImageHandling = "swf"\n');document.write("end if\n");document.write("<\/script> \n")}if(gImageHandling=="none"&&!(navigator.appName&&navigator.appName.indexOf("Netscape")>=0&&navigator.appVersion.indexOf("2.")>=0)){gImageHandling="gif"}E.setFullYear(E.getFullYear()+1);document.cookie="flashHandling="+gImageHandling+"; expires="+E.toGMTString()+"; domain=nykris.com; path=/"}function check_flash_nocookie(){gImageHandling="none";if(navigator.mimeTypes&&navigator.mimeTypes["application/x-shockwave-flash"]&&navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){if(navigator.plugins&&navigator.plugins["Shockwave Flash"]){var D=navigator.plugins["Shockwave Flash"].description;var A=parseInt(D.charAt(16));if(A>=3){gImageHandling="swf"}}}if(gImageHandling=="none"&&navigator.mimeTypes&&navigator.mimeTypes["video/quicktime"]&&navigator.mimeTypes["video/quicktime"].enabledPlugin){var C=navigator.plugins;for(var B=0;B<C.length;B++){if(C[B].name.indexOf("QuickTime")>=0){var D=navigator.plugins[B].name;var A=parseInt(D.charAt(18));if(A>=2){gImageHandling="mov"}B=C.length}}}if(gImageHandling=="none"&&navigator.userAgent&&navigator.userAgent.indexOf("MSIE")>=0&&(navigator.userAgent.indexOf("Windows 95")>=0||navigator.userAgent.indexOf("Windows NT")>=0||navigator.userAgent.indexOf("Windows 98")>=0||navigator.userAgent.indexOf("Windows 2")>=0||navigator.userAgent.indexOf("Win32")>=0)){document.write("<script language=VBScript> \n");document.write('gImageHandling = "gif"\n');document.write("on error resume next \n");document.write('if (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3"))) then\n');document.write('  gImageHandling = "swf"\n');document.write("end if\n");document.write("<\/script> \n")}if(gImageHandling=="none"&&!(navigator.appName&&navigator.appName.indexOf("Netscape")>=0&&navigator.appVersion.indexOf("2.")>=0)){gImageHandling="gif"}}function insert_flash(C,D,A,B){var E=document.cookie;if(E.indexOf("flashHandling")==-1){check_flash_nocookie();E=gImageHandling}if(E.indexOf("none")!=-1){}else{if(E.indexOf("swf")!=-1){document.write('<embed src="'+C+'.swf"');document.write(" swLiveConnect=false width="+D+" height="+A);document.write(" loop=false quality=high scale=noborder bgcolor="+B);document.write(' type="application/x-shockwave-flash">');document.write("</embed>");document.write('<noembed><img src="'+C+'.gif" width='+D+" height="+A+' border=0 usemap="#'+C+'"></noembed>')}else{if(E.indexOf("mov")!=-1){document.write('<embed src="'+C+'.mov"');document.write(' autoplay="true" controller="false" width="'+D+'" height="'+A+'"');document.write(" loop=false bgcolor="+B);document.write(' type="video/quicktime">');document.write("</embed>");document.write('<noembed><img src="'+C+'.gif" width='+D+" height="+A+' border=0 usemap="#'+C+'"></noembed>')}else{document.write('<img src="'+C+'.gif" width='+D+" height="+A+' border=0 usemap="#'+C+'">')}}}}function insert_random_flash(F,D,B,C,A){var E=document.cookie;if(E.indexOf("flashHandling")==-1){check_flash_nocookie();E=gImageHandling}imgNum=(Math.floor((new Date()).getTime()/10)%A)+1;imgNumStr=(new Number(imgNum)).toString();if(imgNum<10){imgNumStr="0"+imgNumStr}if(E.indexOf("none")!=-1){}else{if(E.indexOf("swf")!=-1){document.write('<embed src="'+F+imgNumStr+'.swf"');document.write(" swLiveConnect=false width="+D+" height="+B);document.write(" loop=false quality=high scale=noborder bgcolor="+C);document.write(' type="application/x-shockwave-flash">');document.write("</embed>");document.write('<noembed><img src="'+F+imgNumStr+'.gif" width='+D+" height="+B+' border=0 usemap="#'+name+'"></noembed>')}else{if(E.indexOf("mov")!=-1){document.write('<embed src="'+F+imgNumStr+'.mov"');document.write(' autoplay="true" controller="false" width="'+D+'" height="'+B+'"');document.write(" loop=false bgcolor="+C);document.write(' type="video/quicktime">');document.write("</embed>");document.write('<noembed><img src="'+F+imgNumStr+'.gif" width='+D+" height="+B+' border=0 usemap="#'+name+'"></noembed>')}else{document.write('<img src="'+F+imgNumStr+'.gif" width='+D+" height="+B+' border=0 usemap="#'+name+'">')}}}}function insert_random_image(D,G,H,I,J,A,E){var C,F="";var B=document.cookie;if(B.indexOf("flashHandling")==-1){check_flash_nocookie();B=gImageHandling}if(B.indexOf("none")==-1){C=(Math.floor((new Date()).getTime()/10)%E)+1;F=(new Number(C)).toString();if(C<10){F="0"+F}document.write('<img src="'+G+F+"."+D+'" width='+H+" height="+I+" vspace="+A+" hspace="+J+">")}}var gRollovers=new Object();var gBartlettMenu=new Object();var gRolloversPath="*";function find_element(B,E){if(gAgentVers<4){return document[B]}var A=E?E.document:document;var D=A[B];if(!D){for(var C=0;C<A.layers.length;C++){D=find_element(B,A.layers[C]);if(D){return D}}}return D}function set_rollovers_path(){gRolloversPath="";if(document.images){var A=(!is_explorer())?find_element("rollover",0):document.rollover;if(A){var C=A.src;var B=C.lastIndexOf("/");if(B!=-1){gRolloversPath=C.substr(0,B+1)}}}}function load_rollover(A){if(document.images&&A.charAt(0)!="_"&&A.substr(0,8)!="rollover"){gRollovers[A]=new Object();gRollovers[A][0]=new Image();gRollovers[A][0].src=gRolloversPath+A+"_norm.gif";gRollovers[A][1]=new Image();gRollovers[A][1].src=gRolloversPath+A+"_over.gif"}}function load_all_rollovers(){set_rollovers_path();if(document.images&&gRolloversPath!="*"){var A=document.images.length;if(A>0){for(var B=0;B<A;B++){if(document.images[B]){if(document.images[B].name){load_rollover(document.images[B].name)}}}}gBartlettMenu.downarrow=new Image();gBartlettMenu.downarrow.src=gRolloversPath+"downarrow.gif";gBartlettMenu.uparrow=new Image();gBartlettMenu.uparrow.src=gRolloversPath+"uparrow.gif";gBartlettMenu.uparrow_on=new Image();gBartlettMenu.uparrow_on.src=gRolloversPath+"uparrow_on.gif";gBartlettMenu.transparent=new Image();gBartlettMenu.transparent.src=gRolloversPath+"transparent.gif";gBartlettMenu.anchor=new Image();gBartlettMenu.anchor.src=gRolloversPath+"anchor.gif";gBartlettMenu.anchor_on=new Image();gBartlettMenu.anchor_on.src=gRolloversPath+"anchor_on.gif"}}function rollover(B,C){if(document.images&&gRolloversPath!="*"){if(gRollovers[B]){var A=(!is_explorer())?find_element(B,0):document[B];if(A){A.src=gRollovers[B][C].src}return true}}return false}function rollover_button(B,C){if(document.images&&gRolloversPath!="*"){if(gRollovers[B]){var A=(!is_explorer())?find_element(B,0):document[B];if(A){A.src=gRollovers[B][C].src}return true}}return false}function rollover_image(B,C){if(document.images&&gRolloversPath!="*"){var A=(!is_explorer())?find_element(B,0):document[B];if(A){if(gBartlettMenu[C]){A.src=gBartlettMenu[C].src}else{A.src=gRolloversPath+C+".gif"}return true}}return false}var gPopup="none";function openWin(C,B,A,D,E){if(E=="topright"){gPopup=window.open(C,"popup","left="+(screen.width.valueOf()-(A+100))+",top=100,width="+A+",height="+D+",toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes")}else{if(E=="topleft"){gPopup=window.open(C,"popup","left=100,top=100,width="+A+",height="+D+",toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes")}}}function closeWin(){if(gPopup){if(typeof(gPopup)=="object"){if(gPopup.closed==false){gPopup.close()}gPopup="none"}}}function navigateMainWindow(A){if((window.name.length>=5)&&(window.name.substring(0,5)=="popup")){window.opener.location=A}else{window.location=A}}function openImageWin(J,K,M,E,O,F){var L=M+16;var C=E+16;var I="";closeWin();var B=O.toLowerCase();var N=B.split("<br>");var A=N.length;if(O!=""){C+=8+(14*A)}I+="<html><head><title>"+J+"</title>";if(O!=""){I+="<style>";I+="<!--";I+=".small { color: #333; font-size: 10px; line-height: 14px; font-family: Arial, Helvetica, Geneva; }";I+=".body {color: #333; font-size: 11px; line-height: 14px; font-family: Arial, Helvetica, Geneva; }";I+=".body a:link { color: #666; text-decoration: none }";I+=".body a:active { color: #666; text-decoration: underline }";I+=".body a:visited { color: #666; text-decoration: none }";I+=".body a:hover { color: #666; text-decoration: underline }";I+="-->";I+="</style>"}I+="</head>";I+="<body bgcolor='#FFFFFF' leftmargin=8 topmargin=8 marhinheight=8 marginwidth=8>";I+="<table cellpadding=0 cellspacing=0 border=0>";I+="<tr><td><img src='"+K+"' width="+M+" height="+E+" border=0></td></tr>";if(O!=""){I+="<tr><td valign=top align=left><table cellpadding=8 cellspacing=0 border=0><tr><td align=left valign=top class='body'>"+O+"</td></tr></table></td></tr>"}I+="</table>";I+="</body></html>";var H=0;var G=0;if(F=="topright"){H=(screen.width.valueOf()-(L+100));G=100}else{if(F=="topleft"){H=100;G=100}else{if(F=="center"){H=Math.round((screen.width.valueOf()/2)-(L/2));G=100}}}var D=new Date();gPopup=window.open("","popup"+D.getTime(),"left="+H+",top="+G+",width="+L+",height="+C+",toolbar=no,location=no,status=no,scrollbars=no,resizable=no");gPopup.document.open();gPopup.document.write(I);gPopup.document.close();gPopup.moveTo(H,G)};