// -----------------------------------------------------------------------------
//   PRVENT OTHERS FROM INCLUDING THIS SITE
// -----------------------------------------------------------------------------

// <script type='text/javascript'>
if (window!=top){top.location.href=location.href;}
// </script>

		


// -----------------------------------------------------------------------------
//   PRINT THIS PAGE
// -----------------------------------------------------------------------------

// <script language="JavaScript">
// <!-- Print this page script -->
var gAutoPrint = true; // Flag for whether or not to automatically call the print function

function printSpecial()
{
	if (document.getElementById != null)
	{
		var html = '<HTML>\n<HEAD>\n';

		if (document.getElementsByTagName != null)
		{
			var headTags = document.getElementsByTagName("head");
			if (headTags.length > 0)
				html += headTags[0].innerHTML;
		}
		
		html += '\n</HE' + 'AD>\n<BODY>\n';
		
		var printReadyElem = document.getElementById("printReady");
		
		if (printReadyElem != null)
		{
				html += printReadyElem.innerHTML;
		}
		else
		{
			alert("Could not find the printReady section in the HTML");
			return;
		}
			
		html += '\n</BO' + 'DY>\n</HT' + 'ML>';
		
		var printWin = window.open("","printSpecial");
		printWin.document.open();
		printWin.document.write(html);
		printWin.document.close();
		if (gAutoPrint)
			printWin.print();
	}
	else
	{
		alert("Sorry, the print ready feature is only available in modern browsers.");
	}
}
//  End -->
// </script>

// Sample action code
// -----------------------------------------------------------------------------
// <div id="printReady">
// 		  <p>Web Site Promotion: Creating a Buzz</p>
// 		  <p><a href="javascript:void(printSpecial())">Print This Page</a></p>
// </div>



// -----------------------------------------------------------------------------
//   CGI SCRIPT.NET RECOMMEND SCRIPT
// -----------------------------------------------------------------------------

// <script language="javascript">
function ShowRecommend(){
var rndURL = (1000*Math.random());
var url = "http://www.kristofcreative.com/cgi-script/csRecommend/csRecommend.cgi?command=showrecommend&page="+escape(window.location);
h=500;
w=500;
newWindow = window.open(url,'search','width='+w+',height='+h+',top='+(screen.height-h)/2+',left='+(screen.width-w)/2+',location=0,directories=0,status=no,menuBar=no,scrollBars=no,resizable=no');
newWindow.focus();
}
// </script>


// -----------------------------------------------------------------------------
//   PULL DOWN MENU NAVIGATION
// -----------------------------------------------------------------------------

<!-- 
function menu_goto( menuform )
{
    // see http://www.thesitewizard.com/archive/navigation.shtml
    // for an explanation of this script and how to use it on your
    // own site

    var baseurl = "http://www.kristofcreative.com" ;
    selecteditem = menuform.newurl.selectedIndex ;
    newurl = menuform.newurl.options[ selecteditem ].value ;
    if (newurl.length != 0) {
      location.href = baseurl + newurl ;
    }
}
//-->



// -----------------------------------------------------------------------------
//    POPUP WINDOW -- WITH FEATURES
// -----------------------------------------------------------------------------

// <script type="text/javascript"><!--

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
// -->
// </script>

// Sample action code
// -----------------------------------------------------------------------------
// <a href="javascript:;" onMouseDown="MM_openBrWindow('page.htm','Name','width=350,height=375')">here</a>
// <a onmousedown="MM_openBrWindow('page.htm','Name','width=500,height=500')" href="javascript:;">here</a>

// Sample with window close feature
// <a onmousedown="MM_openBrWindow('page.htm','Win','location=yes,toolbar=yes,scrollbars=yes')" 
// href="javascript:OnClick=window.close()">here</a>



// -----------------------------------------------------------------------------
//    POPUP WINDOW -- PRESET SIZE
// -----------------------------------------------------------------------------

		function openWeb(URL) {
		aWindow = window.open(URL,"thewindow","width=650,height=550,resize=no,scrollbars=yes");
		}

// Sample action code
// -----------------------------------------------------------------------------
// <a href="javascript:openWeb('safe_plumber.html');">




