function MM_swapImgRestore(){var i,x,a=document.MM_sr;for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++){x.src=x.oSrc}}function MM_preloadImages(){var d=document;if(d.images){if(!d.MM_p){d.MM_p=new Array()}var i,j=d.MM_p.length,a=MM_preloadImages.arguments;for(i=0;i<a.length;i++){if(a[i].indexOf("#")!=0){d.MM_p[j]=new Image;d.MM_p[j++].src=a[i]}}}}function MM_findObj(n,d){var p,i,x;if(!d){d=document}if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p)}if(!(x=d[n])&&d.all){x=d.all[n]}for(i=0;!x&&i<d.forms.length;i++){x=d.forms[i][n]}for(i=0;!x&&d.layers&&i<d.layers.length;i++){x=MM_findObj(n,d.layers[i].document)}if(!x&&d.getElementById){x=d.getElementById(n)}return x}function MM_swapImage(){var i,j=0,x,a=MM_swapImage.arguments;document.MM_sr=new Array;for(i=0;i<(a.length-2);i+=3){if((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x;if(!x.oSrc){x.oSrc=x.src}x.src=a[i+2]}}}function iPop_close(pop_name){if(!pop_name){pop_name="popin56"}DHTMLAPI_hide(pop_name)}function popin56_close(){DHTMLAPI_hide("popin56")}function popin56_init0(){if(!popin56_CookieCheck()){return}DHTMLAPI_init();popin56_Obj=DHTMLAPI_getRawObject("popin56");popin56_move();window.onscroll=popin56_move;window.onresize=popin56_move}function popin56_init1(){if(!popin56_CookieCheck()){return}DHTMLAPI_init();popin56_delta=16;popin56_Obj=DHTMLAPI_getRawObject("popin56");var theObj=popin56_Obj;if(theObj&&isCSS){theObj=theObj.style}if(theObj&&theObj.visibility=="hidden"){return}if(theObj&&theObj.display=="none"){theObj.display="block";theObj.position="absolute"}DHTMLAPI_shiftTo(popin56_Obj,0,5000);var center=DHTMLAPI_positionWindow(popin56_Obj,true);popin56_x=center[0];popin56_y=center[1];var w_scroll=DHTMLAPI_getScrollWindow();var start_y=parseInt((w_scroll[1]-popin56_y-DHTMLAPI_getObjectHeight(popin56_Obj)-100)/100)*100+popin56_y;DHTMLAPI_shiftTo(popin56_Obj,popin56_x,start_y);popin56_dropstart=setInterval("popin56_drop()",50)}function popin56_move(){if(window.popin56_timeout){clearTimeout(window.popin56_timeout)}if(!popin56_Obj){return}var theObj=popin56_Obj;if(theObj&&isCSS){theObj=theObj.style}if(theObj&&theObj.visibility=="hidden"){return}if(theObj&&theObj.display=="none"){theObj.display="block";theObj.position="absolute"}DHTMLAPI_positionWindow(popin56_Obj);window.popin56_timeout=setTimeout("popin56_move()",100)}function DHTMLAPI_positionWindow(elemID,positionOnly){var obj=DHTMLAPI_getRawObject(elemID);var position=obj.getAttribute("pos");var scrollX=0,scrollY=0;if(document.body&&typeof(document.body.scrollTop)!="undefined"){scrollX+=document.body.scrollLeft;scrollY+=document.body.scrollTop}else{if(typeof(window.pageXOffset)!="undefined"){scrollX+=window.pageXOffset;scrollY+=window.pageYOffset}}var x=Math.round((DHTMLAPI_getInsideWindowWidth()/2)-(DHTMLAPI_getObjectWidth(obj)/2))+scrollX;var y=Math.round((DHTMLAPI_getInsideWindowHeight()/2)-(DHTMLAPI_getObjectHeight(obj)/2))+scrollY;var shift_position=parseInt(0);if(isNaN(shift_position)){shift_position=0}switch(position){case"tc":y=scrollY+shift_position;break;case"tl":y=scrollY+shift_position;x=scrollX+shift_position;break;case"tr":y=scrollY+shift_position;x=Math.round(DHTMLAPI_getInsideWindowWidth()-DHTMLAPI_getObjectWidth(obj))+scrollX-shift_position;break;case"ml":x=scrollX+shift_position;break;case"mr":x=Math.round(DHTMLAPI_getInsideWindowWidth()-DHTMLAPI_getObjectWidth(obj))+scrollX-shift_position;break;case"bc":y=Math.round(DHTMLAPI_getInsideWindowHeight()-DHTMLAPI_getObjectHeight(obj))+scrollY-shift_position;break;case"bl":y=Math.round(DHTMLAPI_getInsideWindowHeight()-DHTMLAPI_getObjectHeight(obj))+scrollY-shift_position;x=scrollX+shift_position;break;case"br":y=Math.round(DHTMLAPI_getInsideWindowHeight()-DHTMLAPI_getObjectHeight(obj))+scrollY-shift_position;x=Math.round(DHTMLAPI_getInsideWindowWidth()-DHTMLAPI_getObjectWidth(obj))+scrollX-shift_position;break}if(!positionOnly){DHTMLAPI_shiftTo(obj,x,y)}return[x,y]}function popin56_drop(){var y=DHTMLAPI_getObjectTop(popin56_Obj);if(popin56_y>y){DHTMLAPI_shiftTo(popin56_Obj,popin56_x,50+y)}else{clearInterval(popin56_dropstart);popin56_vibrostart=setInterval("popin56_vibro()",40)}}function popin56_vibro(){var y=DHTMLAPI_getObjectTop(popin56_Obj);DHTMLAPI_shiftTo(popin56_Obj,popin56_x,y-popin56_delta);if(popin56_delta<0){popin56_delta+=4}popin56_delta*=-1;if(popin56_delta==0){clearInterval(popin56_vibrostart);popin56_move();window.onscroll=popin56_move;window.onresize=popin56_move}}function DHTMLAPI_hide(obj){var theObj=DHTMLAPI_getObject(obj);if(theObj){theObj.visibility="hidden";theObj.display = "none";}}function DHTMLAPI_getRawObject(obj){var theObj;if(typeof obj=="string"){if(isW3C){theObj=document.getElementById(obj)}else{if(isIE4){theObj=document.all(obj)}else{if(isNN4){theObj=DHTMLAPI_seekLayer(document,obj)}}}}else{theObj=obj}return theObj}function DHTMLAPI_shiftTo(obj,x,y){var theObj=DHTMLAPI_getObject(obj);if(theObj){if(isCSS){var units=(typeof theObj.left=="string")?"px":0;theObj.left=x+units;theObj.top=y+units}else{if(isNN4){theObj.moveTo(x,y)}}}}function DHTMLAPI_getScrollWindow(){var scrollX=0,scrollY=0;if(document.body&&typeof(document.body.scrollTop)!="undefined"){scrollX+=document.body.scrollLeft;scrollY+=document.body.scrollTop}else{if(typeof(window.pageXOffset)!="undefined"){scrollX+=window.pageXOffset;scrollY+=window.pageYOffset}}return[scrollX,scrollY]}function DHTMLAPI_getObjectHeight(obj){var elem=DHTMLAPI_getRawObject(obj);var result=0;if(elem.offsetHeight){result=elem.offsetHeight}else{if(elem.clip&&elem.clip.height){result=elem.clip.height}else{if(elem.style&&elem.style.pixelHeight){result=elem.style.pixelHeight}}}return parseInt(result)}function DHTMLAPI_getObjectTop(obj){var elem=DHTMLAPI_getRawObject(obj);var result=0;if(document.defaultView){var style=document.defaultView;var cssDecl=style.getComputedStyle(elem,"");result=cssDecl.getPropertyValue("top")}else{if(elem.currentStyle){result=elem.currentStyle.top}else{if(elem.style){result=elem.style.top}else{if(isNN4){result=elem.top}}}}return parseInt(result)}function DHTMLAPI_getObject(obj){var theObj=DHTMLAPI_getRawObject(obj);if(theObj&&isCSS){theObj=theObj.style}return theObj}function DHTMLAPI_seekLayer(doc,name){var theObj;for(var i=0;i<doc.layers.length;i++){if(doc.layers[i].name==name){theObj=doc.layers[i];break}if(doc.layers[i].document.layers.length>0){theObj=DHTMLAPI_seekLayer(document.layers[i].document,name)}}return theObj}function DHTMLAPI_getInsideWindowWidth(){if(window.innerWidth){return window.innerWidth}else{if(isIE6CSS){return document.body.parentElement.clientWidth}else{if(document.body&&document.body.clientWidth){return document.body.clientWidth}}}return 0}function DHTMLAPI_getInsideWindowHeight(){if(window.innerHeight){return window.innerHeight}else{if(isIE6CSS){return document.body.parentElement.clientHeight}else{if(document.body&&document.body.clientHeight){return document.body.clientHeight}}}return 0}function DHTMLAPI_getObjectWidth(obj){var elem=DHTMLAPI_getRawObject(obj);var result=0;if(elem.offsetWidth){result=elem.offsetWidth}else{if(elem.clip&&elem.clip.width){result=elem.clip.width}else{if(elem.style&&elem.style.pixelWidth){result=elem.style.pixelWidth}}}return parseInt(result)}function DHTMLAPI_init(){if(document.images){isCSS=(document.body&&document.body.style)?true:false;isW3C=(isCSS&&document.getElementById)?true:false;isIE4=(isCSS&&document.all)?true:false;isNN4=(document.layers)?true:false;isIE6CSS=(document.compatMode&&document.compatMode.indexOf("CSS1")>=0)?true:false}}function popin56_CookieCheck(){if(document.cookie.indexOf("popin56=")!=-1){return false}var d=new Date();d.setTime(new Date(d.getTime()+7*24*60*60*1000));document.cookie="popin56="+d.toGMTString()+"; expires="+d.toGMTString()+";";return true};
