/*********************************************************************************
 * Copyright 2007, Carsley and Associates. All Rights Reserved.
 * Uses BlendTrans, from http://www.brainerror.net/scripts_js_blendtrans.php
 * Compressed By: http://javascriptcompressor.com/
 *********************************************************************************/

window.onresize = function() { onResizeHelper() }; function onResizeHelper() { if (navigator.appVersion.indexOf("MSIE") != -1) { var version = parseFloat(navigator.appVersion.split("MSIE")[1]); if (version < 8) $("boxaround-big").style.height = $("contentContent").offsetHeight - 13 + "px"; else $("boxaround-big").style.height = $("contentContent").offsetHeight - 9 + "px" } else { $("boxaround-big").style.height = $("contentContent").offsetHeight - 9 + "px" } } function pulseSearchHere() { ShowElement($('searchHere')); changeOpac(0.0, 'searchHere'); opacity('searchHere', 0, 100, 1000); setTimeout("opacity('searchHere', 100, 0, 1000);", 5000) } function focusSearch(id) { var textBox = $(id); if (textBox) { window.scroll(0, 0); textBox.style.color = "#000000"; if (textBox.value == "Search...") textBox.value = "Type your search terms..."; textBox.focus(); textBox.select() } } function blurSearch(id) { var textBox = $(id); if (textBox) { textBox.style.color = "#AAAAAA"; if (!textBox.value || textBox.value == "Type your search terms...") textBox.value = "Search..." } } function $(ctrl) { if (typeof ctrl == 'string') return document.getElementById(ctrl); else if (typeof ctrlI === 'object') return ctrl; return null } function HideElement(element) { if (typeof element === 'string') { if ($(element) && $(element).style) $(element).style.display = 'none' } else if (typeof element === 'object') { if (element.style) element.style.display = 'none' } } function ShowElement(element) { if (typeof element === 'string') { if ($(element) && $(element).style) $(element).style.display = '' } else if (typeof element === 'object') { if (element.style) element.style.display = '' } } function FindPosition(element) { if (typeof element == 'string') element = $(element); var curleft = curtop = 0; if (element.offsetParent) { curleft = element.offsetLeft; curtop = element.offsetTop; while (element = element.offsetParent) { curleft += element.offsetLeft; curtop += element.offsetTop } } return [curleft, curtop] } function GetWidth() { if (parseInt(navigator.appVersion) > 3) { if (navigator.appName.indexOf("Microsoft") != -1) return document.body.offsetWidth; else return window.innerWidth } } function GetHeight() { if (parseInt(navigator.appVersion) > 3) { if (navigator.appName.indexOf("Microsoft") != -1) return document.body.offsetHeight; else return window.innerHeight } } function OpenWindow(url, identifier, width, height) { if (identifier == null) identifier = 'window1'; if (width == null) width = 700; if (height == null) height = 500; window.open(url, identifier, 'toolbar=no,location=no,directories=no,copyhistory=no,scrollbars=yes,width=' + width + ',height=' + height) }