// -----------------------------------------------------------------------------
//    POPUP WINDOW -- PRESET SIZE 2
// -----------------------------------------------------------------------------
// <script type="text/javascript"><!--
	function openWindow(title) {
		if(title=="newUser"){
			window.open('register_welcome.asp','_blank','width=250,height=375,toolbar=false,resizable=false,menubar=false,scrollbars=false,status=false');
		}
		
		if(title=="announcement"){
			window.open('announcement_popup.asp','_blank','width=200,height=150,toolbar=false,resizable=false,menubar=false,scrollbars=true,status=false');
		}
		if(title=="kc"){
			window.open('http://www.kristofcreative.com','_blank','width=200,height=150,toolbar=false,resizable=false,menubar=false,scrollbars=true,status=false');
		}
	}
// -->
// </script>


// Sample action code
// -----------------------------------------------------------------------------
// <a href="javascript:openWindow('kc');">test link</a>




// -----------------------------------------------------------------------------
//    POPUP WINDOW -- CENTER ON SCREEN
// -----------------------------------------------------------------------------

function popup(loc, name, width, height,scroll) {
		IE = navigator.appName=="Microsoft Internet Explorer";
		NS = navigator.appName=="Netscape";
		bVer = parseInt(navigator.appVersion);

		var newWin=null;

        var _params = "width="+width+",height="+height+",scrollbars="+scroll+",'resizable=no,status=no'";

        // CENTER ON BROWSERS WHICH SUPPORT JSCRIPT 1.2
        if (bVer >= 4) {
                 _left = ( (screen.width-width) >>1 );
                 _top = ( (screen.height-height) >>1 );
        } else {
                 _left = ( (800-width) >>1 );
                 _top = ( (600-height) >>1 );
        }

        if (IE) _params += ",top=" + _top + ",left=" + _left;
        else if (NS) _params += ",screenX=" + _left + ",screenY=" + _top;

        newWin = window.open(loc, name, _params);
        if ( newWin!=null && !(IE && bVer<5) )
                newWin.focus();
}



// -----------------------------------------------------------------------------
//    DYNAMIC POPUP WINDOW WITH IMAGE
// -----------------------------------------------------------------------------

function kcWindow(imageName,imageWidth,imageHeight,alt,bgcolor,hugger,hugMargin) {
// by E Michael Brandt of ValleyWebDesigns.com - Please leave these comments intact.
// version 3.0.4  

	if (bgcolor=="") {
		bgcolor="#FFFFFF";
	}
	var adj=10
	var w = screen.width;
	var h = screen.height;
	var byFactor=1;

	if(w<740){
	  var lift=0.90;
	}
	if(w>=740 & w<835){
	  var lift=0.91;
	}
	if(w>=835){
	  var lift=0.93;
	}
	if (imageWidth>w){	
	  byFactor = w / imageWidth;			
	  imageWidth = w;
	  imageHeight = imageHeight * byFactor;
	}
	if (imageHeight>h-adj){
	  byFactor = h / imageHeight;
	  imageWidth = (imageWidth * byFactor);
	  imageHeight = h; 
	}
	   
	var scrWidth = w-adj;
	var scrHeight = (h*lift)-adj;

	if (imageHeight>scrHeight){
  	  imageHeight=imageHeight*lift;
	  imageWidth=imageWidth*lift;
	}

	var posLeft=0;
	var posTop=0;

	if (hugger == "hug image"){
	  if (hugMargin == ""){
	    hugMargin = 0;
	  }
	  var scrHeightTemp = imageHeight - 0 + 2*hugMargin;
	  if (scrHeightTemp < scrHeight) {
		scrHeight = scrHeightTemp;
	  } 
	  var scrWidthTemp = imageWidth - 0 + 2*hugMargin;
	  if (scrWidthTemp < scrWidth) {
		scrWidth = scrWidthTemp;
	  }
	  
	  if (scrHeight<100){scrHeight=100;}
	  if (scrWidth<100){scrWidth=100;}

	  posTop =  ((h-(scrHeight/lift)-adj)/2);
	  posLeft = ((w-(scrWidth)-adj)/2);
 	}

	if (imageHeight > (h*lift)-adj || imageWidth > w-adj){
		imageHeight=imageHeight-adj;
		imageWidth=imageWidth-adj;
	}
	posTop = parseInt(posTop);
	posLeft = parseInt(posLeft);		
	scrWidth = parseInt(scrWidth); 
	scrHeight = parseInt(scrHeight);
	
	var agt=navigator.userAgent.toLowerCase();
	if (agt.indexOf("opera") != -1){
	  var args= new Array();
	  args[0]='parent';
	  args[1]=imageName;
	  var i ; document.MM_returnValue = false;
	  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
	} else {
	newWindow = window.open("/viewimage.htm","newWindow","width="+scrWidth+",height="+scrHeight+",left="+posLeft+",top="+posTop);
	newWindow.document.open();
// NETSCAPE, REMOVE: onBlur="self.close()"
	newWindow.document.write('<html><title>'+alt+'</title><body leftmargin="0" topmargin="5" marginheight="0" marginwidth="0" bgcolor='+bgcolor+' onClick="self.close()">');  
	newWindow.document.write('<table width='+imageWidth+' border="0" cellspacing="0" cellpadding="0" align="center" height='+scrHeight+' ><tr><td>');
	newWindow.document.write('<img src="'+imageName+'" width='+imageWidth+' height='+imageHeight+' alt="Click screen to close" >'); 
	newWindow.document.write('</td></tr></table></body></html>');
	newWindow.document.close();
	newWindow.focus();
	}
}




