var ie=(navigator.userAgent.indexOf("MSIE")>=0)?true:false;var req='';var urlcheck=document.location.href.split('/');var _loader_image=urlcheck[0]+'//apps.acu.edu.au/~trevorg/stud_det/js/ajax-loader.gif';var _loader_gif=_loader_image;var _shadow_gif=urlcheck[0]+'//apps.acu.edu.au/~trevorg/stud_det/js/dropshad2.gif';switch(urlcheck[2])
{case'localhost:8888':var _make_local=urlcheck[0]+'//localhost:8888/acustaff/passon.php';var _check_local=urlcheck[0]+'//localhost:8888';var _realurl=urlcheck[0]+'//localhost:8888/apps/emailcatch.php';var _domain='localhost';break;case'localhost':var _make_local=urlcheck[0]+'//localhost/acustaff/passon.php';var _check_local=urlcheck[0]+'//localhost';var _realurl=urlcheck[0]+'//localhost/apps/emailcatch.php';var _domain='localhost';break;case'www.acu.edu.au':var _make_local=urlcheck[0]+'//www.acu.edu.au/nested_content/javascript/passon/';var _check_local=urlcheck[0]+'//www.acu.edu.au/';var _realurl=urlcheck[0]+'//www.acu.edu.au/nested_content/javascript/broken/emailcatch/';var _domain='apps.acu.edu.au';break;case'my.acu.edu.au':var _make_local=urlcheck[0]+'//my.acu.edu.au/nested_content/javascript/passon/';var _check_local=urlcheck[0]+'//my.acu.edu.au/';var _realurl=urlcheck[0]+'//www.acu.edu.au/nested_content/javascript/broken/emailcatch/';var _domain='apps.acu.edu.au';break;case'apps.acu.edu.au':var _make_local=urlcheck[0]+'//apps.acu.edu.au/~trevorg/acustaff/passon.php';var _check_local=urlcheck[0]+'//apps.acu.edu.au';var _realurl=urlcheck[0]+'//apps.acu.edu.au/~trevorg/apps/emailcatch.php';var _domain='apps.acu.edu.au';break;case'testapps.acu.edu.au':var _make_local=urlcheck[0]+'//testapps.acu.edu.au/~trevorg/acustaff/passon.php';var _check_local=urlcheck[0]+'//testapps.acu.edu.au';var _realurl=urlcheck[0]+'//testapps.acu.edu.au/~trevorg/apps/emailcatch.php';var _domain='apps.acu.edu.au';break;};function acu_lib()
{this.window_size=function()
{var myWidth=0,myHeight=0;if(typeof(window.innerWidth)=='number')
{myWidth=window.innerWidth;myHeight=window.innerHeight;}else if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){myWidth=document.documentElement.clientWidth;myHeight=document.documentElement.clientHeight;}else if(document.body&&(document.body.clientWidth||document.body.clientHeight)){myWidth=document.body.clientWidth;myHeight=document.body.clientHeight;};var temp=this.getScrollXY();var screenT=temp[1];var screenL=temp[0];return[myWidth,myHeight,screenL,screenT];};this.getScrollXY=function()
{var scrOfX=0,scrOfY=0;if(typeof(window.pageYOffset)=='number'){scrOfY=window.pageYOffset;scrOfX=window.pageXOffset;}else if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){scrOfY=document.body.scrollTop;scrOfX=document.body.scrollLeft;}else if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){scrOfY=document.documentElement.scrollTop;scrOfX=document.documentElement.scrollLeft;};return[scrOfX,scrOfY];};this.findPos=function(obj)
{var curleft=0;var curtop=0;if(obj.offsetParent)
{curleft=obj.offsetLeft;curtop=obj.offsetTop;while(obj=obj.offsetParent)
{curleft+=obj.offsetLeft;curtop+=obj.offsetTop;};};return[curleft,curtop];};this.make_clear=function(thething,opa)
{if(ie)
{var ieupto=opa*100;try
{thething.filters.item("DXImageTransform.Microsoft.Alpha").opacity=ieupto;}catch(e){thething.style.filter='progid:DXImageTransform.Microsoft.Alpha(opacity='+ieupto+')';};}
else
{thething.style.opacity=opa;};};this.make_thing=function(_thing,_id,_name,_class,_htm)
{_thing=document.createElement(_thing);if(_class!=''&&_class!=null)
{_thing.setAttribute(ie?'className':'class',_class);};if(_name!=''&&_name!=null)
{_thing.setAttribute('name',_name);};if(_id!=''&&_id!=null)
{_thing.setAttribute('id',_id);};if(_htm!=''&&_htm!=null)
{_thing.innerHTML=_htm;};return(_thing);};this.add_style=function(_div,_w,_h,_p,_t,_l,_b,_m)
{if(_w)
{_div.style.width=_w+'px';};if(_h)
{_div.style.height=_h+'px';};if(_p)
{_div.style.position=_p;};if(_t!=undefined&&_t!='')
{_div.style.top=_t+'px';};if(_l!=undefined&&_l!='')
{_div.style.left=_l+'px';};if(_b)
{_div.style.background=_b;};if(_m)
{_div.style.margin=_m;};};this.quickRequest=function(_url,_meth,_do,_dam,_bits,_ret)
{if(_ret)
{var ret=true;}
else
{var ret=false;};if(window.XMLHttpRequest)
{req=new XMLHttpRequest();req.onreadystatechange=function(){dealWithIt(_do,_dam)};req.open(_meth,_url,ret);}
else if(window.ActiveXObject)
{req=new ActiveXObject("Microsoft.XMLHTTP");if(req)
{req.onreadystatechange=function(){dealWithIt(_do,_dam)};req.open(_meth,_url,ret);};};function dealWithIt(_do,_dam)
{if(req.readyState==4)
{if(req.status==200)
{if(req.responseText)
{var jsondata=eval('('+req.responseText+')');_do(jsondata);}
else
{_dam('Error with returned data possibley wrong format ie html');};}
else
{var info="Ajax Error : "+req.status;_dam(info);};};};if(_meth=='post')
{req.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');};req.send(_bits);};this.addListener=function(element,type,expression,bubbling)
{bubbling=bubbling||false;if(window.addEventListener)
{element.addEventListener(type,expression,bubbling);return true;}
else if(window.attachEvent)
{element.attachEvent('on'+type,expression);return true;};return false;};this.create_drop=function(_elm,_wide,_high,_offX,_offY,_steps,_im)
{if(document.getElementById(_elm))
{var _elmOb=document.getElementById(_elm);if(document.getElementById('hold_shad_'+_elmOb.getAttribute('id')))
{document.getElementById('hold_shad_'+_elmOb.getAttribute('id')).parentNode.removeChild(document.getElementById('hold_shad_'+_elmOb.getAttribute('id')));};var _div_name='hold_shad_'+_elmOb.getAttribute('id');_steps=!_steps?10:_steps;_wide=!_wide?_elmOb.offsetWidth+_steps:_wide;_high=!_high?_elmOb.offsetHeight+_steps:_high;_offX=!_offX?0:_offX;_offY=!_offY?0:_offY;_im=!_im?_shadow_gif:_im;var adiv=alib.make_thing('div',_div_name);adiv.style.border='0';var _i=0;var _l=_steps;for(_i=0;_i<_l;_i++)
{var ndiv=alib.make_thing('div');var _off=_i*2;var nimg=alib.make_thing('img');nimg.src=_im;nimg.style.width=(_wide-_off)+'px';nimg.style.height=(_high-_off)+'px';ndiv.appendChild(nimg);alib.add_style(ndiv,(_wide-_off),(_high-_off),'absolute',(_i-1),(_i-1));alib.make_clear(ndiv,0.02);adiv.appendChild(ndiv);};_offX+=_elmOb.offsetLeft-Math.floor(_steps/2);_offY+=_elmOb.offsetTop-Math.floor(_steps/2);alib.add_style(adiv,_wide,_high,'absolute',_offY,_offX);_elmOb.parentNode.insertBefore(adiv,_elmOb);_elmOb.style.position='relative';};};this._has_shad=function(_id,_wide,_high)
{if(document.getElementById(_id))
{var _elm=document.getElementById(_id);var _elmW=_wide?_wide:_elm.offsetWidth;var _elmH=_high?_high:_elm.offsetHeight;_do_corner(_elm,2,_elmW,0);_do_side(_elm,11,_elmW,1,_elmH-11,1);_do_corner(_elm,_elmH,_elmW,1);_do_side(_elm,_elmH,11,2,1,_elmW-11);_do_corner(_elm,_elmH,1,3);};function _do_side(_to,_start,_left,_dir,_h,_w)
{var i=0;_start=ie?_start-1:_start;switch(_dir)
{case 1:var _ll=1;var _ss=0;break;case 2:var _ss=1;var _ll=0;break;};for(i=0;i<9;i++)
{var _inner=alib.make_thing('div');var _afade=((9-i)/10)/1.2;alib.add_style(_inner,_w,_h,'absolute',(_start+i*_ss),(_left+i*_ll),'#000000',0);_inner.style.fontSize='1px';alib.make_clear(_inner,_afade);_to.appendChild(_inner);};};function _do_corner(_to,_start,_left,_dir)
{var _matrix=new Array(new Array(1,1,0,0,0,0,0,0,0),new Array(2,2,1,1,0,0,0,0,0),new Array(3,3,2,2,1,0,0,0,0),new Array(4,4,3,3,2,1,0,0,0),new Array(5,5,4,4,3,2,1,0,0),new Array(6,6,5,4,3,2,1,0,0),new Array(7,7,6,5,4,3,2,1,0),new Array(8,8,7,6,5,4,3,2,1),new Array(9,8,7,6,5,4,3,2,1));var _i=0;var _inner=0;var _long=_matrix.length;var _long1=_matrix[0].length;var _target=_to;var _step1=1;var _step2=1;_start=!_start?0:_start;_left=!_left?0:_left;_start=ie?_start-1:_start;switch(_dir)
{case 0:_step1=1;_step2=1;break;case 1:_step1=-1;_start+=_matrix[0].length-1;_step2=1;break;case 2:_step1=1;_step2=-1;_left+=_matrix.length;break;case 3:_step1=-1;_start+=_matrix[0].length-1;_step2=-1;_left+=_matrix.length;break;default:_step1=1;_step2=1;break;};for(_i=0;_i<_long;_i++)
{for(_inner=0;_inner<_long1;_inner++)
{var opa=_matrix[_i][_inner];if(opa>0)
{opa=!ie?(opa/10)/1.2:(opa/10)/1.5;var _div=alib.make_thing('div');alib.add_style(_div,1,1,'absolute',(_i*_step1)+_start,(_inner*_step2)+_left,'#000000',0);_div.style.fontSize='1px';alib.make_clear(_div,opa);_target.appendChild(_div);};};_inner=0;};};};};var alib=new acu_lib();function do_tab(_box,_breaker,_offX,_offY)
{_box=!_box?'news_box':_box;_breaker=!_breaker?'h2':_breaker;var _collect=new Array();var _news=document.getElementById(_box);var _current=0;var _h=_news.getElementsByTagName(_breaker);var _cdiv='';var bname='cover_up_'+_box;_offX=!_offX?-4:_offX;_offY=!_offY?2:_offY;if(_news)
{var _i=0;var _l=_h.length;var _s=0;var _cl='inner';for(_i=0;_i<_l;_i++)
{if(_i>0)
{var nname=_h[_i].getElementsByTagName('a')[0].innerHTML;_h[_i].innerHTML=nname;_collect[_i]=_news.getElementsByTagName('div')[_i];}
else
{_collect[_i]=_news.getElementsByTagName('div')[_i];};_h[_i].onmouseover=_overTab;_h[_i].onmouseout=_outTab;_h[_i].onclick=_click;};if(!ie)
{_cdiv=alib.make_thing('div',bname);alib.add_style(_cdiv,_h[0].offsetWidth,5,'absolute',_collect[0].offsetTop-4,15,'#FFFFFF');_cdiv.style.fontSize='1px';_cdiv.style.border='0';_news.appendChild(_cdiv);};toggle();};function _overTab(e)
{e=(e)?e:event;var el=e.target||e.srcElement;var _id=el.getAttribute('id');while(!el.getAttribute('id'))
{el=el.parentNode;};var _id=el.getAttribute('id');var _cls=el.getAttribute(ie?'className':'class');if(_cls!='selected')
{el.setAttribute((ie?'className':'class'),_cls+' over');el.style.cursor='pointer';}
else
{el.style.cursor='default';};};function _outTab(e)
{e=(e)?e:event;var el=e.target||e.srcElement;var _id=el.getAttribute('id');while(!el.getAttribute('id'))
{el=el.parentNode;};var _id=el.getAttribute('id');var _cls=el.getAttribute(ie?'className':'class');if(_cls!='selected')
{el.setAttribute((ie?'className':'class'),'notselected');el.style.cursor='default';};};function _click(e)
{e=(e)?e:event;var el=e.target||e.srcElement;while(!el.getAttribute('id'))
{el=el.parentNode;};var _id=el.getAttribute('id');var ti=0;var tl=_h.length;var _oldcur=_h[_current].getAttribute('id');var _oldbox=_collect[_current].getAttribute('id');if(_id!=_oldcur)
{if(document.getElementById('hold_shad_'+_oldcur))
{document.getElementById('hold_shad_'+_oldcur).parentNode.removeChild(document.getElementById('hold_shad_'+_oldcur));document.getElementById('hold_shad_'+_oldbox).parentNode.removeChild(document.getElementById('hold_shad_'+_oldbox));};for(ti=0;ti<tl;ti++)
{if(_id==_h[ti].getAttribute('id'))
{_current=ti;ti=tl;};};toggle();};};function toggle()
{if(!ie)
{_cdiv=document.getElementById(bname);};var _i=0;var _l=_h.length;for(_i=0;_i<_l;_i++)
{if(_i==_current)
{_collect[_i].style.display='block';_h[_i].setAttribute((ie?'className':'class'),'selected');if(!ie)
{_cdiv.style.left=_h[_i].offsetLeft+1+'px';_cdiv.style.width=_h[_i].offsetWidth-3+'px';};}
else
{_collect[_i].style.display='none';_h[_i].setAttribute((ie?'className':'class'),'notselected');};};};};function asset_rotation(__duration,__feature,__nav,__resize)
{var resize=__resize?__resize:false;var thumb=!__nav?document.getElementById('image_table'):document.getElementById(__nav);thumb.style.overflow='hidden';var _a=thumb.getElementsByTagName('a');var _l=_a.length;var i=0;var _feature=!__feature?document.getElementById('feature'):document.getElementById(__feature);var _feature_name=!document.getElementById(__feature+'_name')?'':document.getElementById(__feature+'_name');var _im=_feature.getElementsByTagName('img')[0];_im.setAttribute('title','');_im.style.positioon='relative';var the_list=new Array();var _current_image=0;var _new_image=0;var _preim=new Array();var _preimtemp=1;var _int_val='';var _int_load='';var _int_scroll='';var _direction=false;var upto=1;var _duration=!__duration||(__duration*1)<=0?15:(__duration*1);var _is_fade=false;var _step=8;var _salt=0.05;var _current_scroll=0;var _scroll_wide=605;var _list_wide=_scroll_wide;var _thumb_total=10;var _current_x=0;var _direction2=false;var _box_wide=_im.parentNode.offsetWidth;var _box_high=_im.parentNode.offsetHeight;function _init()
{for(i=0;i<_l;i++)
{var _rel=_a[i].getAttribute('rel');var _href=_a[i].getAttribute('href');var _target=_a[i].getAttribute('target');var _alt=_a[i].getAttribute('alt');the_list[i]=new Array(_rel,_href,_alt,_target);_a[i].setAttribute('id',i);_a[i].onclick=getthat;_a[i].onmouseover=function(){this.style.cursor='pointer';}
_a[i].onmouseout=function(){this.style.cursor='default';}
_a[i].removeAttribute('href');};_preim[_current_image]=new Image();_preim[_current_image].src=the_list[0][0];_preimtemp=1;_preim[_preimtemp]=new Image();_preim[_preimtemp].src=the_list[1][0];do_nav();_int_load=setTimeout(change_feature,_duration*1000);_scroll_wide=thumb.offsetWidth;_list_wide=thumb.getElementsByTagName('table')[0].offsetWidth;_thumb_total=Math.floor(_scroll_wide/thumb.getElementsByTagName('td')[0].offsetWidth);if(document.getElementById('play_pause'))
{var ppp=document.getElementById('play_pause');ppp.innerHTML='||';ppp.onclick=_pause_it;ppp.onmouseover=function(){this.style.cursor='pointer';}
ppp.onmouseout=function(){this.style.cursor='default';}
ppp.removeAttribute('href');};if(the_list.length>_thumb_total)
{var _ul=thumb.parentNode.getElementsByTagName('li');_ul[0].onclick=prev_but;_ul[0].onmouseover=function(){this.style.cursor='pointer';};_ul[0].onmouseout=function(){this.style.cursor='default';};_ul[_ul.length-1].onclick=next_but;_ul[_ul.length-1].onmouseover=function(){this.style.cursor='pointer';};_ul[_ul.length-1].onmouseout=function(){this.style.cursor='default';};};};function do_nav()
{_a[_current_image].setAttribute((ie?'className':'class'),'norm');_a[_new_image].setAttribute((ie?'className':'class'),'selected');_current_image=_new_image;};function getthat(e)
{if(_int_val){clearInterval(_int_val);};if(_int_load){clearTimeout(_int_load);};e=(e)?e:event;var el=e.target||e.srcElement;while(!el.getAttribute('id'))
{el=el.parentNode;};var _id=el.getAttribute('id');_new_image=_id;if(_is_fade)
{_im=_feature.getElementsByTagName('img')[0];alib.make_clear(_im,1);_is_fade=false;};make_current(_id);_int_load=setTimeout(change_feature,_duration*1000);return(false);};function jit_trap()
{};function do_size(l,t)
{var _ss=new Array(l,t);if(l>_box_wide||t>_box_high)
{var _ss1=1;var _ss2=1;if(l>_box_wide)
{_ss1=_box_wide/l;};if(t>_box_high)
{_ss2=_box_high/t;};if(_ss1<=_ss2)
{_ss[0]*=_ss1;_ss[1]*=_ss1;}
else
{_ss[0]*=_ss2;_ss[1]*=_ss2;};};return(_ss);};function scroll_trigger(_id)
{var curtab=thumb.getElementsByTagName('table')[0].offsetLeft;_step=5;var _td=thumb.getElementsByTagName('td')[_id].offsetLeft+curtab;var ikl=(-(_scroll_wide)<-(_list_wide-_scroll_wide))?-(_list_wide-_scroll_wide):-(_scroll_wide);if(_td>_scroll_wide)
{_direction2=true;if(curtab-_td>(-_list_wide+_scroll_wide))
{_current_x=curtab-_td;}
else
{_current_x=-_list_wide+_scroll_wide;};}
else if(_td<0)
{_direction2=false;_current_x=((curtab-_td)<=0)?curtab-_td:0;};move_nav();};function make_current(_id)
{scroll_trigger(_id);do_nav();_im.src=the_list[_id][0];_im.setAttribute('alt',the_list[_id][2]);var _ima=_im.parentNode;_ima.href=the_list[_id][1];if(_feature_name)
{_feature_name.innerHTML=the_list[_id][2];}
if(!_preim[_id]&&!ie)
{if(document.getElementById('loader'))
{_feature.removeChild(document.getElementById('loader'));};var _loader=alib.make_thing('div','loader');var lim=alib.make_thing('img');lim.src=_loader_gif;_loader.appendChild(lim);_loader.style.position='absolute';var wwhere=alib.findPos(_im);_loader.style.left=wwhere[0]+'px';_loader.style.top=wwhere[1]+'px';_loader.style.margin='0';_loader.style.width=_box_wide+'px';_loader.style.height=_box_high+'px';_feature.appendChild(_loader);_preim[_id]=new Image();_preim[_id].src=the_list[_id][0];alib.addListener(_preim[_id],'load',finish_current);}
else
{if(ie&&!_preim[_id])
{_preim[_id]=new Image();_preim[_id].src=the_list[_id][0];alib.addListener(_preim[_id],'onload',finish_current);};if(resize)
{var wh=do_size(_preim[_id].width,_preim[_id].height);_im.width=wh[0];_im.height=wh[1];_im.style.margin=(_box_high-wh[1])/2+'px 0 0 0';};};};function finish_current()
{if(resize)
{var wh=do_size(_preim[_current_image].width,_preim[_current_image].height);_im.width=wh[0];_im.height=wh[1];_im.style.margin=(_box_high-wh[1])/2+'px 0 0 0';};document.getElementById('loader').parentNode.removeChild(document.getElementById('loader'));};function fader()
{if(_im)
{upto=_direction==true?(upto+0.1):(upto-0.1);alib.make_clear(_im,upto);if(!_direction&&upto<=0.1)
{_direction=true;make_current(_new_image);}
else if(_direction&&upto>=1)
{_is_fade=false;clearInterval(_int_val);var nn=((_current_image*1)+1>=the_list.length)?0:((_current_image*1)+1);if(!_preim[nn])
{_preimtemp=nn;var tmp=new Image();tmp.src=the_list[nn][0];alib.addListener(tmp,'load',jit_trap);};_int_load=setTimeout(change_feature,_duration*1000);};};};function change_feature()
{clearTimeout(_int_load);clearInterval(_int_val);_new_image=(_current_image*1)+1;if(_new_image>=the_list.length)
{_new_image=0;};_direction=false;upto=1;_is_fade=true;_int_val=setInterval(fader,33);};function move_nav()
{if(thumb)
{var tab=thumb.getElementsByTagName('table')[0];_step=_step+(_step*_salt);if(_direction2)
{var where=_current_scroll-Math.floor(_step);_current_scroll=where;tab.style.margin='0 0 0 '+where+'px';if(_current_scroll<_current_x)
{_current_scroll=_current_x;tab.style.margin='0 0 0 '+_current_scroll+'px';}
else
{_int_scroll=setTimeout(move_nav,2);};}
else
{var where=_current_scroll+Math.floor(_step);tab.style.margin='0 0 0 '+where+'px';_current_scroll=where;if(_current_scroll>_current_x)
{_current_scroll=_current_x;tab.style.margin='0 0 0 '+_current_scroll+'px';}
else
{_int_scroll=setTimeout(move_nav,2);};};};};function next_but()
{_direction2=true;_step=5;_current_x=((_current_x-_scroll_wide)>-(_list_wide-_scroll_wide))?_current_x-_scroll_wide:-(_list_wide-_scroll_wide);move_nav();};function prev_but()
{_direction2=false;_step=5;_current_x=((_current_x+_scroll_wide)>0)?0:_current_x+_scroll_wide;move_nav();};function _pause_it(e)
{e=(e)?e:event;if(!_is_fade)
{var el=e.target||e.srcElement;var wot=el.innerHTML;if(wot=='||')
{clearTimeout(_int_load);clearInterval(_int_val);el.innerHTML='>>';}
else
{el.innerHTML='\|\|';change_feature();};};return(false);};_init();};function pop_up(_mark,_alt)
{var req;var ourX=0;var ourY=0;var _drag_int;var tempX=0;var tempY=0;var offsetX=0;var offsetY=0;var screenW=0;var screenH=0;var screenT=0;var screenL=0;var cause='';var aimat='';var getfrom='';var ie_hack='';var iecount=0;var thep='';var thet='';var _int_fake='';var _steps=20;var _kicker=true;var _blanker='';var _refresh=false;var _our_wide=0;var _our_high=0;var _content_div='';function make_win(e)
{if(document.getElementById('pop_up'))
{document.getElementById('pop_up').parentNode.removeChild(document.getElementById('pop_up'));clearInterval(_int_fake);};cause='';document.onmousemove=getMouseXY;var ww=alib.window_size();screenW=ww[0];screenH=ww[1];screenT=ww[3];screenL=ww[2];e=(e)?e:event;var el=e.target||e.srcElement;while(!el.getAttribute('pop_up'))
{el=el.parentNode;};var __url=check_url(el.getAttribute('pop_up'));var _name=el.getAttribute('title');var _par=document.getElementsByTagName('body')[0];var img=alib.make_thing('img','');img.src=_loader_gif;img.style.width='32px';img.style.height='32px';if(!aimat||!document.getElementById(aimat))
{var wide=screenL+(screenW/2)-225;var high=screenT+(screenH/2)-150;var _newdiv=alib.make_thing('div','pop_up','','');_newdiv.style.position='absolute';_newdiv.style.top='-999px';_newdiv.style.left='-999px'
if(_our_wide)
{_newdiv.style.width=_our_wide+'px';};if(_our_high)
{_newdiv.style.height=_our_high+'px';};var _tiny=alib.make_thing('div','has_shad');_tiny.style.position='relative';alib.make_clear(_tiny,0.4);_newdiv.appendChild(_tiny);var _h2=alib.make_thing('h1','pop_name','','',' '+_name);_h2.onmousedown=set_drag;_h2.onmouseup=stop_drag;_newdiv.appendChild(_h2);_newdiv.onmouseout=stop_drag;var _x=alib.make_thing('div','thex');var _a=alib.make_thing('a','','','','X');_a.onclick=close_it;_a.onmouseover=function(){this.style.cursor='pointer';};_a.onmouseout=function(){this.style.cursor='default';};_x.appendChild(_a);_newdiv.appendChild(_x);var _content=alib.make_thing('div','pop_cont_pop_up','','','Please Wait...');_content.style.display='block';_newdiv.appendChild(_content);if(_blanker)
{var _bb=alib.make_thing('div',_blanker);alib.add_style(_bb,screenW,screenH,'absolute',screenT.toString(),screenL.toString());alib.make_clear(_bb,0.1);_bb.onclick=close_it;if(ie)
{alib.add_style(_bb,document.getElementsByTagName('body')[0].offestWidth,document.getElementsByTagName('body')[0].offestHeight,'absolute','0','0');_par.appendChild(_bb);}
else
{_par.appendChild(_bb);_par.style.overflow='hidden';};};_par.appendChild(_newdiv);_newdiv=document.getElementById('pop_up');var aspan=_newdiv.getElementsByTagName('h1')[0];if(cause&&!ie)
{aspan.style.width=(_newdiv.offsetWidth-10)+'px';};wide=screenL+(screenW/2)-(_newdiv.offsetWidth/2);high=screenT+(screenH/2)-(_newdiv.offsetHeight/1.9);high=high<screenT+20?screenT+20:high;wide=wide<0?0:wide;pop_ani(el,new Array(wide,high,_newdiv.offsetWidth,_newdiv.offsetHeight));if(!ie)
{alib._has_shad('has_shad',_newdiv.offsetWidth-1,_newdiv.offsetHeight-1);}
else
{alib._has_shad('has_shad',_newdiv.offsetWidth-2,_newdiv.offsetHeight-2);};var _pframe='pop_frame';var cls='pop_frame';var cont_ent='pop_cont_pop_up';_content_div=cont_ent;}
else
{var _newdiv=document.getElementById(aimat);var _new_cont=alib.make_thing('div',aimat+'content','','','<img src="'+_loader_image+'"> Please Wait...');_new_cont.display='block';_new_cont.style.width=_newdiv.offsetWidth+'px';_new_cont.style.height=_newdiv.offsetHeight+'px';_new_cont.style.overflow='visible';_newdiv.style.overflowX='auto';_newdiv.style.overflowY='visible';_newdiv.innerHTML='';_newdiv.appendChild(_new_cont);var _pframe='pop_frame_'+aimat;var cls='';var cont_ent=aimat+'content';_content_div=cont_ent;};if(document.getElementById(_pframe))
{document.getElementById(_pframe).parentNode.removeChild(document.getElementById(_pframe));};if(!getfrom||!document.getElementById(getfrom))
{var _iframe=alib.make_thing('iframe',_pframe,cls);_iframe.setAttribute('id',_pframe);_iframe.style.display='none';_iframe.src=__url;if(ie)
{_iframe.attachEvent("onload",caustic);}
else
{_iframe.onload=caustic;};_iframe.style.width=(_newdiv.offsetWidth-2)-2+'px';if(aimat)
{_iframe.style.height=(_newdiv.offsetHeight-2)+'px';}
else
{_iframe.style.height=(_newdiv.offsetHeight-aspan.offsetHeight)-2+'px';};_iframe.style.border='0';_newdiv.appendChild(_iframe);}
else
{var targ=document.getElementById(getfrom);var targnew=targ.cloneNode(true);targnew.style.display='block';targnew.setAttribute('id',targ.getAttribute('id')+'_copy');_content_div=targ.getAttribute('id')+'_copy';var repper=document.getElementById(cont_ent);targnew.style.overflow='auto';if(document.getElementById('pop_name'))
{targnew.style.height=(repper.parentNode.offsetHeight-document.getElementById('pop_name').offsetHeight)-3+'px';}
else
{targnew.style.height=repper.parentNode.offsetHeight+'px';};if(!_kicker)
{var _fa=targnew.getElementsByTagName('a');var _ff=targnew.getElementsByTagName('form');var arr=new Array(_fa,_ff);var _ii=0;var _aa=0;var _doin=0;for(_ii=0;_ii<arr.length;_ii++)
{_aa=0;for(_aa=0;_aa<arr[_ii].length;_aa++)
{arr[_ii][_aa].setAttribute('target','hiddenCatcher');_doin++;};};if(_doin>0)
{if(!ie)
{var ify=alib.make_thing('iframe','hiddenCatcher','hiddenCatcher');ify.onload=inner_load;}
else
{var ify=alib.make_thing('div','hcholder','','','<iframe id="hiddenCatcher" name="hiddenCatcher" onload="inner_load();"></iframe>');};ify.style.position='absolute';ify.style.top='-999em';ify.style.left='-999em';_par.appendChild(ify);};};repper.parentNode.replaceChild(targnew,repper);getfrom='';if(aimat)
{_newdiv.style.height=targnew.offsetHeight+'px';aimat='';};};return(false);};function inner_load()
{var hid=document.getElementById('hiddenCatcher').contentWindow.document;var content=hid.getElementsByTagName('body')[0].innerHTML;if(content.length>0)
{document.getElementById(_content_div).parentNode.replaceChild(hid.getElementsByTagName('body')[0],document.getElementById(_content_div));};}
function check_url(__url)
{var _urlcheck=__url.split('?')[1];var _hhh=new RegExp('height=');var _www=new RegExp('width=');var _ddd=new RegExp('div=');var _rrr=new RegExp('replace=');var _kkk=new RegExp('kicker=');var _ttt=new RegExp('from=');var _bbb=new RegExp('back=');var _ccc=new RegExp('refresh=');if(_urlcheck)
{_urlcheck=_urlcheck.split('&');if(_urlcheck.length>1)
{var _c=0;var _l=_urlcheck.length;for(_c=0;_c<_l;_c++)
{if(_urlcheck[_c].match(_hhh))
{_urlcheck[_c]=_urlcheck[_c].replace(_hhh,'');_our_high=_urlcheck[_c];}
else if(_urlcheck[_c].match(_www))
{_urlcheck[_c]=_urlcheck[_c].replace(_www,'');_our_wide=_urlcheck[_c];}
else if(_urlcheck[_c].match(_ddd))
{_urlcheck[_c]=_urlcheck[_c].replace(_ddd,'');cause=_urlcheck[_c];}
else if(_urlcheck[_c].match(_rrr))
{_urlcheck[_c]=_urlcheck[_c].replace(_rrr,'');if(document.getElementById(_urlcheck[_c]))
{aimat=_urlcheck[_c];};}
else if(_urlcheck[_c].match(_ttt))
{_urlcheck[_c]=_urlcheck[_c].replace(_ttt,'');if(document.getElementById(_urlcheck[_c]))
{getfrom=_urlcheck[_c];};}
else if(_urlcheck[_c].match(_bbb))
{_urlcheck[_c]=_urlcheck[_c].replace(_bbb,'');_blanker=_urlcheck[_c];}
else if(_urlcheck[_c].match(_ccc))
{_urlcheck[_c]=_urlcheck[_c].replace(_ccc,'');_refresh=_urlcheck[_c]>0?true:false;}
else if(_urlcheck[_c].match(_kkk))
{_urlcheck[_c]=_urlcheck[_c].replace(_kkk,'');_kicker=_urlcheck[_c]==0?false:true;};};};};var inref=__url.split(_domain);if(inref.length!=2&&cause.length>2)
{__url=_make_local+'?to='+escape(__url);};return(__url);};function pop_ani(el,targs)
{thep=alib.findPos(el);thet=targs;var pop_fake=alib.make_thing('div','pop_up_fake','','',' ');pop_fake.style.position='absolute';pop_fake.style.top=thep[0]+'px';pop_fake.style.left=thep[1]+'px';thep[2]=((thep[0]-thet[0])/_steps)*2;thep[3]=((thep[1]-thet[1])/_steps)*2;thep[4]=0.1;thep[5]=0.1;thep[6]=0;thep[7]=pop_fake.offsetWidth;thep[8]=pop_fake.offsetHeight;thep[9]=((thet[2]-thep[7])/_steps)*2;thep[10]=((thet[3]-thep[8])/_steps)*2;alib.make_clear(pop_fake,thep[2]);var bod=document.getElementsByTagName('body')[0];bod.appendChild(pop_fake);_int_fake=setInterval(fake_move,33);};function fake_move()
{var pop_fake=document.getElementById('pop_up_fake');thep[0]-=thep[2];thep[1]-=thep[3];thep[4]+=thep[5];thep[7]+=thep[9];thep[8]+=thep[10];pop_fake.style.top=thep[1]+'px';pop_fake.style.left=thep[0]+'px';pop_fake.style.width=thep[7]+'px';pop_fake.style.height=thep[8]+'px';alib.make_clear(pop_fake,thep[4]);if(_blanker)
{alib.make_clear(document.getElementById(_blanker),(thep[4]/2));};thep[6]++;if(thep[6]==10)
{clearInterval(_int_fake);var _newdiv=document.getElementById('pop_up');_newdiv.style.top=thep[1]+'px';_newdiv.style.left=thep[0]+'px';pop_fake.parentNode.removeChild(pop_fake);};};function close_it()
{if(_blanker)
{if(!ie)
{document.getElementById(_blanker).parentNode.style.overflow='auto';};document.getElementById(_blanker).parentNode.removeChild(document.getElementById(_blanker));_blanker='';};fader();if(_refresh)
{location=document.location.href;};_refresh=false;_kicker=true;getfrom='';};function set_drag()
{var el=document.getElementById('pop_up');var _arr=alib.findPos(el);offsetX=tempX-_arr[0];offsetY=tempY-_arr[1];_drag_int=setInterval(do_drag,3);};function stop_drag()
{clearInterval(_drag_int);};function do_drag()
{var posX=tempX-offsetX;var posY=tempY-offsetY;var el=document.getElementById('pop_up');el.style.top=posY+'px';el.style.left=posX+'px';};function caustic(e)
{e=(e)?e:event;var el=e.target||e.srcElement;while(!el.getAttribute('id'))
{el=el.parentNode;};var frmid=el.getAttribute('id');if(ie)
{var iframer=window.frames[frmid].document;var _bod=iframer.getElementsByTagName('body')[0];var _oldelm=iframer.getElementById(cause);}
else
{var iframer=document.getElementById(frmid).contentWindow.document;var _bod=iframer.getElementsByTagName('body')[0];var _oldelm=iframer.getElementById(cause);};if(cause&&iframer.getElementById(cause))
{var _oldelm=iframer.getElementById(cause);}
else
{var _oldelm=_bod;};if(iframer)
{if(_bod&&_oldelm&&_bod!=_oldelm)
{var ie_arr=_bod.getElementsByTagName('*');while(ie_arr.length>0)
{for(var i=0;i<ie_arr.length;i++)
{ie_arr[i].parentNode.removeChild(ie_arr[i]);};ie_arr=_bod.getElementsByTagName('*');};if(_oldelm.nodeName!='TD'&&_oldelm.nodeName!='TR')
{_bod.appendChild(_oldelm);}
else
{var _table=alib.make_thing('table');if(_oldelm.nodeName=='TD')
{var _tr=alib.make_thing('tr');_tr.appendChild(_oldelm);_table.appendChild(_tr);}
else
{_table.appendChild(_oldelm);};_bod.appendChild(_table);};_bod.style.overflowX='hidden';};if(document.getElementById('loader-image')){var lm=document.getElementById('loader-image');lm.style.display='none';};var iff=document.getElementById(frmid);iff.style.display='block';if(frmid=='pop_frame')
{document.getElementById('pop_cont_pop_up').style.display='none';}
else
{document.getElementById(aimat+'content').style.display='none';};aimat='';if(_kicker)
{var _fa=iframer.getElementsByTagName('a');var _ff=iframer.getElementsByTagName('form');var arr=new Array(_fa,_ff);var _ii=0;var _aa=0;for(_ii=0;_ii<arr.length;_ii++)
{_aa=0;for(_aa=0;_aa<arr[_ii].length;_aa++)
{arr[_ii][_aa].setAttribute('target','_parent');};};};};};function show_load()
{if(document.getElementById('loader-image'))
{var lm=document.getElementById('loader-image');var iff=document.getElementById('pop_frame');lm.style.display='block';iff.style.display='none';};};function getMouseXY(e)
{if(ie)
{var sSide=document.documentElement?document.documentElement.scrollLeft:document.body.scrollLeft;var sTop=document.documentElement?document.documentElement.scrollTop:document.body.scrollTop;tempX=event.clientX+sSide;tempY=event.clientY+sTop;}
else
{tempX=e.pageX;tempY=e.pageY;};if(tempX<0)
{tempX=0;};if(tempY<0)
{tempY=0;};};var upto=1;function fader()
{if(document.getElementById('pop_up'))
{upto-=0.1;var _li1=document.getElementById('pop_up');alib.make_clear(_li1,upto);if(upto<=0.1)
{upto=1;_li1.parentNode.removeChild(_li1);}
else
{fadetimer=setTimeout(fader,33);};};};function __init()
{var _aa=document.getElementsByTagName('a');var _long=_aa.length;if(_long>0)
{var _i=0;var _regMark=new RegExp(_mark);for(_i=0;_i<_long;_i++)
{if(_aa[_i].getAttribute((ie?'className':'class')))
{var cls=_aa[_i].getAttribute((ie?'className':'class'));var clsx=cls.split(' ');if(clsx.length>1)
{var iii=0;var lll=clsx.length;cls=false;for(iii=0;iii<lll;iii++)
{if(clsx[iii]=='thickbox')
{cls=true;iii=lll;}}}
else
{cls=cls=='thickbox'?true:false;}
if(cls)
{var hr=_aa[_i].getAttribute('href');if(_alt&&_mark)
{hr=hr.replace(_regMark,_alt+_mark);};_aa[_i].setAttribute('pop_up',hr);_aa[_i].removeAttribute('href');_aa[_i].onmouseover=function(){this.style.cursor='pointer';this.setAttribute(ie?'className':'class','over_thing');};_aa[_i].onmouseout=function(){this.style.cursor='default';this.setAttribute(ie?'className':'class','up_thing');};_aa[_i].setAttribute(ie?'className':'class','up_thing');_aa[_i].onclick=make_win;if(!_aa[_i].getAttribute('title'))
{_aa[_i].setAttribute('title','ACU National');};if(!_aa[_i].getAttribute('id'))
{_aa[_i].setAttribute('id','ACU__'+_i);};};};};};};__init();};function _shadows(_type,_cls,_offX,_offY,_step)
{_offX=!_offX?0:_offX;_offY=!_offY?0:_offY;_step=!_step?10:_step;_type=!_type?'div':_type;_cls=!_cls?'shadow':_cls;var _lst=document.getElementsByTagName(_type);var _i=0;var _il=_lst.length;var _do=new Array();var _m=0;for(_i=0;_i<_il;_i++)
{if(_lst[_i].getAttribute((ie?'className':'class'))&&_lst[_i].getAttribute((ie?'className':'class'))==_cls)
{if(!_lst[_i].getAttribute('id'))
{_lst[_i].setAttribute('id','shadow_element_'+_i);var _id='shadow_element_'+_i;}
else
{var _id=_lst[_i].getAttribute('id');};_do[_m]=_id;_lst[_i].style.position='relative';_m++;};};_i=0;_il=_do.length;for(_i=0;_i<_il;_i++)
{alib.create_drop(_do[_i],'','',_offX,_offY,_step);};};function suggest(_c1,_c2,_c3)
{_c3=!_c3?'img':_c3;var _im=document.getElementsByTagName(_c3);_c1=!_c1?'margin-left_small':_c1;_c2=!_c2?'pop_sug':_c2;if(_im.length>0)
{var _i=0;var _l=_im.length;for(_i=0;_i<_l;_i++)
{if(_im[_i].getAttribute((ie?'className':'class')))
{var _cls=_im[_i].getAttribute((ie?'className':'class'));if(_cls==_c1)
{_im[_i].onmouseover=_over;_im[_i].onmouseout=_out;_im[_i].setAttribute('rel',_im[_i].getAttribute('title'));_im[_i].removeAttribute('title');};};};};function _over(e)
{e=(e)?e:event;var el=e.target||e.srcElement;if(document.getElementById('pop_sug_div'))
{document.getElementById('pop_sug_div_p').parentNode.removeChild(document.getElementById('pop_sug_div_p'));};var _ll=alib.findPos(el);_ll[0]+=(el.offsetWidth+5);var _rel=el.getAttribute('rel');var op=new RegExp('{','ig');var clo=new RegExp('}','ig');_rel=_rel.replace(op,'<');_rel=_rel.replace(clo,'>');quick_pop(_c2,_rel,_ll[0],_ll[1],'no');};function _out(e)
{if(document.getElementById('pop_sug_div'))
{document.getElementById('pop_sug_div_p').parentNode.removeChild(document.getElementById('pop_sug_div_p'));};};};function quick_pop(_c,_rel,_l,_t,_b)
{var _div=alib.make_thing('div','pop_sug_div_p','');var _div1=alib.make_thing('div','pop_sug_div_shad');_div1.style.position='absolute';_div.appendChild(_div1);var _div2=alib.make_thing('div','pop_sug_div','',_c,'<br />'+_rel);_div2.style.position='relative';var _div4=alib.make_thing('div','the_x','','the_x','<strong>X</strong><br />');_div4.style.position='absolute';_div4.style.top='0px';_div4.style.right='2px';if(_b)
{if(_b!='no')
{_div4.onclick=_b;_div2.appendChild(_div4);};}
else
{_div4.onclick=close_pop;_div2.appendChild(_div4);};_div.appendChild(_div2);document.getElementsByTagName('body')[0].appendChild(_div);_div=document.getElementById('pop_sug_div_p');_div.style.position='absolute';if(_t!=''&&_l!='')
{_div.style.top=_t+'px';_div.style.left=_l+'px';}
else
{var mmm=alib.window_size();_l=(mmm[0]/2)-(_div.offsetWidth/2)+mmm[2];_t=(mmm[1]/2)-(_div.offsetHeight/2)+mmm[3];_div.style.top=_t+'px';_div.style.left=_l+'px';};alib.create_drop('pop_sug_div_shad',document.getElementById('pop_sug_div').offsetWidth+14,document.getElementById('pop_sug_div').offsetHeight+14,7,3,18);function close_pop()
{if(document.getElementById('pop_sug_div_p'))
{document.getElementById('pop_sug_div_p').parentNode.removeChild(document.getElementById('pop_sug_div_p'));};};};function do_form(theform,thebutton)
{if(!document.getElementById||!document.getElementsByTagName||!document.createElement||!document.getElementById(theform)){return;};thebuton=!thebutton?'':thebutton;var arr=[];var container=document.getElementById(theform);var arri=container.getElementsByTagName('input');var arrt=container.getElementsByTagName('textarea');var arrs=container.getElementsByTagName('select');arr=arr.concat(arri,arrt,arrs);if(arr[0].length==0&&arr[1].length==0&&arr[2].length==0){return;};var subbut=false;var subbutjs=false;for(var i=0;i<arr.length;i++)
{for(var j=0,jLen=arr[i].length;j<jLen;j++)
{var rec=arr[i][j].getAttribute('title');var fmt=arr[i][j].getAttribute('accept');if(rec||fmt)
{arr[i][j].onfocus=the_call;}
else
{arr[i][j].onfocus=the_clear;};};};if(thebutton&&document.getElementById(thebutton))
{var but1=document.getElementById(thebutton);var thing=but1.value;var thebut=document.createElement('input');thebut.setAttribute('id','submit2');thebut.setAttribute('type','button');thebut.setAttribute('value',thing);thebut.onclick=validateIt;thebut.onfocus=the_clear;but1.parentNode.insertBefore(thebut,but1);but1.parentNode.removeChild(but1);};function the_call(e)
{e=(e)?e:event;var el=e.target||e.srcElement;var thetype=el.type;var rec='required';var fmt=el.getAttribute('accept')!=null?el.getAttribute('accept'):'';if(rec==el.getAttribute('title'))
{fmt='<strong>Required</strong><br />'+fmt;};if(document.getElementById('pop_sug_div'))
{document.getElementById('pop_sug_div_p').parentNode.removeChild(document.getElementById('pop_sug_div_p'));};var _ll=alib.findPos(el);_ll[0]+=(el.offsetWidth+5);quick_pop('pop_sug',fmt,_ll[0],_ll[1],this.the_clear);};function the_clear()
{if(document.getElementById('pop_sug_div'))
{document.getElementById('pop_sug_div_p').parentNode.removeChild(document.getElementById('pop_sug_div_p'));};};function validateIt()
{var container=document.getElementById(theform);var arr=[];var arri=container.getElementsByTagName('input');var arrt=container.getElementsByTagName('textarea');var arrs=container.getElementsByTagName('select');arr=arr.concat(arri,arrt,arrs);for(var i=0;i<arr.length;i++)
{for(var j=0,jLen=arr[i].length;j<jLen;j++)
{var rec=arr[i][j].getAttribute('title');var fmt=arr[i][j].getAttribute('accept');var thetype=arr[i][j].type;if(rec)
{var temp=false;switch(thetype)
{case'text':case'textarea':case'password':temp=arr[i][j].value;if(temp&&document.getElementById('val_'+arr[i][j].getAttribute('name')))
{vali=document.getElementById('val_'+arr[i][j].getAttribute('name')).value;if(temp)
{var reg=new RegExp(vali,"g");if(!temp.match(reg))
{temp=false;};};};break;case'checkbox':case'radio':temp=arr[i][j].checked;break;case'select-one':case'select':var number=arr[i][j].options[arr[i][j].selectedIndex].value;temp=number!=-1?true:false;break;};if(!temp)
{var tempname=arr[i][j].getAttribute('id');arr[i][j].focus();return;};};};};document.forms[theform].submit();};};function logform()
{var _frm=document.getElementById('login_box').getElementsByTagName('form')[0];_frm.onsubmit=_kicker;function _kicker()
{var _sel=_frm.getElementsByTagName('select')[0];if(_sel.selectedIndex>0){location=_sel.options[_sel.selectedIndex].value;}
else
{alert(_sel.options[_sel.selectedIndex].value);};return(false);};};function toggle_input(_field,_value,_size)
{_size=_size!=undefined?_size:false;function search_value()
{if(document.getElementById(_field))
{var qu=document.getElementById(_field);qu.value=_value;qu.onfocus=get_that;qu.onblur=get_that;};};function get_that(e)
{e=(e)?e:event;var el=e.target||e.srcElement;var val=el.value;if(val=='')
{el.value=_value;if(_size)
{el.size=21;};}
else if(val==_value)
{el.value='';if(_size)
{el.size=30;};};};search_value();};function broken_links()
{var _broken=new Array();var _page_name=document.location.href;var a=0;var req;var _meta=document.getElementsByTagName('meta');var _i=0;var _l=_meta.length;var _nn='';var _asset='';var _user='';while(_i<_l)
{_nn=_meta[_i].getAttribute('name');if(_nn=='ID')
{_asset=_meta[_i].getAttribute('content');}
else if(_nn=='DC.Contributor')
{_user=_meta[_i].getAttribute('content');};if(_asset&&_user)
{_i=_l;}
else
{_i++;};};function search_links()
{var _body=document.getElementsByTagName('body')[0];var _a=_body.getElementsByTagName('a');if(_a.length>0)
{var i=0;var _count=0;var _regX=new RegExp(_page_name,"ig");var _regN=new RegExp('www[23]','ig');var _regM=new RegExp('my.acu.edu.au/student','ig');for(i=0;i<_a.length;i++)
{var ref=_a[i].href;var aref=ref.replace(_regX,'');if(aref.substr(0,3)=='?a=')
{_broken[_count]=escape(aref);_count++;};if(ref.match(_regN)||ref.match(_regM))
{_broken[_count]=escape(ref);_count++;};};if(_broken.length>0)
{report_links();};};};function report_links()
{_page_name=escape(_page_name);_realurl+='?input='+_page_name+'~'+_asset+'~'+escape(_user);alib.quickRequest(_realurl,'post',_do,_do,'thelist='+_broken.join('~'),false);};function _do(info)
{};search_links();};function it_rotation(duration,feature_copy,feature_list)
{var _feature_copy_id=feature_copy!=undefined?feature_copy:'feature_copy';var _feature_list_id=feature_list!=undefined?feature_list:'feature_list';var _duration=duration!=undefined&&(duration*1)>1?duration:5;var _speed=33;var _sections=new Array();var _current=0;var _int_val;var _story='';var _direction=true;var _live='1';var _im_1;var _im_2;var _possy=0;var _step=10;var _imsize=160;var _active=false;function set_up_feature()
{if(document.getElementById(_feature_copy_id)&&document.getElementById(_feature_list_id))
{var f_l=document.getElementById(_feature_list_id);var f_ul=f_l.getElementsByTagName('ul');if(f_ul.length>1)
{_story=document.getElementById(_feature_copy_id);var _par=_story.parentNode;_par.style.overflow='hidden';_im_1=_par.getElementsByTagName('div')[0];_im_1.setAttribute('id','image_wrap_1');_im_2=alib.make_thing('div','image_wrap_2');var imin=alib.make_thing('img','image_2');var imsrc=_im_1.getElementsByTagName('img')[0];_imsize=imsrc.offsetWidth;imin.src=imsrc.src;imin.setAttribute('width',imsrc.getAttribute('width'));imin.setAttribute('height',imsrc.getAttribute('height'));imin.setAttribute('alt','');imin.setAttribute('title','');_im_2.style.left=_imsize+'px';_im_2.style.top='0px';_im_2.appendChild(imin);_par.appendChild(_im_2);_par.onmouseover=_pause_feature;_par.onmouseout=_start_feature;var temphold=_story.innerHTML;_story.parentNode.removeChild(_story);_story=alib.make_thing('div',_feature_copy_id,'','',temphold);_par.appendChild(_story);_story=document.getElementById(_feature_copy_id);var i=0;var _long=f_ul.length;for(i=0;i<_long;i++)
{var q=_sections.length;_sections[q]=new Array();var f_li=f_ul[i].getElementsByTagName('li');var a=0;var b=f_li.length;for(a=0;a<b;a++)
{_sections[q][a]=f_li[a].innerHTML;};};imsrc.onclick=function(){location=_sections[0][6];};nav_load(_par);_int_val=setInterval(change_feature,_duration*1000);};};};function nav_load(_sa)
{var _prev=alib.make_thing('div','prev_but','','prev_but','<<<');_prev.onclick=_prev_feature;_prev.onmouseover=function(){this.style.cursor='pointer';};_prev.onmouseout=function(){this.style.cursor='default';};_sa.appendChild(_prev);var _prev=alib.make_thing('div','next_but','','next_but','>>>');_prev.onclick=_next_feature;_prev.onmouseover=function(){this.style.cursor='pointer';};_prev.onmouseout=function(){this.style.cursor='default';};_sa.appendChild(_prev);};function change_feature()
{clearInterval(_int_val);_current++;_possy=0;_active=true;var _imlive=_live=='1'?_im_2:_im_1;var _imsrc=_imlive.getElementsByTagName('img')[0];if(_current>=_sections.length)
{_current=0;}
else if(_current<0)
{_current=_sections.length-1;};_imsrc.src=_sections[_current][1];_imsrc.setAttribute('alt',_sections[_current][2]);_int_val=setInterval(move_them,_speed);};function move_them()
{_step=(-_imsize+_possy)*0.06;if(_direction)
{_possy+=_step;var _possy2=_possy+_imsize;var _possy3=1*(-_possy);var _ok=_possy>=-_imsize?true:false;}
else
{_possy+=_step;var _possy2=_possy-_imsize;var _possy3=-_possy;var _ok=_possy<=_imsize?true:false;};var _imlive=_live=='1'?_im_1:_im_2;var _imold=_live=='1'?_im_2:_im_1;if(_ok)
{_imlive.style.left=_possy+'px';_imold.style.left=_possy2+'px';_story.style.left=_possy3+'px';}
else
{clearInterval(_int_val);_active=false;_story.innerHTML='<h3> <a href="'+_sections[_current][6]+'">'+_sections[_current][3]+'</a></h3>';_imlive.style.left=_imsize+'px';_imold.style.left='0px';_story.style.left='0px';_live=_live=='1'?'2':'1';_direction=true;_int_val=setTimeout(change_feature,_duration*1000);};};function _next_feature()
{if(!_active)
{_direction=true;change_feature();};};function _prev_feature()
{if(!_active)
{_direction=false;_current-=2;change_feature();};};function _stop_feature()
{if(!_active)
{clearInterval(_int_val);};};function _start_feature()
{this.style.cursor='default';if(!_active)
{clearInterval(_int_val);_int_val=setInterval(change_feature,_duration*1000);};};function _pause_feature()
{this.style.cursor='pointer';_stop_feature();};set_up_feature();};
function crush_list(_div,_tag,_ul,_a,_cont,_point)
{
	_div = document.getElementById(_div);
	_div.style.position='relative';
	_tag = !_tag ? 'h2' : _tag;
	var _ul_class = _ul ? _ul : 'js_menu';
	var _a_class = _a ? _a : 'li_selected';
	var _cont_class = _cont ? _cont : 'js_content';
	var _point_class = _point ? _point : 'js_pointer';
	var thelist = new Array();
	var listc = new Array();
	var the_x = new RegExp("<" + _tag + ">(?:&nbsp;)?</" + _tag + ">","ig");
	var listh = _div.getElementsByTagName(_tag);
	var _current = 0;
	var _timeout = '';
	var _to_high = 0;
	var _to_low = _div.offsetHeight;
	if(listh.length > 2)
	{
		var qt = alib.make_thing('ul','theul','',_ul_class);
		var i = 0;
		var dd = alib.make_thing('div',_cont_class);
		
		alib.add_style(dd,0,0,'relative',0,'','','');
		for(i=0; i<listh.length; i++)
		{
			thelist[i] = listh[i].innerHTML;
			listh[i].innerHTML = '';
			
		};
		var chunk = _div.innerHTML.replace(the_x,'~^~');
		var _con = chunk.split('~^~');
		var a=1;
		var temp_class = _a_class;
		for(a=1; a< _con.length; a++)
		{
			var b = a - 1;
			dd.innerHTML = '';
			dd.innerHTML=_con[a];
			listc[b]=dd.innerHTML;
			var refy = '';
			if(dd.getElementsByTagName('dt'))
			{
				var xx =dd.getElementsByTagName('dt');
				var ix=0; 
				var il=xx.length;
				for(ix=0; ix<il; ix++)
				{ 
					if(!ie && xx[ix].getElementsByTagName('a'))
					{
						refy=xx[ix].getElementsByTagName('a')[0].getAttribute('href');
						thelist[b] +='<br /><span class="extra_stuff">' +  xx[ix].getElementsByTagName('a')[0].innerHTML + '</span>';
					}
					else
					{
						thelist[b] +='<br /><span class="extra_stuff">' +  xx[ix].innerHTML + '</span>';
					};
				};
			};
			var lit = alib.make_thing('li');
			var aat = alib.make_thing('a','_' + b,'_' + b,temp_class,thelist[b]);
			if(refy)
			{
				aat.setAttribute('href',refy);
			};
			aat.onmouseover = _toggle_sug;
			aat.onmouseout = function(){this.style.cursor = 'default';};
			aat.tabEnable = true;
			aat.tabIndex = a * 10;
			lit.appendChild(aat);
			qt.appendChild(lit);
			temp_class='';
		};
		_div.innerHTML = '';
		
		_div.appendChild(qt);
		dd.innerHTML = listc[0];
		var __ul = _div.getElementsByTagName('li');
		_to_high = __ul[0].offsetTop;
		_to_low = __ul[__ul.length-1].offsetTop + __ul[__ul.length-1].offsetHeight;
		dd.style.left = 25 + 'px';
		dd.style.top = _to_high + 'px';
		_div.appendChild(dd);
		var iehack = ie ? '&nbsp;' : '';
		var _pp = alib.make_thing('div','js_pointer','','',iehack);
		if(ie)
		{
			_pp.style.width = '26px';
			_pp.style.height = '26px';
			_pp.style.position = 'absolute';
			_pp.style.left = __ul[0].offsetWidth + 30 + 'px';
			_pp.style.top = _to_high + 10 + 'px';
		}
		else
		{
			alib.add_style(_pp,'26','26','absolute',_to_high + 10 ,__ul[0].offsetWidth + 30,'',0);
		};
		_div.appendChild(_pp);
		document.onkeyup = _in_key;
		
	};
	
	
	function _toggle_sug(e)
	{
		e = ( e ) ? e : event;
		var el = e.target || e.srcElement;
		var what = alib.findPos(el);
		while(!el.getAttribute('id'))
		{
			el = el.parentNode;
		};
		var _id = el.getAttribute('id').split('_')[1];
		_current = _id;
		
		var _con = document.getElementById(_cont_class);
		var _point = document.getElementById(_point_class) ? document.getElementById(_point_class) : '';
		var _ul = document.getElementById('theul');
		var _ula = _ul.getElementsByTagName('li');
		fix_bits(_ula,_id,_con,_point);
	};
	function minitog(dir)
	{
		if(dir < 0)
		{
			_current--;
		}
		else
		{
			_current++;
		};
		if(_current < 0 || _current >= listc.length)
		{
			if(dir < 0)
			{
				_current++;
			}
			else
			{
				_current--;
			};
		};	
		var _con = document.getElementById(_cont_class);
		var _point = document.getElementById(_point_class) ? document.getElementById(_point_class) : '';
		
		var _ul = document.getElementById('theul');
		var _ula = _ul.getElementsByTagName('li');
		
		var _id=_current;
		fix_bits(_ula,_id,_con,_point);
	};
	
	function fix_bits(_ula,_id,_con,_point)
	{
		do_nav(_ula,_id);
		_con.innerHTML = listc[_id];
		if(_point)
		{
			if(!ie)
			{
				alib.add_style(_point,'','','',_ula[_id].offsetTop + 8 , _ula[_id].offsetWidth + 30,'',0);
			}
			else
			{
				//alert(_ula[_id].offsetTop);
				_point.style.top = _ula[_id].offsetTop + 10 + 'px';
			};
			
		};
		var tt = 63;
		var ll = _con.offsetHeight + _ula[_id].offsetTop;
		var comp = alib.window_size();

		if(ll > comp[1] + comp[3] - 100 && _id > 0)
		{
			tt += ll - (comp[1] + comp[3] - 100);
		};
		if(_id != 0)
		{
			var wwww=_ula[_id].offsetTop - tt;
			if(wwww < _to_high)
			{
				wwww = _to_high;
			}
			else if((wwww + _con.offsetHeight) > _to_low)
			{
				wwww = _to_low - _con.offsetHeight; 
			};
			
			_con.style.top = wwww + 'px';
			
		}
		else
		{
			_con.style.top = _to_high + 'px';
		};
	};
	
	
	function do_nav(_ula,_id)
	{
		var i=0; 
		var l=_ula.length;
		for(i=0; i<l; i++)
		{
			if(_id == i)
			{
				_ula[i].getElementsByTagName('a')[0].setAttribute((ie ? 'className' : 'class'),_a_class);
			}
			else
			{
				_ula[i].getElementsByTagName('a')[0].removeAttribute(ie ? 'className' : 'class');
			};
		};
	};

	function _in_key(e)
	{
		e = e || window.event;
		var _ul = document.getElementById('theul');
		var _ula = _ul.getElementsByTagName('a');
		switch(e.keyCode)
		{
			case 40:
				minitog(1);
				return(false);
				break;
			case 38:
				minitog(-1);
				return(false);
				break;
		};
		return(e.keyCode); 
	};
	
};