var imagesPath="/images/site/";var selectRightWidthSimple=19;var selectRightWidthScroll=2;var selectMaxHeight=200;var textareaTopPadding=10;var textareaSidePadding=10;var nonload=0;var NF=new Array();var isIE=false;var resizeTest=1;function NFInit(){try{document.execCommand('BackgroundImageCache',false,true);}catch(e){}
if(!document.getElementById){return false;}
NFDo('start');}
function NFDo(what){var niceforms=document.getElementsByTagName('form');var identifier=new RegExp('(^| )'+'niceform'+'( |$)');if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)){var ieversion=new Number(RegExp.$1);if(ieversion<7){return false;}
isIE=true;}
for(var q=0;q<niceforms.length;q++){if(identifier.test(niceforms[q].className)){if(what=="start"){NF[q]=new niceform(niceforms[q]);niceforms[q].start();}
else{niceforms[q].unload();NF[q]="";}}}}
function NFFix(){NFDo('stop');NFDo('start');}
function niceform(nf){nf._inputText=new Array();nf._inputRadio=new Array();nf._inputCheck=new Array();nf._inputSubmit=new Array();nf._inputFile=new Array();nf._textarea=new Array();nf._select=new Array();nf._multiselect=new Array();nf.add_select=function(obj){this._select[this._select.length]=obj;selects(obj);}
nf.start=function(){var allInputs=this.getElementsByTagName('input');var allSelects=this.getElementsByTagName('select');for(var w=0;w<allSelects.length;w++){if(allSelects[w].size=="1"){this.add_select(allSelects[w]);}
else{this.add_multiselect(allSelects[w]);}}
for(w=0;w<this._select.length;w++){this._select[w].init(w);}
for(w=0;w<this._multiselect.length;w++){this._multiselect[w].init(w);}}
nf.unload=function(){for(w=0;w<this._select.length;w++){this._select[w].unload();}
for(w=0;w<this._multiselect.length;w++){this._multiselect[w].unload();}}}
function inputText(el){}
function inputRadio(el){}
function inputCheck(el){}
function inputSubmit(el){}
function inputFile(el){}
function textarea(el){}
function selects(el){el.oldClassName=el.className;el.dummy=document.createElement('div');el.dummy.className="NFSelect";el.dummy.style.width=el.offsetWidth+'px';el.dummy.ref=el;el.left=document.createElement('img');el.left.src=imagesPath+"0.png";el.left.className="NFSelectLeft";el.right=document.createElement('div');el.right.className="NFSelectRight";el.txt=document.createTextNode(el.options[0].text);el.bg=document.createElement('div');el.bg.className="NFSelectTarget";el.bg.style.display="none";el.opt=document.createElement('ul');el.opt.className="NFSelectOptions";el.dummy.style.left=findPosX(el)+'px';el.dummy.style.top=findPosY(el)+'px';el.opts=new Array(el.options.length);el.init=function(pos){this.dummy.appendChild(this.left);this.right.appendChild(this.txt);this.dummy.appendChild(this.right);this.bg.appendChild(this.opt);this.dummy.appendChild(this.bg);for(var q=0;q<this.options.length;q++){this.opts[q]=new option(this.options[q],q);this.opt.appendChild(this.options[q].li);this.options[q].lnk.onclick=function(){this._onclick();this.ref.dummy.getElementsByTagName('div')[0].innerHTML=this.ref.options[this.pos].text;this.ref.options[this.pos].selected="selected";for(var w=0;w<this.ref.options.length;w++){this.ref.options[w].lnk.className="";}
this.ref.options[this.pos].lnk.className="NFOptionActive";}}
if(this.options.selectedIndex){this.dummy.getElementsByTagName('div')[0].innerHTML=this.options[this.options.selectedIndex].text;this.options[this.options.selectedIndex].lnk.className="NFOptionActive";}
this.dummy.style.zIndex=999-pos;this.parentNode.insertBefore(this.dummy,this);this.className="NFhidden";}
el.unload=function(){this.parentNode.removeChild(this.dummy);this.className=this.oldClassName;}
el.dummy.onclick=function(){var allDivs=document.getElementsByTagName('div');for(var q=0;q<allDivs.length;q++){if((allDivs[q].className=="NFSelectTarget")&&(allDivs[q]!=this.ref.bg)){allDivs[q].style.display="none";}}
if(this.ref.bg.style.display=="none"){this.ref.bg.style.display="block";}
else{this.ref.bg.style.display="none";}
if(this.ref.opt.offsetHeight>selectMaxHeight){this.ref.bg.style.width=this.ref.offsetWidth-selectRightWidthScroll+33+'px';this.ref.opt.style.width=this.ref.offsetWidth-selectRightWidthScroll+'px';}
else{this.ref.bg.style.width=this.ref.offsetWidth-selectRightWidthSimple+33+'px';this.ref.opt.style.width=this.ref.offsetWidth-selectRightWidthSimple+'px';}}
el.bg.onmouseout=function(e){if(!e)var e=window.event;e.cancelBubble=true;if(e.stopPropagation)e.stopPropagation();var reltg=(e.relatedTarget)?e.relatedTarget:e.toElement;if((reltg.nodeName=='A')||(reltg.nodeName=='LI')||(reltg.nodeName=='UL'))return;if((reltg.nodeName=='DIV')||(reltg.className=='NFSelectTarget'))return;else{this.style.display="none";}}
el.dummy.onmouseout=function(e){if(!e)var e=window.event;e.cancelBubble=true;if(e.stopPropagation)e.stopPropagation();var reltg=(e.relatedTarget)?e.relatedTarget:e.toElement;if((reltg.nodeName=='A')||(reltg.nodeName=='LI')||(reltg.nodeName=='UL'))return;if((reltg.nodeName=='DIV')||(reltg.className=='NFSelectTarget'))return;else{this.ref.bg.style.display="none";}}
el.onfocus=function(){this.dummy.className+=" NFfocused";}
el.onblur=function(){this.dummy.className=this.dummy.className.replace(/ NFfocused/g,"");}
el.onkeydown=function(e){if(!e)var e=window.event;var thecode=e.keyCode;var active=this.selectedIndex;switch(thecode){case 40:if(active<this.options.length-1){for(var w=0;w<this.options.length;w++){this.options[w].lnk.className="";}
var newOne=active+1;this.options[newOne].selected="selected";this.options[newOne].lnk.className="NFOptionActive";this.dummy.getElementsByTagName('div')[0].innerHTML=this.options[newOne].text;}
return false;break;case 38:if(active>0){for(var w=0;w<this.options.length;w++){this.options[w].lnk.className="";}
var newOne=active-1;this.options[newOne].selected="selected";this.options[newOne].lnk.className="NFOptionActive";this.dummy.getElementsByTagName('div')[0].innerHTML=this.options[newOne].text;}
return false;break;default:break;}}}
function option(el,no){el.li=document.createElement('li');el.lnk=document.createElement('a');el.lnk.href="javascript:;";el.lnk.ref=el.parentNode;el.lnk.pos=no;el.lnk._onclick=el.onclick||function(){};el.txt=document.createTextNode(el.text);el.lnk.appendChild(el.txt);el.li.appendChild(el.lnk);}
function findPosY(obj){var posTop=0;do{if(obj.style.position=="relative"){return posTop;}posTop+=obj.offsetTop;}while(obj=obj.offsetParent);return posTop;}
function findPosX(obj){var posLeft=0;do{if(obj.style.position=="relative"){return posLeft;}posLeft+=obj.offsetLeft;}while(obj=obj.offsetParent);return posLeft;}
function getInputsByName(name){var inputs=document.getElementsByTagName("input");var w=0;var results=new Array();for(var q=0;q<inputs.length;q++){if(inputs[q].name==name){results[w]=inputs[q];++w;}}
return results;}
var rv=-1;if(navigator.appName=='Microsoft Internet Explorer')
{var ua=navigator.userAgent;var re=new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");if(re.exec(ua)!=null)
rv=parseFloat(RegExp.$1);}
if(rv!='6'){window.onresize=function(){document.getElementsByTagName('body')[0].style.display="none";document.getElementsByTagName('body')[0].style.display="block";var o=document.getElementById('twitter');if(o){resize();}}}
function correct_image(){var divCollection=document.getElementsByTagName("dt");foundme="0";for(var i=0;i<divCollection.length;i++){if(divCollection[i].getAttribute("class")=="quicklink"||divCollection[i].getAttribute("className")=="quicklink"){findMeText=divCollection[i].innerHTML;foundme="1";}}
if(foundme=="0"){var divCollection=document.getElementsByTagName("div");for(var i=0;i<divCollection.length;i++){if(divCollection[i].getAttribute("id")=="navigation"){divCollection[i].className="sideboxhead";}}}}
function resize(){if(rv=='7'){if(document.documentElement.clientWidth<=1010){document.getElementById('twitter').style.top='-15px';document.getElementById('carouselmid').style.width='635px';document.getElementById('leftcontent').style.width='180px';document.getElementById('rightcontent').style.width='218px';}else if(document.documentElement.clientWidth>=1252){document.getElementById('carouselmid').style.width='814px';document.getElementById('leftcontent').style.width='284px';document.getElementById('rightcontent').style.width='290px';}else{document.getElementById('carouselmid').style.width=0.6395*document.documentElement.clientWidth+'px';document.getElementById('leftcontent').style.width=0.20*document.documentElement.clientWidth+'px';document.getElementById('rightcontent').style.width=0.2034*document.documentElement.clientWidth+'px';}}else{if(document.documentElement.clientWidth<=1014){document.getElementById('twitter').style.top='-15px';document.getElementById('carousel').style.left='3.7%';document.getElementById('carouselmid').style.width='655px';document.getElementById('leftcontent').style.width='180px';document.getElementById('rightcontent').style.width='221px';}else if(document.documentElement.clientWidth>=1256){document.getElementById('carouselmid').style.width='832px';document.getElementById('leftcontent').style.width='284px';document.getElementById('rightcontent').style.width='294px';}else{document.getElementById('carouselmid').style.width=0.6395*document.documentElement.clientWidth+'px';document.getElementById('leftcontent').style.width=0.20*document.documentElement.clientWidth+'px';document.getElementById('rightcontent').style.width=0.2034*document.documentElement.clientWidth+'px';}}}
function tableRows(){if(document.getElementsByTagName){var tables=document.getElementsByTagName('table');for(var i=0;i<tables.length;i++){if(tables[i].className.indexOf("noaltrow")==-1){var trs=tables[i].getElementsByTagName('tr');for(var j=1;j<trs.length;j+=2){trs[j].className='alt';}}}}}
function clearDefault(el){if(el.defaultValue==el.value)el.value=""}
function onloadloginpassbox()
{if(document.getElementById('loginpassspan_text'))document.getElementById('loginpassspan_text').style.display='inline';if(document.getElementById('loginpassspan_password'))document.getElementById('loginpassspan_password').style.display='none';}
function changeloginpassbox()
{document.getElementById('loginpassspan_text').style.display='none';document.getElementById('loginpassspan_password').style.display='inline';document.getElementById('cams_cb_password').focus();}
function validateLogin(userName,passWd){var pwdRe=new RegExp("^.{7,128}$");var userRe=new RegExp("^(?=.{5,60}$)[-a-z0-9!#$%&'*+/=?^_`{|}~.]+@[a-z0-9](?:[-_a-z0-9]*[a-z0-9])*(?:\\.[a-z0-9](?:[-_a-z0-9]*[a-z0-9])*)+$","i");var user=document.getElementById(userName).value;var pwd=document.getElementById(passWd).value;var result=true;if(!user||user.length==0){result=false;alert("User Name must be provided");}else if(!user.match(userRe)){result=false;alert("Invalid username has been entered");}else if(!pwd||pwd.length==0){result=false;alert("Password must be provided");}else if(!pwd.match(pwdRe)){result=false;alert("Invalid password has been entered");}
return(result);}
function changecss(theClass,element,value){var cssRules;if(document.all){cssRules='rules';}
else if(document.getElementById){cssRules='cssRules';}
var added=false;for(var S=0;S<document.styleSheets.length;S++){if(null===document.styleSheets[S].href||document.styleSheets[S].href.indexOf('sharethis')=="-1"){for(var R=0;R<document.styleSheets[S][cssRules].length;R++){if(document.styleSheets[S][cssRules][R].selectorText==theClass){if(document.styleSheets[S][cssRules][R].style[element]){document.styleSheets[S][cssRules][R].style[element]=value;added=true;break;}}}
if(!added){if(document.styleSheets[S].insertRule){document.styleSheets[S].insertRule(theClass+' { '+element+': '+value+'; }',document.styleSheets[S][cssRules].length);}else if(document.styleSheets[S].addRule){document.styleSheets[S].addRule(theClass,element+': '+value+';');}}}}}
function collapseright(){changecss('.threecol .col3','width','20px');changecss('.threecol .col1','margin','0 0 0 209px');changecss('.threecol .col1','margin-right','40px');document.getElementById('rightbox').style.display='none';document.getElementById('rightcolbox').style.display='block';}
function expandright(){changecss('.threecol .col3','width','198px');changecss('.threecol .col1','margin-right','245px');document.getElementById('rightbox').style.display='block';document.getElementById('rightcolbox').style.display='none';}
function collapseright_ext(){document.getElementById('rightbox').style.display='none';document.getElementById('rightcolbox').style.display='block';document.getElementById('col3id').style.width='20px';document.getElementById('col1id').style.marginRight='60px';}
function expandright_ext(){document.getElementById('rightbox').style.display='block';document.getElementById('rightcolbox').style.display='none';document.getElementById('col3id').style.width='200px';document.getElementById('col1id').style.marginRight='250px';}
function SelectLeft(){document.getElementById("left").style.backgroundImage="url(/images/site/homepagesprite.png)";document.getElementById("leftcontent").style.backgroundImage="url(/images/site/CommunityRepeatWhite.gif)";document.getElementById("midbar").style.backgroundImage="url(/images/site/homepagesprite.png)";document.getElementById("midbar").style.backgroundPosition="0 -265px";document.getElementById("rightcontent").style.backgroundImage="url(/images/site/CommunityRepeatGrey.gif)";document.getElementById("right").style.backgroundImage="url(/images/site/CommunityRightGrey.gif)";document.getElementById('findapartner').style.display='none';document.getElementById('communitydialog').style.display='block';document.getElementById('rfindapartner').style.display='none';document.getElementById('rcommunitydialog').style.display='block';document.getElementById('comimages').style.display='block';changecss('.rtitle a','color','#7f7f7f');changecss('.ltitle a','color','black');}
function SelectRight(){document.getElementById("left").style.backgroundImage="url(/images/site/CommunityLeftGrey.gif)";document.getElementById("leftcontent").style.backgroundImage="url(/images/site/CommunityRepeatGrey.gif)";document.getElementById("midbar").style.backgroundImage="url(/images/site/homepagesprite.png)";document.getElementById("midbar").style.backgroundPosition="0 -530px";document.getElementById("rightcontent").style.backgroundImage="url(/images/site/CommunityRepeatWhite.gif)";document.getElementById("right").style.backgroundImage="url(/images/site/CommunityRightWhite.gif)";document.getElementById('findapartner').style.display='block';document.getElementById('communitydialog').style.display='none';document.getElementById('comimages').style.display='none';document.getElementById('rfindapartner').style.display='block';document.getElementById('rcommunitydialog').style.display='none';changecss('.rtitle a','color','black');changecss('.ltitle a','color','#7f7f7f');}
function textCounter(field,countfield,maxlimit)
{if(field.value.length>maxlimit)
{field.value=field.value.substring(0,maxlimit);countfield.value=0;}
else
{document.getElementById(countfield).innerHTML=maxlimit-field.value.length;}}
function switchMenu(num){if(document.getElementById){var myImg=eval("document.getElementById('box"+num+"')");var myObj='sub'+num;var el=document.getElementById(myObj);if(el.style.display!='block'&&el.style.display!=''){el.style.display='block';myImg.src='/images/icons/box_minus.gif';}else{el.style.display='none';myImg.src='/images/icons/box_plus.gif';}}}
var last_expanded='';var last_imgswap='';function showHide(id){var obj=document.getElementById(id);var status=obj.className;var imgobj=document.getElementById('img'+id);if(status=='hide'){obj.className='show';imgobj.src='/images/site/n-minus.gif';imgobj.alt='collapse';}
if(status=='show'){obj.className='hide';imgobj.src='/images/site/n-plus.gif';imgobj.alt='expand';}}
function ddtabcontent(tabinterfaceid){this.tabinterfaceid=tabinterfaceid
this.tabs=document.getElementById(tabinterfaceid).getElementsByTagName("a")
this.enabletabpersistence=true
this.hottabspositions=[]
this.currentTabIndex=0
this.subcontentids=[]
this.revcontentids=[]
this.selectedClassTarget="link"}
ddtabcontent.getCookie=function(Name){var re=new RegExp(Name+"=[^;]+","i");if(document.cookie.match(re))
return document.cookie.match(re)[0].split("=")[1]
return""}
ddtabcontent.setCookie=function(name,value){document.cookie=name+"="+value+";path=/"}
ddtabcontent.prototype={expandit:function(tabid_or_position){this.cancelautorun()
var tabref=""
try{if(typeof tabid_or_position=="string"&&document.getElementById(tabid_or_position).getAttribute("rel"))
tabref=document.getElementById(tabid_or_position)
else if(parseInt(tabid_or_position)!=NaN&&this.tabs[tabid_or_position].getAttribute("rel"))
tabref=this.tabs[tabid_or_position]}
catch(err){alert("Invalid Tab ID or position entered!")}
if(tabref!="")
this.expandtab(tabref)},cycleit:function(dir,autorun){if(dir=="next"){var currentTabIndex=(this.currentTabIndex<this.hottabspositions.length-1)?this.currentTabIndex+1:0}
else if(dir=="prev"){var currentTabIndex=(this.currentTabIndex>0)?this.currentTabIndex-1:this.hottabspositions.length-1}
if(typeof autorun=="undefined")
this.cancelautorun()
this.expandtab(this.tabs[this.hottabspositions[currentTabIndex]])},setpersist:function(bool){this.enabletabpersistence=bool},setselectedClassTarget:function(objstr){this.selectedClassTarget=objstr||"link"},getselectedClassTarget:function(tabref){return(this.selectedClassTarget==("linkparent".toLowerCase()))?tabref.parentNode:tabref},urlparamselect:function(tabinterfaceid){var result=window.location.search.match(new RegExp(tabinterfaceid+"=(\\d+)","i"))
return(result==null)?null:parseInt(RegExp.$1)},expandtab:function(tabref){var subcontentid=tabref.getAttribute("rel")
var associatedrevids=(tabref.getAttribute("rev"))?","+tabref.getAttribute("rev").replace(/\s+/,"")+",":""
this.expandsubcontent(subcontentid)
this.expandrevcontent(associatedrevids)
for(var i=0;i<this.tabs.length;i++){this.getselectedClassTarget(this.tabs[i]).className=(this.tabs[i].getAttribute("rel")==subcontentid)?"selected":""}
if(this.enabletabpersistence)
ddtabcontent.setCookie(this.tabinterfaceid,tabref.tabposition)
this.setcurrenttabindex(tabref.tabposition)},expandsubcontent:function(subcontentid){for(var i=0;i<this.subcontentids.length;i++){var subcontent=document.getElementById(this.subcontentids[i])
subcontent.style.display=(subcontent.id==subcontentid)?"block":"none"}},expandrevcontent:function(associatedrevids){var allrevids=this.revcontentids
for(var i=0;i<allrevids.length;i++){document.getElementById(allrevids[i]).style.display=(associatedrevids.indexOf(","+allrevids[i]+",")!=-1)?"block":"none"}},setcurrenttabindex:function(tabposition){for(var i=0;i<this.hottabspositions.length;i++){if(tabposition==this.hottabspositions[i]){this.currentTabIndex=i
break}}},autorun:function(){this.cycleit('next',true)},cancelautorun:function(){if(typeof this.autoruntimer!="undefined")
clearInterval(this.autoruntimer)},init:function(automodeperiod){var persistedtab=ddtabcontent.getCookie(this.tabinterfaceid)
var selectedtab=-1
var selectedtabfromurl=this.urlparamselect(this.tabinterfaceid)
this.automodeperiod=automodeperiod||0
for(var i=0;i<this.tabs.length;i++){this.tabs[i].tabposition=i
if(this.tabs[i].getAttribute("rel")){var tabinstance=this
this.hottabspositions[this.hottabspositions.length]=i
this.subcontentids[this.subcontentids.length]=this.tabs[i].getAttribute("rel")
this.tabs[i].onclick=function(){tabinstance.expandtab(this)
tabinstance.cancelautorun()
return false}
if(this.tabs[i].getAttribute("rev")){this.revcontentids=this.revcontentids.concat(this.tabs[i].getAttribute("rev").split(/\s*,\s*/))}
if(selectedtabfromurl==i||this.enabletabpersistence&&selectedtab==-1&&parseInt(persistedtab)==i||!this.enabletabpersistence&&selectedtab==-1&&this.getselectedClassTarget(this.tabs[i]).className=="selected"){selectedtab=i}}}
if(selectedtab!=-1)
x='x';else
this.expandtab(this.tabs[this.hottabspositions[0]])
if(parseInt(this.automodeperiod)>500&&this.hottabspositions.length>1){this.autoruntimer=setInterval(function(){tabinstance.autorun()},this.automodeperiod)}}}
var d=document,zInterval=null,current=0,thisimg,thisimgright,direction='down',TimerId=null,stopatend=0,paused=0;function so_init(){if(!d.getElementById||!d.createElement)return;if(imgsrclink.length>0){thisimglink=d.getElementById("swapimagelink");}
thisimg=d.getElementById("swapimage");thisimg.xOpacity=.99;thisimg.src=imgsrc[0];if(imgsrcright.length>0){thisimgright=d.getElementById("swapimageright");thisimgright.xOpacity=.99;thisimgright.src=imgsrcright[0];}
if(adnum.length>0){thisnum=d.getElementById("adnum");thisnum.xOpacity=.99;}
if(imgsrctext.length>0){thisimgtext=d.getElementById("swapimagetext");thisimgtext.xOpacity=.99;}
if(imgsrclink.length>0){thisimglink.href=imgsrclink[0];}
if(imgsrcmap[0]!=""){thisimg.useMap="#"+imgsrcmap[0];}
if(imgsrctext.length>0){thisimgtext.innerHTML=imgsrctext[0];}
if(adnum.length>0){thisnum.innerHTML="("+adnum[0]+"/"+adtotal+")";}
TimerId=setTimeout(startChange,delay);}
function so_xfade(){if(direction=='down'){thisimg.xOpacity-=.05;if(adnum.length>0){thisnum.xOpacity-=.05;}
if(imgsrctext.length>0){thisimgtext.xOpacity+=.05;}
if(imgsrcright.length>0){thisimgright.xOpacity-=.05;}}
else{thisimg.xOpacity+=.05;if(adnum.length>0){thisnum.xOpacity-=.05;}
if(imgsrctext.length>0){thisimgtext.xOpacity+=.05;}
if(imgsrcright.length>0){thisimgright.xOpacity+=.05;}}
thisimg.style.display='block';thisimg.style.opacity=thisimg.xOpacity;thisimg.style.MozOpacity=thisimg.xOpacity;thisimg.style.filter="alpha(opacity="+(thisimg.xOpacity*100)+")";if(adnum.length>0){thisnum.style.display='block';thisnum.style.opacity=thisimg.xOpacity;thisnum.style.MozOpacity=thisimg.xOpacity;}
if(imgsrctext.length>0){thisimgtext.style.display='block';thisimgtext.style.opacity=thisimg.xOpacity;thisimgtext.style.MozOpacity=thisimg.xOpacity;}
if(imgsrcright.length>0){thisimgright.style.display='block';thisimgright.style.opacity=thisimgright.xOpacity;thisimgright.style.MozOpacity=thisimgright.xOpacity;}
if(thisimg.xOpacity>=.99){thisimg.xOpacity=.99;thisnum.xOpacity=.99;if(imgsrcright.length>0){thisimgright.xOpacity=.99;}
if(imgsrctext.length>0){thisimgtext.xOpacity=.99;}
if(adnum.length>0){thisnum.xOpacity=.99;}
direction='down';if(stopatend==1){pause();stopatend=0;}else{TimerId=setTimeout(startChange,delay);}}
else if(thisimg.xOpacity<=0){thisimg.xOpacity=0;thisnum.xOpacity=0;if(imgsrcright.length>0){thisimgright.xOpacity=0;}
if(imgsrctext.length>0){thisimgtext.xOpacity=0;}
if(adnum.length>0){thisnum.xOpacity=0;}
if(current<(imgsrc.length-1))
current+=1;else
current=0;thisimg.src=imgsrc[current];if(imgsrcright.length>0){thisimgright.src=imgsrcright[current];}
if(imgsrclink[current]!=undefined){thisimglink.href=imgsrclink[current];thisimglink.ismap="";}else{thisimglink.href="";}
if(imgsrcmap[current]!=""){thisimg.useMap="#"+imgsrcmap[current];}
if(imgsrctext.length>0){thisimgtext.innerHTML=imgsrctext[current];}
if(adnum.length>0){thisnum.innerHTML="("+adnum[current]+"/"+adtotal+")";}
direction='up';so_xfade();}else{if(stopatend!=1){TimerId=0;}
setTimeout(so_xfade,50);}}
function sendPage()
{location.href=imgsrclink[current];}
function startChange(){if(paused==0){so_xfade();}
else{return false;}}
function change(image){thisimg.src=imgsrc[0];if(imgsrctext[image].length>0){}
if(imgsrcright.length>0){thisimgright.src=imgsrcright[image];}}
function pause(){paused=1;clearTimeout(TimerId);}
function resume(){paused=0;TimerId=setTimeout(startChange,delay);}
function next(){if(paused==1){stopatend=1;TimerId=setTimeout(startChange,delay);}}
function previous(){if(paused==1){stopatend=1;if((current-2)<0){current=((current-1)+imgsrc.length);}else
{current=current-2;}
TimerId=setTimeout(startChange,delay);}}
function enabletip(event,text)
{text=text.replace(/^\s+|\s+$/g,'');if(text!="")
{var x,y;if(navigator.appName=="Microsoft Internet Explorer")
{var standardbody=(document.compatMode=="CSS1Compat")?document.documentElement:document.body
x=event.clientX+standardbody.scrollLeft;y=event.clientY+standardbody.scrollTop;}
else
{x=event.pageX;y=event.pageY;}
document.getElementById("tooltipdiv").innerHTML=text.replace(/\n/g,"<br>");document.getElementById("tooltipdiv").style.display="block";document.getElementById("tooltipdiv").style.left=x+20+'px';document.getElementById("tooltipdiv").style.top=y+20+'px';}}
function disabletip()
{document.getElementById("tooltipdiv").style.display="none";}
document.write('<div id="tooltipdiv" style="position:absolute; display:none; background-color:#ffffff; z-index: 100"></div>')