// -----------------------------------------------------------------------------
//    CUSTOMIZED WINDOW - Center Screen -- (Buick.com)
// -----------------------------------------------------------------------------

//   customizable open window command

// r = resizable, s = scrollbars, t = toolbar, l = location, d = directories
// the order for rstld doesn't matter
// resizable default is yes, scrollbars,toolbar,location,directories defaults are no

// usage examples:

// openWindow('mylink.html,300,300,s,popWindowName'); -- pops a 300x300 window 
// with scrollbars named "popWindowName"

// openWindow('mylink.html'); -- pops a default size (hardwired to 640,400) 
// window to mylink.html

// openWindow('mylink.html',,,tlr'); -- pops a default size window to mylink.html 
// with tool and location bar that is NOT resizable
// NOTE: notice that in the example above there are two commas after the URL
// they're required in this case because we're adding the 'tlr' options
// commas without values will just pick up the default 640x400 values, or you 
// can change them to whatever. The rule is only the URL is required, but if you
// change a value downstream, then you need to fill in the values between the 
// URL and the value you're changing (even if it's only with a comma).

// It now centers the pop-up.
// -----------------------------------------------------------------------------

function openWindow(options) {

// URL,[width],[height],[rstld],[windowName]

	args=options.split(",");

	url = args[0];

	if (args.length > 1 && args[1].length > 0) {
		W=args[1]; 
	} else { 
		W=640; 
	}

	if (args.length > 2 && args[2].length > 0) {
		H=args[2]; 
	} else { 
		H=400; 
	}

	screenw = screen.availWidth;
	screenh = screen.availHeight;
	
	x = "left=" + (screenw-W)/2 + ",";
	y = "top=" + (screenh-H)/2 + ",";
	
	W = "width=" + W + ",";
	H = "height=" + H + ",";
	
	if (args.length > 3) {
		prams= args[3]; 
	} else { 
		prams="";
	}

	if (args.length > 4) {
		windowname= args[4]; 
	} else { 
		windowname="";
	}

	if (prams.indexOf('l')!=-1) { loc="location=yes,"; } else { loc="location=no,"; }
	if (prams.indexOf('t')!=-1) { tbar="toolbar=yes,"; } else { tbar="toolbar=no,"; }
	if (prams.indexOf('s')!=-1) { sbars="scrollbars=yes,"; } else { sbars="scrollbars=no,"; }
	if (prams.indexOf('d')!=-1) { directories="directories=yes,"; } else { directories="directories=no,"; }
	if (prams.indexOf('r')!=-1) { resizable="resizable=no"; } else { resizable="resizable=yes"; }
	
	str=loc+tbar+sbars+directories+W+H+x+y+resizable;

	newWindow=window.open(url,windowname,str);
	if (newWindow !=null && newWindow.opener==null) { newWindow.opener=window; }
}


