var FOLDERS={domainRoot:"http://www.serenaltd.com/",images:"http://www.serenaltd.com/template/images",pimages:"http://www.serenaltd.com/template/img",css:"http://www.serenaltd.com/template/styles",js:"http://www.serenaltd.com/system/javascript"};
var ie=(document.all)?1:0;function getElementsByClassName(oElm,strTagName,oClassNames){var arrElements=(strTagName=="*"&&oElm.all)?oElm.all:oElm.getElementsByTagName(strTagName);var arrReturnElements=new Array();var arrRegExpClassNames=new Array();if(typeof oClassNames=="object"){for(var i=0;i<oClassNames.length;i++){arrRegExpClassNames.push(new RegExp("(^|\\s)"+oClassNames[i].replace(/\-/g,"\\-")+"(\\s|$)"));}}
else{arrRegExpClassNames.push(new RegExp("(^|\\s)"+oClassNames.replace(/\-/g,"\\-")+"(\\s|$)"));}
var oElement;var bMatchesAll;for(var j=0;j<arrElements.length;j++){oElement=arrElements[j];bMatchesAll=true;for(var k=0;k<arrRegExpClassNames.length;k++){if(!arrRegExpClassNames[k].test(oElement.className)){bMatchesAll=false;break;}}
if(bMatchesAll){arrReturnElements.push(oElement);}}
return(arrReturnElements)}
function $(){var elements=new Array();for(var i=0;i<arguments.length;i++){var element=arguments[i];if(typeof element=='string')
element=document.getElementById(element);if(arguments.length==1)
return element;elements.push(element);}
return elements;}
function attachOverImage(obj,objSrc){if(obj.doNotParse)return;var img=new Image();var defaultImage=obj.src;img.src=objSrc;obj.onmouseover=function(){obj.doNotParse=1;this.src=objSrc;}
obj.onmouseout=function(){this.src=defaultImage;}
img.onerror=function(){alert("Can not load the image '"+objSrc+"'")}
delete img;}
function isEmail(m){var email_regex=/^[\w\d\!\#\$\.\%\&\'\*\+\-\/\=\?\^\_\`\{\|\}\~]+(\.[\w\d\!\#\$\%\&\'\*\+\-\/\=\?\^\_\`\{\|\}\~])*\@(((\w+[\w\d\-]*[\w\d]\.)+(\w+[\w\d\-]*[\w\d]))|((\d{1,3}\.){3}\d{1,3}))$/;return(email_regex.test(m));}
function newElement(data){var el;if('string'==typeof data){el=document.createTextNode(data);}else{el=document.createElement(data.tag);delete(data.tag);if('undefined'!=typeof data.children){if('string'==typeof data.children||'undefined'==typeof data.children.length){el.appendChild(newElement(data.children));}else{for(var i=0,child=null;'undefined'!=typeof(child=data.children[i]);i++){el.appendChild(newElement(child));}}
delete(data.children);}
for(attr in data){el[attr]=data[attr];}}
return el;}
function print_r(obj,aler){if(!aler)aler=false;try{var debugWindow={};if(typeof obj=="object"||typeof obj=="array"){var result=""
var name=(obj.name||obj.id);for(var i in obj)
result+=name+"."+i+" = "+obj[i]+"; "
if(aler){alert(result)}else{if(debugWindow){debugWindow.innerText=debugWindow.innerText+"\n\n--------------------------------------------------\n\n"+result}else{debugWindow=newElement({tag:"div",innerText:result})
document.body.appendChild(debugWindow);}}}else{alert("you can't show element properties typeof "+typeof obj)}}catch(e){throw(e)}}
function isset(e){if(typeof e=="undefined")return false;else return typeof e;}
function redirect(url){if(!url)return;document.location.href=url;}
function checkLoginForm(){if($("username").value==""){tip.show($("username"),"left","Enter your username","error");$("username").focus();return false;}else if($("password").value==""){tip.show($("password"),"left","Plase enter the password","error");$("password").focus();return false;}}
function confirmDelete(){if(confirm("Are you sure you want to delete this record?")){return true;}else{return false;}}
function copy(inElement){if(inElement.createTextRange){var range=inElement.createTextRange();if(range&&BodyLoaded==1)
range.execCommand('Copy');}else{var flashcopier='flashcopier';if(!document.getElementById(flashcopier)){var divholder=document.createElement('div');divholder.id=flashcopier;document.body.appendChild(divholder);}
document.getElementById(flashcopier).innerHTML='';var divinfo='<embed src="'+FOLDERS.js+'/modules/clipboard.swf" FlashVars="clipboard='+encodeURIComponent(inElement.value)+'" width="0" height="0" type="application/x-shockwave-flash"></embed>';document.getElementById(flashcopier).innerHTML=divinfo;}}
Array.prototype.in_array=function(obj){var len=this.length;for(var x=0;x<=len;x++){if(this[x]==obj)return true;}
return false;}
function toggleMenu(e){var ul=(typeof e.parentNode.childNodes[1]!="undefined")?e.parentNode.childNodes[1]:false;if(ul)ul.style.display=(ul.style.diplay!=""&&ul.style.display=="block")?"none":"block";}

var includeCaption=0;var zoomTime=3;var zoomSteps=5;var fade=1;var minBorder=90;var zoomImageURI=FOLDERS.images+"/";function fadeOut(elem){if(elem.id){fadeElementSetup(elem.id,100,0,10);}}
function fadeIn(elem){if(elem.id){fadeElementSetup(elem.id,0,100,10);}}
var fadeActive=new Array();var fadeQueue=new Array();var fadeTimer=new Array();var fadeClose=new Array();function fadeElementSetup(theID,fdStart,fdEnd,fdSteps,fdClose){if(fadeActive[theID]==true){fadeQueue[theID]=new Array(theID,fdStart,fdEnd,fdSteps);}else{fadeSteps=fdSteps;fadeCurrent=0;fadeAmount=(fdStart-fdEnd)/fadeSteps;fadeTimer[theID]=setInterval("fadeElement('"+theID+"', '"+fadeCurrent+"', '"+fadeAmount+"', '"+fadeSteps+"')",15);fadeActive[theID]=true;if(fdClose==1){fadeClose[theID]=true;}else{fadeClose[theID]=false;}}}
function fadeElement(theID,fadeCurrent,fadeAmount,fadeSteps){if(fadeCurrent==fadeSteps){clearInterval(fadeTimer[theID]);fadeActive[theID]=false;if(fadeClose[theID]==true){document.getElementById(theID).style.visibility="hidden";}
if(fadeQueue[theID]&&fadeQueue[theID]!=false){fadeElementSetup(fadeQueue[theID][0],fadeQueue[theID][1],fadeQueue[theID][2],fadeQueue[theID][3]);fadeQueue[theID]=false;}}else{fadeCurrent++;if(fadeAmount<0){setOpacity(Math.abs(fadeCurrent*fadeAmount),theID);}else{setOpacity(100-(fadeCurrent*fadeAmount),theID);}
clearInterval(fadeTimer[theID]);fadeTimer[theID]=setInterval("fadeElement('"+theID+"', '"+fadeCurrent+"', '"+fadeAmount+"', '"+fadeSteps+"')",15);}}
function setOpacity(opacity,theID){var object=document.getElementById(theID).style;if(navigator.userAgent.indexOf("Firefox")!=-1){if(opacity==100){opacity=99.9999;}}
object.filter="alpha(opacity="+opacity+")";object.opacity=(opacity/100);}
function linear(t,b,c,d)
{return c*t/d+b;}
function sineInOut(t,b,c,d)
{return-c/2*(Math.cos(Math.PI*t/d)-1)+b;}
function cubicIn(t,b,c,d){return c*(t/=d)*t*t+b;}
function cubicOut(t,b,c,d){return c*((t=t/d-1)*t*t+1)+b;}
function cubicInOut(t,b,c,d)
{if((t/=d/2)<1)return c/2*t*t*t+b;return c/2*((t-=2)*t*t+2)+b;}
function bounceOut(t,b,c,d)
{if((t/=d)<(1/2.75)){return c*(7.5625*t*t)+b;}else if(t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+.75)+b;}else if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+.9375)+b;}else{return c*(7.5625*(t-=(2.625/2.75))*t+.984375)+b;}}
var myWidth=0,myHeight=0,myScroll=0;myScrollWidth=0;myScrollHeight=0;var zoomOpen=false,preloadFrame=1,preloadActive=false,preloadTime=0,imgPreload=new Image();var zoomActive=new Array();var zoomTimer=new Array();var zoomOrigW=new Array();var zoomOrigH=new Array();var zoomOrigX=new Array();var zoomOrigY=new Array();var zoomID="ZoomBox";var theID="ZoomImage";var theCap="ZoomCaption";var theCapDiv="ZoomCapDiv";var imagesArray=[];function setupZoom(){prepZooms();insertZoomHTML();zoomdiv=document.getElementById(zoomID);zoomimg=document.getElementById(theID);}
function prepZooms(){if(!document.getElementsByTagName){return;}
var links=document.getElementsByTagName("a");for(i=0;i<links.length;i++){if(links[i].getAttribute("href")){file=links[i].getAttribute("href");if(/(png|gif|jpg|jpeg)/i.test(file)){links[i].onclick=function(){zoomClick(this);return false;};links[i].onmouseover=function(){zoomPreload(this);};imagesArray[imagesArray.length]=links[i];}}}}
function zoomPrev(){if(typeof imagesArray=="undefined")return;var current;for(i in imagesArray){if(String(imagesArray[i]).indexOf(document.getElementById("ZoomImage").src)!=-1){current=i;break;}}
if(current==0){var image=new Image();image.src=imagesArray[imagesArray.length-1];image.onload=function(){imgPreload=image;zoomClick(newElement({tag:"a",href:imagesArray[imagesArray.length-1],children:[{tag:"img",src:image.src,width:image.width,height:image.height}]}))}}else{var image=new Image();image.src=imagesArray[current-1];image.onload=function(){imgPreload=image;zoomClick(newElement({tag:"a",href:imagesArray[current-1],children:[{tag:"img",src:image.src,width:image.width,height:image.height}]}))}}}
function zoomNext(){if(typeof imagesArray=="undefined")return;var current;for(i in imagesArray){if(String(imagesArray[i]).indexOf(document.getElementById("ZoomImage").src)!=-1){current=i;break;}}
if(current==(imagesArray.length-1)){var image=new Image();image.src=imagesArray[0];image.onload=function(){imgPreload=image;zoomClick(newElement({tag:"a",href:imagesArray[0],children:[{tag:"img",src:image.src,width:image.width,height:image.height}]}))}}else{var image=new Image();image.src=imagesArray[parseInt(current)+1];image.onload=function(){imgPreload=image;zoomClick(newElement({tag:"a",href:imagesArray[parseInt(current)+1],children:[{tag:"img",src:image.src,width:image.width,height:image.height}]}))}}}
function zoomPreload(from){var theimage=from.getAttribute("href");if(imgPreload.src.indexOf(from.getAttribute("href").substr(from.getAttribute("href").lastIndexOf("/")))==-1){preloadActive=true;imgPreload=new Image();imgPreload.onload=function(){preloadActive=false;}
imgPreload.src=theimage;}}
function preloadAnimStart(){preloadTime=new Date();document.getElementById("ZoomSpin").style.left=(myWidth/2)+'px';document.getElementById("ZoomSpin").style.top=((myHeight/2)+myScroll)+'px';document.getElementById("ZoomSpin").style.visibility="visible";preloadFrame=1;document.getElementById("ZoomSpin").src=zoomImageURI+'zoom-spin-'+preloadFrame+'.png';preloadAnimTimer=setInterval("preloadAnim()",100);}
function preloadAnim(from){if(preloadActive!=false){document.getElementById("SpinImage").src=zoomImageURI+'zoom-spin-'+preloadFrame+'.png';preloadFrame++;if(preloadFrame>12)preloadFrame=1;}else{document.getElementById("ZoomSpin").style.visibility="hidden";clearInterval(preloadAnimTimer);zoomIn(preloadFrom);}}
function zoomClick(from){getWindowSizes();if(preloadActive==true){preloadFrom=from;preloadAnimStart();}else{zoomIn(from);}}
function zoomIn(from){zoomimg.src=from.getAttribute("href");if(from.childNodes[0].width){startW=from.childNodes[0].width;startH=from.childNodes[0].height;startPos=findElementPos(from.childNodes[0]);}else{startW=50;startH=12;startPos=findElementPos(from);}
hostX=startPos[0];hostY=startPos[1];if(document.getElementById('scroller')){hostX=hostX-document.getElementById('scroller').scrollLeft;}
endW=imgPreload.width;endH=imgPreload.height;if(zoomActive[theID]!=true){document.getElementById("ShadowBox").style.visibility="hidden";document.getElementById("BlackBackground").style.visibility="hidden";document.getElementById("BlackBackground").style.display="none";document.getElementById("PrevBtn").style.visibility="hidden";document.getElementById("NextBtn").style.visibility="hidden";document.getElementById("ZoomClose").style.visibility="hidden";if(includeCaption==1){zoomcap=document.getElementById(theCap);zoomcapd=document.getElementById(theCapDiv);if(from.getAttribute('title')&&includeCaption==1){zoomcapd.style.display='block';zoomcap.innerHTML=from.getAttribute('title');}else{zoomcapd.style.display='none';}}
zoomOrigW[theID]=startW;zoomOrigH[theID]=startH;zoomOrigX[theID]=hostX;zoomOrigY[theID]=hostY;zoomimg.style.width=startW+'px';zoomimg.style.height=startH+'px';zoomdiv.style.left=hostX+'px';zoomdiv.style.top=hostY+'px';if(fade==1){setOpacity(0,zoomID);}
zoomdiv.style.visibility="visible";sizeRatio=endW/endH;if(endW>myWidth-minBorder){endW=myWidth-minBorder;endH=endW/sizeRatio;}
if(endH>myHeight-minBorder){endH=myHeight-minBorder;endW=endH*sizeRatio;}
zoomChangeX=((myWidth/2)-(endW/2)-hostX);zoomChangeY=(((myHeight/2)-(endH/2)-hostY)+myScroll);zoomChangeW=(endW-startW);zoomChangeH=(endH-startH);zoomCurrent=0;if(fade==1){fadeCurrent=0;fadeAmount=(0-100)/zoomSteps;}else{fadeAmount=0;}
zoomTimer[theID]=setInterval("zoomElement('"+zoomID+"', '"+theID+"', "+zoomCurrent+", "+startW+", "+zoomChangeW+", "+startH+", "+zoomChangeH+", "+hostX+", "+zoomChangeX+", "+hostY+", "+zoomChangeY+", "+zoomSteps+", "+fade+", "+fadeAmount+", 'zoomDoneIn(zoomID)')",zoomTime);zoomActive[theID]=true;setOpacity(70,"BlackBackground");document.getElementById("BlackBackground").style.visibility="visible";document.getElementById("BlackBackground").style.display="block";document.getElementById("PrevBtn").style.visibility="visible";document.getElementById("NextBtn").style.visibility="visible";document.getElementById("PrevBtn").style.top=myScroll+"px";document.getElementById("NextBtn").style.top=myScroll+"px";if(document.all)
document.getElementById("BlackBackground").style.top=myScroll+"px";}}
function zoomOut(){if(zoomActive[theID]!=true){document.getElementById("ShadowBox").style.visibility="hidden";document.getElementById("BlackBackground").style.visibility="hidden";document.getElementById("BlackBackground").style.display="none";document.getElementById("ZoomClose").style.visibility="hidden";document.getElementById("PrevBtn").style.visibility="hidden";document.getElementById("NextBtn").style.visibility="hidden";startX=parseInt(zoomdiv.style.left);startY=parseInt(zoomdiv.style.top);startW=zoomimg.width;startH=zoomimg.height;zoomChangeX=zoomOrigX[theID]-startX;zoomChangeY=zoomOrigY[theID]-startY;zoomChangeW=zoomOrigW[theID]-startW;zoomChangeH=zoomOrigH[theID]-startH;zoomCurrent=0;if(fade==1){fadeCurrent=0;fadeAmount=(100-0)/zoomSteps;}else{fadeAmount=0;}
zoomTimer[theID]=setInterval("zoomElement('"+zoomID+"', '"+theID+"', "+zoomCurrent+", "+startW+", "+zoomChangeW+", "+startH+", "+zoomChangeH+", "+startX+", "+zoomChangeX+", "+startY+", "+zoomChangeY+", "+zoomSteps+", "+fade+", "+fadeAmount+", 'zoomDone(zoomID, theID)')",zoomTime);zoomActive[theID]=true;}}
function zoomDoneIn(zoomdiv,theID){zoomOpen=true;setOpacity(0,"ShadowBox");setOpacity(0,"ZoomClose");zoomdiv=document.getElementById(zoomdiv);shadowdiv=document.getElementById("ShadowBox");shadowLeft=parseInt(zoomdiv.style.left)-13;shadowTop=parseInt(zoomdiv.style.top)-8;shadowWidth=zoomdiv.offsetWidth+26;shadowHeight=zoomdiv.offsetHeight+26;shadowdiv.style.width=shadowWidth+'px';shadowdiv.style.height=shadowHeight+'px';shadowdiv.style.left=shadowLeft+'px';shadowdiv.style.top=shadowTop+'px';if(!document.all)document.getElementById("ZoomClose").style.visibility="visible";fadeElementSetup("ZoomClose",0,100,5);}
function zoomDone(zoomdiv,theID){zoomOpen=false;zoomOrigH[theID]="";zoomOrigW[theID]="";document.getElementById(zoomdiv).style.visibility="hidden";zoomActive[theID]==false;}
function zoomElement(zoomdiv,theID,zoomCurrent,zoomStartW,zoomChangeW,zoomStartH,zoomChangeH,zoomStartX,zoomChangeX,zoomStartY,zoomChangeY,zoomSteps,fade,fadeAmount,execWhenDone){if(zoomCurrent==(zoomSteps+1)){zoomActive[theID]=false;clearInterval(zoomTimer[theID]);if(execWhenDone!=""){eval(execWhenDone);}}else{if(fade!=0){if(fadeAmount<0){setOpacity(Math.abs(zoomCurrent*fadeAmount),zoomdiv);}else{setOpacity(100-(zoomCurrent*fadeAmount),zoomdiv);}}
moveW=cubicInOut(zoomCurrent,zoomStartW,zoomChangeW,zoomSteps);moveH=cubicInOut(zoomCurrent,zoomStartH,zoomChangeH,zoomSteps);moveX=cubicInOut(zoomCurrent,zoomStartX,zoomChangeX,zoomSteps);moveY=cubicInOut(zoomCurrent,zoomStartY,zoomChangeY,zoomSteps);document.getElementById(zoomdiv).style.left=moveX+'px';document.getElementById(zoomdiv).style.top=moveY+'px';zoomimg.style.width=moveW+'px';zoomimg.style.height=moveH+'px';zoomCurrent++;clearInterval(zoomTimer[theID]);zoomTimer[theID]=setInterval("zoomElement('"+zoomdiv+"', '"+theID+"', "+zoomCurrent+", "+zoomStartW+", "+zoomChangeW+", "+zoomStartH+", "+zoomChangeH+", "+zoomStartX+", "+zoomChangeX+", "+zoomStartY+", "+zoomChangeY+", "+zoomSteps+", "+fade+", "+fadeAmount+", '"+execWhenDone+"')",zoomTime);}}
function zoomMouseOver(){}
function zoomMouseOut(){}
function getWindowSizes(){if(document.all){myWidth=(document.documentElement.clientWidth)?document.documentElement.clientWidth:document.body.clientWidth;myHeight=(document.documentElement.clientHeight)?document.documentElement.clientHeight:document.body.clientHeight;myScroll=(document.documentElement.scrollTop)?document.documentElement.scrollTop:document.body.scrollTop;}else{myWidth=window.innerWidth;myHeight=window.innerHeight;myScroll=window.pageYOffset;}
if(window.innerHeight&&window.scrollMaxY){myScrollWidth=document.body.scrollWidth;myScrollHeight=window.innerHeight+window.scrollMaxY;}else if(document.body.scrollHeight>document.body.offsetHeight){myScrollWidth=document.body.scrollWidth;myScrollHeight=document.body.scrollHeight;}else{myScrollWidth=document.body.offsetWidth;myScrollHeight=document.body.offsetHeight;}}
function findElementPos(elemFind)
{var elemX=0;var elemY=0;do{elemX+=elemFind.offsetLeft;elemY+=elemFind.offsetTop;}while(elemFind=elemFind.offsetParent)
return Array(elemX,elemY);}
function insertZoomHTML(){var inBody=document.getElementsByTagName("body").item(0);var inSpinbox=document.createElement("div");inSpinbox.setAttribute('id','ZoomSpin');inSpinbox.style.position='absolute';inSpinbox.style.left='10px';inSpinbox.style.top='10px';inSpinbox.style.visibility='hidden';inSpinbox.style.zIndex='5000';inBody.insertBefore(inSpinbox,inBody.firstChild);var inSpinImage=document.createElement("img");inSpinImage.setAttribute('id','SpinImage');inSpinImage.setAttribute('src',zoomImageURI+'zoom-spin-1.png');inSpinbox.appendChild(inSpinImage);var inZoombox=document.createElement("div");inZoombox.setAttribute('id','ZoomBox');inZoombox.style.position='absolute';inZoombox.style.left='10px';inZoombox.style.top='10px';inZoombox.style.visibility='hidden';inZoombox.style.zIndex='499';inBody.insertBefore(inZoombox,inSpinbox.nextSibling);var inLink1=document.createElement("a");inLink1.setAttribute('href','javascript:zoomOut();');inZoombox.appendChild(inLink1);var inImage1=document.createElement("img");inImage1.setAttribute('src',zoomImageURI+'spacer.gif');inImage1.setAttribute('id','ZoomImage');inImage1.setAttribute('border','0');inImage1.setAttribute('onMouseOver','zoomMouseOver();')
inImage1.setAttribute('onMouseOut','zoomMouseOut();')
inImage1.style.display='block';inImage1.style.width='10px';inImage1.style.height='10px';inLink1.appendChild(inImage1);var inClosebox=document.createElement("div");inClosebox.setAttribute('id','ZoomClose');inClosebox.style.position='absolute';inClosebox.style.left='-15px';inClosebox.style.top='-15px';inClosebox.style.filter='alpha(opacity=0)';inClosebox.style.MozOpacity='0';inClosebox.style.opacity='0';inClosebox.style.visibility='hidden';inZoombox.appendChild(inClosebox);var inLink2=document.createElement("a");inLink2.setAttribute('href','javascript:zoomOut(1);');inClosebox.appendChild(inLink2);var inImage2=document.createElement("img");inImage2.setAttribute('src',zoomImageURI+'closebox.png');inImage2.setAttribute('width','30');inImage2.setAttribute('height','30');inImage2.setAttribute('border','0');inLink2.appendChild(inImage2);var inShadowbox=document.createElement("div");inShadowbox.setAttribute('id','ShadowBox');inShadowbox.style.position='absolute';inShadowbox.style.left='50px';inShadowbox.style.top='50px';inShadowbox.style.width='100px';inShadowbox.style.height='100px';inShadowbox.style.visibility='hidden';inShadowbox.style.zIndex='45';inBody.insertBefore(inShadowbox,inZoombox.nextSibling);var BlackBackground=document.createElement("div");BlackBackground.setAttribute('id','BlackBackground');BlackBackground.style.left='0';BlackBackground.style.top='0';BlackBackground.style.width='100%';BlackBackground.style.height='100%';BlackBackground.style.visibility='hidden';BlackBackground.style.zIndex='55';BlackBackground.onclick=function(){zoomOut(1);}
inBody.insertBefore(BlackBackground,inZoombox.nextSibling);var PrevBtn=newElement({tag:"DIV",id:"PrevBtn",children:{tag:"a",children:" ",href:"javascript:zoomPrev()"}})
inBody.insertBefore(PrevBtn,inZoombox.nextSibling);var NextBtn=newElement({tag:"DIV",id:"NextBtn",children:{tag:"a",children:" ",href:"javascript:zoomNext()"}})
inBody.insertBefore(NextBtn,inZoombox.nextSibling);var inTable=document.createElement("table");inTable.setAttribute('border','0');inTable.setAttribute('width','100%');inTable.setAttribute('height','100%');inTable.setAttribute('cellpadding','0');inTable.setAttribute('cellspacing','0');inShadowbox.appendChild(inTable);var inRow1=document.createElement("tr");inRow1.style.height='25px';inTable.appendChild(inRow1);var inCol1=document.createElement("td");inCol1.style.width='27px';inRow1.appendChild(inCol1);var inShadowImg1=document.createElement("img");inShadowImg1.setAttribute('src',zoomImageURI+'zoom-shadow1.png');inShadowImg1.setAttribute('width','27');inShadowImg1.setAttribute('height','25');inShadowImg1.style.display='block';inCol1.appendChild(inShadowImg1);var inCol2=document.createElement("td");inCol2.setAttribute('background',zoomImageURI+'zoom-shadow2.png');inRow1.appendChild(inCol2);var inSpacer1=document.createElement("img");inSpacer1.setAttribute('src',zoomImageURI+'spacer.gif');inSpacer1.setAttribute('height','1');inSpacer1.setAttribute('width','1');inSpacer1.style.display='block';inCol2.appendChild(inSpacer1);var inCol3=document.createElement("td");inCol3.style.width='27px';inRow1.appendChild(inCol3);var inShadowImg3=document.createElement("img");inShadowImg3.setAttribute('src',zoomImageURI+'zoom-shadow3.png');inShadowImg3.setAttribute('width','27');inShadowImg3.setAttribute('height','25');inShadowImg3.style.display='block';inCol3.appendChild(inShadowImg3);inRow2=document.createElement("tr");inTable.appendChild(inRow2);var inCol4=document.createElement("td");inCol4.setAttribute('background',zoomImageURI+'zoom-shadow4.png');inRow2.appendChild(inCol4);var inSpacer2=document.createElement("img");inSpacer2.setAttribute('src',zoomImageURI+'spacer.gif');inSpacer2.setAttribute('height','1');inSpacer2.setAttribute('width','1');inSpacer2.style.display='block';inCol4.appendChild(inSpacer2);var inCol5=document.createElement("td");inCol5.setAttribute('bgcolor','#ffffff');inRow2.appendChild(inCol5);var inSpacer3=document.createElement("img");inSpacer3.setAttribute('src',zoomImageURI+'spacer.gif');inSpacer3.setAttribute('height','1');inSpacer3.setAttribute('width','1');inSpacer3.style.display='block';inCol5.appendChild(inSpacer3);var inCol6=document.createElement("td");inCol6.setAttribute('background',zoomImageURI+'zoom-shadow5.png');inRow2.appendChild(inCol6);var inSpacer4=document.createElement("img");inSpacer4.setAttribute('src',zoomImageURI+'spacer.gif');inSpacer4.setAttribute('height','1');inSpacer4.setAttribute('width','1');inSpacer4.style.display='block';inCol6.appendChild(inSpacer4);var inRow3=document.createElement("tr");inRow3.style.height='26px';inTable.appendChild(inRow3);var inCol7=document.createElement("td");inCol7.style.width='27px';inRow3.appendChild(inCol7);var inShadowImg7=document.createElement("img");inShadowImg7.setAttribute('src',zoomImageURI+'zoom-shadow6.png');inShadowImg7.setAttribute('width','27');inShadowImg7.setAttribute('height','26');inShadowImg7.style.display='block';inCol7.appendChild(inShadowImg7);var inCol8=document.createElement("td");inCol8.setAttribute('background',zoomImageURI+'zoom-shadow7.png');inRow3.appendChild(inCol8);var inSpacer5=document.createElement("img");inSpacer5.setAttribute('src',zoomImageURI+'spacer.gif');inSpacer5.setAttribute('height','1');inSpacer5.setAttribute('width','1');inSpacer5.style.display='block';inCol8.appendChild(inSpacer5);var inCol9=document.createElement("td");inCol9.style.width='27px';inRow3.appendChild(inCol9);var inShadowImg9=document.createElement("img");inShadowImg9.setAttribute('src',zoomImageURI+'zoom-shadow8.png');inShadowImg9.setAttribute('width','27');inShadowImg9.setAttribute('height','26');inShadowImg9.style.display='block';inCol9.appendChild(inShadowImg9);if(includeCaption==1){var inCapDiv=document.createElement("div");inCapDiv.setAttribute('id','ZoomCapDiv');inCapDiv.style.display='none';inCapDiv.style.marginLeft='13px';inCapDiv.style.marginRight='13px';inShadowbox.appendChild(inCapDiv);var inCapTable=document.createElement("table");inCapTable.setAttribute('border','0');inCapTable.setAttribute('cellpadding','0');inCapTable.setAttribute('cellspacing','0');inCapTable.setAttribute('align','center');inCapDiv.appendChild(inCapTable);var inCapRow1=document.createElement("tr");inCapTable.appendChild(inCapRow1);var inCapCol1=document.createElement("td");inCapRow1.appendChild(inCapCol1);var inCapImg1=document.createElement("img");inCapImg1.setAttribute('src',zoomImageURI+'zoom-caption-l.png');inCapImg1.setAttribute('width','13');inCapImg1.setAttribute('height','26');inCapImg1.style.display='block';inCapCol1.appendChild(inCapImg1);var inCapCol2=document.createElement("td");inCapCol2.setAttribute('background',zoomImageURI+'zoom-caption-fill.png');inCapCol2.setAttribute('id','ZoomCaption');inCapCol2.setAttribute('valign','middle');inCapCol2.style.fontSize='14px';inCapCol2.style.fontFamily='Helvetica';inCapCol2.style.fontWeight='bold';inCapCol2.style.color='#ffffff';inCapCol2.style.textShadow='0px 2px 4px #000000';inCapCol2.style.whiteSpace='nowrap';inCapRow1.appendChild(inCapCol2);var inCapCol3=document.createElement("td");inCapRow1.appendChild(inCapCol3);var inCapImg2=document.createElement("img");inCapImg2.setAttribute('src',zoomImageURI+'zoom-caption-r.png');inCapImg2.setAttribute('width','13');inCapImg2.setAttribute('height','26');inCapImg2.style.display='block';inCapCol3.appendChild(inCapImg2);}}

