if(!Mons){var Mons={}}if(!Mons.BASE_SERVER){Mons.BASE_SERVER="monsterindia.com"}if(!MJS){var MJS={}}if(!MJS.UTILS){MJS.UTILS={}}if(!MJS.SKR){MJS.SKR={}}if(!MJS.HTML){MJS.HTML={}}MJS.SKR.oAlertOverLay=null;MJS.SKR.focusObjAfterAlert=null;MJS.SKR.showAlertMsg=function(B){if(typeof (B)!="object"){B={MSG:B}}var H=(B.MSG?B.MSG:"");var C=(B.ID?B.ID:"alertMsgIDForDis");var A=(B.HTML_CONTENT?B.HTML_CONTENT:"");var D=(B.ALERT_HEIGHT?B.ALERT_HEIGHT:"180");var F=(B.FOCUS_OBJ?B.FOCUS_OBJ:0);if(!document.getElementById(C)){var I=document.createElement("div");I.setAttribute("id",C);document.body.appendChild(I);document.getElementById(C).style.position="absolute";document.getElementById(C).style.top="100px";document.getElementById(C).style.left="253px"}var E="";if(F){MJS.SKR.focusObjAfterAlert=F;E="MJS.SKR.focusObjAfterAlert.focus();"}var G=(Mons.LANG=="ar"?"إنذار":"Alert");if(B.TITLE){G=B.TITLE}if(A){H=A}else{H='<br><br><br><br><table width="40%" cellspacing="0" cellpadding="0" border="0" align="center"> <tbody><tr><td align="center" valign="top"><img width="21" height="22" src="http://media.'+Mons.BASE_SERVER+'/v2.1/icon_error2_trans.gif"/></td><td style="padding-left: 15px;" class="txt_red" nowrap>'+H+"</td> </tr> </tbody></table>"}document.getElementById(C).innerHTML='<table width="518" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="11" valign="bottom"><img src="http://media.'+Mons.BASE_SERVER+"/v2.1/"+Mons.LANG_MEDIA_PATH+'popup_corner.gif" width="13" height="25" /></td> <td width="100%" class="txt_17 txt_white" style="background: #7e9c1a url(http://media.'+Mons.BASE_SERVER+'/v2.1/bgs.png) left top repeat-x; padding-left:10px; padding-right:10px;"><div style="float:'+Mons.EN_RIGHT_AR_LEFT+"; padding-top:4px; background:url(http://media."+Mons.BASE_SERVER+"/v2.1/"+Mons.LANG_MEDIA_PATH+'icon.png) -25px 5px no-repeat"><a id="alertOkButton" onclick="MJS.SKR.oAlertOverLay.hide();MJS.SKR.FADE_OLAY.OBJ_OVERLAY.hide();'+E+'" style="cursor:pointer"><img width="10" height="10" border="0" src="http://media.'+Mons.BASE_SERVER+'/v2.1/trans.gif"></a></div>'+G+'</td> <td width="11"  valign="bottom"><img src="http://media.'+Mons.BASE_SERVER+"/v2.1/"+Mons.LANG_MEDIA_PATH+'popup_corner1.gif" width="13" height="25" /></td> </tr> <tr> <td colspan="3" valign="top" class="bg_white" style="background:url(http://media.'+Mons.BASE_SERVER+'/v2.1/blue_bg.jpg) no-repeat left -28px; border-top:0px;"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="2%" ></td></tr></table></td> </tr> <tr> <td height="'+D+'" colspan="3" valign="top" class="bg_white" style="padding-bottom:0px; background:url(http://media.'+Mons.BASE_SERVER+'/v2.1/blue_bg.jpg) no-repeat left -40px; border-top:0px; border-bottom:0px">'+H+'</td> </tr> <tr> <td valign="bottom" ><img src="http://media.'+Mons.BASE_SERVER+'/v2.1/trans.gif" width="13" height="13" style="background:url(http://media.'+Mons.BASE_SERVER+"/v2.1/"+Mons.LANG_MEDIA_PATH+'icon.png) left -172px no-repeat;" /></td> <td valign="bottom" class="bg_white border_grey" style="border-left:0px; border-right:0px; border-top:0px; "><img src="http://media.'+Mons.BASE_SERVER+'/v2.1/trans.gif" width="1" height="1"></td> <td valign="bottom" ><img src="http://media.'+Mons.BASE_SERVER+'/v2.1/trans.gif" width="13" height="13" style="background:url(http://media.'+Mons.BASE_SERVER+"/v2.1/"+Mons.LANG_MEDIA_PATH+'icon.png) -14px -172px no-repeat;" /></td> </tr> </table>';if(MJS.SKR.oAlertOverLay==null){MJS.SKR.oAlertOverLay=new MJS.SKR.Overlay(C,{fixedcenter:true,visible:false,zIndex:1000})}MJS.SKR.oAlertOverLay.render();MJS.SKR.oAlertOverLay.show();MJS.HTML.fadeOrActiveBgPage({ACTION:"fade"});MJS.UTILS.addEvent(window,"resize",function(J){if(MJS.SKR.oAlertOverLay){MJS.SKR.oAlertOverLay.render()}})};MJS.SKR.Overlay=function(B,A){this.init(B,A)};MJS.SKR.Overlay.prototype.init=function(B,A){this.id=B;this.hideDropDownList=new Array();if(!document.getElementById(B)){this.alertDiv=document.createElement("div");this.alertDiv.setAttribute("id",B)}else{this.alertDiv=document.getElementById(B)}this.alertDiv.style.position="absolute";this.alertDiv.style.visibility=A.visible||"hidden";this.alertDiv.style.zIndex=A.zIndex||"10";this.fixedcenter=A.fixedcenter||false};MJS.SKR.Overlay.prototype.render=function(E){if(typeof (E)!="object"){E={SCROLL_IF_IE:E}}var C=(E.SCROLL_IF_IE!=null?E.SCROLL_IF_IE:"1");if(this.fixedcenter){var F=MJS.UTILS.getCenterXY();var D=this.alertDiv.style.width;var A=this.alertDiv.style.height;if(D==null||D==""||parseInt(D)==0){D=518}this.alertDiv.style.left=F[0]-(parseInt(D)/2);this.alertDiv.style.top="100"}if(navigator.appName=="Microsoft Internet Explorer"){if(C){var G=-1;var B=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})");if(B.exec(navigator.userAgent)!=null){G=parseFloat(RegExp.$1)}(G<7)?scroll(0,0):this.alertDiv.style.position="fixed"}}else{this.alertDiv.style.position="fixed"}};MJS.SKR.Overlay.prototype.show=function(){this.showHideAllDropDownInIE({ACTION:"fade"});this.alertDiv.style.display="block";this.alertDiv.style.visibility="visible"};MJS.SKR.Overlay.prototype.hide=function(){this.showHideAllDropDownInIE({ACTION:"acitve"});this.alertDiv.style.display="none";this.alertDiv.style.visibility="hidden"};MJS.SKR.Overlay.prototype.showHideAllDropDownInIE=function(E){if(typeof (E)!="object"){E={}}var D=(E.ACTION?E.ACTION:"fade");var A=(D=="fade"?"hidden":"");if(navigator.appName=="Microsoft Internet Explorer"){if(D=="fade"){var B=document.getElementsByTagName("select");for(var C in B){if(B[C]&&B[C].style&&B[C].style.visibility!="hidden"){this.hideDropDownList[this.hideDropDownList.length]=B[C];B[C].style.visibility=A}}}else{for(var C in this.hideDropDownList){this.hideDropDownList[C].style.visibility=A}this.hideDropDownList=[]}}};var setHeightWidthOfFaded=function(){var A=MJS.SKR.FADE_OLAY.ID;var B=MJS.UTILS.getPageSize();document.getElementById(A).style.height=((B.WIN_HEIGHT>B.PAGE_HEIGHT)?B.WIN_HEIGHT+"px":B.PAGE_HEIGHT+"px");document.getElementById(A).style.width=(B.PAGE_WIDTH+"px")};MJS.SKR.FADE_OLAY={};MJS.SKR.FADE_OLAY.OBJ_OVERLAY=null;MJS.SKR.FADE_OLAY.ID="blackOverlayToFade";MJS.HTML.fadeOrActiveBgPage=function(D){if(typeof (D)!="object"){D={}}var A=(D.ID?D.ID:"blackOverlayToFade");MJS.SKR.FADE_OLAY.ID=A;var C=(D.ACTION?D.ACTION:"fade");if(!document.getElementById(A)){var B=document.createElement("div");B.setAttribute("id",A);document.body.appendChild(B);document.getElementById(A).className="blackOverlay";document.getElementById(A).style.display="block";document.getElementById(A).style.left=0;document.getElementById(A).style.top=0}if(C=="fade"){setHeightWidthOfFaded();MJS.UTILS.addEvent(window,"resize",setHeightWidthOfFaded);if(document.getElementById(A)){if(MJS.SKR.FADE_OLAY.OBJ_OVERLAY==null){MJS.SKR.FADE_OLAY.OBJ_OVERLAY=new MJS.SKR.Overlay(A,{visible:false,zIndex:800})}MJS.SKR.FADE_OLAY.OBJ_OVERLAY.show();MJS.SKR.FADE_OLAY.OBJ_OVERLAY.render({SCROLL_IF_IE:0})}}else{if(C=="active"){if(document.getElementById(A)){MJS.SKR.FADE_OLAY.OBJ_OVERLAY.hide()}}}};MJS.UTILS.getPageSize=function(){var C,A;if(window.innerHeight&&window.scrollMaxY){C=document.body.scrollWidth;A=window.innerHeight+window.scrollMaxY}else{if(document.body.scrollHeight>document.body.offsetHeight){C=document.body.scrollWidth;A=document.body.scrollHeight}else{C=document.body.offsetWidth;A=document.body.offsetHeight}}var B,D;if(self.innerHeight){B=self.innerWidth;D=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){B=document.documentElement.clientWidth;D=document.documentElement.clientHeight}else{if(document.body){B=document.body.clientWidth;D=document.body.clientHeight}}}if(A<D){pageHeight=D}else{pageHeight=A}if(C<B){pageWidth=B}else{pageWidth=C}return{PAGE_WIDTH:pageWidth,PAGE_HEIGHT:pageHeight,WIN_WIDTH:B,WIN_HEIGHT:D}};MJS.UTILS.addEvent=function(C,B,A){if(C.attachEvent){C["e"+B+A]=A;C[B+A]=function(){C["e"+B+A](window.event)};C.attachEvent("on"+B,C[B+A])}else{C.addEventListener(B,A,false)}};MJS.UTILS.getCenterXY=function(){var C,D,B,A;if(navigator.appName!="Microsoft Internet Explorer"){C=window.pageXOffset;D=window.innerWidth;B=window.pageYOffset;A=window.innerHeight}else{C=document.body.scrollLeft;D=document.body.offsetWidth;B=document.body.scrollTop;A=document.body.offsetHeight}return new Array((C+C+D)/2,(B+B+A)/2)};