var $htmlSym = [['"','"'],['\n','
'],[' ',' '],['<','<'],['>','>'],['&','&']];
var $varSym = ['-','%'];
with(String){
prototype.trim = function(){return this.replace(/^\s+|\s+$/g,"")}
prototype.replaceStr = function(s,t){return this.split(s).join(t)}
prototype.replaceStrs = function(a){var s=this,i=a.length;while(i--)s=s.replaceStr(a[i][0],a[i][1]);return s}
prototype.removeStr = function(s){return this.replaceStr(s,'')}
prototype.removeStrs = function(a){var s=this,i=a.length;while(i--)s=s.removeStr(a[i]);return s}
prototype.repeat = function(n){return(n<=0?"":this+this.repeat(n-1))}
prototype.pad = function(c,n){return c.repeat(n-this.length)+this}
prototype.bytes = function(){var b=0,i=this.length,c;while(i--){c=this.charCodeAt(i);do b++;while(c>>=8)}return b}
prototype.toHTML = function(){return this.replaceStrs($htmlSym)}
prototype.toVar = function(){return '$'+escape(this).removeStrs($varSym)}
prototype.has = function(c){return this.indexOf(c)>=0}
prototype.left = function(n){return this.substring(0,n)}
prototype.right = function(n){var l=this.length;return l>n?this.substring(l-n,l):this}
}
with(Array){
prototype.indexOf = function(o){var l=this.length;while(l--)if(this[l]==o)break;return l}
prototype.remove = function(k){return (typeof(k)=='number'?(k>=0?this.splice(k,1):null):this.remove(this.indexOf(k)))}
prototype.clone = function(){return this.slice(0)}
}
function _bD() {
var ua = navigator.userAgent.toLowerCase();
this.ua = ua;
// browser engine name
this.isGecko = (ua.indexOf('gecko') != -1 && ua.indexOf('safari') == -1);
this.isAppleWebKit = (ua.indexOf('applewebkit') != -1);
// browser name
this.isKonqueror = (ua.indexOf('konqueror') != -1);
this.isSafari = (ua.indexOf('safari') != - 1);
this.isOmniweb = (ua.indexOf('omniweb') != - 1);
this.isOpera = (ua.indexOf('opera') != -1);
this.isIcab = (ua.indexOf('icab') != -1);
this.isAol = (ua.indexOf('aol') != -1);
this.isIE = (ua.indexOf('msie') != -1 && !this.isOpera && (ua.indexOf('webtv') == -1) );
this.isMozilla = (this.isGecko && ua.indexOf('gecko/') + 14 == ua.length);
this.isFirefox = (ua.indexOf('firefox/') != -1 || ua.indexOf('firebird/') != -1);
this.isNS = ( (this.isGecko) ? (ua.indexOf('netscape') != -1) : ( (ua.indexOf('mozilla') != -1) && !this.isOpera && !this.isSafari && (ua.indexOf('spoofer') == -1) && (ua.indexOf('compatible') == -1) && (ua.indexOf('webtv') == -1) && (ua.indexOf('hotjava') == -1) ) );
this.isDreamcast = (ua.indexOf("dreamcast") != -1);
this.isWebTv = (ua.indexOf("webtv") != -1);
// spoofing and compatible browsers
this.isIECompatible = ( (ua.indexOf('msie') != -1) && !this.isIE);
this.isNSCompatible = ( (ua.indexOf('mozilla') != -1) && !this.isNS && !this.isMozilla);
// rendering engine versions
this.geckoVersion = ( (this.isGecko) ? ua.substring( (ua.lastIndexOf('gecko/') + 6), (ua.lastIndexOf('gecko/') + 14) ) : -1 );
this.equivalentMozilla = ( (this.isGecko) ? parseFloat( ua.substring( ua.indexOf('rv:') + 3 ) ) : -1 );
this.appleWebKitVersion = ( (this.isAppleWebKit) ? parseFloat( ua.substring( ua.indexOf('applewebkit/') + 12) ) : -1 );
// browser version
this.versionMinor = parseFloat(navigator.appVersion);
// correct version number
if (this.isGecko && !this.isMozilla) {
this.versionMinor = parseFloat( ua.substring( ua.indexOf('/', ua.indexOf('gecko/') + 6) + 1 ) );
}
else if (this.isMozilla) {
this.versionMinor = parseFloat( ua.substring( ua.indexOf('rv:') + 3 ) );
}
else if (this.isIE && this.versionMinor >= 4) {
this.versionMinor = parseFloat( ua.substring( ua.indexOf('msie ') + 5 ) );
}
else if (this.isKonqueror) {
this.versionMinor = parseFloat( ua.substring( ua.indexOf('konqueror/') + 10 ) );
}
else if (this.isSafari) {
this.versionMinor = parseFloat( ua.substring( ua.lastIndexOf('safari/') + 7 ) );
}
else if (this.isOmniweb) {
this.versionMinor = parseFloat( ua.substring( ua.lastIndexOf('omniweb/') + 8 ) );
}
else if (this.isOpera) {
this.versionMinor = parseFloat( ua.substring( ua.indexOf('opera') + 6 ) );
}
else if (this.isIcab) {
this.versionMinor = parseFloat( ua.substring( ua.indexOf('icab') + 5 ) );
}
this.versionMajor = parseInt(this.versionMinor);
// dom support
this.isDOM1 = (document.getElementById);
this.isDOM2Event = (document.addEventListener && document.removeEventListener);
// css compatibility mode
this.mode = document.compatMode ? document.compatMode : 'BackCompat';
// platform
this.isWin = (ua.indexOf('win') != -1);
this.isWin32 = (this.isWin && ( ua.indexOf('95') != -1 || ua.indexOf('98') != -1 || ua.indexOf('nt') != -1 || ua.indexOf('win32') != -1 || ua.indexOf('32bit') != -1 || ua.indexOf('xp') != -1) );
this.isMac = (ua.indexOf('mac') != -1);
this.isUnix = (ua.indexOf('unix') != -1 || ua.indexOf('sunos') != -1 || ua.indexOf('bsd') != -1 || ua.indexOf('x11') != -1)
this.isLinux = (ua.indexOf('linux') != -1);
// specific browser shortcuts
this.isNS4x = (this.isNS && this.versionMajor == 4);
this.isNS40x = (this.isNS4x && this.versionMinor < 4.5);
this.isNS47x = (this.isNS4x && this.versionMinor >= 4.7);
this.isNS4up = (this.isNS && this.versionMinor >= 4);
this.isNS6x = (this.isNS && this.versionMajor == 6);
this.isNS6up = (this.isNS && this.versionMajor >= 6);
this.isNS7x = (this.isNS && this.versionMajor == 7);
this.isNS7up = (this.isNS && this.versionMajor >= 7);
this.isIE4x = (this.isIE && this.versionMajor == 4);
this.isIE4up = (this.isIE && this.versionMajor >= 4);
this.isIE5x = (this.isIE && this.versionMajor == 5);
this.isIE55 = (this.isIE && this.versionMinor == 5.5);
this.isIE5up = (this.isIE && this.versionMajor >= 5);
this.isIE6x = (this.isIE && this.versionMajor == 6);
this.isIE6up = (this.isIE && this.versionMajor >= 6);
this.isIE4xMac = (this.isIE4x && this.isMac);
//2007-01-25 Modified by Randy
this.isNS2 = (this.isNS && this.versionMajor == 2);
this.isNS3 = (this.isNS && this.versionMajor == 3);
this.isIE3 = (this.isIE && this.versionMajor < 4);
// Javascript version
this.js = 0.0;
if (this.isNS2||this.isIE3) this.js = 1.0
else if (this.isNS3||this.isOpera||(document.images&&this.isIE&&!this.isIE4up)) this.js = 1.1
else if ((this.isNS4x&&this.versionMinor<=4.05)||this.isIE4x) this.js = 1.2
else if ((this.isNS4x&&this.versionMinor>4.05)||this.isIE5up) this.js = 1.3
else if (this.isNS6up) this.js = 1.4
//2007-01-25 Modified by Randy
}
var browser = new _bD();
function go(l){
var a=arguments,s=(a.length>1?a[1]:0);
setTimeout('location.href="'+l.replaceStr('"','\\"')+'"',s*1000);
}
function wopen(){
var a = arguments,
l = a.length;
u = (l>0?a[0]:''),
n = (l>1?a[1]:''),
w = (l>2?parseInt(a[2],10):0),
h = (l>3?parseInt(a[3],10):0),
d = "resizable=yes,scrollbars=yes,status=yes,directories=no,hotkeys=no,location=no,menubar=no,personalbar=no,titlebar=no,toolbar=no",
x = 0,
y = 0;
if(w > 0){
x = (screen.availWidth-w)/2;
d += ",left="+x+",width="+w;
}
if(h > 0){
y = (screen.availHeight-h)/2;
d += ",top="+y+",height="+h;
}
return open(u,n,d);
}
function exists(o){return typeof(o)!='undefined'}
function loadScript(s){
var _script = document.createElement('script');
_script.type = 'text/javascript';
_script.src = s;
document.getElementsByTagName('head')[0].appendChild(_script);
}
function createOnce(n,v){
if(!exists(eval("self."+n)))
eval("self."+n+"=v");
}
createOnce("$iu",new Array());
function _aUI(f){
if(!exists($iu[f]))
$iu[$iu.length]=($iu[f]=f);
}
function initUI(){
for(var i=0;i<$iu.length;i++)
eval($iu[i]);
return true;
}
function resizeH100(){
if(!browser.isNS6up)return;
var e,f,g=document.forms,i=g.length,j,o,p,q,h;
while(i--){
f = g[i];
e = f.elements;
j = e.length;
while(j--){
o = e[j];
if(o.className=='wh100'){
p = o.parentNode;
h = p.offsetHeight-4;
if(p.nodeName=='TD'){
q = p.parentNode.parentNode.parentNode;
h -= 2*(parseInt(q.cellPadding)+parseInt(q.cellSpacing));
}
o.style.height = h;
}
}
}
}
_aUI("resizeH100()");
createOnce("$oc",new Array());
function _gO(n){
var o = $oc[n];
if(exists(o)) return o;
if(!browser.isNS4x)
return ($oc[n]=document.getElementById(n));
var a = arguments,
p = (a.length>1?a[1]:document),
l = p.layers,
i = l.length;
while(i--){
if((o=l[i]).id==n||(o=_gO(n,o.document))!=null)
return ($oc[n]=o);
}
return null;
}
function _g(o,s,d){
var l = s.toLowerCase(),
v = (d==1 ? ('browser.isNS4x?o.clip.'+l+':o.offset'+s) :
(d==2 ? 'browser.isNS4x?o.'+l+':(browser.isOpera?o.style.pixel'+s+':o.style.'+l+')' :
'browser.isNS4x?o.page'+(d==3?'X':'Y')+':o.offset'+s )),
i = parseInt(eval(v),10);
return isNaN(i) ? 0 : i;
}
function _gW(o){return _g(o,'Width',1)}
function _gH(o){return _g(o,'Height',1)}
function _gL(o){return _g(o,'Left',2)}
function _gT(o){return _g(o,'Top',2)}
function _gX(o){return _g(o,'Left',3)}
function _gY(o){return _g(o,'Top',4)}
function _gW_(s){
var o = eval('window.inner'+s);
if(typeof(o)=='number') return o;
o = eval('document.body.client'+s);
if(typeof(o)=='number') return o;
}
function _gWW(){return _gW_('Width')}
function _gWH(){return _gW_('Height')}
function _s(o,s,v,d){
var l = s.toLowerCase();
eval('if(browser.isNS4x)o.'+(d?'clip.':'')+l+'=v;else if(browser.isOpera)o.style.pixel'+s+'=v;else o.style.'+l+'=v');
}
function _sW(o,w){_s(o,'Width',w,true)}
function _sH(o,h){_s(o,'Height',h,true)}
function _sX(o,x){_s(o,'Left',x,false)}
function _sY(o,y){_s(o,'Top',y,false)}
function _sV(o,v){
if(browser.isNS4x) o.visibility = (v?'show':'hide');
else o.style.visibility = (v?'visible':'hidden');
}
function _sD(o,d){
if(!browser.isNS4x) o.style.display = (d?'block':'none');
}
function _sC(l,s){
if(browser.isNS4x){
with(l.document){
open();write(s);close();
}
}else{
l.innerHTML = s;
}
}
function chain(o,h,s){
var u = eval("o." + h)+'',n;
if(u=='null'||u==''||u=='undefined'){
eval('o.'+h+'=new Function("return('+s+')")');
}else{
u = eval("o." + h);
n = '$'+(Math.random()+'').split('.').join('');
eval("o."+n+"=u");
u = new Function("return(("+s+")&&this."+n+"())");
eval("o."+h+"=u");
}
}
chain(window,'onload','initUI()');
/* Nifty Corners Cube - rounded corners with CSS and Javascript
Copyright 2006 Alessandro Fulciniti (a.fulciniti@html.it)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
var niftyOk=(document.getElementById && document.createElement && Array.prototype.push);
var niftyCss=false;
String.prototype.find=function(what){
return(this.indexOf(what)>=0 ? true : false);
}
var oldonload=window.onload;
if(typeof(NiftyLoad)!='function') NiftyLoad=function(){};
if(typeof(oldonload)=='function')
window.onload=function(){oldonload();AddCss();NiftyLoad()};
else window.onload=function(){AddCss();NiftyLoad()};
function AddCss(){
niftyCss=true;
var l=CreateEl("link");
l.setAttribute("type","text/css");
l.setAttribute("rel","stylesheet");
l.setAttribute("href","css/niftycorners.css");
l.setAttribute("media","screen");
document.getElementsByTagName("head")[0].appendChild(l);
}
function Nifty(selector,options){
if(niftyOk==false) return;
if(niftyCss==false) AddCss();
var i,v=selector.split(","),h=0;
if(options==null) options="";
if(options.find("fixed-height"))
h=getElementsBySelector(v[0])[0].offsetHeight;
for(i=0;i0;i--)
d.appendChild(CreateStrip(i,side,color,border,btype));
el.style.paddingBottom=0;
el.appendChild(d);
}
function CreateStrip(index,side,color,border,btype){
var x=CreateEl("b");
x.className=btype+index;
x.style.backgroundColor=color;
x.style.borderColor=border;
if(side=="left"){
x.style.borderRightWidth="0";
x.style.marginRight="0";
}
else if(side=="right"){
x.style.borderLeftWidth="0";
x.style.marginLeft="0";
}
return(x);
}
function CreateEl(x){
return(document.createElement(x));
}
function FixIE(el){
if(el.currentStyle!=null && el.currentStyle.hasLayout!=null && el.currentStyle.hasLayout==false)
el.style.display="inline-block";
}
function SameHeight(selector,maxh){
var i,v=selector.split(","),t,j,els=[],gap;
for(i=0;imaxh) maxh=els[i].offsetHeight;
els[i].style.height="auto";
}
for(i=0;i0){
t=CreateEl("b");t.className="niftyfill";t.style.height=gap+"px";
nc=els[i].lastChild;
if(nc.className=="niftycorners")
els[i].insertBefore(t,nc);
else els[i].appendChild(t);
}
}
}
function getElementsBySelector(selector){
var i,j,selid="",selclass="",tag=selector,tag2="",v2,k,f,a,s=[],objlist=[],c;
if(selector.find("#")){ //id selector like "tag#id"
if(selector.find(" ")){ //descendant selector like "tag#id tag"
s=selector.split(" ");
var fs=s[0].split("#");
if(fs.length==1) return(objlist);
f=document.getElementById(fs[1]);
if(f){
v=f.getElementsByTagName(s[1]);
for(i=0;i 1){
Nifty(a[0],a[1]);
}else{
Nifty(a[0]);
}
}else{
Nifty(a);
}
}
Nifty("div.cp_column","same-height");
if(!browser.isFirefox){
_resizeCp("div.cp_header");
_resizeCp("div.cp_content");
_resizeCp("div.cp_column");
}
}
function _resizeCp(s){
var i, a = getElementsBySelector(s);
for(i=0; i