<!--//--><![CDATA[//><!--

sfHover = function() {
	var sfEls = document.getElementById("topnav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

//--><!]]>

function makeArray(len) {
    for (var i = 0; i < len; i++) this[i] = null;
this.length = len;
}

<!--//--><![CDATA[//><!--
ideas = new makeArray(4);

ideas[0] = '<IMG BORDER="0" SRC="picrotator/uimage.jpg" WIDTH="436" HEIGHT="145"></a>'

ideas[1] = '<IMG BORDER="0" SRC="picrotator/imagine.jpg" WIDTH="436" HEIGHT="145"></a>'

ideas[2] = '<IMG BORDER="0" SRC="picrotator/relieved.jpg" WIDTH="436" HEIGHT="145">'

ideas[3] = '<IMG BORDER="0" SRC="picrotator/imagine.jpg" WIDTH="436" HEIGHT="145">'

function rand(n) {
seed = (0x015a4e35 * seed) % 0x7fffffff;
return (seed >> 16) % n;
}
        
var now = new Date()
var seed = now.getTime() % 0xffffffff


//--><!]]>


<!--//--><![CDATA[//><!--
/******************************************************* 
TIMEDATE 
All code by Ryan Parman, unless otherwise noted. 
(c) 1997-2003, Ryan Parman 
http://www.skyzyx.com 
Distributed according to SkyGPL 2.1, http://www.skyzyx.com/license/ 
*******************************************************/ 

/******************************************************* 
CLOCK FUNCTION 
Version 2.12 
*******************************************************/ 
// 1 to Start with dots. 0 to start without dots. 
// Set to "1" for incompatible browsers 
var flashingdots = 1; 

function zClock() 
{ 
    // Comment out for flashing dots 
    //var flashingdots=1; 

    // RUNTIME INITIALIZATION 
    var ampm = 0; 
    var now = new Date(); 
    var hours = now.getHours(); 
    var minutes = now.getMinutes(); 
    var seconds = now.getSeconds(); 
    var ztime; 

    // SET AM OR PM FOR 12-HOUR CLOCK CYCLE 
    if (hours < 12) ampm="am"; 
    else if (hours > 11) ampm="pm"; 

    // SWITCH FROM A 24-HOUR TO A 12-HOUR CLOCK CYCLE 
    if (hours==0) hours=hours+12; // If Midnight is coming up as Zero O'Clock, then fix it. 
    else if (hours > 12) hours=hours-12; // If 1:00pm is coming up as 13 O'Clock, then fix it. 

    // MINUTE FIX 
    if (minutes < 10) minutes="0"+minutes; // If 3:05 is showing up as 3:5, then fix it. 

    // SECOND FIX 
    if (seconds < 10) seconds="0"+seconds; // If 7:25:02 is showing up as 7:25:2, then fix it. 

    // FLASHING DOTS DISPLAY 
    if (flashingdots == 1) { ztime=hours+':'+minutes+ampm; flashingdots=0; } 
    else if (flashingdots == 0) { ztime=hours+'&nbsp;'+minutes+ampm; flashingdots=1; } 
    else { flashingdots=1; } 

    document.getElementById("zClockID").innerHTML=ztime; 

    setTimeout("zClock();", 500); 
} 




/******************************************************* 
DATE FUNCTION 
Version 3.11 
******************************************************** 
IF "disp" IS: 

Lower Case variables... 
10 = Day, Month, Date, Year  [Wednesday, January 15, 2003] 
11 = Month, Date, Year  [January 15, 2003] 
12 = Month, Date  [January 15] 
13 = Day  [Wednesday] 
14 = Month  [January] 
15 = Day, Month, Date, Year  [Wed, Jan 15, 2003] 
16 = Month, Date, Year  [Jan 15, 2003] 
17 = Month, Date  [Jan 15] 
18 = Day  [Wed] 
19 = Month  [Jan] 

Upper Case variables... 
20 = Day, Month, Date, Year  [WEDNESDAY, JANUARY 15, 2003] 
21 = Month, Date, Year  [JANUARY 15, 2003] 
22 = Month, Date  [JANUARY 15] 
23 = Day  [WEDNESDAY] 
24 = Month  [JANUARY] 
25 = Day, Month, Date, Year  [WED, JAN 15, 2003] 
26 = Month, Date, Year  [JAN 15, 2003] 
27 = Month, Date  [JAN 15] 
28 = Day  [WED] 
29 = Month  [JAN] 

Date In Number Format... 
30 = Month, Date, Year (4-Digit)  [1/15/2003] 
31 = Date, Month, Year (4-Digit)  [15/1/2003] 
32 = Month, Date [1/15] 
33 = Date, Month [15/1] 

Numeric-only variables... 
5 = Date  [1] 
6 = Year  [2003] 

Do Not Display 
0 = [No Display] 

************************************************************************** 
These variations are useful when you want to display things differently. 
For example: Displaying "Sunday" in a different font or color than "JANUARY 1, 2000", you 
can call xDate(13) and then xDate(21), which will display the Day (in lowercase format) 
separate from the rest of the date information (where "January" is uppercase). 
Function returns a value to a variable. 
**************************************************************************/ 
function xDate(disp) 
{ 
    // RUNTIME INITIALIZATION 
    rightNow = new Date(); 
    year = rightNow.getFullYear(); 
    date = rightNow.getDate(); 
    thisDay = rightNow.getDay(); 
    thisMonth = rightNow.getMonth(); 
    allDaysLong=new Array('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'); 
    allDaysShort=new Array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'); 
    allMonthsLong=new Array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'); 
    allMonthsShort=new Array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sept', 'Oct', 'Nov', 'Dec'); 
    var todayis; 
     
    // DATE IN NUMBER FORMAT 
    if (disp==30||disp==31||disp==32||disp==33) thisMonth++; 

    // DATE IN WORD FORMAT (LOWERCASE BY DEFAULT) 
    else 
    { 
        // UPPERCASE NAMES 
        if (parseInt(disp) > 19 && parseInt(disp) < 30) 
        { 
            allMonthsLong[thisMonth]=allMonthsLong[thisMonth].toUpperCase(); 
            allDaysLong[thisDay]=allDaysLong[thisDay].toUpperCase(); 
            allMonthsShort[thisMonth]=allMonthsShort[thisMonth].toUpperCase(); 
            allDaysShort[thisDay]=allDaysShort[thisDay].toUpperCase(); 
        } 
    } 

    // WHAT AND HOW TO DISPLAY INFORMATION 
    if (disp == '0') todayis='&nbsp;'; 
    else if (disp == '10') todayis=allDaysLong[thisDay]+', '+allMonthsLong[thisMonth]+' '+date+', '+year; 
    else if (disp == '11') todayis=allMonthsLong[thisMonth]+' '+date+', '+year; 
    else if (disp == '12') todayis=allMonthsLong[thisMonth]+' '+date; 
    else if (disp == '13') todayis=allDaysLong[thisDay]; 
    else if (disp == '14') todayis=allMonthsLong[thisMonth]; 
    else if (disp == '15') todayis=allDaysShort[thisDay]+', '+allMonthsShort[thisMonth]+' '+date+', '+year; 
    else if (disp == '16') todayis=allMonthsShort[thisMonth]+' '+date+', '+year; 
    else if (disp == '17') todayis=allMonthsShort[thisMonth]+' '+date; 
    else if (disp == '18') todayis=allDaysShort[thisDay]; 
    else if (disp == '19') todayis=allMonthsShort[thisMonth]; 
    else if (disp == '20') todayis=allDaysLong[thisDay]+', '+allMonthsLong[thisMonth]+' '+date+', '+year; 
    else if (disp == '21') todayis=allMonthsLong[thisMonth]+' '+date+', '+year; 
    else if (disp == '22') todayis=allMonthsLong[thisMonth]+' '+date; 
    else if (disp == '23') todayis=allDaysLong[thisDay]; 
    else if (disp == '24') todayis=allMonthsLong[thisMonth]; 
    else if (disp == '25') todayis=allDaysShort[thisDay]+', '+allMonthsShort[thisMonth]+' '+date+', '+year; 
    else if (disp == '26') todayis=allMonthsShort[thisMonth]+' '+date+', '+year; 
    else if (disp == '27') todayis=allMonthsShort[thisMonth]+' '+date; 
    else if (disp == '28') todayis=allDaysShort[thisDay]; 
    else if (disp == '29') todayis=allMonthsShort[thisMonth]; 
    else if (disp == '30') todayis=thisMonth+'/'+date+'/'+year; 
    else if (disp == '31') todayis=date+'/'+thisMonth+'/'+year; 
    else if (disp == '32') todayis=thisMonth+'/'+date; 
    else if (disp == '33') todayis=date+'/'+thisMonth; 
    else if (disp == '5') todayis=date; 
    else if (disp == '6') todayis=year; 
    else todayis='Error: xDate(?);'; 

    return todayis; 
} 
//--><!]]>

//-->

<!-- 
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=469,height=500,left = 151,top = 150');");
}
//-->

function filter(imagename,objectsrc){
if (document.images)
document.images[imagename].src=eval(objectsrc+".src")
}

function clearIt(myform){
			(myform.T2.value="");
			(myform.T3.value="");
			(myform.T4.value="");
			(myform.T5.value="");
			(myform.T6.value="");
			(myform.T7.value="");
			(myform.T8.value="");
			(myform.T10.value="");
			(myform.T11.value="");
			(myform.T20.value="");
			(myform.S1.value="");
			(myform.T1.value="");

}

function GoBack() {
                history.back()}

function GoHome() {
                history.go('index.htm')
}  
                
function ValidateTAC(form)
{
if (document.myform.R2.checked)
                { 
                return true;       
                
                }
 else
                {
                alert ("Please check the box agreeing to the terms and conditions. You must do this before you can submit an account.")
                return false;
                }
      }
// -->

//  Show Hide Terms Conditions
// Member Switch
function showHide(id) {

	// Change the button first
	//closeOthers()
	
	var moreID = 		document.getElementById(id);

	// Check to see if we should:
	// show or hide
	if (moreID.style.display == "block") {
		moreID.style.display = "none";
	} else {
		moreID.style.display = "block";
	}

}

function closeOthers() {
	for (var i=0; i <= 100; i++) {

		closeMore = 		document.getElementById("more"+i);

		closeMore.style.display = "none";
	}
}

function switchTab(to,from) {
	var tab = document.getElementById(to);
	var oldtab = document.getElementById(from);

//	if (to == "favorites") {
	//	sheet();
	//}

	// Close 1 tab
	oldtab.style.display = "none";

	// Open another tab
	tab.style.display = "block";

}

// Add or Delete Fav
function updateFavs(id) {
	var the_box = document.getElementById("site_"+id);
		
  if (the_box.checked == true) {
    addFav(id);
  } else {
    delFav(id);
  }
}

function addFav(id) {


	// Check to see if we should:
	// show or hide
	if (panel.style.display == "block") {
		panel.style.display = "none";
	} else {
		panel.style.left = (findPosX(pos)+0)+'px';
		panel.style.top = (findPosY(pos)+35)+'px';
		panel.style.display = "block";
	}

}

activateMenu = function(nav) {
	/*
	from csscreator.com (http://www.csscreator.com/menu/multimenu.php#)
	*/

    /* currentStyle restricts the Javascript to IE only */
	if (document.all && document.getElementById(nav).currentStyle) {  
        var navroot = document.getElementById(nav);
        
        /* Get all the list items within the menu */
        var lis=navroot.getElementsByTagName("LI");  
        for (i=0; i<lis.length; i++) {
        
           /* If the LI has another menu level */
            if(lis[i].lastChild.tagName=="UL"){
            
                /* assign the function to the LI */
             	lis[i].onmouseover=function() {	
                
                   /* display the inner menu */
                   this.lastChild.style.display="block";
                }
                lis[i].onmouseout=function() {                       
                   this.lastChild.style.display="none";
                }
            }
        }
    }
}
window.onload= function(){
    /* pass the function the id of the top level UL */
    /* remove one, when only using one menu */
    activateMenu('nav'); 
    activateMenu('vertnav'); 
}