/****************************************************** ypSlideOutMenu* 3/04/2001* * a nice little script to create exclusive, slide-out* menus for ns4, ns6, mozilla, opera, ie4, ie5 on * mac and win32. I've got no linux or unix to test on but * it should(?) work... ** --youngpup--*****************************************************/ypSlideOutMenu.Registry = []ypSlideOutMenu.aniLen = 200ypSlideOutMenu.hideDelay = 100ypSlideOutMenu.minCPUResolution = 10function ypSlideOutMenu(id, dir, left, top, width, height){this.ie = document.all ? 1 : 0this.ns4 = document.layers ? 1 : 0this.dom = document.getElementById ? 1 : 0if (this.ie || this.ns4 || this.dom) {this.id = idthis.dir = dirthis.orientation = dir == "left" || dir == "right" ? "h" : "v"this.dirType = dir == "right" || dir == "down" ? "-" : "+"this.dim = this.orientation == "h" ? width : heightthis.hideTimer = falsethis.aniTimer = falsethis.open = falsethis.over = falsethis.startTime = 0this.gRef = "ypSlideOutMenu_"+ideval(this.gRef+"=this")ypSlideOutMenu.Registry[id] = thisvar d = documentd.write('<style type="text/css">')d.write('#' + this.id + 'Container { visibility:hidden; ')d.write('left:' + left + 'px; ')d.write('top:' + top + 'px; ')d.write('overflow:hidden; }')d.write('#' + this.id + 'Container, #' + this.id + 'Content { position:absolute; ')d.write('width:' + width + 'px; ')d.write('height:' + height + 'px; ')d.write('clip:rect(0 ' + width + 'px' + ' ' + height + 'px' + ' 0); ')d.write('}')d.write('</style>')this.load()}}ypSlideOutMenu.prototype.load = function() {var d = documentvar lyrId1 = this.id + "Container"var lyrId2 = this.id + "Content"var obj1 = this.dom ? d.getElementById(lyrId1) : this.ie ? d.all[lyrId1] : d.layers[lyrId1]if (obj1) var obj2 = this.ns4 ? obj1.layers[lyrId2] : this.ie ? d.all[lyrId2] : d.getElementById(lyrId2)var tempif (!obj1 || !obj2) window.setTimeout(this.gRef + ".load()", 100)else {this.container = obj1this.menu = obj2this.style = this.ns4 ? this.menu : this.menu.stylethis.homePos = eval("0" + this.dirType + this.dim)this.outPos = 0this.accelConst = (this.outPos - this.homePos) / ypSlideOutMenu.aniLen / ypSlideOutMenu.aniLen if (this.ns4) this.menu.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT);this.menu.onmouseover = new Function("ypSlideOutMenu.showMenu('" + this.id + "')")this.menu.onmouseout = new Function("ypSlideOutMenu.hideMenu('" + this.id + "')")this.endSlide()}}ypSlideOutMenu.showMenu = function(id){var reg = ypSlideOutMenu.Registryvar obj = ypSlideOutMenu.Registry[id]if (obj.container) {obj.over = truefor (menu in reg) if (id != menu) ypSlideOutMenu.hide(menu)if (obj.hideTimer) { reg[id].hideTimer = window.clearTimeout(reg[id].hideTimer) }if (!obj.open && !obj.aniTimer) reg[id].startSlide(true)}}ypSlideOutMenu.hideMenu = function(id){var obj = ypSlideOutMenu.Registry[id]if (obj.container) {if (obj.hideTimer) window.clearTimeout(obj.hideTimer)obj.hideTimer = window.setTimeout("ypSlideOutMenu.hide('" + id + "')", ypSlideOutMenu.hideDelay);}}ypSlideOutMenu.hide = function(id){var obj = ypSlideOutMenu.Registry[id]obj.over = falseif (obj.hideTimer) window.clearTimeout(obj.hideTimer)obj.hideTimer = 0if (obj.open && !obj.aniTimer) obj.startSlide(false)}ypSlideOutMenu.prototype.startSlide = function(open) {this[open ? "onactivate" : "ondeactivate"]()this.open = openif (open) this.setVisibility(true)this.startTime = (new Date()).getTime() this.aniTimer = window.setInterval(this.gRef + ".slide()", ypSlideOutMenu.minCPUResolution)}ypSlideOutMenu.prototype.slide = function() {var elapsed = (new Date()).getTime() - this.startTimeif (elapsed > ypSlideOutMenu.aniLen) this.endSlide()else {var d = Math.round(Math.pow(ypSlideOutMenu.aniLen-elapsed, 2) * this.accelConst)if (this.open && this.dirType == "-") d = -delse if (this.open && this.dirType == "+") d = -delse if (!this.open && this.dirType == "-") d = -this.dim + delse d = this.dim + dthis.moveTo(d)}}ypSlideOutMenu.prototype.endSlide = function() {this.aniTimer = window.clearTimeout(this.aniTimer)this.moveTo(this.open ? this.outPos : this.homePos)if (!this.open) this.setVisibility(false)if ((this.open && !this.over) || (!this.open && this.over)) {this.startSlide(this.over)}}ypSlideOutMenu.prototype.setVisibility = function(bShow) { var s = this.ns4 ? this.container : this.container.styles.visibility = bShow ? "visible" : "hidden"}ypSlideOutMenu.prototype.moveTo = function(p) { this.style[this.orientation == "h" ? "left" : "top"] = this.ns4 ? p : p + "px"}ypSlideOutMenu.prototype.getPos = function(c) {return parseInt(this.style[c])}ypSlideOutMenu.prototype.onactivate = function() { }ypSlideOutMenu.prototype.ondeactivate = function() { }			//This sets the size and position of each drop-down - left, top, width, height.		new ypSlideOutMenu("menu1", "down", 270, 68, 139, 118),		new ypSlideOutMenu("menu2", "down", 372, 68, 165, 60),		new ypSlideOutMenu("menu3", "down", 555, 68, 139, 60)/**********************************End of drop down menus**********************************/// File: img_swap.js// Name: Bill Hay - 3 Bean Design Studios// Date: 12.05.02// Description: Image Swap JavaScript////  This code is property of 3 Bean Design Studios//  and may not be used, or reproduced in any//  form without concent of 3 Bean Design Studios//  http://www.3bean-design.com		/////////////////////////////////////////////////////////////////  Image Rollover Script 								    /////////////////////////////////////////////////////////////// home_off = new Image(); home_off.src = "/images/menu/home_off.gif"; home_on = new Image(); home_on.src = "/images/menu/home_on.gif";  about_off = new Image(); about_off.src = "/images/menu/about_off.gif"; about_on = new Image(); about_on.src = "/images/menu/about_on.gif";  galleries_off = new Image(); galleries_off.src = "/images/menu/galleries_off.gif"; galleries_on = new Image(); galleries_on.src = "/images/menu/galleries_on.gif";  store_off = new Image(); store_off.src = "/images/menu/store_off.gif"; store_on = new Image(); store_on.src = "/images/menu/store_on.gif";  calendar_off = new Image(); calendar_off.src = "/images/menu/calendar_off.gif"; calendar_on = new Image(); calendar_on.src = "/images/menu/calendar_on.gif";  contact_off = new Image(); contact_off.src = "/images/menu/contact_off.gif"; contact_on = new Image(); contact_on.src = "/images/menu/contact_on.gif";  // Contact Submenu contact_info_off = new Image(); contact_info_off.src = "/images/menu/contact_info_off.gif"; contact_info_on = new Image(); contact_info_on.src = "/images/menu/contact_info_on.gif";  links_off = new Image(); links_off.src = "/images/menu/links_off.gif"; links_on = new Image(); links_on.src = "/images/menu/links_on.gif";// Galeries Submenu penink_off = new Image(); penink_off.src = "/images/menu/penink_off.gif"; penink_on = new Image(); penink_on.src = "/images/menu/penink_on.gif";  professions_off = new Image(); professions_off.src = "/images/menu/professions_off.gif"; professions_on = new Image(); professions_on.src = "/images/menu/professions_on.gif";  fantasy_off = new Image(); fantasy_off.src = "/images/menu/fantasy_off.gif"; fantasy_on = new Image(); fantasy_on.src = "/images/menu/fantasy_on.gif";  in_progress_off = new Image(); in_progress_off.src = "/images/menu/in_progress_off.gif"; in_progress_on = new Image(); in_progress_on.src = "/images/menu/in_progress_on.gif";  new_drawings_off = new Image(); new_drawings_off.src = "/images/menu/new_drawings_off.gif"; new_drawings_on = new Image(); new_drawings_on.src = "/images/menu/new_drawings_on.gif";  commission_off = new Image(); commission_off.src = "/images/menu/commission_off.gif"; commission_on = new Image(); commission_on.src = "/images/menu/commission_on.gif";  // Shop Submenu cart_off = new Image(); cart_off.src = "/images/menu/cart_off.gif"; cart_on = new Image(); cart_on.src = "/images/menu/cart_on.gif"; product_info_off = new Image(); product_info_off.src = "/images/menu/product_info_off.gif"; product_info_on = new Image(); product_info_on.src = "/images/menu/product_info_on.gif";  print_order_off = new Image(); print_order_off.src = "/images/menu/order_print_off.gif"; print_order_on = new Image(); print_order_on.src = "/images/menu/order_print_on.gif"; function imgSwap(imgDocID3,imgObjName3) {	//Separate rollover function for credits graphic	//allows for just two items instead of changing two separate graphics	document.images[imgDocID3].src = eval(imgObjName3 + ".src");}////////////////////////////////////////////////////////////////  Gallery Image Popup Script   						   //////////////////////////////////////////////////////////////function exImg(imageLoc,title,id) {	window.open("../popup.php?full_location=" + imageLoc +"&title=" + title + "&id=" + id,"galleryFull","scrollbars=auto,resizable=yes,height=200,width=200");}function exImgIE(imageLoc,title,id) {	window.open("../popup.php?full_location=" + imageLoc +"&title=" + title + "&id=" + id,"galleryFull","scrollbars=yes,resizable=yes,height=200,width=200");}