var navContextScreenX,navContextScreenY,jStrContextHelpText="",jStrContextHelpTitle="",prevClickId="",AdScheduleObjHelp="",AdScheduleEventContext="",AdScheduleParam="",EditedBID=[],EventElement="",arrFetchBID=[],PopUpTimer;function ContextHelp(eventContext,objHelp){if($get("helpPop")&&$get("helpPop").style.display=="block"){$get("helpPop").style.display="none";if(eventContext!=0)eventContext.cancelBubble=true}else{if(objHelp==null)return;if(eventContext!=0)eventContext.cancelBubble=true;var cordinate=Sys.UI.DomElement.getBounds(objHelp);navContextScreenX=cordinate.x;navContextScreenY=cordinate.y;helpCode="";if(__acSessionObject.CurrentChild!=""&&__acSessionObject.CurrentChild!=null)helpCode=objHelp.id;var strAccountId=__aCMasterCookie.getCookieValue("accountCookie","NwAccountId");helpCode!=""&&Clickable.Pro.WebServices.ProService.ContextHelpText(helpCode,strAccountId,ServerSideContextCallBack)}}function HideHelp(){$get("helpPop").style.display="none"}function SetAdSCheduleValues(objHelp,objParam){AdScheduleObjHelp=objHelp;AdScheduleParam=objParam}function AdschedulingContectIE7(){AdSchedulingContext(eventContext,objHelp,objHelp.title)}function AdSchedulingContext(eventContext,objHelp,objParam){if($get("helpPop")&&$get("helpPop").style.display=="block")if($get("helpPop").style){$get("helpPop").style.display="none";eventContext.cancelBubble=true}if(objHelp==null)return;eventContext.cancelBubble=true;var cordinate=Sys.UI.DomElement.getBounds(objHelp);navContextScreenX=cordinate.x;navContextScreenY=cordinate.y;helpCode="";var GetEditedBID=__aCMasterCookie.getCookie("EditedBID"),chkCampaignID=GetAttributeValue("cmpid");if(GetEditedBID!=null||GetEditedBID!=""){var arrSp=GetEditedBID.split("$"),chksplParam=objParam.split("-");chksplParam=chksplParam[1];for(var chk=0;chk<=arrSp.length-1;chk++){var inarrSp=arrSp[chk].split(",");if(navigator.appName=="Microsoft Internet Explorer"){if(eventContext.srcElement.id==inarrSp[1]&&chkCampaignID==inarrSp[0]&&chksplParam==inarrSp[3])eventContext.srcElement.attributes.longDesc.value=inarrSp[2]}else if(eventContext.target.id==inarrSp[1]&&chkCampaignID==inarrSp[0]&&chksplParam==inarrSp[3])eventContext.target.attributes.longDesc.value=inarrSp[2]}}var splParam=objParam.split("-");splParam=splParam[1];$get("helpPop").style.display="block";if(navigator.appName=="Microsoft Internet Explorer")objParam=objParam+"<div   onclick=OpenBid('"+eventContext.srcElement.id+"','"+splParam+"') style=cursor:pointer;color=#16699D>"+eventContext.srcElement.attributes.longDesc.value+"% of Bid</div>";else objParam=objParam+"<div  onclick=OpenBid('"+eventContext.target.id+"','"+splParam+"') style=cursor:pointer;color:#16699D>"+eventContext.target.attributes.longDesc.value+"% of Bid</div>";EventElement=eventContext;$get("helpPopContainer").innerHTML=objParam;$get("helpPopContainer").title="Percentage of Bid";var helpImgObj=Sys.UI.DomElement.getBounds($get("helpPop")),helpImgHeight=helpImgObj.height,helpImgWidth=helpImgObj.width;$get("helpPop").style.position="absolute";var scroll=document.body.scrollTop,Left=Number(navContextScreenX)-Number(helpImgWidth)+Number(30);$get("helpPop").style.left=Left+"px";var Top=Number(navContextScreenY)-Number(helpImgHeight);$get("helpPop").style.top=Top+scroll+"px";try{AdaptClickJS.ACPopupUtil==undefined&&AdaptClickJS.ACPopupUtil.registerClass("AdaptClickJS.ACPopupUtil");_acPopUtilHelp=new AdaptClickJS.ACPopupUtil;try{PopUpTimer!=undefined&&window.clearInterval(PopUpTimer)}catch(err){}PopUpTimer=window.setInterval("_acPopUtilHelp.SetPopupOff($get('helpPop'))",2e4)}catch(err){}}function GetAttributeValue(attribName){for(var queryString=window.location.search.substring(1),attribArr=queryString.split("&"),i=0;i<attribArr.length;i++){var nameValueArr=attribArr[i].split("=");if(nameValueArr[0].toLowerCase().replace(/\s/g,"")==attribName.toLowerCase())return nameValueArr[1]}return""}function AdScheduleContextCallBack(){}function ServerSideContextCallBack(response){if(response==null)return;CreateBody(response);jStrContextHelpText!=""&&showContextHelp(response)}function CreateBody(dtContextHelp){var helpTitle=dtContextHelp.rows[0].HelpTitle!=null?dtContextHelp.rows[0].HelpTitle.toString():"",helpDefinition=dtContextHelp.rows[0].HelpDefinition!=null?dtContextHelp.rows[0].HelpDefinition.toString():"";jStrContextHelpText=helpTitle+"<br />";jStrContextHelpText=jStrContextHelpText+'<span style="color: black;font-size:10px;font-weight:normal;">';jStrContextHelpText=jStrContextHelpText+helpDefinition;jStrContextHelpText=jStrContextHelpText+"</span>"}function showContextHelp(responseText){HideAllPopup();$get("helpPop").style.display="block";$get("helpPopContainer").innerHTML=jStrContextHelpText;var helpImgObj=Sys.UI.DomElement.getBounds($get("helpPop")),helpImgHeight=helpImgObj.height,helpImgWidth=helpImgObj.width;if(Math.round(responseText.length/31)<6)textLength=Math.round(responseText.length/31)*38;else if(Math.round(responseText.length/31)>=6)textLength=Math.round(responseText.length/31)*29;$get("helpPop").style.position="absolute";var Left=Number(navContextScreenX)-Number(helpImgWidth)+Number(30);$get("helpPop").style.left=Left+"px";var Top=Number(navContextScreenY)-Number(helpImgHeight)+Number(5);$get("helpPop").style.top=Top+"px";try{AdaptClickJS.ACPopupUtil==undefined&&AdaptClickJS.ACPopupUtil.registerClass("AdaptClickJS.ACPopupUtil");_acPopUtilHelp=new AdaptClickJS.ACPopupUtil;try{popUpTime!=undefined&&window.clearInterval(popUpTime)}catch(err){}popUpTime=window.setInterval("_acPopUtilHelp.SetPopupOff($get('helpPop'))",2e4)}catch(err){}}var navContextScreenX,navContextScreenY,jStrContextHelpText="",jStrContextHelpTitle="";function ServerSideContextCallBackDown(response){if(response==null)return;CreateBodyDown(response);jStrContextHelpText!=""&&showContextHelpDown(response)}function CreateBodyDown(dtContextHelp){var helpTitle=dtContextHelp.rows[0].HelpTitle!=null?dtContextHelp.rows[0].HelpTitle.toString():"",helpDefinition=dtContextHelp.rows[0].HelpDefinition!=null?dtContextHelp.rows[0].HelpDefinition.toString():"";jStrContextHelpText=helpTitle+"<br />";jStrContextHelpText=jStrContextHelpText+'<span style="color: black;font-size:10px;font-weight:normal;">';jStrContextHelpText=jStrContextHelpText+helpDefinition;jStrContextHelpText=jStrContextHelpText+"</span>";if(typeof MSNSpecificMsg!="undefind"&&MSNSpecificMsg!=null&&MSNSpecificMsg.length>0)jStrContextHelpText=jStrContextHelpText+"<br />"+MSNSpecificMsg}function showContextHelpDown(responseText){HideAllPopup();$get("helpPopDown").style.display="block";$get("helpPopContainerDown").innerHTML=jStrContextHelpText;var helpImgObj=Sys.UI.DomElement.getBounds($get("helpPopDown")),helpImgHeight=helpImgObj.height,helpImgWidth=helpImgObj.width;if(Math.round(responseText.length/31)<6)textLength=Math.round(responseText.length/31)*38;else if(Math.round(responseText.length/31)>=6)textLength=Math.round(responseText.length/31)*29;$get("helpPopDown").style.position="absolute";var Left=Number(navContextScreenX)-Number(10);$get("helpPopDown").style.left=Left+"px";var Top=Number(navContextScreenY)+Number(5);$get("helpPopDown").style.top=Top+"px";try{AdaptClickJS.ACPopupUtil==undefined&&AdaptClickJS.ACPopupUtil.registerClass("AdaptClickJS.ACPopupUtil");_acPopUtilHelp=new AdaptClickJS.ACPopupUtil;try{popUpTime!=undefined&&window.clearInterval(popUpTime)}catch(err){}popUpTime=window.setInterval("_acPopUtilHelp.SetPopupOff($get('helpPopDown'))",2e4)}catch(err){}}var navContextScreenX,navContextScreenY,jStrContextHelpText="",jStrContextHelpTitle="";function ContextHelpLeft(eventContext,objHelp){if(objHelp==null)return;eventContext.cancelBubble=true;var cordinate=Sys.UI.DomElement.getBounds(objHelp);navContextScreenX=cordinate.x;navContextScreenY=cordinate.y;helpCode="";if(__acSessionObject.CurrentChild!=""&&__acSessionObject.CurrentChild!=null)helpCode=objHelp.id;var strAccountId=__aCMasterCookie.getCookieValue("accountCookie","NwAccountId");helpCode!=""&&Clickable.Pro.WebServices.ProService.ContextHelpText(helpCode,strAccountId,ServerSideContextCallBackLeft)}function ServerSideContextCallBackLeft(response){if(response==null)return;CreateBodyLeft(response);jStrContextHelpText!=""&&showContextHelpLeft(response)}function CreateBodyLeft(dtContextHelp){var helpTitle=dtContextHelp.rows[0].HelpTitle!=null?dtContextHelp.rows[0].HelpTitle.toString():"",helpDefinition=dtContextHelp.rows[0].HelpDefinition!=null?dtContextHelp.rows[0].HelpDefinition.toString():"";jStrContextHelpText=helpTitle+"<br />";jStrContextHelpText=jStrContextHelpText+'<span style="color: black;font-size:10px;font-weight:normal;">';jStrContextHelpText=jStrContextHelpText+helpDefinition;jStrContextHelpText=jStrContextHelpText+"</span>"}function showContextHelpLeft(){HideAllPopup();$get("helpPopLeft").style.display="block";$get("helpPopContainerLeft").innerHTML=jStrContextHelpText;var helpImgObj=Sys.UI.DomElement.getBounds($get("helpPopLeft")),helpImgHeight=helpImgObj.height,helpImgWidth=helpImgObj.width;$get("helpPopLeft").style.position="absolute";var Left=Number(navContextScreenX)-Number(helpImgWidth);$get("helpPopLeft").style.left=Left+"px";var Top=Number(navContextScreenY)-Number(50);$get("helpPopLeft").style.top=Top+"px";try{AdaptClickJS.ACPopupUtil==undefined&&AdaptClickJS.ACPopupUtil.registerClass("AdaptClickJS.ACPopupUtil");_acPopUtilHelp=new AdaptClickJS.ACPopupUtil;try{popUpTime!=undefined&&window.clearInterval(popUpTime)}catch(err){}popUpTime=window.setInterval("_acPopUtilHelp.SetPopupOff($get('helpPopLeft'))",2e4)}catch(err){}}var navContextScreenX,navContextScreenY,jStrContextHelpText="",jStrContextHelpTitle="";function ContextHelpRight(eventContext,objHelp){if(objHelp==null)return;eventContext.cancelBubble=true;var cordinate=Sys.UI.DomElement.getBounds(objHelp);navContextScreenX=cordinate.x;navContextScreenY=cordinate.y;helpCode="";if(__acSessionObject.CurrentChild!=""&&__acSessionObject.CurrentChild!=null)helpCode=objHelp.id;var strAccountId=__aCMasterCookie.getCookieValue("accountCookie","NwAccountId");helpCode!=""&&Clickable.Pro.WebServices.ProService.ContextHelpText(helpCode,strAccountId,ServerSideContextCallBackRight)}function ServerSideContextCallBackRight(response){if(response==null)return;CreateBodyRight(response);jStrContextHelpText!=""&&showContextHelpRight(response)}function CreateBodyRight(dtContextHelp){var helpTitle=dtContextHelp.rows[0].HelpTitle!=null?dtContextHelp.rows[0].HelpTitle.toString():"",helpDefinition=dtContextHelp.rows[0].HelpDefinition!=null?dtContextHelp.rows[0].HelpDefinition.toString():"";jStrContextHelpText=helpTitle+"<br />";jStrContextHelpText=jStrContextHelpText+'<span style="color: black;font-size:10px;font-weight:normal;">';jStrContextHelpText=jStrContextHelpText+helpDefinition;jStrContextHelpText=jStrContextHelpText+"</span>"}function showContextHelpRight(responseText){HideAllPopup();$get("helpPopRight").style.display="block";$get("helpPopContainerRight").innerHTML=jStrContextHelpText;var helpImgObj=Sys.UI.DomElement.getBounds($get("helpPopRight")),helpImgHeight=helpImgObj.height,helpImgWidth=helpImgObj.width;if(Math.round(responseText.length/31)<6)textLength=Math.round(responseText.length/31)*38;else if(Math.round(responseText.length/31)>=6)textLength=Math.round(responseText.length/31)*29;$get("helpPopRight").style.position="absolute";var Left=Number(navContextScreenX)+Number(20);$get("helpPopRight").style.left=Left+"px";var Top=Number(navContextScreenY)-Number(43);$get("helpPopRight").style.top=Top+"px";try{AdaptClickJS.ACPopupUtil==undefined&&AdaptClickJS.ACPopupUtil.registerClass("AdaptClickJS.ACPopupUtil");_acPopUtilHelp=new AdaptClickJS.ACPopupUtil;try{popUpTime!=undefined&&window.clearInterval(popUpTime)}catch(err){}popUpTime=window.setInterval("_acPopUtilHelp.SetPopupOff($get('helpPopRight'))",2e4)}catch(err){}}var navContextScreenX,navContextScreenY,jStrContextHelpText="",jStrContextHelpTitle="";function ContextHelpTopRight(eventContext,objHelp){if($get("helpPopTopRight")&&$get("helpPopTopRight").style.display=="block"){$get("helpPopTopRight").style.display="none";eventContext.cancelBubble=true}else{if(objHelp==null)return;if(eventContext!=0)eventContext.cancelBubble=true;var cordinate=Sys.UI.DomElement.getBounds(objHelp);navContextScreenX=cordinate.x;navContextScreenY=cordinate.y;helpCode="";if(__acSessionObject.CurrentChild!=""&&__acSessionObject.CurrentChild!=null)helpCode=objHelp.id;var strAccountId=__aCMasterCookie.getCookieValue("accountCookie","NwAccountId");if(strAccountId=="")strAccountId=0;helpCode!=""&&Clickable.Pro.WebServices.ProService.ContextHelpText(helpCode,strAccountId,ServerSideContextCallBackTopRight)}}function ServerSideContextCallBackTopRight(response){if(response==null)return;CreateBodyTopRight(response);jStrContextHelpText!=""&&showContextHelpTopRight(response)}function CreateBodyTopRight(dtContextHelp){var helpTitle=dtContextHelp.rows[0].HelpTitle!=null?dtContextHelp.rows[0].HelpTitle.toString():"",helpDefinition=dtContextHelp.rows[0].HelpDefinition!=null?dtContextHelp.rows[0].HelpDefinition.toString():"";jStrContextHelpText=helpTitle+"<br />";jStrContextHelpText=jStrContextHelpText+'<span style="color: black;font-size:10px;font-weight:normal;">';jStrContextHelpText=jStrContextHelpText+helpDefinition;jStrContextHelpText=jStrContextHelpText+"</span>"}function showContextHelpTopRight(responseText){HideAllPopup();$get("helpPopTopRight").style.display="block";$get("helpPopContainerTopRight").innerHTML=jStrContextHelpText;var helpImgObj=Sys.UI.DomElement.getBounds($get("helpPopTopRight")),helpImgHeight=helpImgObj.height,helpImgWidth=helpImgObj.width;if(Math.round(responseText.length/31)<6)textLength=Math.round(responseText.length/31)*38;else if(Math.round(responseText.length/31)>=6)textLength=Math.round(responseText.length/31)*29;$get("helpPopTopRight").style.position="absolute";var Left=Number(navContextScreenX)+Number(-20);$get("helpPopTopRight").style.left=Left+"px";var Top=Number(navContextScreenY)-Number(helpImgHeight)+Number(5);$get("helpPopTopRight").style.top=Top+"px";try{AdaptClickJS.ACPopupUtil==undefined&&AdaptClickJS.ACPopupUtil.registerClass("AdaptClickJS.ACPopupUtil");_acPopUtilHelp=new AdaptClickJS.ACPopupUtil;try{popUpTime!=undefined&&window.clearInterval(popUpTime)}catch(err){}popUpTime=window.setInterval("_acPopUtilHelp.SetPopupOff($get('helpPopTopRight'))",2e4)}catch(err){}}function BulkEditContextHelpDown(eventContext,objHelp){if(objHelp==null)return;eventContext.cancelBubble=true;var cordinate=Sys.UI.DomElement.getBounds(objHelp);navContextScreenX=cordinate.x;navContextScreenY=cordinate.y;helpCode="";if(__acSessionObject.CurrentChild!=""&&__acSessionObject.CurrentChild!=null)helpCode=objHelp.id;helpCode!=""&&Clickable.Pro.WebServices.ProService.ContextHelpText(helpCode,ServerSideContextCallBackDown)};
