function getPageSize(){var xScroll,yScroll;
if(window.innerHeight&&window.scrollMaxY){xScroll=window.innerWidth+window.scrollMaxX;
yScroll=window.innerHeight+window.scrollMaxY;
}else{if(document.body.scrollHeight>document.body.offsetHeight){xScroll=document.body.scrollWidth;
yScroll=document.body.scrollHeight;
}else{xScroll=document.body.offsetWidth;
yScroll=document.body.offsetHeight;
}}var windowWidth,windowHeight;
if(self.innerHeight){if(document.documentElement.clientWidth){windowWidth=document.documentElement.clientWidth;
}else{windowWidth=self.innerWidth;
}windowHeight=self.innerHeight;
}else{if(document.documentElement&&document.documentElement.clientHeight){windowWidth=document.documentElement.clientWidth;
windowHeight=document.documentElement.clientHeight;
}else{if(document.body){windowWidth=document.body.clientWidth;
windowHeight=document.body.clientHeight;
}}}if(yScroll<windowHeight){pageHeight=windowHeight;
}else{pageHeight=yScroll;
}if(xScroll<windowWidth){pageWidth=xScroll;
}else{pageWidth=windowWidth;
}arrayPageSize=new Array(pageWidth,pageHeight,windowWidth,windowHeight);
return arrayPageSize;
}function showLoader(){try{showdiv("overlay1");
showdiv("dialogueBoxLoader");
}catch(e){}}function hideLoader(){try{hidediv("overlay1");
hidediv("dialogueBoxLoader");
}catch(e){}}function init(){try{var width=screen.width+"px";
var height=screen.height+"px";
var overlayElem=document.getElementById("overlay1");
var mainContainerElem=document.getElementById("mainContainer");
if(overlayElem!=null&&mainContainerElem!=null){var arrayPageSize=getPageSize();
overlayElem.style.height=arrayPageSize[1]+"px";
overlayElem.style.width=width;
}var mainOverlayElem=document.getElementById("mainOverlayCSS");
if(mainOverlayElem!=null&&mainContainerElem!=null){var arrayPageSize=getPageSize();
mainOverlayElem.style.height=arrayPageSize[1]+"px";
mainOverlayElem.style.width=width;
}}catch(e){}}function clear_textbox(){try{if(document.getElementById("searchInput").value==Error.getErrorMessage(140)){document.getElementById("searchInput").value="";
}}catch(e){}}function populate_textbox(){try{if(document.getElementById("searchInput").value==""){document.getElementById("searchInput").value=msg_search;
}}catch(e){}}function initScrollers(){scrollBars[0]=new scrollBar("outerWrapper0","innerWrapper0","lineup0","linedown0");
scrollBars[0].initScroll();
scrollBars[1]=new scrollBar("outerWrapper1","innerWrapper1","lineup1","linedown1");
if(typeof scrollBars[1].initScroll!="undefined"){scrollBars[1].initScroll();
}}function initScrollersPublic(){try{scrollBars[0]=new scrollBar("outerWrapper0","innerWrapper0","lineup0","linedown0");
scrollBars[0].initScroll();
}catch(e){}}function MM_goToURL(){try{var i,args=MM_goToURL.arguments;
document.MM_returnValue=false;
for(i=0;
i<(args.length-1);
i+=2){eval(args[i]+".location='"+args[i+1]+"'");
}}catch(e){}}function editTitle(id,newClass){try{var elem=document.getElementById(id);
elem.className=newClass;
}catch(e){}}function toggleTextFeild(id){try{elem=document.getElementById(id);
elem.style.display=(elem.style.display=="block")?"none":"block";
}catch(e){}}function newImage(imgID,imgSrc){try{document.getElementById(imgID).src=imgSrc;
}catch(e){}}function oldImage(imgID,imgSrc){try{document.getElementById(imgID).src=imgSrc;
}catch(e){}}function toggleButt(id){try{but=document.getElementById(id);
but.className=(but.className=="minusButton")?"addButton":"minusButton";
}catch(e){}}function hideFLash(){try{el=document.getElementById("flashshow");
if(el!=null){el.style.display=(el.style.display=="none")?"":"none";
}}catch(e){}}function hidediv(id){try{if(document.getElementById){document.getElementById(id).style.display="none";
}else{if(document.layers){document.id.display="none";
}else{document.all.id.style.display="none";
}}}catch(e){}}function showdiv(id){try{if(document.getElementById){document.getElementById(id).style.display="block";
}else{if(document.layers){document.id.display="block";
}else{document.all.id.style.display="block";
}}}catch(e){}}function toggle_visibility(id){try{var e=document.getElementById(id);
if(e.style.display=="none"){e.style.display="block";
}else{e.style.display="none";
}}catch(e){}}function toggle_visibility_inline(id){try{var e=document.getElementById(id);
if(e.style.display=="none"){e.style.display="inline";
}else{e.style.display="none";
}}catch(e){}}function MM_openBrWindow(theURL,winName,features){try{window.open(theURL,winName,features);
}catch(e){}}sfHover=function(){try{var sfEls=document.getElementById("actionBar").getElementsByTagName("LI");
for(var i=0;
i<sfEls.length;
i++){sfEls[i].onmouseover=function(){this.className+=" sfhover";
};
sfEls[i].onmouseout=function(){this.className=this.className.replace(new RegExp(" sfhover\\b"),"");
};
}}catch(e){}};
sfHover2=function(){try{var sfEls=document.getElementById("actionBar3").getElementsByTagName("LI");
for(var i=0;
i<sfEls.length;
i++){sfEls[i].onmouseover=function(){this.className+=" sfhover2";
};
sfEls[i].onmouseout=function(){this.className=this.className.replace(new RegExp(" sfhover2\\b"),"");
};
}}catch(e){}};
sfHover3=function(){try{var sfEls=document.getElementById("actionBar4").getElementsByTagName("LI");
for(var i=0;
i<sfEls.length;
i++){sfEls[i].onmouseover=function(){this.className+=" sfhover3";
};
sfEls[i].onmouseout=function(){this.className=this.className.replace(new RegExp(" sfhover3\\b"),"");
};
}}catch(e){}};
var loginPaneInnerTop=140;
var ease=140;
var dur=Math.round(loginPaneInnerTop/10);
var timer=0;
var loginMove=function(){document.getElementById("loginPane").style.visibility="visible";
var easeIn=(loginPaneInnerTop/ease)*dur;
loginPaneInnerTop=loginPaneInnerTop-easeIn;
if(loginPaneInnerTop>=1){document.getElementById("loginPaneInner").style.top=loginPaneInnerTop+"px";
document.getElementById("picDetail").style.top=loginPaneInnerTop-10+"px";
setTimeout("loginMove()",1);
}else{document.getElementById("closePane").style.visibility="visible";
var un=document.getElementById("userName");
if(un!=null){un.focus();
}}};
function loginClose(){document.getElementById("closePane").style.visibility="hidden";
var easeIn=(loginPaneInnerTop/ease)*dur;
loginPaneInnerTop=loginPaneInnerTop+easeIn;
if(loginPaneInnerTop<=160){document.getElementById("loginPaneInner").style.top=loginPaneInnerTop+"px";
document.getElementById("picDetail").style.top=loginPaneInnerTop-10+"px";
setTimeout("loginClose()",1);
}}function autoIframe(frameId){try{frame=document.getElementById(frameId);
innerDoc=(frame.contentDocument)?frame.contentDocument:frame.contentWindow.document;
objToResize=(frame.style)?frame.style:frame;
objToResize.height=innerDoc.body.scrollHeight+10;
}catch(err){window.status=err.message;
}}function loadVideoPlayer(url){var localplayer="videoShow.swf?guid="+Math.random()*99999999;
var so=new SWFObject(localplayer,"slideShowFlashContent","480","385","10.0.0","#121212");
so.skipDetect=true;
so.addVariable("xmlfilepath",url);
so.addParam("scale","noscale");
so.addParam("allowFullScreen","true");
so.addParam("allowScriptAccess","sameDomain");
so.addParam("quality","high");
so.addParam("align","middle");
so.write("flvContainer","slideShow");
window.slideShowFlashContent=document.getElementById("slideShowFlashContent");
}