<!--


/*


all content created by Eric King

DO NOT ALTER OR EDIT THE FOLLOWING CODE.
YOU MAY NOT GET IT TO WORK IF YOU START
CHANGING THINGS.


for help with this file, please post in my forum at 
http://eak.digitalrice.com/ikonboard

url:   http://eak.digitalrice.com/
email: eric_andrew_king@hotmail.com


*/























var domSupport = (document.getElementById)?1:0;


var ie4 = (document.all)?1:0;


var ie5 = (ie4 && domSupport)?1:0;


var ie5_5=(ie4 && domSupport && window.createPopup)?1:0;


var IE=(ie4||ie5||ie5_5)?1:0;


var ns4 = (document.layers)?1:0;


var ns6 = (domSupport && !ie4)?1:0;


var _Win;


function MakeFramesForBorderless(PageArg,TextForTitleBar,WindowTitle,W,H,ScrollBars,WindowBorderWidth_off,WindowBorderType_off,WindowBorderColor_off,TitleBarBgColor_off,WindowBorderWidth_on,WindowBorderType_on,WindowBorderColor_on,TitleBarBgColor_on,CloseWinOff,CloseWinOn,WindowIcon){


var TitleBarHTML=new Array();


	TitleBarHTML["JS_basic"]='<html><head>'+
	
	
		'<title>'+TextForTitleBar+'</title>'+
		
		
		'<script language="javascript" type="text/javascript">'+
		
		
		'var domSupport = (document.getElementById)?1:0;'+
		
		
		'var ie4 = (document.all)?1:0;'+
		
		
		'var ie5 = (ie4 && domSupport)?1:0;'+
		
		
		'var ie5_5=(ie4 && domSupport && window.createPopup)?1:0;'+
		
		
		'var IE=(ie4||ie5||ie5_5)?1:0;'+
		
		
		'var ns4 = (document.layers)?1:0;'+
		
		
		'var ns6 = (domSupport && !ie4)?1:0;'+
		
		
		'var semi=";";'+'var OnTheMove=false;'+
		
		
		'var pageX;'+'var pageY;'+
		
		
		'var tmrW=null;'+'var tmrH=null;'+
		
		
		'var closewinoff=new Image();	closewinoff.src="'+CloseWinOff+'";'+
		
		
		'var closewinon=new Image();	closewinon.src="'+CloseWinOn+'";'+	
		
		
		'function SwitchImg(name,asdf){if(ie4||ie5||ie5_5||ns6){document[name].src=eval(name+asdf+".src");}}'+
		
		
		'function init(){if(!IE)return;document.onmousedown=OnMouseDown;document.onmousemove=OnMouseMove;document.onmouseup=OnMouseUp;document.ondblclick=new Function("OnTheMove=false;return false");document.oncontextmenu=new Function("return false");}'+
				
	
		'function OnMouseDown(){if(event.button!=1&&(event.button==2||event.button==3)){self.window.focus();return false;}pageY=event.y;pageX=event.x;OnTheMove=true;ChangeBorder("'+WindowBorderColor_on+'","'+WindowBorderWidth_on+'","'+TitleBarBgColor_on+'","'+WindowBorderType_on+'");return false;}'+
		
		
		'function OnMouseMove(){var ScreenX=event.screenX;var ScreenY=event.screenY;var x = ScreenX-pageX;var y = ScreenY-pageY;if((OnTheMove)&&(OnTheMove==true)){parent.window.moveTo(x,y);}return true;}'+
		
		
		'function OnMouseUp(){if((OnTheMove)&&(OnTheMove==true)){ChangeBorder("'+WindowBorderColor_off+'","'+WindowBorderWidth_off+'","'+TitleBarBgColor_off+'","'+WindowBorderType_off+'");}OnTheMove=false;return true;}'+
		
		
		'function ChangeBorder(BorderColor,BorderWidth,bgc,BType){if(!parent.document.styleSheets.length)parent.document.createStyleSheet();with(parent.document.styleSheets(parent.document.styleSheets.length-1)){addRule("frame","border:"+BorderWidth+"px "+BType+" "+BorderColor+semi);}document.body.style.backgroundColor=bgc;}'+
		
		
		'<\\/scr'+'ipt>'
		
		
	TitleBarHTML["Styles"]='<style type="text/css">body{background-color:'+TitleBarBgColor_off+';cursor:move;overflow:hidden;}div a img{cursor:hand;}div{font-family:andale mono,arial,verdana,Tohama;font-size:10px;letter-spacing:3px;font-variant:small-caps;color:#000000;}#mywindowicon{position:absolute;top:2;left:2;width:width;height:height;}#EAK_title{width:width;height:height;filter:alpha(opacity=100);}.noshow{display:none;}<\/style><\\/H'+'EAD>'
	
	
	TitleBarHTML["bodyTags"]=''+
	
	
		'<BO'+'DY onload="init()" marginwidth="0" marginheight="0" topmargin="0" leftmargin="0">'+
		
		
		'<div id="mywindowicon" style="position:absolute;top:2;left:2;z-index:10;"><img src="'+WindowIcon+'" name="winicon" border="0" alt="Site Design By EAK"></div>'+
		
		
		'<div id="EAK_title" style="position:absolute;top:4;left:22;width:width:height:height;z-index:1;">'+TextForTitleBar+'</div>'+	
		
		
		'<div id="closeWindowIcon" style="position:absolute;top:2;left:\'+(document.body.clientWidth-19)+\';z-index:10;"><a href="javascript:parent.close()" onclick="parent.close();" onmousedown="parent.close();" onmouseover="OnMouseUp();SwitchImg(\\\'closewin\\\',\\\'on\\\')" onmouseout="OnMouseUp();SwitchImg(\\\'closewin\\\',\\\'off\\\')" onfocus="this.blur()"><img src="'+CloseWinOff+'" name="closewin" border="0" alt="Close Window"></a></div>'+
		
		
		'<\\/B'+'ODY><\\/H'+'TML>'
		
		
var _Win_Page='';


    _Win_Page+='<html>\n<head>\n<title>'+WindowTitle+'</title>\n';
	
	
	_Win_Page+='<script language="javascript" type="text/javascript">\n';
	
	
	_Win_Page+='var Loaded=false;\n';
	
	
	_Win_Page+='function CreateTitleBarFrameContent(){\n'
	
	
	_Win_Page+='if(window.frames.TitleBarFrame&&Loaded==true){\n';		
	
	
	_Win_Page+='TitleBarFrame.document.open("text/html","replace")\n';
	
	
	_Win_Page+='TitleBarFrame.document.write(\''+TitleBarHTML["JS_basic"]+TitleBarHTML["Styles"]+'\')\n';
	
	
	_Win_Page+='TitleBarFrame.document.write(\''+TitleBarHTML["bodyTags"]+'\')\n';
	
	
	_Win_Page+='TitleBarFrame.document.close();\nLoaded=false}\nsetTimeout("CreateTitleBarFrameContent()",100)}\n';
	
	
	_Win_Page+='function DoIt(){Loaded=true;CreateTitleBarFrameContent();}\n\nDoIt();';
	
	
	_Win_Page+='<\/script>\n'
	
	
	_Win_Page+='<style type="text/css">\nframe{border:'+WindowBorderWidth_off+' '+WindowBorderType_off+' '+WindowBorderColor_off+';}\n.closeframe{border-bottom:0px;}\n</style>\n';
	
	
    _Win_Page+='</head>\n<frameset rows="22,*" border=0>\n';
	
	
    _Win_Page+='<frame src="about:blank" name="TitleBarFrame" id="TitleBarFrame" class="closeframe" noresize marginheight=0 marginwidth=0 scrolling="no">\n';
	
	
	_Win_Page+='<frame src="'+PageArg+'" name="mainPage" noresize marginheight=0 marginwidth=0 scrolling="'+ScrollBars+'">\n';
	
	
    _Win_Page+='</frameset>\n<body>\n</body>\n</html>\n';
	
	
    return _Win_Page;}
	

