cacheD=111111111;
function updateContent(_1,_2){
var _3="#"+"main";
if(!$(_3)){
_3="#"+"content";
}
if($(_3)&&_1){
var _4=new Date();
_1=_1+"?date="+_4.getTime();
var _5=window.location.href;
var _6=$(_3).load(_1,_2,function(){
if(_5.indexOf("cmd")>-1){
_5=_5.split("?")[0];
}
addressIds=_2.split("&");
var _7="";
var _8="";
var _9="";
for(var i=1;i<addressIds.length-1;i++){
_7+="&"+addressIds[i];
if(addressIds[i].indexOf("subunitidentifier")>-1){
_8=addressIds[i].split("=")[1];
}else{
if(addressIds[i].indexOf("subid")>-1){
_9=addressIds[i].split("=")[1];
}
}
}
if(!jQuery.browser.mozilla){
var _a="?cmd=view_";
if(_7.indexOf("menuidentifier")>-1){
commandOut="menu";
if(_7.indexOf("pageidentifier")>-1){
commandOut="page";
}
_a+=commandOut;
}else{
if(_7.indexOf("&unitidentifier")>-1){
_a+="unit";
}else{
if(_7.indexOf("&sectionidentifier")>-1){
_a+="section";
}else{
_a+="topic";
}
}
}
if(_8.indexOf("_")>-1){
_5=_5+_a+_7+"#__hash__"+_8;
}else{
_5=_5+_a+_7+"#__hash__"+_8+"_"+_9;
}
window.location=_5;
if(window.location.href==_5){
window.location.reload();
}
}else{
startup();
try{
if(_8.indexOf("_")>-1){
glider1.scrollTo(-99,_8);
}else{
glider1.scrollTo(-99,_8+"_"+_9);
}
}
catch(e){
}
}
});
}
};
function highlightTab(_b,_c,_d){
try{
_b="#"+_b;
if(_c!=0){
jQuery(_b).css("borderColor","red");
}else{
jQuery(_b).css("borderColor",_d);
}
}
catch(e){
}
};
function updatePopUp(_e,_f){
var _10="#"+"popupArea";
if(!$(_10)){
_10="#"+"content";
}
$(_10).slideDown("slow");
if($(_10)&&_e){
var _11=$(_10).load(_e,_f,function(){
startup();
});
}
};
function updatePublish(_12,_13,_14,_15){
var _16="Are you sure you want to publish your changes and make them available to students?";
var _17="<p><img src='images/spinner.gif' /> Publishing...please wait</p>";
if(typeof (_14)=="undefined"){
_14=0;
}
if(_14==1){
_16="Are you sure you want to publish your changes and make them available to students? \nNote: It may take up to ten minutes before students see the latest version.";
_17="<p><img src='images/spinner.gif' /> Publishing...please wait. <br />&nbsp;&nbsp;&nbsp;&nbsp;Note: It may take up to ten minutes before students see the latest version.</p> ";
}
if(window.confirm(_16)){
if(!$(_12)){
_12="#"+"publishMessage";
}
try{
$(_12).html(_17).slideDown("slow");
}
catch(e){
}
var _18=new Date();
_13=_13+"&date="+_18.getTime();
if($(_12)&&_13){
var _19=$.ajax({url:_13,data:_15,complete:function(){
shrinkMessage(_12,"<strong>Done !!</strong>");
}});
}
}
};
function showAddPageForm(_1a,_1b,_1c){
_1a="#"+_1a;
if(!$(_1a)){
_1a="publishMessage";
}
$(_1a).show();
$(_1a).css({position:"relative",margin:"0 auto",width:"550px",border:"1px solid #111"});
if($(_1a)&&_1b){
var _1d=new Date();
_1b=_1b+"&date="+_1d.getTime();
myAjax=$(_1a).load(_1b,_1c,function(){
$("addPageForm").effect("highlight");
$("shortTitle").focus();
});
}
};
function shrinkMessage(_1e,msg){
if(_1e.substring(0,1)!=="#"){
_1e="#"+_1e;
}
if(!msg){
var msg="Done!!";
}
$(_1e).html(msg);
$(_1e).slideUp(7000);
};
function chooseSubtemplates(_1f,_20,_21,_22){
commentsUrl=_20;
_1f="#"+_1f;
if(!$(_1f)){
_1f="#"+"selectSubtemplates";
}
var _23=new Date();
_20+="&date="+_23.getTime();
if($(_1f)&&_20){
$(_1f).load(_20,_21,function(){
if(_22!=1){
$.scrollTo(_1f,{duration:2500});
}
});
}
};
function updateSubtemplatesList(_24){
if(!$("#"+_24)){
_24="subtemplatesListForm";
}
pars=getRequestBody(_24);
_24="#"+_24;
try{
$(_24).slideUp(1000);
}
catch(e){
}
if($(_24)){
var _25=new Date();
var _26=$(_24).load("start.pyg"+"?date="+_25.getTime(),pars,function(){
shrinkMessage(_24,"<strong>Done !!</strong>");
document.location.reload(true);
});
}
};
function closeSubtemplatesForm(_27){
_27="#"+_27;
if(!$(_27)){
_27="#"+"subtemplatesListForm";
}
try{
$(_27).slideUp(1000);
$(_27).text("");
}
catch(e){
}
};
function encodeNameAndValue(_28,_29){
var _2a=encodeURIComponent(_28);
_2a+="=";
_2a+=encodeURIComponent(_29);
return _2a;
};
function getRequestBody(_2b){
var _2c=new Array();
var _2d=document.forms[_2b];
for(var i=0;i<_2d.elements.length;i++){
var _2e=_2d.elements[i];
switch(_2e.type){
case "button":
case "submit":
case "reset":
break;
case "checkbox":
case "radio":
if(!_2e.checked){
break;
}
case "text":
case "hidden":
case "password":
_2c.push(encodeNameAndValue(_2e.name,_2e.value));
break;
default:
switch(_2e.tagName.toLowerCase()){
case "select":
_2c.push(encodeNameAndValue(_2e.name,_2e.options[_2e.selectedIndex].value));
break;
default:
_2c.push(encodeNameAndValue(_2e.name,_2e.value));
}
}
}
return _2c.join("&");
};
function menuFormBeforeSubmit(){
var _2f=document.forms["edit"];
var _30="";
if(_2f.title.value==""){
alert("title is required");
_2f.title.focus();
return false;
}
for(var i=0;i<_2f.showIn.length;i++){
if(_2f.showIn[i].checked){
_30=_2f.showIn[i].value;
break;
}
}
if(_30=="side"){
_2f.showInNavi.value="yes";
_2f.showInHeaderBar.value="no";
_2f.hiddenPage.value="no";
}else{
if(_30=="top"){
_2f.showInNavi.value="no";
_2f.showInHeaderBar.value="yes";
_2f.hiddenPage.value="no";
}else{
if(_30=="both"){
_2f.showInNavi.value="yes";
_2f.showInHeaderBar.value="yes";
_2f.hiddenPage.value="no";
}else{
_2f.showInNavi.value="no";
_2f.showInHeaderBar.value="no";
_2f.hiddenPage.value="yes";
}
}
}
_2f.submit();
};
function loadTopics(_31){
var _32="#topicsContainer";
var _33="start.pyg?cmd=copyListFromCourse&courseidentifier="+_31;
if(typeof (_31)==undefined||_31==""){
return;
}
if(!$(_32)){
return;
}
var _34=$(_32).load(_33);
};
function submitCommentAction(_35,_36){
_35.pageUrl.value=document.URL;
$("#pageComments").load(_35.action,$("#commentsForm").serialize(),function(){
chooseSubtemplates("comments",commentsUrl);
});
document.forms["commentsForm"].q3.value="";
};
function updateCommentsList(_37){
var _38="#pageComments";
if($(_38)){
var _39=$(_38).load(_37);
}
};
function updateCommentsNum(_3a,_3b){
_3a="#"+_3a;
if(typeof (_3a)=="undefined"){
_3a="#spanComment";
}
if($(_3a)){
var _3c=new Date();
_3b+="&date="+_3c.getTime();
jQuery.ajaxSetup({transport:"flXHRproxy"});
$(_3a).load(_3b);
}
};
function handleLoading(_3d,_3e,_3f){
alert("readyState:"+_3f.readyState+"\nresponseText:"+_3f.responseText+"\nstatus:"+_3f.status+"\nstatusText:"+_3f.statusText+"\nSource Object Id: "+_3f.instanceId+"\nResponse Body : "+_3f.responseBody);
};
function handleError(_40,_41,_42){
alert("Error: "+_42.number+"\nType: "+_42.name+"\nDescription: "+_42.description+"\nSource Object Id: "+_42.srcElement.instanceId);
};
function richTextComment(_43){
_43="#"+_43;
var _44=new punymce.Editor({id:_43});
};
function monitorComment(_45,_46,_47){
var _48=new Date();
_target="#"+_target;
if(_46["q2"].value==""){
alert("Please provide your email address and tick this box again");
if(_46["watch"].checked){
_46["watch"].checked=false;
}else{
_46["watch"].checked=true;
}
return false;
}
if(_46["watch"].checked){
_45+="&watch=1"+"&email="+_46["q2"].value;
}else{
_45+="&watch=0"+"&email="+_46["q2"].value;
}
_45=_45+"&date="+_48.getTime();
jQuery.ajaxSetup({transport:"flXHRproxy"});
$(_target).load(_45);
};
function showLevel(_49,_4a,_4b,_4c){
if(_4c==undefined){
_4c="appear";
}
var _4d=document.getElementById(_49);
var _4e=eval("document.getElementById(\"span"+_49+"\")");
if(_4d.style.display=="none"){
if(_4c=="appear"){
$("#"+_49).fadeIn("slow");
}else{
if(_4c=="slide"){
$("#"+_49).slideToggle("slow");
}else{
$("#"+_49).show("blind",{direction:"horizontal"},"slow");
}
}
$("#span"+_49).html(_4a);
}else{
if(_4c=="appear"){
$("#"+_49).fadeOut("slow");
}else{
if(_4c=="slide"){
$("#"+_49).slideToggle("slow");
}else{
$("#"+_49).hide("blind",{direction:"horizontal"},"slow");
}
}
$("#span"+_49).html(_4b);
}
};
function showHide(_4f,obj,_50,_51,_52,_53){
var url;
var _54;
var _55;
var _56=getObj(_4f);
if(_53==undefined){
_53="appear";
}
if($("#"+_4f).html()=="shown"){
url=_51;
_54="hidden";
_55="none";
if(_53=="appear"){
$("#"+_50).fadeOut("slow");
}else{
if(_53=="slide"){
$("#"+_50).slideToggle("slow");
}else{
$("#"+_50).hide("blind",{direction:"horizontal"},"slow");
}
}
}else{
url=_52;
_54="shown";
_55="block";
if(_53=="appear"){
$("#"+_50).fadeIn("slow");
}else{
if(_53=="slide"){
$("#"+_50).slideToggle("slow");
}else{
$("#"+_50).show("blind",{direction:"horizontal"},"slow");
}
}
}
$("#"+_4f).html(_54);
obj.src=url;
};
function hideShowText(_57,_58){
var _59=$("#"+_57);
var _5a="";
try{
if(getObj("hideShow_"+_57)){
$("#hideShow_"+_57).remove();
}else{
var _5b=document.createElement("div");
_5b.setAttribute("class","hideShowDiv");
_5b.setAttribute("id","hideShow_"+_57);
_5b.innerHTML=_58.hint;
$(_5b).insertAfter(_59);
}
}
catch(e){
}
};
function getObj(_5c){
return document.getElementById(_5c);
};
function showHideTimer(_5d,id){
document.getElementById(id).style.visibility="visible";
setTimeout("document.getElementById(\""+id+"\").style.visibility=\"hidden\";",_5d);
};
function inTab(elm){
if(elm.substring(0,1)!=="#"){
elm="#"+elm;
}
var _5e=false;
var _5f=false;
try{
if($(elm).parents(".section").attr("id")){
return _5e=$(elm).parents(".section");
}else{
if($("#_"+elm.substring(1)).parents(".section").attr("id")){
return _5e=$("#_"+elm.substring(1)).parents(".section");
}else{
if($(elm).is(".section")){
return _5e=$(elm);
}else{
if($("#_"+elm.substring(1)).is(".section")){
return _5e=$(elm);
}
}
}
}
}
catch(e){
}
try{
if($(elm).parents(".accordion").attr("id")){
_5e=$(elm).parents(".accordion_content");
}
}
catch(e){
}
return _5e;
};
function inAccordionHidden(elm){
var _60=false;
var _61=false;
if(!document.getElementById(elm)){
return false;
}
try{
_61=$("#"+elm).parent();
}
catch(e){
}
while(_61){
try{
if(_61.hasClass("caseStudyHidden")){
_60=true;
break;
}
}
catch(e){
}
_61=_61.parent();
}
return _60;
};
function myHighlight(elm){
var _62="";
var _63="";
var _64="";
var _65="";
if(elm.substring(0,1)!=="#"){
elm="#"+elm;
}
_62=inTab(elm);
if(_62){
_63=_62.attr("id");
if(_62.is(".section")){
if(_63!=elm.substring(1)){
if($(elm).attr("id")){
$(elm).effect("highlight",{},4000);
}else{
if($("#_"+elm.substring(1)).attr("id")){
elm="#_"+elm.substring(1);
$(elm).effect("highlight",{},4000);
}
}
}
_65=_63.split("_")[0];
try{
eval("glider"+_65+".click('#"+_63+"')");
}
catch(e){
}
jQuery.scrollTo("#"+_63,{duration:1500});
}else{
if(_62.is(".accordion_content")){
try{
myAccordion=$(elm).parents(".accordion");
myAccordion.accordion("destroy");
myAccordion.accordion({collapsible:true,autoHeight:false,active:false});
myAccordion.accordion("activate","#ac_"+_62.attr("id").substring(4));
jQuery.scrollTo("#ac"+_62.attr("id").substring(4),{duration:1500});
$(elm).effect("highlight",{},4000);
}
catch(e){
jQuery.scrollTo(elm,{duration:1500});
$(elm).effect("highlight",{},4000);
}
}else{
jQuery.scrollTo(elm,{duration:1500});
$(elm).effect("highlight",{},4000);
}
}
}else{
try{
jQuery.scrollTo(elm,{duration:1500});
$(elm).effect("highlight",{},4000);
}
catch(e){
window.location=elm;
}
}
return false;
};
function adjustParentHeight(_66){
var _67;
var _68=0;
var _69="";
var _6a=0;
debug=0;
_67=inTab(_66);
_66="#"+_66;
if(debug){
console.log("parentTabName: %s",$(_67).attr("id"));
}
if(_67){
var _6b=$(_66).css("display");
var _6c=0;
$(_66).css("display","block");
_68=$(_66).height();
$(_66).css("display",_6b);
if(typeof (glider1)!="undefined"){
_69=$(_67).parents(".scrollerContainer");
_6c=_69.height();
if(_6b=="none"){
_6a=_6c+_68;
}else{
_6a=_6c-_68;
}
if(debug){
console.log("parentHeight:%s totalHeight: %s",_6c,_6a);
console.log("parent .scrollerContainer %s",$(_67).parents(".scrollerContainer"));
}
$(_67).css({height:_6a+"px"});
}
}
};
function checkTarget(_6d){
var _6e;
if(_6d.indexOf("#")>-1){
_6e=_6d.replace("__hash__","").split("#")[1];
myHighlight(_6e);
}
};
function moveItem(_6f,_70){
if(typeof (_6f)==typeof ("")){
_6f=$("#"+_6f);
}
if(typeof (_70)==typeof ("")){
_70=$("#"+_70);
}
_6f.parent().remove(_6f);
_70.append(_6f);
};
function hideShowPageSeperator(_71){
if(_71=="show"){
$(".pageSeperator").each(function(elm){
$("#"+elm).show();
});
$(".pageSeperatorDiv").each(function(_72){
$("#"+_72).hide();
});
}else{
$(".pageSeperator").each(function(elm){
$("#"+elm).hide();
});
$(".pageSeperatorDiv").each(function(_73){
$("#"+_73).show();
});
}
};
function backToCurrentGliderTag(){
var _74=window.location.href;
addressIds=_74.split("&");
_74=_74.split("?")[0];
var _75="";
var _76="";
var _77="";
for(var i=1;i<addressIds.length-1;i++){
_75+="&"+addressIds[i];
if(addressIds[i].indexOf("subunitidentifier")>-1){
_76=addressIds[i].split("=")[1];
}else{
if(addressIds[i].indexOf("subid")>-1){
_77=addressIds[i].split("=")[1];
}
}
}
var _78="?cmd=view_";
if(_75.indexOf("menuidentifier")>-1){
commandOut="menu";
if(_75.indexOf("pageidentifier")>-1){
commandOut="page";
}
_78+=commandOut;
}else{
if(_75.indexOf("&unitidentifier")>-1){
_78+="unit";
}else{
if(_75.indexOf("&sectionidentifier")>-1){
_78+="section";
}else{
_78+="topic";
}
}
}
if(_76.indexOf("_")>-1){
_74=_74+_78+_75+"#__hash__"+_76;
}else{
_74=_74+_78+_75+"#__hash__"+_76+"_"+_77;
}
window.location=_74;
};
var arrcloze=new Array();
function getFocus(){
try{
document.getElementById("answer1").focus();
}
catch(e){
}
};
function cloze(_79,_7a){
var _7b="";
var _7c=new Array("");
var _7d=0;
var IE;
if(navigator.appName=="Microsoft Internet Explorer"){
IE=true;
}else{
IE=false;
}
_7e(_7a);
function _7e(_7f){
document.write("<form action=\"javascript:void(0);\" autocomplete=\"off\">");
var i;
for(i=0;i<_7f.length;i++){
var _80=_7f.substr(i,1);
if(_80=="["){
i+=_81(_7f.substring(i+1,_7f.length));
}else{
if(_80=="{"){
i+=_82(_7f.substring(i+1,_7f.length));
}else{
document.write(_80);
}
}
}
if(IE){
document.write("<input type=\"submit\" style=\"width:0px; height:0px;\">");
}
document.write("</form>");
_83();
};
function _81(_84){
_7d++;
var i=0;
var _85=0;
var _86=0;
var _87="";
while(true){
var _88=_84.substr(i++,1);
if(_88=="]"){
_85=Math.max(_85,_86);
_7c.push(_87.split(","));
break;
}else{
if(_88==","){
_85=Math.max(_85,_86);
_86=0;
}
}
_87+=_88;
_86++;
}
document.write("<span class=\"cloze_table\"><img src=\"images/cloze/tick.gif\" width=\"10\" height=\"11\" style=\"position:absolute; left:0; top:-8px !important; top:0px; visibility:hidden\" id=\"image"+_7d+"\" /><span id=\"correction"+_7d+"\" class=\"rubyt\">"+(_7c[_7d])[0]+"</span><input type=\"text\" class=\"input\" size=\""+(_85+1)+"\" id=\"answer"+_7d+"\" onchange=\"arrcloze["+_79+"].checkAnswer(this, false); try { document.getElementById('answer"+(_7d+1)+"').focus(); } catch(e) {}\" maxlength=\""+(_85+3)+"\" value=\"\" /></span> ");
return _87.length+1;
};
function _82(_89){
_7d++;
var i=0;
var j;
var _8a=0;
var _8b=false;
var _8c="";
while(true){
var _8d=_89.substr(i++,1);
if(_8d=="}"){
_7c.push(_8c.split(","));
break;
}else{
if(_8d==","&&!_8b){
_8a++;
}else{
if(_8d=="#"){
_8b=true;
}
}
}
if(_8d!="#"){
_8c+=_8d;
}
}
document.writeln("<select class=\"input\" id=\"answer"+_7d+"\" onchange=\"arrcloze["+_79+"].checkSelect(this,this.options[this.selectedIndex].value,'"+(_7c[_7d])[_8a]+"'); try { document.getElementById('answer"+(_7d+1)+"').focus(); } catch(e) {}\" /> ");
document.writeln("<option value=\"---\">---</option>");
for(j=0;j<_7c[_7d].length;j++){
document.writeln("<option value='"+(_7c[_7d])[j]+"'>"+(_7c[_7d])[j]+"</option>");
}
document.writeln("</select> <img src=\"images/cloze/tick.gif\" width=\"10\" height=\"11\" style=\"display:none\" id=\"imagetick"+_7d+"\" /><img src=\"images/cloze/cross.gif\" width=\"10\" height=\"11\" style=\"display:none\" id=\"imagecross"+_7d+"\" /><img src=\"images/cloze/spacer.gif\" width=\"10\" height=\"11\" style=\"display:inline\" id=\"imagespacer"+_7d+"\" />");
return _8c.length+2;
};
function _8e(_8f){
_7b+=_8f;
};
function _83(){
};
function _90(_91){
return document.getElementById(_91);
};
function _92(obj,_93){
var id=obj.id;
id=id.substring(6,id.length);
var _94=obj.value;
_94=_94.replace(/ /g,"");
_94=_94.toLowerCase();
var i;
for(i=0;i<_7c[id].length;i++){
if(_94==(_7c[id])[i]){
var _95=_90("image"+id);
_95.style.visibility="visible";
return true;
}
}
_90("correction"+id).style.visibility="visible";
obj.style.textDecoration="line-through";
obj.disabled=true;
obj.contentEditable=false;
};
function _96(obj,_97,_98){
var id=obj.id;
id=id.substring(6,id.length);
var i;
var _99=_90("imagetick"+id);
var _9a=_90("imagecross"+id);
var _9b=_90("imagespacer"+id);
if(_98==_97){
_9a.style.display="none";
_9b.style.display="none";
_99.style.display="inline";
}else{
if(_97!="---"){
_99.style.display="none";
_9b.style.display="none";
_9a.style.display="inline";
}else{
_99.style.display="none";
_9a.style.display="none";
_9b.style.display="inline";
}
}
};
this.checkAnswer=_92;
this.checkSelect=_96;
};
function checkClozAnswer(obj,_9c){
var _9d=0;
var ax=obj.getAttribute("ax")?obj.getAttribute("ax"):"";
var _9e=ax.split(",");
var id=obj.id;
id=id.substring(6,id.length);
var _9f="tick"+id;
var _a0=obj.value;
_a0=trim(_a0);
_a0=_a0.toLowerCase();
var i;
for(i=0;i<_9e.length;i++){
if(_a0==trim(_9e[i]).toLowerCase()){
var _a1=document.getElementById(_9f);
_a1.style.display="inline";
obj.disabled=true;
obj.contentEditable=false;
return 1;
}
}
document.getElementById("correct"+id).style.visibility="visible";
document.getElementById("correct"+id).style.display="inline";
obj.style.textDecoration="line-through";
obj.disabled=true;
obj.contentEditable=false;
return 0;
};
function checkSelectAnswer(obj,_a2,_a3){
var id=obj.id;
id=id.substring(6,id.length);
var i;
var _a4=getObj("imagetick"+id);
var _a5=getObj("imagecross"+id);
var _a6=getObj("imagespacer"+id);
var _a7=0;
_a3=trim(_a3);
_a2=trim(_a2);
if(_a3==_a2){
_a5.style.display="none";
_a6.style.display="none";
_a4.style.display="inline";
obj.disabled=true;
_a7=1;
}else{
if(_a2!="---"){
_a4.style.display="none";
_a6.style.display="none";
_a5.style.display="inline";
document.getElementById("correct"+id).style.visibility="visible";
document.getElementById("correct"+id).style.display="inline";
obj.disabled=true;
}else{
_a4.style.display="none";
_a5.style.display="none";
_a6.style.display="inline";
}
}
return _a7;
};
function trim(str,_a8){
return ltrim(rtrim(str,_a8),_a8);
};
function ltrim(str,_a9){
_a9=_a9||"\\s";
return str.replace(new RegExp("^["+_a9+"]+","g"),"");
};
function rtrim(str,_aa){
_aa=_aa||"\\s";
return str.replace(new RegExp("["+_aa+"]+$","g"),"");
};
function focusNext(obj,_ab){
try{
if(obj.form.getAttribute("id")==$("#"+_ab).parents("form:first").attr("id")){
$("#"+_ab).focus();
}
}
catch(e){
}
};
function handleEnter(_ac,_ad,_ae){
var _af=_ad.keyCode?_ad.keyCode:_ad.which?_ad.which:_ad.charCode;
if(_af==13){
var i;
for(i=0;i<_ac.form.elements.length;i++){
if(_ac==_ac.form.elements[i]){
break;
}
}
i=(i+1)%_ac.form.elements.length;
focusNext(_ac,_ae);
return false;
}else{
return true;
}
};
function openCecil(){
if(typeof (myWindow)=="undefined"||myWindow.closed){
var _b0=screen.availWidth*0.9;
var _b1=screen.availHeight*0.7;
myWindow=window.open("http://cecil.auckland.ac.nz/","cecil","scrollbars=yes,toolbar=yes,status=yes,location=yes,menubar=yes,resizable=yes,top=30,left=30,width="+_b0+",height="+_b1+"");
}
myWindow.focus();
};
function goback(){
window.history.go(-1);
};
function showPNG(){
for(var i=0;i<document.images.length;i++){
var img=document.images[i];
var _b2=img.src.toUpperCase();
if(_b2.substring(_b2.length-3,_b2.length)=="PNG"){
img.style.visibility="visible";
}
}
};
var imapAreaOpen=[];
function MM_openBrWindow(_b3,_b4,_b5){
window.open(_b3,_b4,_b5);
};
var theTarget=null;
var objBrowse=navigator.appName;
var bodyScrollTop=0;
function showDiv(_b6,_b7,w,h,_b8){
hideDiv();
if(_b8==undefined){
_b8="";
}
var _b9=document.createElement("div");
var _ba;
_b9.id="popupmessage";
if(_b6!=""){
_b9.className="mediaFile";
}else{
_b9.className="mediaFileWhite";
}
if(_b8!=""){
cacXpos=(xpos-w-50)>10?(xpos-w-50):10;
}else{
cacXpos=(xpos-w/1.7)>10?(xpos-w/1.7):10;
}
if(_b8!=""&&_b6!=""){
cacYpos=(ypos-h/2-90)>10?(ypos-h/2-90):10;
}else{
if(_b6==""){
cacYpos=(ypos-50)>10?(ypos-50):10;
}else{
cacYpos=(ypos-h-90)>10?(ypos-h-90):10;
}
}
if(_b7=="mp3"){
cacYpos=(ypos-90)>10?(ypos-90):10;
}
if(cacYpos<bodyScrollTop){
cacYpos=bodyScrollTop;
}
_b9.style.cssText="left: "+(cacXpos)+"px; top: "+(cacYpos)+"px; width: "+w+"px;";
_ba="<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"margin-top:5px; margin-bottom:5px;style=\"z-index:10001;\"><tr><td width=\"100%\" style=\"background-image:url(player/drag_bar.gif); background-repeat: repeat-x; background-position: 3px; border:1px solid  #757575;\" title=\"click and drag\"><img src=\"images/space.gif\" width=\"1\" height=\"1\" /></td><td style=\"padding-left:2px;\"><img src=\"player/close_small.png\" width=\"14\" height=\"14\" onclick=\"Javascript:hideDiv();\" title=\"close\" style=\"z-index:10001;\"/></td></tr></table>";
if(_b7=="wmv"){
_ba+="<EMBED ID=\"Player\" standby=\"Loading Microsoft Windows Media Player components...\" WIDTH=\""+(w)+"\" HEIGHT=\""+(h+47)+"\" CONTROLLER=\"TRUE\" SRC=\""+_b6+"\"  type=\"application/x-mplayer\" TARGET=\"myself\" BGCOLOR=\"#000000\" AnimationAtStart=\"true\" PLUGINSPAGE=\"https://www.microsoft.com/Windows/MediaPlayer/\" standby=\"Loading Microsoft Windows Media Player components...\" autostart=\"true\"></EMBED>";
}else{
if(_b7=="mp3"){
_ba+="<p id=\"Player\" class=\"mediaplugin\"><embed src=\"images/mediaplayer.swf\" width=\""+(w)+"\" height=\"20\" allowscriptaccess=\"sameDomain\" allowfullscreen=\"true\" flashvars=\"autostart=true&width=320&height=20&file="+_b6+"\"/></p>";
}else{
if(_b7=="mov"||_b7=="qtl"||_b7=="mp4"){
_ba+="<EMBED ID=\"Player\" WIDTH=\""+(w+2)+"\" HEIGHT=\""+(h+18)+"\" CONTROLLER=\"TRUE\" SRC=\""+_b6+"\"  type=\"video/quicktime\" TARGET=\"myself\" BGCOLOR=\"#000000\" PLUGINSPAGE=\"https://www.apple.com/quicktime/download/\" autostart=\"true\"></EMBED>";
}else{
if(_b7=="mpg"||_b7=="mpeg"){
_ba+="<p id=\"Player\" class=\"mediaplugin\"><object width=\""+(w+2)+"\" height=\""+(h+47)+"\"><param name=\"src\" value=\""+_b6+"\"><param name=\"controller\" value=\"true\"> <param name=\"autoplay\" value=\"true\"><embed src=\""+_b6+"\" width=\""+(w)+"\" height=\""+(h+47)+"\"    controller=\"true\" autoplay=\"true\"> </embed> </object></p>";
}else{
if(_b7=="avi"){
_ba+="<p id=\"Player\" class=\"mediaplugin\"><object width=\""+(w+2)+"\" height=\""+(h+2)+"\"> <param name=\"src\" value=\""+_b6+"\"> <param name=\"controller\" value=\"true\"> <param name=\"autoplay\" value=\"true\"> <embed src=\""+_b6+"\" width=\""+(w)+"\" height=\""+(h+2)+"\" controller=\"true\" autoplay=\"true\"> </embed></object></p>";
}else{
if(_b7=="swf_nocontrol"){
_ba+="<p id=\"Player\" class=\"mediaplugin swf\"><object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"          codebase=\"https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width=\""+(w+2)+"\" height=\""+(h+2)+"\" id=\"mp3player\"> <param name=\"movie\" value=\""+_b6+"\" /> <param name=\"quality\" value=\"high\" /> <param name=\"AllowScriptAccess\" value=\"never\" /> <embed src=\""+_b6+"\" quality=\"high\" width=\""+(w+2)+"\" height=\""+(h+2)+"\" name=\"flashfilter\" AllowScriptAccess=\"never\" type=\"application/x-shockwave-flash\" pluginspage=\"https://www.macromedia.com/go/getflashplayer\"></embed> </object></p>";
}else{
if(_b7=="swf"){
_ba+="<object id=\"Player\" class=\"mediaplugin flv\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"\tcodebase=\"https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" \twidth=\""+(w-1)+"\" height=\""+(h+19)+"\" id=\"flvplayer\"> <param name=\"movie\" value=\"images/mediaplayer.swf?file="+_b6+"\" /><param name=\"quality\" value=\"high\" />\t<param name=\"bgcolor\" value=\"#FFFFFF\" /><param name=\"allowfullscreen\" value=\"true\"><param name=\"flashvars\" value=\"waitForPlay=yes&autostart=true\" /><embed  src=\"images/mediaplayer.swf?file="+_b6+"\" quality=\"high\" bgcolor=\"#FFFFFF\" width=\""+(w-1)+"\" height=\""+(h+19)+"\"name=\"flvplayer\" type=\"application/x-shockwave-flash\" allowscriptaccess=\"sameDomain\" allowfullscreen=\"true\" flashvars=\"waitForPlay=yes&autostart=true\"  pluginspage=\"https://www.macromedia.com/go/getflashplayer\"></embed></object>";
}else{
if(_b7=="flv"){
if(_b6.substr(0,4)!="http"){
_b6="../"+_b6;
}
_ba+="<object id=\"Player\" class=\"mediaplugin flv\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"\tcodebase=\"https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" \twidth=\""+(w)+"\" height=\""+(h+20)+"\" id=\"flvplayer\"> <param name=\"movie\" value=\"images/mediaplayer.swf?file="+_b6+"\" /><param name=\"quality\" value=\"high\" />\t<param name=\"bgcolor\" value=\"#FFFFFF\" /><param name=\"allowfullscreen\" value=\"true\"><param name=\"flashvars\" value=\"waitForPlay=yes&autostart=true\" /><embed  src=\"images/mediaplayer.swf?file="+_b6+"\" quality=\"high\" bgcolor=\"#FFFFFF\" width=\""+(w)+"\" height=\""+(h+20)+"\"name=\"flvplayer\" type=\"application/x-shockwave-flash\" allowscriptaccess=\"sameDomain\" allowfullscreen=\"true\" flashvars=\"waitForPlay=yes&autostart=true\"  pluginspage=\"https://www.macromedia.com/go/getflashplayer\"></embed></object>";
}else{
if(_b7=="m4v"){
if(_b6.substr(0,4)!="http"){
_b6="../"+_b6;
}
_ba+="<object id=\"Player\" class=\"mediaplugin flv\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"\tcodebase=\"https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" \twidth=\""+(w)+"\" height=\""+(h+20)+"\" id=\"flvplayer\"> <param name=\"movie\" value=\"images/mediaplayer.swf?file="+_b6+"\" /><param name=\"quality\" value=\"high\" />\t<param name=\"bgcolor\" value=\"#FFFFFF\" /><param name=\"allowfullscreen\" value=\"true\"><param name=\"flashvars\" value=\"waitForPlay=yes&autostart=true\" /><embed  src=\"images/mediaplayer.swf?file="+_b6+"\" quality=\"high\" bgcolor=\"#FFFFFF\" width=\""+(w)+"\" height=\""+(h+20)+"\"name=\"flvplayer\" type=\"application/x-shockwave-flash\" allowscriptaccess=\"sameDomain\" allowfullscreen=\"true\" flashvars=\"waitForPlay=yes&autostart=true\"  pluginspage=\"https://www.macromedia.com/go/getflashplayer\"></embed></object>";
}else{
if(_b7=="html"){
_ba+=_b6;
}else{
if(_b7=="youtube"){
if(_b6.indexOf("http://www.youtube.com/watch?v=")>-1){
_b6=_b6.replace("http://www.youtube.com/watch?v=","");
}
if(_b6.indexOf("http://www.youtube.com/v/")<0){
_b6="http://www.youtube.com/v/"+_b6;
}
_ba+="<div id=\"Player\" class=\"mediaplugin\"><object width=\""+(w+2)+"\" height=\""+(h+20)+"\"><param name=\"movie\" value=\""+_b6+"&autoplay=1\" /><param name=\"wmode\" value=\"transparent\" /><embed src=\""+_b6+"&autoplay=1\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" type=\"application/x-shockwave-flash\" width=\""+(w+2)+"\" height=\""+(h+20)+"\"></embed></object></div>";
}else{
if(_b7==""){
_ba+="<p id=\"Player\" class=\"mediaplugin\"></p>";
}else{
alert("media file type not supported");
return 0;
}
}
}
}
}
}
}
}
}
}
}
}
_b9.innerHTML=_ba+_b8;
document.body.appendChild(_b9);
$("#popupmessage").draggable({opacity:0.65});
};
function hideDiv(){
var _bb=document.getElementById("popupmessage");
if(_bb){
try{
document.getElementById("Player").Stop();
}
catch(e){
}
try{
document.getElementById("Player").style.visibility="hidden";
if(navigator.appVersion.indexOf("MSIE")>0){
document.getElementById("Player").outerHTML="";
_bb.outerHTML="";
}else{
_bb.removeChild(document.getElementById("Player"));
_bb.parentNode.removeChild(_bb);
}
}
catch(e){
}
}
theTarget=null;
};
function updateCoords1(e){
var _bc=mouseCoords(e);
xpos=_bc.x;
ypos=_bc.y;
};
function updateCoords(e){
bodyScrollTop=document.documentElement.scrollTop;
var _bd=mouseCoords(e);
xpos=_bd.x;
ypos=_bd.y;
};
function mouseCoords(e){
if(!e){
var e=window.event;
}
if(e.pageX||e.pageY){
return {x:e.pageX,y:e.pageY};
}else{
if(e.clientX||e.clientY){
return {x:e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,y:e.clientY+document.body.scrollTop+document.documentElement.scrollTop};
}
}
};
function openRollover(id,_be){
document.getElementById(_be).innerHTML=document.getElementById(id).innerHTML;
};
function hideRolloverMessage(_bf){
document.getElementById(_bf).innerHTML="";
};
function swapImg(_c0,i){
if(i){
_c0.src="mktg713/icons/close_icon_over.gif";
}else{
_c0.src="mktg713/icons/close_icon.gif";
}
};
function imapShowDiv(e,_c1,_c2,w,h,_c3){
var evt=window.event||e;
if(!evt.target){
evt.target=evt.srcElement;
}
theTarget=evt.target;
if(theTarget&&theTarget.divOpen!=1){
updateCoords1(e);
theTarget.divOpen=1;
}
showDiv(_c1,_c2,w,h,_c3);
};
function showDivById(_c4,_c5,w,h,_c6){
var _c7="";
if(document.getElementById(_c6)){
_c7=document.getElementById(_c6).innerHTML;
}
ypos-=250;
showDiv(_c4,_c5,w,h,_c7);
try{
document.getElementById("popupmessage").ondblclick=function(){
hideDiv();
};
}
catch(e){
}
};
function clearChecks(){
var i=0;
var _c8=document.forms[0].elements;
while(true){
try{
_c8[i++].checked=false;
}
catch(e){
break;
}
}
};
function checkAnswer(obj){
eval("document.getElementById(\"a"+obj.name+"\")").style.display="block";
eval("document.getElementById(\"a"+obj.name+"\")").innerHTML=eval("document.getElementById(\"s"+obj.id+"\")").innerHTML;
try{
var _c9=inTab(obj.id);
if($(_c9).up(".scroller")){
parentDiv=$(_c9).up(".scroller");
var _ca=parentDiv.getHeight();
var _cb=_ca+$("#a"+obj.name).getHeight();
}
}
catch(e){
}
};
function checkAnswerNew(obj){
try{
var _cc=obj.id.substr(0,(obj.id.length-1));
for(var i=1;i<9;i++){
var _cd="s"+_cc+String(i);
$("#"+_cd).hide();
}
}
catch(e){
}
$("#s"+obj.id).show();
if(document.getElementById("s"+obj.id).childNodes[0].nodeName.toUpperCase()=="A"){
xpos=$(obj).offset().left;
ypos=$(obj).offset().top;
var _ce=jQuery(document.getElementById("s"+obj.id).childNodes[0]);
if(_ce.attr("onclick")){
var _cf=_ce.attr("onclick");
if(typeof (_cf)=="string"){
var _d0=_cf.split(";");
for(i=0,m=_d0.length;i<m;i++){
if(_d0[i].substr(0,7)=="showDiv"||_d0[i].substr(0,9)=="playSound"){
eval(_d0[i]);
break;
}
}
}else{
if(typeof (_cf)=="function"){
_cf();
}
}
}
}
try{
var _d1=inTab(obj.id);
if(_d1){
var _d2=$(_d1).height();
var _d3=_d2+$("#s"+obj.id).height();
}
}
catch(e){
}
if($("#s"+obj.id).hasClass("ygt")){
$("#s"+obj.id).addClass("col");
return 1;
}else{
$("#s"+obj.id).addClass("ool");
return 0;
}
};
function srvTime(){
try{
xmlHttp=new XMLHttpRequest();
}
catch(err1){
try{
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
}
catch(err2){
try{
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
catch(eerr3){
alert("AJAX not supported");
}
}
}
xmlHttp.open("HEAD",window.location.href.toString(),false);
xmlHttp.setRequestHeader("Content-Type","text/html");
xmlHttp.send("");
return xmlHttp.getResponseHeader("Date");
};
function checkAnswerDeadline(_d4){
var _d5="";
var yy,mm,dd,_d6;
var _d7,_d8,_d9,_da,_db,_dc;
var _dd=false;
var _de="",hr="",min="";
if(_d4.indexOf(":")>-1){
_d5=_d4.split(" ")[0];
_de=_d4.split(" ")[1];
if(_de!=""){
tmpArTime=_de.split(":");
hr=tmpArTime[0];
if(tmpArTime.length>1){
min=tmpArTime[1];
}
}
}else{
_d5=_d4;
}
if(_d5==""){
return;
}
_d6=_d5.split("/");
if(_d6.length<3){
return;
}
dd=parseInt(_d6[0],10);
mm=parseInt(_d6[1],10);
yy=parseInt(_d6[2],10);
var st=srvTime();
var _d7=new Date(st);
_d8=_d7.getFullYear();
_d9=_d7.getMonth()+1;
_da=_d7.getUTCDate();
_db=_d7.getHours();
_dc=_d7.getUTCMinutes();
if(_d8>yy){
_dd=true;
}else{
if(_d9>mm&&_d8==yy){
_dd=true;
}else{
if(_da>dd&&_d9==mm&&_d8==yy){
_dd=true;
}else{
if(_da==dd&&_d9==mm&&_d8==yy&&hr!=""&&_db>hr){
_dd=true;
}else{
if(_da==dd&&_d9==mm&&_d8==yy&&hr!=""&&_db==hr&&min!=""&&_dc>min){
_dd=true;
}
}
}
}
}
if(_dd){
return false;
}else{
return true;
}
};
var elmIframeDiv;
function hidePopUpDiv(){
var _df=document.getElementById("popupDivMessage");
if(_df){
_df.parentNode.removeChild(_df);
}
if(isMSIE){
try{
elmIframeDiv.style.display="none";
}
catch(e){
}
}
};
function showPopUpDiv(_e0,_e1){
var w=200;
var _e2="";
var _e3=0;
var _e4=0;
var _e5=0;
var _e6=0;
if(_e1.width){
w=_e1.width;
}
if(_e1.hint){
_e2=_e1.hint;
}
if(_e1.lower){
_e3=_e1.lower;
}
if(_e1.left){
_e4=_e1.left;
}
if(_e1.right){
_e5=_e1.right;
}
if(_e1.level){
_e6=_e1.level;
}
updateCoordsPopUpDiv(_e0,w);
hidePopUpDiv();
if(_e2==""){
return;
}
var _e7=document.createElement("div");
_e7.id="popupDivMessage";
_e7.className="popup";
_e7.zIndex=1000;
_e7.innerHTML=_e2;
if(isMSIE){
xpos=xpos-w/2;
}
_e7.style.cssText="left:"+(xpos)+"px; width: "+w+"px; font-style:italic;";
document.body.appendChild(_e7);
if(_e3){
_e7.style.top=ypos+yoffset+10+"px";
}else{
_e7.style.top=ypos+yoffset-_e7.offsetHeight-20+"px";
}
if(_e6){
_e7.style.top=ypos+yoffset-_e7.offsetHeight+20+"px";
}
if(ypos<(parseInt(_e7.top)+_e7.offsetHeight)){
}
if(_e4){
_e7.style.left=(_e7.style.left.slice(0,-2))/1-w+"px";
}
if(_e5){
if(isMSIE){
_e7.style.left=(_e7.style.right.slice(0,-2))/1+1.5*w+10+"px";
}else{
_e7.style.left=(_e7.style.right.slice(0,-2))/1+w+10+"px";
}
}
if(isMSIE){
elmIframeDiv=document.createElement("iframe");
elmIframeDiv.style.left=_e7.style.left;
elmIframeDiv.style.top=_e7.style.top;
elmIframeDiv.style.width=_e7.style.width;
}
};
function updateCoordsPopUpDiv1(e,_e8){
isMSIE=0;
var _e9=navigator.appName;
if(_e9=="Microsoft Internet Explorer"){
isMSIE=1;
}
xpos=e.pageX;
ypos=e.pageY;
};
function updateCoordsPopUpDiv(e,_ea){
var st=Math.max(document.body.scrollTop,document.documentElement.scrollTop);
var _eb=Math.max(document.body.clientWidth,document.documentElement.clientWidth)-20;
isMSIE=0;
if(objBrowse=="Microsoft Internet Explorer"){
isMSIE=1;
xpos=e.clientX;
ypos=e.clientY+st-10;
targ=e.srcElement.parentElement;
if(e.srcElement.offsetHeight>20){
yoffset=e.srcElement.offsetHeight-20;
}else{
yoffset=e.srcElement.offsetHeight;
}
}else{
eXpos=e.pageX;
var _ec=$(e.currentTarget).offset();
xpos=Math.min(_ec.left,eXpos);
ypos=_ec.top;
if(e.currentTarget.offsetHeight>20){
yoffset=e.currentTarget.offsetHeight-20;
}else{
yoffset=e.currentTarget.offsetHeight;
}
}
};
function getMaxWidth(_ed){
var _ee=_ed.firstChild;
var _ef=0;
while(_ee){
var _f0=_ee.nextSibling;
try{
tmpWidth=_ee.getAttribute("width")?_ee.getAttribute("width"):parseInt(_ee.clientWidth);
}
catch(e){
}
if(parseInt(tmpWidth)>_ef){
_ef=tmpWidth;
}
_ee=_f0;
}
return _ef;
};
function showGlossaryDiv(evt,_f1){
var w=300;
var _f2="";
var _f3=0;
var _f4=0;
var _f5=0;
var _f6=0;
_f2=$("#"+_f1)?$("#"+_f1).html():"";
updateCoordsPopUpDiv(evt);
hidePopUpDiv();
if(_f2==""){
return;
}
var _f7=document.createElement("div");
_f7.id="popupDivMessage";
_f7.className="popup";
_f7.innerHTML=_f2;
if(isMSIE){
xpos=xpos-w/2;
}
_f7.style.cssText="left:"+(xpos)+"px; width: "+w+"px; font-style:italic;z-index:111111111;";
document.body.appendChild(_f7);
if(_f3){
_f7.style.top=ypos+yoffset+10+"px";
}else{
_f7.style.top=ypos+yoffset-_f7.offsetHeight-20+"px";
}
if(_f6){
_f7.style.top=ypos+yoffset-_f7.offsetHeight+20+"px";
}
if(ypos<(parseInt(_f7.top)+_f7.offsetHeight)){
}
if(_f4){
_f7.style.left=(_f7.style.left.slice(0,-2))/1-w+"px";
}
if(_f5){
if(isMSIE){
_f7.style.left=(_f7.style.right.slice(0,-2))/1+1.5*w+10+"px";
}else{
_f7.style.left=(_f7.style.right.slice(0,-2))/1+w+10+"px";
}
}
if(isMSIE){
elmIframeDiv=document.createElement("iframe");
elmIframeDiv.style.left=_f7.style.left;
elmIframeDiv.style.top=_f7.style.top;
elmIframeDiv.style.width=_f7.style.width;
}
};
function showToolTip(e,_f8){
if(document.all){
e=event;
}
var obj=document.getElementById("bubble_tooltip");
var _f9=document.getElementById("bubble_tooltip_content");
_f9.innerHTML=_f8;
obj.style.display="block";
var st=Math.max(document.body.scrollTop,document.documentElement.scrollTop);
var _fa=e.clientX-100;
if(_fa<0){
_fa=0;
}
obj.style.left=_fa+"px";
obj.style.top=e.clientY-obj.offsetHeight-1+st+"px";
return false;
};
function hideToolTip(){
document.getElementById("bubble_tooltip").style.display="none";
};
Array.prototype.randomize=function(ru){
if(!ru){
this.sort(function(){
return ((Math.random()*3)|0)-1;
});
}else{
var a=[].concat(this);
var l=this.length;
var al=n=0;
for(var i=0;i<l;i++){
al=a.length;
n=Math.floor((Math.random()*al));
this[i]=a[n];
if(n==al-1){
a.pop();
}else{
a[n]=a[al-1];
a.pop();
}
}
}
};
var shadowTopRight="images/shadowAlpha1.png";
var jsHost="";
if(navigator.userAgent.indexOf("MSIE")!=-1){
var jsHost=(("https:"==document.location.protocol)?"https:/":"");
shadowTopRight=jsHost+shadowTopRight;
}
function imgDecorate(){
var _fb=document.getElementsByTagName("img");
var _fc=false;
if($(".accordion_content")||$(".scrollerContainer")){
_fc=true;
}
for(var i=0;i<_fb.length;i++){
var img=_fb[i];
var _fd=img.src.toUpperCase();
var _fe="";
var _ff=0;
var _100=0;
var _101=0;
var _102=0;
var _103="",_104="";
var _105="";
var _106=false;
var _107="position:relative;";
var _108="";
var _109="";
var _10a="0";
var _10b=0;
var _10c="";
var _10d="6px";
if(img.title.indexOf("shadow")>-1){
var _10e=(img.id)?"id='"+img.id+"' ":"";
var _10f=(img.title)?"class='"+img.title+" item' ":"";
img.style.width="";
img.style.height="";
var _110=img.style.cssText+"zoom:1;min-height:1px;";
_100=parseInt(img.width);
_101=parseInt(img.height);
if(img.border){
_10a=img.border;
}
if(_100==0||_101==0){
_103=img.title.replace("shadow","");
if(_103.indexOf("x")>-1){
_104=_103.split("x");
_100=_104[0]/1;
_101=parseInt(_104[1]);
}
}
if(img.align=="left"){
_105="left";
_109="margin: 6px 6px 0 0;";
}else{
if(img.align=="right"){
_105="right";
_109="margin: 6px 0 0 6px;";
}else{
if(img.align=="middle"){
_105="center";
_109="margin:6px auto;";
}
}
}
try{
if(img.parentNode.href){
_110="cursor:hand;"+_110;
}
}
catch(e){
}
var _111=img.getAttribute("alt");
if(_111==""){
_10c="overflow:hidden;";
_10d="0";
_10b=_101;
}else{
_10b=_101+6;
}
newDiv=document.createElement("div");
var _112="margin-top:5px;";
var _fe="";
if(img.align=="left"){
_112+="";
}else{
if(img.align=="right"){
_112+="margin-left:10px;";
}
}
if(_10f.indexOf("captionTop")>-1){
var _113=["<div><p>","<span id=\"captionTop\">",_111,"</span>","<img class=\"noPngFix\" src=\"",img.src,"\" height=\"",_101,"px\" width=\"",_100,"px\">","</p>","</div>"].join("");
}else{
if(_10f.indexOf("pinImg")>-1){
_fe="<span class=\"pin\"></span>";
}else{
if(_10f.indexOf("tapeImg")>-1){
_fe="<span class=\"tape\"></span>";
}else{
if(_10f.indexOf("paper_clipImg")>-1){
_fe="<span class=\"paper_clip\"></span>";
}else{
if(_10f.indexOf("ovalFramed")>-1&&_100>0&&_101>0){
if(jQuery.browser.msie){
_fe="<img class=\"round_corner noPngFix\" src=\"images/circle.png\" style=\"width:"+(_100+6)+"px;height:"+(_101+6)+"px;\"></img>";
}else{
_fe="<img class=\"round_corner noPngFix\" src=\"images/circle.png\" width="+(_100)+" height="+(_101)+"\" style=\"top:4px;left:4px;width:"+(_100+4)+"px;height:"+(_101+4)+"px;\"></img>";
}
}else{
if(_10f.indexOf("cutCorner")>-1&&_100>0&&_101>0){
_fe="<img class=\"round_corner noPngFix\" src=\"images/cut-corner.png\" style=\"top: 1px;left: 1px;width:"+(_100+8)+"px;height:"+(_101+8)+"px;\" />";
}else{
if(_10f.indexOf("stampPattern")>-1&&_100>0&&_101>0){
_fe="<img class=\"round_corner noPngFix\" src=\"images/stamp-pattern.png\" width=\""+(_100+4)+"\" height="+(_101+4)+" style=\"top:4px;left:4px;width:"+(_100+4)+"px;height:"+(_101+4)+"px;\" />";
}else{
if(_10f.indexOf("roundCorner")>-1&&_100>0&&_101>0){
_fe="<img src=\"images/album_mask.png\" style=\"position:absolute;top:2px;left:4px;width:"+(_100+5)+"px;height:"+(_101+5)+"px;\" />";
}
}
}
}
}
}
}
if(_105!="center"){
_108=["<div align=\"",_105,"\" style=\"",_107,";",_109,"float:",_105,"\">"].join("");
}else{
_108=["<div align=\"center\" style=\"",_107,";",_109,"; clear:both;\">"].join("");
}
if(_106){
}
var _113=[_108,"<div style=\"position:relative;margin:auto 0;",_112," width:",(_100+19),"px\">","<img src=\"images/white.gif\" width=\"",(_100+11),"\" height=\"6\" style=\"margin-right:6px; border-bottom:none;border-top:1px solid #999; border-left:1px solid #999; border-right:1px solid #999; border-bottom:none\" /><br />\n","<img src=\"images/white.gif\" width=\"6\" height=\"",_10b,"\" align=\"top\" style=\"border-top:none; border-right:none; border-bottom:none;border-left:1px solid #999\" />",_fe,"<img class=\"noPngFix\" src=\"",img.src,"\" width=\"",(_100),"\" height=\"",(_101),"\" border=\"0\" style=\"padding:0 12px ",_10d," 0; background:url(",shadowTopRight,") no-repeat top right\" /><br />\n","<div class=\"imgCaption\" style=\"width:",(_100),"px;",_10c,"\"><img src=\"images/white.gif\" height=\"1\" width=\"1\" style=\"display:none\" />",_111,"</div>\n","<div class=\"captionbottom\" style=\"width:",(_100+13),"px\"><img src=\"images/white.gif\" height=\"1\" width=\"1\" style=\"display:none\" /></div>","</div>","</div>"].join("");
}
newDiv.innerHTML=_113;
if(img.parentNode){
img.parentNode.replaceChild(newDiv,img);
}else{
img.outerHTML=_113;
}
}else{
if(img.align=="center"){
var _10e=(img.id)?"id='"+img.id+"' ":"";
var _10f=(img.title)?"class='"+img.title+" item' ":"";
var _110=img.style.cssText;
var _110="";
try{
if(img.parentNode.href){
_110="cursor:hand;"+_110;
}
}
catch(e){
}
var _111=img.getAttribute("alt");
if(img.getAttribute("width")){
_100=img.getAttribute("width");
}else{
var _114=img.title.split(" ");
for(var i=0,m=_114.length;i<m;i++){
if(_114[i].indexOf("shadow")>-1){
_103=_114[i].replace("shadow","");
if(_103.indexOf("x")>-1){
_104=_103.split("x");
_100=_104[0];
_102=parseInt(_104[1]);
}
}
}
}
if(img.getAttribute("height")){
_101=img.getAttribute("height");
}else{
try{
_101=_102;
}
catch(e){
}
}
newDiv=document.createElement("center");
newDiv.style.cssText=_110+"text-align:center;";
var _113=["<img class=\"shadowImg\" src=\"",img.src,"\" ",_10f,_10e," height=\"",_101,"px\" width=\"",_100,"px\">"].join("");
newDiv.innerHTML=_113;
img.parentNode.replaceChild(newDiv,img);
}
}
}
};
function noPositionStyle(_115){
var _116=false;
var _117=_115.parentNode;
while(_117){
try{
if(_117.hasClassName("accordion_content")||_117.hasClassName("scrollerContainer")){
_116=true;
break;
}
}
catch(e){
}
_117=_117.parentNode;
}
return _116;
};
function fixTabHeight(){
try{
if($("#gliderNavigation")){
}
}
catch(e){
}
};
function onLoadImgDecoration(img){
var _118=false;
var _119=img.src.toUpperCase();
var _11a="";
var _11b=0;
var _11c=0;
var _11d=0;
var _11e=0;
var _11f="",_120="";
var _121="";
var _122=false;
var _123="position:relative;";
var _124="";
var _125="";
var _126="0";
var _127=0;
var _128="";
var _129="6px";
var _12a=0.3,_12b=0.5,_12c;
var re1=/\\'/g;
var re0=/mce_t/g;
if(img.title.indexOf("shadow")>-1){
var _12d=(img.id)?"id='"+img.id+"' ":"";
var _12e=(img.title)?"class='"+img.title+" item' ":"";
img.style.width="";
img.style.height="";
var _12f=img.style.cssText+"zoom:1;min-height:1px;";
_11c=parseInt(img.width);
_11d=parseInt(img.height);
if(img.border){
_126=img.border;
}
if(_11c==0||_11d==0){
_11f=img.title.replace("shadow","");
if(_11f.indexOf("x")>-1){
_120=_11f.split("x");
_11c=_120[0]/1;
_11d=parseInt(_120[1]);
}
}
if(img.align=="left"){
_121="left";
_125="margin: 6px 6px 0 0;";
}else{
if(img.align=="right"){
_121="right";
_125="margin: 6px 0 0 6px;";
}else{
if(img.align=="middle"){
_121="center";
_125="margin:6px auto;";
}
}
}
try{
if(img.parentNode.href){
_12f="cursor:hand;"+_12f;
}
}
catch(e){
}
var _130=img.getAttribute("alt").replace(re0,"");
_130=_130.replace(re1,"\"");
if(_130==""){
_128="overflow:hidden;";
_129="0";
_127=_11d;
}else{
_127=_11d+6;
}
newDiv=document.createElement("div");
var _131="margin-top:5px;";
var _11a="";
if(img.align=="left"){
_131+="margin-right:5px";
}else{
if(img.align=="right"){
_131+="margin-left:10px";
}
}
if(_12e.indexOf("captionTop")>-1){
var _132=["<div><p>","<span id=\"captionTop\">",_130,"</span>","<img class=\"noPngFix\" src=\"",img.src,"\" height=\"",_11d,"px\" width=\"",_11c,"px\">","</p>","</div>"].join("");
}else{
if(_12e.indexOf("pinImg")>-1){
_11a="<span class=\"pin\"></span>";
}else{
if(_12e.indexOf("tapeImg")>-1){
_11a="<span class=\"tape\"></span>";
}else{
if(_12e.indexOf("paper_clipImg")>-1){
_11a="<span class=\"paper_clip\"></span>";
}else{
if(_12e.indexOf("ovalFramed")>-1&&_11c>0&&_11d>0){
if(jQuery.browser.msie){
_11a="<img class=\"round_corner noPngFix\" src=\"images/circle.png\" style=\"width:"+(_11c+4)+"px;height:"+(_11d+4)+"px;\"></img>";
}else{
_11a="<img class=\"round_corner noPngFix\" src=\"images/circle.png\" width="+(_11c)+" height="+(_11d)+"\" style=\"top:4px;left:4px;width:"+(_11c+4)+"px;height:"+(_11d+4)+"px;\"></img>";
}
}else{
if(_12e.indexOf("cutCorner")>-1&&_11c>0&&_11d>0){
_11a="<img class=\"round_corner noPngFix\" src=\"images/cut-corner.png\" style=\"top: 1px;left: 1px;width:"+(_11c+8)+"px;height:"+(_11d+8)+"px;\" />";
}else{
if(_12e.indexOf("stampPattern")>-1&&_11c>0&&_11d>0){
_11a="<img class=\"round_corner noPngFix\" src=\"images/stamp-pattern.png\" width=\""+(_11c+4)+"\" height="+(_11d+4)+" style=\"top:4px;left:4px;width:"+(_11c+4)+"px;height:"+(_11d+4)+"px;\" />";
}else{
if(_12e.indexOf("roundCorner")>-1&&_11c>0&&_11d>0){
_11a="<img src=\"images/album_mask.png\" style=\"position:absolute;top:2px;left:4px;width:"+(_11c+5)+"px;height:"+(_11d+5)+"px;\" />";
}
}
}
}
}
}
}
if(_121!="center"){
_124=["<div align=\"",_121,"\" style=\"",_123,";",_125,"float:",_121,"\">"].join("");
}else{
_124=["<div align=\"center\" style=\"",_123,";",_125,"; clear:both;\">"].join("");
}
var _132=[_124,"<div style=\"position:relative;margin:auto 0; width:",(_11c+19),"px\">","<img src=\"images/white.gif\" width=\"",(_11c+11),"\" height=\"6\" style=\"margin-right:6px; border-bottom:none;border-top:1px solid #999; border-left:1px solid #999; border-right:1px solid #999; border-bottom:none\" /><br />\n","<img src=\"images/white.gif\" width=\"6\" height=\"",_127,"\" align=\"top\" style=\"border-top:none; border-right:none; border-bottom:none;border-left:1px solid #999\" />",_11a,"<img class=\"noPngFix\" src=\"",img.src,"\" width=\"",(_11c),"\" height=\"",(_11d),"\" border=\"0\" style=\"padding:0 12px ",_129," 0; background:url(",shadowTopRight,") no-repeat top right\" /><br />\n","<div class=\"imgCaption\" style=\"width:",(_11c),"px;",_128,"\"><img src=\"images/white.gif\" height=\"1\" width=\"1\" style=\"display:none\" />",_130,"</div>\n","<div class=\"captionbottom\" style=\"width:",(_11c+13),"px\"><img src=\"images/white.gif\" height=\"1\" width=\"1\" style=\"display:none\" /></div>","</div>","</div>"].join("");
}
newDiv.innerHTML=_132;
if(img.parentNode){
img.parentNode.replaceChild(newDiv,img);
}else{
img.outerHTML=_132;
}
}else{
if(img.align=="center"){
var _12d=(img.id)?"id='"+img.id+"' ":"";
var _12e=(img.title)?"class='"+img.title+" item' ":"";
var _12f=img.style.cssText;
var _12f="";
try{
if(img.parentNode.href){
_12f="cursor:hand;"+_12f;
}
}
catch(e){
}
var _130=img.getAttribute("alt");
if(img.getAttribute("width")){
_11c=img.getAttribute("width");
}else{
var _133=img.title.split(" ");
for(var i=0,m=_133.length;i<m;i++){
if(_133[i].indexOf("shadow")>-1){
_11f=_133[i].replace("shadow","");
if(_11f.indexOf("x")>-1){
_120=_11f.split("x");
_11c=_120[0];
_11e=parseInt(_120[1]);
}
}
}
}
if(img.getAttribute("height")){
_11d=img.getAttribute("height");
}else{
try{
_11d=_11e;
}
catch(e){
}
}
newDiv=document.createElement("center");
newDiv.style.cssText=_12f+"text-align:center;";
var _132=["<img class=\"shadowImg\" src=\"",img.src,"\" ",_12e,_12d," height=\"",_11d,"px\" width=\"",_11c,"px\">"].join("");
newDiv.innerHTML=_132;
img.parentNode.replaceChild(newDiv,img);
}
}
};
function clickOnce(){
if(clicks==1){
return true;
}else{
return false;
}
};
function printWindow(){
bV=parseInt(navigator.appVersion);
if(bV>=4){
window.print();
}
};
function playSound1(_134){
document.getElementById("dummyspan").innerHTML="<embed src='"+_134+"' hidden=true loop=false type='video/quicktime' PLUGINSPAGE='http://www.apple.com/quicktime/download/'>";
};
function playSound(_135){
var ext=getBaseExt(_135);
var _136="<embed src=\"images/mediaplayer.swf\" width=\"1\" height=\"1\" allowscriptaccess=\"sameDomain\" allowfullscreen=\"false\" flashvars=\"autostart=true&width=1&height=1&file="+_135+"\"/>";
if(ext=="wav"){
document.getElementById("dummyspan").innerHTML="<embed src='"+_135+"' hidden=true loop=false type='video/quicktime' PLUGINSPAGE='http://www.apple.com/quicktime/download/'>";
}else{
document.getElementById("dummyspan").innerHTML=_136;
}
};
function confirmDelete(loc,_137,_138){
if(window.confirm("Are you sure you want to delete this ["+_137+"] page ?")){
if(_138==undefined||_138!="1"){
document.getElementById("hiddenFrame").src=loc;
}else{
paras=loc.split("?");
if(paras.length>1){
updateContent(paras[0],paras[1]);
}else{
document.getElementById("hiddenFrame").src=loc;
}
}
}
};
function mySetStyle(_139,_13a,val){
if(!(_139.substring(0,1)=="."||_139.substring(0,1)=="#")){
_139="."+_139;
}
jQuery(_139).css(_13a,val);
};
function setCookie(_13b,_13c){
var _13d=new Date();
_13d.setTime(_13d.getTime()+(1000*3600*24));
document.cookie=_13b+"="+_13c+"; expires="+_13d.toGMTString()+"; path=/";
};
function setCookieE(_13e,_13f){
document.cookie=_13e+"="+_13f+"; path=/";
};
function readCookie(_140){
var comp=_140+"=";
var _141=document.cookie.split(";");
for(var i=0;i<_141.length;i++){
var _142=_141[i];
while(_142.charAt(0)==" "){
_142=_142.substring(1,_142.length);
}
if(_142.indexOf(comp)==0){
return _142.substring(comp.length,_142.length);
}
}
return null;
};
function getexpirydate(_143){
var _144;
Today=new Date();
nomilli=Date.parse(Today);
Today.setTime(nomilli+_143*24*60*60*1000);
_144=Today.toUTCString();
return _144;
};
function logout(u_id){
cookiestring="u_id="+escape(u_id)+";EXPIRES="+getexpirydate(-1);
document.cookie=cookiestring;
};
function handleEnter(_145,_146){
var _147=_146.keyCode?_146.keyCode:_146.which?_146.which:_146.charCode;
if(_147==13){
var i;
for(i=0;i<_145.form.elements.length;i++){
if(_145==_145.form.elements[i]){
break;
}
}
i=(i+1)%_145.form.elements.length;
_145.form.elements[i].focus();
return false;
}else{
return true;
}
};
function showImgDiv(bool,txt,_148){
if(_148){
}else{
_148=250;
}
try{
hidePopupMessage();
}
catch(e){
}
if((xpos+_148)>screen.width){
xpos=xpos-_148;
}
var _149=document.createElement("div");
_149.id="popupmessage";
_149.style.cssText="position: absolute; left: "+xpos+"px; top: "+(ypos+5)+"px; width:"+_148+"px;"+"color: black; "+"background-color: #FCFBEA; "+"color:#000000; font-family:verdana,arial,tahoma; font-size:8pt; font-weight:normal; "+"border: solid #000000 1px; text-align:left;"+"padding: 4px;";
var html=txt;
document.body.appendChild(_149);
_149.innerHTML=html;
};
function hidePopupMessage(){
var _14a=document.getElementById("popupmessage");
if(_14a){
_14a.parentNode.removeChild(_14a);
}
};
function createTarget(url,_14b,_14c){
if(typeof url=="undefined"){
url="";
}
if(typeof _14b=="undefined"){
_14b="";
}
if(typeof _14c=="undefined"){
_14c="width=800,height=600,scrollbars=yes";
}
window.open(url,_14b,_14c);
return true;
};
function verifyForm(_14d){
for(var i=0,m=20;i<m;i++){
if(typeof (_14d.elelments[i].required)!="undefined"){
}
if(_14d.elelments[i].value==""){
targetElements[i].focus();
return false;
}
}
return true;
};
function displayRemoveFrameLink(){
if(self!=top){
document.getElementById("removeFrameLink").style.display="block";
}
};
function getBaseExt(_14e){
var _14f="";
var _150=_14e.replace(/\\/g,"/").replace("..","").replace(/ /g,"_").split("/");
if(_150.length>0){
_14f=_150[_150.length-1];
baseName=_14f;
}
retStrA=_14f.split(".");
_14f=retStrA[retStrA.length-1];
_14f=_14f.toLowerCase();
return _14f;
};
function __flash__removeCallback(_151,name){
if(_151){
_151[name]=null;
}
};
function logoutE(){
var _152=navigator.userAgent;
if(_152.indexOf("MSIE")!=-1){
_152="Internet Explorer";
}else{
if(_152.indexOf("Opera")!=-1){
_152="Opera";
}else{
if(_152.indexOf("Chrome")!=-1){
_152="Chrome";
}else{
if(_152.indexOf("Safari")!=-1){
_152="Safari";
}else{
if(_152.indexOf("Firefox")!=-1){
_152="Firefox";
}else{
_152=navigator.appName;
}
}
}
}
}
alert("This website uses Simplified Sign On. For security reasons, traditional logout methods do not apply. \nYou MUST close your "+_152+" browser to logout completely!");
return false;
};
function pageStartUpCheck(){
var _153=new Array();
try{
var _154;
var _155=unescape(location.search.substring(1,location.search.length));
var _156=_155.split("hidemenu=");
if(_156.length>1){
blind=(parseInt(_156[1].substring(0))+1)%2;
toggleFullScreen();
}else{
if(document.cookie.indexOf("blind=1")>=0){
blind=1;
try{
$("#header").css("display","none");
}
catch(e){
}
try{
$("#navcontainer").css("display","none");
}
catch(e){
}
try{
$("#main").css("marginLeft","0px");
}
catch(e){
}
document.getElementById("toggleMenu").innerHTML="Show Navigation";
}
}
}
catch(e){
}
};
function closeMessage(_157,msg,stay){
if(_157.charAt[0]!="#"){
_157="#"+_157;
}
if(typeof (stay)==undefined){
stay=6;
}
if(!msg){
var msg="Done!!";
}
$(_157).innerHTML=msg;
if(stay!=0){
jQuery(_157).fadeOut("slow");
}
};
function updateDOM(_158){
if(typeof _158=="string"){
_158=document.getElementById(_158);
}
if(_158.type=="select-one"){
for(var i=0;i<_158.options.length;i++){
if(i==_158.selectedIndex){
_158.options[_158.selectedIndex].setAttribute("selected","selected");
}
}
}else{
if(_158.type=="select-multiple"){
for(var i=0;i<_158.options.length;i++){
if(_158.options[i].selected){
_158.options[i].setAttribute("selected","selected");
}else{
_158.options[i].removeAttribute("selected");
}
}
}else{
if(_158.type=="text"){
_158.setAttribute("value",_158.value);
}else{
if(_158.type=="textarea"){
_158.setAttribute("value",_158.value);
}else{
if(_158.type=="checkbox"){
if(_158.checked){
_158.setAttribute("checked","checked");
}else{
_158.removeAttribute("checked");
}
}else{
if(_158.type=="radio"){
var _159=document.getElementsByName(_158.name);
for(var i=0;i<_159.length;i++){
if(_159[i].checked){
_159[i].setAttribute("checked","checked");
}else{
_159[i].removeAttribute("checked");
}
}
}
}
}
}
}
}
};
function selectText(_15a){
var _15b=document.getElementById(_15a).innerHTML;
if(_15b=="Add your note here.<br>Only visible on this computer."){
document.getElementById(_15a).innerHTML="";
return;
}
if(document.selection){
var div=document.body.createTextRange();
div.moveToElementText(document.getElementById(_15a));
div.select();
}else{
var div=document.createRange();
div.setStartBefore(document.getElementById(_15a));
div.setEndAfter(document.getElementById(_15a));
window.getSelection().addRange(div);
}
};


