
var myrules={'#linkSearchReset':function(elem){elem.onclick=function(){document.form1.keyword.value="";return false;}}};Behaviour.register(myrules);var flgSerchBoxFocus;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_changeProp(objName,x,theProp,theValue){var obj=MM_findObj(objName);if(obj&&(theProp.indexOf("style.")==-1||obj.style)){if(theValue==true||theValue==false)
eval("obj."+theProp+"="+theValue);else eval("obj."+theProp+"='"+theValue+"'");}}
function MM_callJS(jsStr){return eval(jsStr)}
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_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_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 activateSearchBox(){}
function deactivateSearchBox(){}
function openWindow(w,h,winName,theUrl){var prop="width="+w+",height="+h+",scrollbars=yes,resizable=yes";var openw=window.open(theUrl,winName,prop);if(openw){openw.window.focus();}}
function focusField(elem){elem.style.backgroundColor='#ffc'}
function blurField(elem){elem.style.backgroundColor=''}
function openMmWindow(theUrl,type){switch(type){case'anime':w=530;h=620;prop="scrollbars=no,resizable=yes";break;case'movie':w=420;h=480;prop="scrollbars=no,resizable=yes";break;case'sound':w=420;h=480;prop="scrollbars=no,resizable=yes";break;case'photo':w=530;h=620;prop="scrollbars=no,resizable=yes";break;case'pdf':w=800;h=700;prop="scrollbars=yes,resizable=yes";break;case'quiz':w=455;h=455;prop="scrollbars=yes,resizable=yes";break;case'ptv':w=420;h=330;prop="scrollbars=no,resizable=no";break;default:prop="scrollbars=yes,resizable=yes";}
if(screen.availWidth<w){w=screen.availWidth;}
if(screen.availHeight<h){h=screen.availHeigth;}
l=Math.floor((screen.availWidth-w)/2);t=Math.floor((screen.availHeight-h)/2);var openw=window.open(theUrl,"mm_"+type,"left="+l+",top="+t+",width="+w+",height="+h+","+prop);if(type!='pdf'&&openw){openw.window.focus();}
return false;}
function getExpDate(days,hours,minutes){var expDate=new Date();if(typeof days=="number"&&typeof hours=="number"&&typeof hours=="number"){expDate.setDate(expDate.getDate()+parseInt(days));expDate.setHours(expDate.getHours()+parseInt(hours));expDate.setMinutes(expDate.getMinutes()+parseInt(minutes));return expDate.toGMTString();}}
function getCookieVal(offset){var endstr=document.cookie.indexOf(";",offset);if(endstr==-1){endstr=document.cookie.length;}
return unescape(document.cookie.substring(offset,endstr));}
function getCookie(name){var arg=name+"=";var alen=arg.length;var clen=document.cookie.length;var i=0;while(i<clen){var j=i+alen;if(document.cookie.substring(i,j)==arg){return getCookieVal(j);}
i=document.cookie.indexOf(" ",i)+1;if(i==0)break;}
return null;}
function setCookie(name,value,expires,path,domain,secure){document.cookie=name+"="+escape(value)+
((expires)?"; expires="+expires:"")+
((path)?"; path="+path:"")+
((domain)?"; domain="+domain:"")+
((secure)?"; secure":"");}
function deleteCookie(name,path,domain){if(getCookie(name)){document.cookie=name+"="+
((path)?"; path="+path:"")+
((domain)?"; domain="+domain:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT";}}