function EAK_win(Url,WinName,TextForTitleBar,WinTitle,W,H,Scroll,pos,WindowBorderWidth_off,WindowBorderType_off,WindowBorderColor_off,TitleBarBgColor_off,WindowBorderWidth_on,WindowBorderType_on,WindowBorderColor_on,TitleBarBgColor_on,CloseWinOff,CloseWinOn,WindowIcon){


var MyFrames=MakeFramesForBorderless(Url,TextForTitleBar,WinTitle,W,H,Scroll,WindowBorderWidth_off,WindowBorderType_off,WindowBorderColor_off,TitleBarBgColor_off,WindowBorderWidth_on,WindowBorderType_on,WindowBorderColor_on,TitleBarBgColor_on,CloseWinOff,CloseWinOn,WindowIcon)


if( W=='' || W==null ){W=(screen.availWidth-100);}


if( H=='' || H==null ){H=(screen.availHeight-100);}


if(pos=="random"){LeftPosition=(screen.availWidth)?Math.floor(Math.random()*(screen.availWidth-W)):50;TopPosition=(screen.availHeight)?Math.floor(Math.random()*((screen.availHeight-H)-75)):50;}


if(pos=="center"){LeftPosition=(screen.availWidth)?(screen.availWidth-W)/2:10;TopPosition=(screen.availHeight)?(screen.availHeight-H)/2:10;}


if(pos=="default"){LeftPosition=100;TopPosition=100}


if((pos!="center"&&pos!="random"&&pos!="default")||pos==null){LeftPosition=100;TopPosition=100;}


if(IE){var Settings='fullscreen=yes,scrollbars=no';}


if(ns4||ns6){var Settings='width='+W+',height='+H+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+Scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no,dependent=no';}


if(ns4||ns6){


_Win=window.open(Url,WinName,Settings);}


if(IE){


  _Win=window.open('',WinName,Settings);
  
  
  _Win.blur();
  
  
  var h=parseInt(H)+24;
  
  
  var w=parseInt(W)+2;
  
  
  _Win.resizeTo(w,h);
  
  
  _Win.moveTo(LeftPosition,TopPosition);
  
  
    with(_Win.document){
	
	
      open("text/html","replace");
	  
	  
      write(MyFrames);
	  
	  
      close();}
	  
	  
  _Win.focus();}}  
  
    
// -->