if(typeof deconcept=="undefined"){var deconcept=new Object();}
if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}
if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}
deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a,_b){if(!document.getElementById){return;}
this.DETECT_KEY=_b?_b:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}
if(id){this.setAttribute("id",id);}
if(w){this.setAttribute("width",w);}
if(h){this.setAttribute("height",h);}
if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}
this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(c){this.addParam("bgcolor",c);}
var q=_8?_8:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",_7);this.setAttribute("doExpressInstall",false);var _d=(_9)?_9:window.location;this.setAttribute("xiRedirectUrl",_d);this.setAttribute("redirectUrl","");if(_a){this.setAttribute("redirectUrl",_a);}};deconcept.SWFObject.prototype={setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16.push(key+"="+_18[key]);}
return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");}
_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}
var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");}
_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}
var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}
return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}
if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}
return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}
catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}
catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}
catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}
return _23;};deconcept.PlayerVersion=function(_27){this.major=_27[0]!=null?parseInt(_27[0]):0;this.minor=_27[1]!=null?parseInt(_27[1]):0;this.rev=_27[2]!=null?parseInt(_27[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}
if(this.major>fv.major){return true;}
if(this.minor<fv.minor){return false;}
if(this.minor>fv.minor){return true;}
if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_29){var q=document.location.search||document.location.hash;if(q){var _2b=q.substring(1).split("&");for(var i=0;i<_2b.length;i++){if(_2b[i].substring(0,_2b[i].indexOf("="))==_29){return _2b[i].substring((_2b[i].indexOf("=")+1));}}}
return"";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){if(window.opera||!document.all){return;}
var _2d=document.getElementsByTagName("OBJECT");for(var i=0;i<_2d.length;i++){_2d[i].style.display="none";for(var x in _2d[i]){if(typeof _2d[i][x]=="function"){_2d[i][x]=function(){};}}}};deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};if(typeof window.onunload=="function"){var _30=window.onunload;window.onunload=function(){deconcept.SWFObjectUtil.cleanupSWFs();_30();};}else{window.onunload=deconcept.SWFObjectUtil.cleanupSWFs;}};if(typeof window.onbeforeunload=="function"){if(!is_ie){var oldBeforeUnload=window.onbeforeunload;window.onbeforeunload=function(){deconcept.SWFObjectUtil.prepUnload();oldBeforeUnload();};}}else{window.onbeforeunload=deconcept.SWFObjectUtil.prepUnload;}
if(Array.prototype.push==null){Array.prototype.push=function(_31){this[this.length]=_31;return this.length;};}
var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;