// Sample action code
// -----------------------------------------------------------------------------
// <a class="noline" href="javascript:openWindow('/navto/page.html,750,525,,tigertrap');" 
// onMouseover="arrowOn('ar04');" onMouseout="arrowOff('ar04');">
// <font color="#666666"><b>Text Link</b></font></a>





// -----------------------------------------------------------------------------
//    SWAP RETORE
// -----------------------------------------------------------------------------

function MM_swapImgRestore() { //v2.0
  if (document.MM_swapImgData != null)
    for (var i=0; i<(document.MM_swapImgData.length-1); i+=2)
      document.MM_swapImgData[i].src = document.MM_swapImgData[i+1];
}

function MM_preloadImages() { //v2.0
  if (document.images) {
    var imgFiles = MM_preloadImages.arguments;
    if (document.preloadArray==null) document.preloadArray = new Array();
    var i = document.preloadArray.length;
    with (document) for (var j=0; j<imgFiles.length; j++) if (imgFiles[j].charAt(0)!="#"){
      preloadArray[i] = new Image;
      preloadArray[i++].src = imgFiles[j];
  } }
}

function MM_swapImage() { //v2.0
  var i,j=0,objStr,obj,swapArray=new Array,oldArray=document.MM_swapImgData;
  for (i=0; i < (MM_swapImage.arguments.length-2); i+=3) {
    objStr = MM_swapImage.arguments[(navigator.appName == 'Netscape')?i:i+1];
    if ((objStr.indexOf('document.layers[')==0 && document.layers==null) ||
        (objStr.indexOf('document.all[')   ==0 && document.all   ==null))
      objStr = 'document'+objStr.substring(objStr.lastIndexOf('.'),objStr.length);
    obj = eval(objStr);
    if (obj != null) {
      swapArray[j++] = obj;
      swapArray[j++] = (oldArray==null || oldArray[j-1]!=obj)?obj.src:oldArray[j];
      obj.src = MM_swapImage.arguments[i+2];
  } }
  document.MM_swapImgData = swapArray; //used for restore
}



// -----------------------------------------------------------------------------
//    TOGGLES CONTENT
// -----------------------------------------------------------------------------

function dspCntToggle(id) {
	if(document.all)
		c = document.all[id];
	else if(document.getElementById)
		c = document.getElementById(id);
	if(c.style.display == 'none')
		c.style.display = 'block';
	else
		c.style.display = 'none';
}




// -----------------------------------------------------------------------------
//    DISPLAY STATUS
// -----------------------------------------------------------------------------

function displayStatusMsg(msgStr) { //v1.0
	status=msgStr;
	document.returnValue = true;
}




// -----------------------------------------------------------------------------
//    GET DATE
// -----------------------------------------------------------------------------

<!-- 
function MakeArray(n) {
	this.length = n
	return this
}
monthNames = new MakeArray(12)
monthNames[1] = "Jan."
monthNames[2] = "Feb."
monthNames[3] = "March"
monthNames[4] = "April"
monthNames[5] = "May"
monthNames[6] = "June"
monthNames[7] = "July"
monthNames[8] = "Aug."
monthNames[9] = "Sept."
monthNames[10] = "Oct."
monthNames[11] = "Nov."
monthNames[12] = "Dec."
dayNames = new MakeArray(7)
dayNames[1] = "Sun."
dayNames[2] = "Mon."
dayNames[3] = "Tues."
dayNames[4] = "Wed."
dayNames[5] = "Thurs."
dayNames[6] = "Fri."
dayNames[7] = "Sat."

function customDateString() {
	currentDate = new Date()
	var theDay = dayNames[currentDate.getDay() + 1]
	var theMonth = monthNames[currentDate.getMonth() + 1]
	msie4 = ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ));
	if (msie4) {
	    var theYear = currentDate.getYear()
	}
	else {
	     var theYear = currentDate.getYear() +1900
	}
	return theDay + ", " + theMonth + " " + currentDate.getDate() + ", " + theYear
}
//-->



