



/* ---------------------------- */
/* embedded						*/
/* ---------------------------- */
function doClear(theText) {
 if (theText.value == theText.defaultValue) {
	 theText.value = ""
 }
}

/* ---------------------------- */
/* postratings-js-packed.js		*/
/* ---------------------------- */
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('h 7=W X(Y);h 4=0;h x=0;h d=0;h m=g;h y=(5.E&&5.9);h z=(!5.E&&5.9);h A=(Z.11.12("13")>-1);h p=F;n B(){3(d<g){d+=10;3(A){d=g}6 3(y){3(v){5.9(\'o-7-\'+4).k.G=\'H(I=\'+d+\')\'}6{d=g}}6 3(z){3(v){5.9(\'o-7-\'+4).k.J=(d/g)}6{d=g}}K("B()",g)}6{d=g;L();p=F}}n 14(a,b,c){3(!p){4=a;x=b;3(u&&M==2){5.8[\'e\'+4+\'j\'+b].f=C("l"+b+"N.f")}6{O(i=1;i<=b;i++){3(u){5.8[\'e\'+4+\'j\'+i].f=C("l"+i+"N.f")}6{5.8[\'e\'+4+\'j\'+i].f=C("15.f")}}}3(5.9(\'l\'+4+\'q\')){5.9(\'l\'+4+\'q\').k.w=\'16\';5.9(\'l\'+4+\'q\').P=c}}}n 17(a,b,c){3(!p){O(i=1;i<=M;i++){3(i<=a){3(u){5.8[\'e\'+4+\'j\'+i].f=r+\'/8/\'+s+\'/e\'+i+\'18.\'+t}6{5.8[\'e\'+4+\'j\'+i].f=r+\'/8/\'+s+\'/19.\'+t}}6 3(i==b){3(u){5.8[\'e\'+4+\'j\'+i].f=r+\'/8/\'+s+\'/e\'+i+\'1a\'+(c?\'-Q\':\'\')+\'.\'+t}6{5.8[\'e\'+4+\'j\'+i].f=r+\'/8/\'+s+\'/1b\'+(c?\'-Q\':\'\')+\'.\'+t}}6{3(u){5.8[\'e\'+4+\'j\'+i].f=r+\'/8/\'+s+\'/e\'+i+\'1c.\'+t}6{5.8[\'e\'+4+\'j\'+i].f=r+\'/8/\'+s+\'/1d.\'+t}}}3(5.9(\'l\'+4+\'q\')){5.9(\'l\'+4+\'q\').k.w=\'R\';5.9(\'l\'+4+\'q\').P=\'\'}}}n S(){3(T){5.9(\'o-7-\'+4+\'-U\').k.w=\'1e\'}}n L(){3(T){5.9(\'o-7-\'+4+\'-U\').k.w=\'R\'}}n 1f(){3(!p){p=1g;S();D()}6{1h(1i)}}n D(){3(m>0){m-=10;3(A){d=0}6 3(y){3(v){5.9(\'o-7-\'+4).k.G=\'H(I=\'+m+\')\'}6{d=0}}6 3(z){3(v){5.9(\'o-7-\'+4).k.J=(m/g)}6{d=0}}K("D()",g)}6{m=0;7.1j();7.V("1k",4);7.V("1l",x);7.1m=\'1n\';7.1o=\'o-7-\'+4;7.1p=B;7.1q();d=0;m=g}}',62,89,'|||if|post_id|document|else|ratings|images|getElementById||||rate_fadein_opacity|rating_|src|100|var||_|style|ratings_|rate_fadeout_opacity|function|post|is_being_rated|_text|ratings_plugin_url|ratings_image|ratings_image_ext|ratings_custom|ratings_show_fading|display|post_rating|is_ie|is_moz|is_opera|rade_fadein_text|eval|rate_process|all|false|filter|alpha|opacity|MozOpacity|setTimeout|rate_unloading_text|ratings_max|_mouseover_image|for|innerHTML|rtl|none|rate_loading_text|ratings_show_loading|loading|setVar|new|sack|ratings_ajax_url|navigator||userAgent|indexOf|Opera|current_rating|ratings_mouseover_image|inline|ratings_off|_on|rating_on|_half|rating_half|_off|rating_off|block|rate_post|true|alert|ratings_text_wait|reset|pid|rate|method|GET|element|onCompletion|runAJAX'.split('|'),0,{}))

