//WARNING: THIS IS A COMPRESSED FILE AND SHOULD NOT BE EDITED!!!
var menuArray = new Array();
var strLastHoverID = '';
function menuObj(title,href,xPos,yPos,xOff,yOff,menuW,menuH) {
this.title = title;
this.href = href;
this.xPos = xPos;
this.yPos = yPos;
this.xOff = xOff;
this.yOff = yOff;
this.menuW = menuW;
this.menuH = menuH;
}
function menuUp(id,stay,img) {
if (menuArray.length > id) {
strSelectedIMG = img
popM(menuArray[id].xPos,menuArray[id].yPos,menuArray[id].xOff,menuArray[id].yOff,menuArray[id].menuW,menuArray[id].menuH,stay,menuArray[id].title)
}
}
function setParentLoc(strLoc, blnClose) {
if (strLoc.substr(0,1) == '#') { self.location = strLoc; }
else {
if (parent.opener.parent.opener) {
parent.opener.parent.opener.parent.location = strLoc;
if (blnClose) {
parent.opener.parent.window.close();
parent.window.close();
}
}
else {
parent.opener.parent.location = strLoc;
if (blnClose) { parent.window.close(); }
}
}
}
function show(id) {
if ((navigator.appVersion.indexOf("MSIE 5.0") > 0) || (Opera)) {
if (document.all[id]) document.all[id].style.visibility = "visible"
}
}
function hide(id) {
if ((navigator.appVersion.indexOf("MSIE 5.0") > 0) || (Opera)) {
if (document.all[id]) document.all[id].style.visibility = "hidden"
}
}
function popM(xOver, yOver, xOff, yOff, wOver, hOver, stay, title) {
if (typeof pop != 'undefined') {
if (hOver != 0) { height = hOver }
popMStay = stay
pop(xOver,yOver,xOff,yOff,wOver,'m',true,0,'',title)
}
}
var intCurrentWait = 5
function AnimateWait() {
eval("document.Wait"+intCurrentWait+".src='/images/wait_off.gif'")
intCurrentWait++
if (intCurrentWait>=6) { intCurrentWait = 1 }
eval("document.Wait"+intCurrentWait+".src='/images/wait_on.gif'")
setTimeout("AnimateWait()",500)
}
function toolCell(objTD, strID, blnHyper, strTool, objEvent) {
var blnReset = true
if (document.getElementById(strID)) {
if (blnHyper) {
objTD.className = 'sectionCellLink'
document.getElementById(strID).className = "toolLinkSelected"
window.status = strTool
strLastHoverID = strID.substr(strID.length - 2, 2)
}
else {
if (objEvent) {
if (objEvent.toElement) {
if (objEvent.toElement.id) {
blnReset = (objEvent.toElement.id.substr(objEvent.toElement.id.length - 2, 2) != strLastHoverID)
}
}
}
if (blnReset) {
objTD.className = 'sectionCell'
document.getElementById(strID).className = "toolLink"
window.status = ''
strLastHoverID = ''
}
}
}
}
function toolCellMore(objTD, strID, blnHyper, strTool, objEvent, standAlone) {
var blnReset = true
if (document.getElementById(strID)) {
if (blnHyper) {
if (standAlone) { objTD.className = 'sectionCellLink2' }
else { objTD.className = 'sectionCellLink' }
window.status = strTool
strLastHoverID = strID.substr(strID.length - 2, 2)
}
else {
if (objEvent) {
if (objEvent.toElement) {
if (objEvent.toElement.id) {
blnReset = (objEvent.toElement.id.substr(objEvent.toElement.id.length - 2, 2) != strLastHoverID)
}
}
}
if (blnReset) {
if (standAlone) { objTD.className = 'sectionCell2' }
else { objTD.className = 'sectionCell' }
window.status = ''
strLastHoverID = ''
}
}
}
}
function hpBannerCell(objTD, strID, blnHyper, strTool, objEvent, objHLink) {
var blnReset = true
if (document.getElementById(strID)) {
if (blnHyper) {
objTD.className = 'sectionCellLink'
document.getElementById(objHLink).className = "bannerSelected"
window.status = strTool
strLastHoverID = strID.substr(strID.length - 2, 2)
}
else {
if (objEvent) {
if (objEvent.toElement) {
if (objEvent.toElement.id) {
blnReset = (objEvent.toElement.id.substr(objEvent.toElement.id.length - 2, 2) != strLastHoverID)
}
}
}
if (blnReset) {
objTD.className = 'sectionCell'
document.getElementById(objHLink).className = ""
window.status = ''
strLastHoverID = ''
}
}
}
}
function ShowHideInstructions(chkHideInstructions) {
if (chkHideInstructions.checked) {
if (parent.frmBody.document.getElementById('instructionSection')) {
parent.frmBody.document.getElementById('instructionSection').className='hidden';
}
if (parent.frmBody.document.getElementById('NextStepSection')) {
parent.frmBody.document.getElementById('NextStepSection').className='hidden';
}
ShowHideNotes(true);
}
else {
if (parent.frmBody.document.getElementById('instructionSection')) {
parent.frmBody.document.getElementById('instructionSection').className='visible';
}
if (parent.frmBody.document.getElementById('NextStepSection')) {
parent.frmBody.document.getElementById('NextStepSection').className='visible';
}
ShowHideNotes(false);
}
}
function ShowHideGTO(chkGTO) {
if (chkGTO.checked) {
if (parent.frmBody.document.getElementById('guaranteedSection')) {
parent.frmBody.document.getElementById('guaranteedSection').className='hidden';
}
}
else {
if (parent.frmBody.document.getElementById('guaranteedSection')) {
parent.frmBody.document.getElementById('guaranteedSection').className='visible';
}
}
}
function ShowHideNotes(blnHide) {
if ((parent.frmBody.document.getElementById('NotesSection')) && (parent.frmBody.document.getElementById('NotesNoPrintSection'))) {
if (blnHide) {
parent.frmBody.document.getElementById('NotesSection').className='hidden';
parent.frmBody.document.getElementById('NotesNoPrintSection').className='visible';
parent.frmBody.document.getElementById('PrintToggle').className='hidden';
}
else {
parent.frmBody.document.getElementById('NotesSection').className='visible';
parent.frmBody.document.getElementById('NotesNoPrintSection').className='hidden';
parent.frmBody.document.getElementById('PrintToggle').className='visible';
}
}
}
function toggleNodeVisibility(objNode) {
objNode.className = objNode.className == 'hidden'? 'visible': 'hidden';
}
function toggleText(strCurrentVal, strVal1, strVal2) {
return strCurrentVal == strVal1? strVal2: strVal1;
}
function SetDropDownValue(oField, mVal) {
if (mVal == '') { oField.selectedIndex = 0; }
else { oField.value = mVal; }
}
var WebPromotionPopUp
function ViewPopUpWebPromotion(strCampaignId,intPopUpHeight,intPopUpWidth,intPopUpTop,intPopUpLeft,blnProd) {
var strPageLink = "/WebPromotions/PopUpPromotion.asp?hidCampaignId=" + strCampaignId;
window.open(strPageLink,"WebPromotionPopUp","height=" + intPopUpHeight + ", width=" + intPopUpWidth + ", left=" + intPopUpLeft + ", top=" + intPopUpTop + ", scrollbars=yes, resizable=yes");
}
function addEvent(o,eventType,fn,useCapture) {
if (o.addEventListener) {
o.addEventListener(eventType,fn,useCapture);
return true;
}
else if (o.attachEvent) {
var r = o.attachEvent('on'+eventType,fn);
return r;
}
else {
return false;
}
}
function removeEvent(o,eventType,fn,useCapture) {
if (o.removeEventListener) {
o.removeEventListener(eventType,fn,useCapture);
return true;
}
else if (o.detachEvent) {
var r = o.detachEvent('on'+eventType,fn);
return r;
}
else {
return false;
}
}
function hoverItem(oItem,bHyper,sStatus,oEvent) {
var bReset = true;
if (bHyper) {
oItem.style.borderColor='#008800';
oItem.style.backgroundColor='#f3f3f3';
oItem.className='hoverCursor';
window.status = sStatus
oLastHover = oItem;
}
else {
if (oEvent) {
if (oEvent.toElement) {
bReset = !isChild(oEvent.toElement,oItem);
}
}
if (bReset) {
oItem.style.borderColor='#cdcdcd';
oItem.style.backgroundColor='#ffffff';
oItem.className='';
window.status = ''
oLastHover = ''
}
}
}
function isChild(oChild,oParent) {
while(oChild) {
if (oChild == oParent) { return true; }
else { oChild = oChild.parentNode; }
}
return false;
}