// -----------------------------------------------------------------------------
//    GET DATE 2 (not used on this site)
// -----------------------------------------------------------------------------

function GetDay(intDay){
    var DayArray = new Array("Sun", "Mon", "Tues", "Wed", 
                         "Thur", "Fri", "Sat")
    return DayArray[intDay]
    }

  function GetMonth(intMonth){
    var MonthArray = new Array("January", "February", "March",
                               "April", "May", "June",
                               "July", "August", "September",
                               "October", "November", "December") 
    return MonthArray[intMonth] 	  	 
    }
  function getDateStrWithDOW(){
    var today = new Date()
    var year = today.getYear()
    if(year<1000) year+=1900
    var todayStr = GetDay(today.getDay()) + ", "
    todayStr += GetMonth(today.getMonth()) + " " + today.getDate()
    todayStr += ", " + year
    return todayStr
    }





// -----------------------------------------------------------------------------
//    DISABLES RIGHT MOUSE CLICK
// -----------------------------------------------------------------------------

// By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
// For full source code, visit http://www.dynamicdrive.com

var message="All content on this site is Copyright (c)1995-2003 Kristof Creative.  All rights reserved.\nImages are not licensed for any use other than personal viewing on this site\nwithout the express written permission of the author.  By use of this site,\nyou agree to abide by the terms on the Terms & Conditions page\n(http://www.kristocreative.com/terms/).\n\nPlease don't steal, okay?  Thanks.";

function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false"
)




// -----------------------------------------------------------------------------
//    FORM -- NUMBER ONLY
// -----------------------------------------------------------------------------

// copyright 1999 Idocs, Inc. http://www.idocs.com
// Distribute this script freely but keep this notice in place
function numbersonly(myfield, e, dec)
{
var key;
var keychar;

if (window.event)
   key = window.event.keyCode;
else if (e)
   key = e.which;
else
   return true;
keychar = String.fromCharCode(key);

// control keys
if ((key==null) || (key==0) || (key==8) || 
    (key==9) || (key==13) || (key==27) )
   return true;

// numbers
else if ((("0123456789").indexOf(keychar) > -1))
   return true;

// decimal point jump
else if (dec && (keychar == "."))
   {
   myfield.form.elements[dec].focus();
   return false;
   }
else
   return false;
}


// -----------------------------------------------------------------------------
//    FORM -- CLEAR TEXT
// -----------------------------------------------------------------------------

// Clear default form value script- By Ada Shimar (ada@chalktv.com)
// Featured on JavaScript Kit (http://javascriptkit.com)
// Visit javascriptkit.com for 400+ free scripts!

function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
}


// -----------------------------------------------------------------------------
//    HORIZONTAL SCROLLING MESSAGE
// -----------------------------------------------------------------------------

// <script language="javascript">
<!--
var bannerID=0
function text(msg,ctrlwidth) {
        msg = " --- "+msg
        newmsg = msg
        while (newmsg.length < ctrlwidth) {
                newmsg += msg
        }
        document.write ('<FORM NAME="Scrolltext">');
        document.write ('<CENTER><INPUT NAME="text" VALUE= "'+newmsg+'" SIZE= '+ctrlwidth+' ></CENTER>');
        document.write ('</FORM>');
        var bannerID = null
        rollmsg()
}
function rollmsg() {
      NowMsg = document.Scrolltext.text.value
        NowMsg = NowMsg.substring(1,NowMsg.length)+NowMsg.substring(0,1)
        document.Scrolltext.text.value = NowMsg
        bannerID = setTimeout("rollmsg()",100)//change the number 100 to represent the speed of the scroll. The larger the number the slower it moves
}
// -->
// </script>


// MESSAGE SCRIPT TO PLACE ON PAGE

// <script>
// <!--
// msg = " You can create any message that you want. Put it in here. and it will continue to scroll by for your visitors to see. That's all there is to  it. "
// ctrlwidth = "75" //change this number to the length you would like the message box to be
// text(msg,ctrlwidth);
// -->
// </script>