/* ---------------------------- */
/* sack.js						*/
/* ---------------------------- */
function sack(file){this.xmlhttp=null;this.resetData=function(){this.method="POST";this.queryStringSeparator="?";this.argumentSeparator="&";this.URLString="";this.encodeURIString=true;this.execute=false;this.element=null;this.elementObj=null;this.requestFile=file;this.vars=new Object();this.responseStatus=new Array(2)};this.resetFunctions=function(){this.onLoading=function(){};this.onLoaded=function(){};this.onInteractive=function(){};this.onCompletion=function(){};this.onError=function(){};this.onFail=function(){}};this.reset=function(){this.resetFunctions();this.resetData()};this.createAJAX=function(){try{this.xmlhttp=new ActiveXObject("Msxml2.XMLHTTP")}catch(e1){try{this.xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")}catch(e2){this.xmlhttp=null}}if(!this.xmlhttp){if(typeof XMLHttpRequest!="undefined"){this.xmlhttp=new XMLHttpRequest()}else{this.failed=true}}};this.setVar=function(name,value){this.vars[name]=Array(value,false)};this.encVar=function(name,value,returnvars){if(true==returnvars){return Array(encodeURIComponent(name),encodeURIComponent(value))}else{this.vars[encodeURIComponent(name)]=Array(encodeURIComponent(value),true)}};this.processURLString=function(string,encode){encoded=encodeURIComponent(this.argumentSeparator);regexp=new RegExp(this.argumentSeparator+"|"+encoded);varArray=string.split(regexp);for(i=0;i<varArray.length;i++){urlVars=varArray[i].split("=");if(true==encode){this.encVar(urlVars[0],urlVars[1])}else{this.setVar(urlVars[0],urlVars[1])}}};this.createURLString=function(urlstring){if(this.encodeURIString&&this.URLString.length){this.processURLString(this.URLString,true)}if(urlstring){if(this.URLString.length){this.URLString+=this.argumentSeparator+urlstring}else{this.URLString=urlstring}}this.setVar("rndval",new Date().getTime());urlstringtemp=new Array();for(key in this.vars){if(false==this.vars[key][1]&&true==this.encodeURIString){encoded=this.encVar(key,this.vars[key][0],true);delete this.vars[key];this.vars[encoded[0]]=Array(encoded[1],true);key=encoded[0]}urlstringtemp[urlstringtemp.length]=key+"="+this.vars[key][0]}if(urlstring){this.URLString+=this.argumentSeparator+urlstringtemp.join(this.argumentSeparator)}else{this.URLString+=urlstringtemp.join(this.argumentSeparator)}};this.runResponse=function(){eval(this.response)};this.runAJAX=function(urlstring){if(this.failed){this.onFail()}else{this.createURLString(urlstring);if(this.element){this.elementObj=document.getElementById(this.element)}if(this.xmlhttp){var self=this;if(this.method=="GET"){totalurlstring=this.requestFile+this.queryStringSeparator+this.URLString;this.xmlhttp.open(this.method,totalurlstring,true)}else{this.xmlhttp.open(this.method,this.requestFile,true);try{this.xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}catch(e){}}this.xmlhttp.onreadystatechange=function(){switch(self.xmlhttp.readyState){case 1:self.onLoading();break;case 2:self.onLoaded();break;case 3:self.onInteractive();break;case 4:self.response=self.xmlhttp.responseText;self.responseXML=self.xmlhttp.responseXML;self.responseStatus[0]=self.xmlhttp.status;self.responseStatus[1]=self.xmlhttp.statusText;if(self.execute){self.runResponse()}if(self.elementObj){elemNodeName=self.elementObj.nodeName;elemNodeName.toLowerCase();if(elemNodeName=="input"||elemNodeName=="select"||elemNodeName=="option"||elemNodeName=="textarea"){self.elementObj.value=self.response}else{self.elementObj.innerHTML=self.response}}if(self.responseStatus[0]=="200"){self.onCompletion()}else{self.onError()}self.URLString="";break}};this.xmlhttp.send(this.URLString)}}};this.reset();this.createAJAX()};

/* ---------------------------- */
/* layers.js					*/
/* ---------------------------- */
function showlayer(layer){
	var myLayer=document.getElementById(layer);
	if(myLayer.style.display=="none" || myLayer.style.display==""){
		myLayer.style.display="block";
	} else { 
		myLayer.style.display="none";
		}
}


/* ---------------------------- */
/* smooth.js					*/
/* ---------------------------- */
var ss = {
fixAllLinks: function() {
 // Get a list of all links in the page
 var allLinks = document.getElementsByTagName('a');
 // Walk through the list
 for (var i=0;i<allLinks.length;i++) {
   var lnk = allLinks[i];
   if ((lnk.href && lnk.href.indexOf('#') != -1) && 
       ( (lnk.pathname == location.pathname) ||
	    ('/'+lnk.pathname == location.pathname) ) && 
       (lnk.search == location.search)) {
     // If the link is internal to the page (begins in #)
     // then attach the smoothScroll function as an onclick
     // event handler
     ss.addEvent(lnk,'click',ss.smoothScroll);
   }
 }
},

smoothScroll: function(e) {
 // This is an event handler; get the clicked on element,
 // in a cross-browser fashion
 if (window.event) {
   target = window.event.srcElement;
 } else if (e) {
   target = e.target;
 } else return;

 // Make sure that the target is an element, not a text node
 // within an element
 if (target.nodeName.toLowerCase() != 'a') {
   target = target.parentNode;
 }

 // Paranoia; check this is an A tag
 if (target.nodeName.toLowerCase() != 'a') return;

 // Find the <a name> tag corresponding to this href
 // First strip off the hash (first character)
 anchor = target.hash.substr(1);
 // Now loop all A tags until we find one with that name
 var allLinks = document.getElementsByTagName('a');
 var destinationLink = null;
 for (var i=0;i<allLinks.length;i++) {
   var lnk = allLinks[i];
   if (lnk.name && (lnk.name == anchor)) {
     destinationLink = lnk;
     break;
   }
 }
 if (!destinationLink) destinationLink = document.getElementById(anchor);

 // If we didn't find a destination, give up and let the browser do
 // its thing
 if (!destinationLink) return true;

 // Find the destination's position
 var destx = destinationLink.offsetLeft; 
 var desty = destinationLink.offsetTop;
 var thisNode = destinationLink;
 while (thisNode.offsetParent && 
       (thisNode.offsetParent != document.body)) {
   thisNode = thisNode.offsetParent;
   destx += thisNode.offsetLeft;
   desty += thisNode.offsetTop;
 }

 // Stop any current scrolling
 clearInterval(ss.INTERVAL);

 cypos = ss.getCurrentYPos();

 ss_stepsize = parseInt((desty-cypos)/ss.STEPS);
 ss.INTERVAL =
setInterval('ss.scrollWindow('+ss_stepsize+','+desty+',"'+anchor+'")',10);

 // And stop the actual click happening
 if (window.event) {
   window.event.cancelBubble = true;
   window.event.returnValue = false;
 }
 if (e && e.preventDefault && e.stopPropagation) {
   e.preventDefault();
   e.stopPropagation();
 }
},

scrollWindow: function(scramount,dest,anchor) {
 wascypos = ss.getCurrentYPos();
 isAbove = (wascypos < dest);
 window.scrollTo(0,wascypos + scramount);
 iscypos = ss.getCurrentYPos();
 isAboveNow = (iscypos < dest);
 if ((isAbove != isAboveNow) || (wascypos == iscypos)) {
   // if we've just scrolled past the destination, or
   // we haven't moved from the last scroll (i.e., we're at the
   // bottom of the page) then scroll exactly to the link
   window.scrollTo(0,dest);
   // cancel the repeating timer
   clearInterval(ss.INTERVAL);
   // and jump to the link directly so the URL's right
   location.hash = anchor;
 }
},

getCurrentYPos: function() {
 if (document.body && document.body.scrollTop)
   return document.body.scrollTop;
 if (document.documentElement && document.documentElement.scrollTop)
   return document.documentElement.scrollTop;
 if (window.pageYOffset)
   return window.pageYOffset;
 return 0;
},

addEvent: function(elm, evType, fn, useCapture) {
 // addEvent and removeEvent
 // cross-browser event handling for IE5+,  NS6 and Mozilla
 // By Scott Andrew
 if (elm.addEventListener){
   elm.addEventListener(evType, fn, useCapture);
   return true;
 } else if (elm.attachEvent){
   var r = elm.attachEvent("on"+evType, fn);
   return r;
 } else {
   alert("Handler could not be removed");
 }
} 
}

ss.STEPS = 25;

ss.addEvent(window,"load",ss.fixAllLinks);




/* ---------------------------- */
/* motionpack.js					*/
/* ---------------------------- */
var timerlen = 5;
var slideAniLen = 250;

var timerID = new Array();
var startTime = new Array();
var obj = new Array();
var endHeight = new Array();
var moving = new Array();
var dir = new Array();

function slidedown(objname){
        if(moving[objname])
                return;

        if(document.getElementById(objname).style.display != "none")
                return; // cannot slide down something that is already visible

        moving[objname] = true;
        dir[objname] = "down";
        startslide(objname);
}

function slideup(objname){
        if(moving[objname])
                return;

        if(document.getElementById(objname).style.display == "none")
                return; // cannot slide up something that is already hidden

        moving[objname] = true;
        dir[objname] = "up";
        startslide(objname);
}

function startslide(objname){
        obj[objname] = document.getElementById(objname);

        endHeight[objname] = parseInt(obj[objname].style.height);
        startTime[objname] = (new Date()).getTime();

        if(dir[objname] == "down"){
                obj[objname].style.height = "1px";
        }

        obj[objname].style.display = "block";

        timerID[objname] = setInterval('slidetick(\'' + objname + '\');',timerlen);
}

function slidetick(objname){
        var elapsed = (new Date()).getTime() - startTime[objname];

        if (elapsed > slideAniLen)
                endSlide(objname)
        else {
                var d =Math.round(elapsed / slideAniLen * endHeight[objname]);
                if(dir[objname] == "up")
                        d = endHeight[objname] - d;

                obj[objname].style.height = d + "px";
        }

        return;
}

function endSlide(objname){
        clearInterval(timerID[objname]);

        if(dir[objname] == "up")
                obj[objname].style.display = "none";

        obj[objname].style.height = endHeight[objname] + "px";

        delete(moving[objname]);
        delete(timerID[objname]);
        delete(startTime[objname]);
        delete(endHeight[objname]);
        delete(obj[objname]);
        delete(dir[objname]);

        return;
}
function toggleSlide(objname){
  if(document.getElementById(objname).style.display == "none"){
    // div is hidden, so let's slide down
    slidedown(objname);
  }else{
    // div is not hidden, so slide up
    slideup(objname);
  }
}