// JavaScript Document

<!--

function pviiObjbg(obj, new_color) { //v2.1 by Project VII
	obj.style.backgroundColor=new_color

}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

//-->
/* Add to Favorites / Bookmarks or Sidebar Script. v1.0
Copyright (c) 2003 dazdezines.com. All rights reserved.
This script can be used freely as long as this
copyright message is left unchanged.

If you use Dreamweaver - get the Free DW Extension @
http://www.dazdezines.com/mme.

This script automatically adds a link to do the following:
Internet Explorer 4+ - Add this page to favorites list
Opera 6+ - Add this page to bookmarks/Hostlist
Netscape 6+ - Add sidebar to My Sidebar
Netscape 4x - Alert prompt telling user to press CTL+D to add bookmark */

//Do not modify past this point.

function dd_uniBookmark() { //v1.0 www.dazdezines.com/mme
	if ((typeof window.sidebar == 'object') && (typeof window.sidebar.addPanel == 'function')) {
    window.sidebar.addPanel ( document.title,'http://'+linkSidebar,'');
    /* Gecko (Netscape 6 etc.) - add to Sidebar */
	} else if( window.external && navigator.platform == 'Win32' ) {
    /* IE Win32 - checking for Favorites produces errors for no good reason,
    so we use a platform detect. Adds the current page as a favorite; if 
	this is unwanted, simply write the desired page in here instead of 'location.href' */
    window.external.AddFavorite( location.href, titleText );
	} else if( window.opera && window.print ) {
    /* Opera 6+ - add as sidebar panel to Hotlist */
	return true;
	} else if( document.layers ) {
    /* NS4 & Escape - tell them how to add a bookmark quickly (adds current page, not target page) */
    window.alert( 'Please click OK then press Ctrl+D to create a bookmark.' );
	} else {
    /* other browsers - tell them to add a bookmark (adds current page, not target page) */
    window.alert( 'Please use your browser\'s bookmarking facility to create a bookmark\r\rPlease email dwsupport@dazdezines.com telling us your\rbrowser type and version so that we can update this script\rto add support for your browser.\r\rThankyou for your support and help.' );
	}
  return false;
}



<!--
/* Add to Favorites / Bookmarks or Sidebar Script. v1.0
Copyright (c) 2003 dazdezines.com. All rights reserved.
This script may be used freely as long as this
copyright message is left unchanged.

If you use Dreamweaver - get the Free DW Extension @
http://www.dazdezines.com/mme.

This script automatically adds a link to do the following:
Internet Explorer 4+ - Add this page to favorites list
Opera 6+ - Add this page to bookmarks/Hostlist
Netscape 6+ - Add sidebar to My Sidebar
Netscape 4x - Alert prompt telling user to press CTL+D to add bookmark */

var ns6LnkText = "Add our Sidebar now"; //ns6+
var ie4LnkText = "Add this page to Favorites now"; //ie4+
var op6LnkText = "Bookmark and Add this page to Hotlist now"; //op6+
var ns4LnkText = "Bookmark this page now"; //ns4+
var LinkURL = "javascript:;";
var linkSidebar = "www.dazdezines.com/mme/sidebar.html" //ns6+
var titleText = document.title; //ie4+ & op6+ 

if (typeof window.sidebar == "object" /* NS6+ */ ) { linkText = ns6LnkText; }
else if (window.external /* IE4+ */ ) { linkText = ie4LnkText; }
else if (window.opera /* OP6+ */ ) { linkText = op6LnkText; }
else { linkText = ns4LnkText ; /* NS4+ & Unknown */ }
if (window.opera) { lnkURL = document.location.href;
} else { lnkURL = LinkURL; }
//-->

<!-- css buttons //-->
var btn = {
    init : function() {
        if (!document.getElementById || !document.createElement || !document.appendChild) return false;
        as = btn.getElementsByClassName('btn(.*)');
        for (i=0; i<as.length; i++) {
            if ( as[i].tagName == "INPUT" && ( as[i].type.toLowerCase() == "submit" || as[i].type.toLowerCase() == "button" ) ) {
                var a1 = document.createElement("a");
                a1.appendChild(document.createTextNode(as[i].value));
                a1.className = as[i].className;
                a1.id = as[i].id;
                as[i] = as[i].parentNode.replaceChild(a1, as[i]);
                as[i] = a1;
                as[i].style.cursor = "pointer";
            }
            else if (as[i].tagName == "A") {
                var tt = as[i].childNodes;
            }
            else { return false };
            var i1 = document.createElement('i');
            var i2 = document.createElement('i');
            var s1 = document.createElement('span');
            var s2 = document.createElement('span');
            s1.appendChild(i1);
            s1.appendChild(s2);
            while (as[i].firstChild) {
              s1.appendChild(as[i].firstChild);
            }
            as[i].appendChild(s1);
            as[i] = as[i].insertBefore(i2, s1);
        }
        // The following lines submits the form if the button id is "submit_btn"
        btn.addEvent(document.getElementById('submit_btn'),'click',function() {
            var form = btn.findForm(this);
            form.submit();
        });
        // The following lines resets the form if the button id is "reset_btn"
        btn.addEvent(document.getElementById('reset_btn'),'click',function() {
            var form = btn.findForm(this);
            form.reset();
        });
    },
    findForm : function(f) {
        while(f.tagName != "FORM") {
            f = f.parentNode;
        }
        return f;
    },
    addEvent : function(obj, type, fn) {
        if (obj.addEventListener) {
            obj.addEventListener(type, fn, false);
        }
        else if (obj.attachEvent) {
            obj["e"+type+fn] = fn;
            obj[type+fn] = function() { obj["e"+type+fn]( window.event ); }
            obj.attachEvent("on"+type, obj[type+fn]);
        }
    },
    getElementsByClassName : function(className, tag, elm) {
        var testClass = new RegExp("(^|\s)" + className + "(\s|$)");
        var tag = tag || "*";
        var elm = elm || document;
        var elements = (tag == "*" && elm.all)? elm.all : elm.getElementsByTagName(tag);
        var returnElements = [];
        var current;
        var length = elements.length;
        for(var i=0; i<length; i++){
            current = elements[i];
            if(testClass.test(current.className)){
                returnElements.push(current);
            }
        }
        return returnElements;
    }
}

btn.addEvent(window,'load', function() { btn.init();} );

<!--jump menu--!>
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function MM_showHideLayers() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

<!--no image script--!>
<!--
function putImg(p){
var l=document.images.length;
for(i=0;i<l;i++){
if(document.images[i].complete!=true ||  document.images[i].naturalHeight==0){
if(p==undefined){
document.images[i].style.display="none";
}
else{
document.images[i].src=p;
}
}
}
}
//-->

//-->
//-->
