$(document).ready(function(){ 
$('#gwin').load('game-cleared.php');

$(function(){
var $pane2 = $('#pane2');
$pane2.jScrollPane({animateTo:true,showArrows:true});
$('a.scroll-to-element-demo').bind(
'click',
function()
{
var targetElementSelectorString = $(this).attr('rel');
$pane2[0].scrollTo(targetElementSelectorString); onfocus=this.blur();
return false;
}
);
});


$(".addfavright a img").click(function() {
var pgameIDValSplitter 	= (this.id).split("_");
var pgameIDVal 	= pgameIDValSplitter[1];

var productX = $("#pgamewrapID_" + pgameIDVal).offset().left;
var productY = $("#pgamewrapID_" + pgameIDVal).offset().top;

if( $("#pgameID_" + pgameIDVal).length > 0){
var basketX = $("#pgameID_" + pgameIDVal).offset().left;
var basketY = $("#pgameID_" + pgameIDVal).offset().top;	
} else {
var basketX = $("#bookmarkg").offset().left;
var basketY = $("#bookmarkg").offset().top;
}

var gotoX = basketX - productX;
var gotoY = basketY - productY;

var newImageWidth = $("#pgamewrapID_" + pgameIDVal).width() / 3;
var newImageHeight = $("#pgamewrapID_" + pgameIDVal).height() / 3;

$("#pgamewrapID_" + pgameIDVal + " img")
.clone()
.prependTo("#pgamewrapID_" + pgameIDVal)
.css({'position' : 'absolute'})
.animate({opacity: 0.7}, 0 )
.animate({opacity: 0.7, marginLeft: gotoX, marginTop: gotoY, width: newImageWidth, height: newImageHeight}, 700, function() {
$(this).remove();
});
});



$('.menuItem tr td').hover(
function() { $(this).addClass('highlight'); },
function() { $(this).removeClass('highlight'); }
).click( function() {
$('.selected').removeClass('selected');
$(this).addClass('selected').find('input').attr('checked','checked');
});

$('.menuItem4 tr td').hover(
function() { $(this).addClass('highlightb'); },
function() { $(this).removeClass('highlightb'); }
).click( function() {
$('.selectedb').removeClass('selectedb');
$(this).addClass('selectedb').find('input').attr('checked','checked');
});

$('.menuItem10 tbody tr').hover(
function() { $(this).addClass('highlighta'); },
function() { $(this).removeClass('highlighta'); }
).click( function() {
$('.selecteda').removeClass('selecteda');
$(this).addClass('selecteda').find('input').attr('checked','checked');
});

$('.menuItem10a div').hover(
function() { $(this).addClass('highlightaa'); },
function() { $(this).removeClass('highlightaa'); }
).click( function() {
$('.selectedaa').removeClass('selectedaa');
$(this).addClass('selectedaa').find('input').attr('checked','checked');
});

$('.lang  tbody td').hover(
function() { $(this).addClass('highlightl'); },
function() { $(this).removeClass('highlightl'); }
).click( function() {
$('.selectedl').removeClass('selectedl');
$(this).addClass('selectedl').find('input').attr('checked','checked');
});


$('.location tr td').hover(
function() { $(this).addClass('highlightc'); },
function() { $(this).removeClass('highlightc'); }
).click( function() {
$('.selectedc').removeClass('selectedc');
$(this).addClass('selectedc').find('input').attr('checked','checked');
});

$('.location2 tr td').hover(
function() { $(this).addClass('highlightd'); },
function() { $(this).removeClass('highlightd'); }
).click( function() {
$('.selectedd').removeClass('selectedd');
$(this).addClass('selectedd').find('input').attr('checked','checked');
});


$('.menuItem11a div').hover(
function() { $(this).addClass('highlightcc'); },
function() { $(this).removeClass('highlightcc'); }
).click( function() {
$('.selectedcc').removeClass('selectedcc');
$(this).addClass('selectedcc').find('input').attr('checked','checked');
});
});





/*
 * jQuery Tooltip plugin 1.3
 *
 * http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/
 * http://docs.jquery.com/Plugins/Tooltip
 *
 * Copyright (c) 2006 - 2008 JÃ¶rn Zaefferer
 *
 * $Id: jquery.tooltip.js 5741 2008-06-21 15:22:16Z joern.zaefferer $
 * 
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 */

(function(e){var b={},k,m,o,j=e.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent),a=false;e.tooltip={blocked:false,defaults:{delay:200,fade:false,showURL:true,extraClass:"",top:15,left:10,id:"tooltip"},block:function(){e.tooltip.blocked=!e.tooltip.blocked}};e.fn.extend({tooltip:function(p){p=e.extend({},e.tooltip.defaults,p);h(p);return this.each(function(){e.data(this,"tooltip",p);this.tOpacity=b.parent.css("");this.tooltipText=this.title;e(this).removeAttr("title");this.alt=""}).mouseover(l).mouseout(f).click(f)},fixPNG:j?function(){return this.each(function(){var p=e(this).css("backgroundImage");if(p.match(/^url\(["']?(.*\.png)["']?\)$/i)){p=RegExp.$1;e(this).css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='"+p+"')"}).each(function(){var q=e(this).css("position");if(q!="absolute"&&q!="relative"){e(this).css("position","relative")}})}})}:function(){return this},unfixPNG:j?function(){return this.each(function(){e(this).css({filter:"",backgroundImage:""})})}:function(){return this},hideWhenEmpty:function(){return this.each(function(){e(this)[e(this).html()?"show":"hide"]()})},url:function(){return this.attr("href")||this.attr("src")}});function h(p){if(b.parent){return}b.parent=e('<div id="'+p.id+'"><ul></ul><div class="body"></div><div class="url"></div></div>').appendTo(document.body).hide();if(e.fn.bgiframe){b.parent.bgiframe()}b.title=e("ul",b.parent);b.body=e("div.body",b.parent);b.url=e("div.url",b.parent)}function c(p){return e.data(p,"tooltip")}function g(p){if(c(this).delay){o=setTimeout(n,c(this).delay)}else{n()}a=!!c(this).track;e(document.body).bind("mousemove",d);d(p)}function l(){if(e.tooltip.blocked||this==k||(!this.tooltipText&&!c(this).bodyHandler)){return}k=this;m=this.tooltipText;if(c(this).bodyHandler){b.title.hide();var s=c(this).bodyHandler.call(this);if(s.nodeType||s.jquery){b.body.empty().append(s)}else{b.body.html(s)}b.body.show()}else{if(c(this).showBody){var r=m.split(c(this).showBody);b.title.html(r.shift()).show();b.body.empty();for(var q=0,p;(p=r[q]);q++){if(q>0){b.body.append("<br/>")}b.body.append(p)}b.body.hideWhenEmpty()}else{b.title.html(m).show();b.body.hide()}}if(c(this).showURL&&e(this).url()){b.url.html(e(this).url().replace("http://","")).show()}else{b.url.hide()}b.parent.addClass(c(this).extraClass);if(c(this).fixPNG){b.parent.fixPNG()}g.apply(this,arguments)}function n(){o=null;if((!j||!e.fn.bgiframe)&&c(k).fade){if(b.parent.is(":animated")){b.parent.stop().show().fadeTo(c(k).fade,k.tOpacity)}else{b.parent.is(":visible")?b.parent.fadeTo(c(k).fade,k.tOpacity):b.parent.fadeIn(c(k).fade)}}else{b.parent.show()}d()}function d(s){if(e.tooltip.blocked){return}if(s&&s.target.tagName=="OPTION"){return}if(!a&&b.parent.is(":visible")){e(document.body).unbind("mousemove",d)}if(k==null){e(document.body).unbind("mousemove",d);return}b.parent.removeClass("viewport-right").removeClass("viewport-bottom");var u=b.parent[0].offsetLeft;var t=b.parent[0].offsetTop;if(s){u=s.pageX+c(k).left;t=s.pageY+c(k).top;var q="auto";if(c(k).positionLeft){q=e(window).width()-u;u="auto"}b.parent.css({left:u,right:q,top:t})}var p=i(),r=b.parent[0];if(p.x+p.cx<r.offsetLeft+r.offsetWidth){u-=r.offsetWidth+20+c(k).left;b.parent.css({left:u+"px"}).addClass("viewport-right")}if(p.y+p.cy<r.offsetTop+r.offsetHeight){t-=r.offsetHeight+20+c(k).top;b.parent.css({top:t+"px"}).addClass("viewport-bottom")}}function i(){return{x:e(window).scrollLeft(),y:e(window).scrollTop(),cx:e(window).width(),cy:e(window).height()}}function f(r){if(e.tooltip.blocked){return}if(o){clearTimeout(o)}k=null;var q=c(this);function p(){b.parent.removeClass(q.extraClass).hide().css("","")}if((!j||!e.fn.bgiframe)&&q.fade){if(b.parent.is(":animated")){b.parent.stop().fadeTo(q.fade,0,p)}else{b.parent.stop().fadeOut(q.fade,p)}}else{p()}if(c(this).fixPNG){b.parent.unfixPNG()}}})(jQuery);




/* Copyright (c) 2007 Paul Bakaus (paul.bakaus@googlemail.com) and Brandon Aaron (brandon.aaron@gmail.com || http://brandonaaron.net)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 *
 * $LastChangedDate: 2007-12-20 08:43:48 -0600 (Thu, 20 Dec 2007) $
 * $Rev: 4257 $
 *
 * Version: 1.2
 *
 * Requires: jQuery 1.2+
 */
(function($){$.dimensions={version:'1.2'};$.each(['Height','Width'],function(i,name){$.fn['inner'+name]=function(){if(!this[0])return;var torl=name=='Height'?'Top':'Left',borr=name=='Height'?'Bottom':'Right';return this.is(':visible')?this[0]['client'+name]:num(this,name.toLowerCase())+num(this,'padding'+torl)+num(this,'padding'+borr);};$.fn['outer'+name]=function(options){if(!this[0])return;var torl=name=='Height'?'Top':'Left',borr=name=='Height'?'Bottom':'Right';options=$.extend({margin:false},options||{});var val=this.is(':visible')?this[0]['offset'+name]:num(this,name.toLowerCase())+num(this,'border'+torl+'Width')+num(this,'border'+borr+'Width')+num(this,'padding'+torl)+num(this,'padding'+borr);return val+(options.margin?(num(this,'margin'+torl)+num(this,'margin'+borr)):0);};});$.each(['Left','Top'],function(i,name){$.fn['scroll'+name]=function(val){if(!this[0])return;return val!=undefined?this.each(function(){this==window||this==document?window.scrollTo(name=='Left'?val:$(window)['scrollLeft'](),name=='Top'?val:$(window)['scrollTop']()):this['scroll'+name]=val;}):this[0]==window||this[0]==document?self[(name=='Left'?'pageXOffset':'pageYOffset')]||$.boxModel&&document.documentElement['scroll'+name]||document.body['scroll'+name]:this[0]['scroll'+name];};});$.fn.extend({position:function(){var left=0,top=0,elem=this[0],offset,parentOffset,offsetParent,results;if(elem){offsetParent=this.offsetParent();offset=this.offset();parentOffset=offsetParent.offset();offset.top-=num(elem,'marginTop');offset.left-=num(elem,'marginLeft');parentOffset.top+=num(offsetParent,'borderTopWidth');parentOffset.left+=num(offsetParent,'borderLeftWidth');results={top:offset.top-parentOffset.top,left:offset.left-parentOffset.left};}return results;},offsetParent:function(){var offsetParent=this[0].offsetParent;while(offsetParent&&(!/^body|html$/i.test(offsetParent.tagName)&&$.css(offsetParent,'position')=='static'))offsetParent=offsetParent.offsetParent;return $(offsetParent);}});function num(el,prop){return parseInt($.curCSS(el.jquery?el[0]:el,prop,true))||0;};})(jQuery);


/* Copyright (c) 2006 Brandon Aaron (brandon.aaron@gmail.com || http://brandonaaron.net)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
 * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
 *
 * $LastChangedDate: 2007-06-20 16:25:35 -0500 (Wed, 20 Jun 2007) $
 * $Rev: 2125 $
 *
 * Version: 2.2
 */
(function($){$.fn.extend({mousewheel:function(f){if(!f.guid)f.guid=$.event.guid++;if(!$.event._mwCache)$.event._mwCache=[];return this.each(function(){if(this._mwHandlers)return this._mwHandlers.push(f);else this._mwHandlers=[];this._mwHandlers.push(f);var s=this;this._mwHandler=function(e){e=$.event.fix(e||window.event);$.extend(e,this._mwCursorPos||{});var delta=0,returnValue=true;if(e.wheelDelta)delta=e.wheelDelta/120;if(e.detail)delta=-e.detail/3;if(window.opera)delta=-e.wheelDelta;for(var i=0;i<s._mwHandlers.length;i++)if(s._mwHandlers[i])if(s._mwHandlers[i].call(s,e,delta)===false){returnValue=false;e.preventDefault();e.stopPropagation();}return returnValue;};if($.browser.mozilla&&!this._mwFixCursorPos){this._mwFixCursorPos=function(e){this._mwCursorPos={pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY};};$(this).bind('mousemove',this._mwFixCursorPos);}if(this.addEventListener)if($.browser.mozilla)this.addEventListener('DOMMouseScroll',this._mwHandler,false);else this.addEventListener('mousewheel',this._mwHandler,false);else
this.onmousewheel=this._mwHandler;$.event._mwCache.push($(this));});},unmousewheel:function(f){return this.each(function(){if(f&&this._mwHandlers){for(var i=0;i<this._mwHandlers.length;i++)if(this._mwHandlers[i]&&this._mwHandlers[i].guid==f.guid)delete this._mwHandlers[i];}else{if($.browser.mozilla&&!this._mwFixCursorPos)$(this).unbind('mousemove',this._mwFixCursorPos);if(this.addEventListener)if($.browser.mozilla)this.removeEventListener('DOMMouseScroll',this._mwHandler,false);else this.removeEventListener('mousewheel',this._mwHandler,false);else
this.onmousewheel=null;this._mwHandlers=this._mwHandler=this._mwFixCursorPos=this._mwCursorPos=null;}});}});$(window).one('unload',function(){var els=$.event._mwCache||[];for(var i=0;i<els.length;i++)els[i].unmousewheel();});})(jQuery);

 

/* Copyright (c) 2006 Kelvin Luck (kelvin AT kelvinluck DOT com || http://www.kelvinluck.com)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) 
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 * 
 * See http://kelvinluck.com/assets/jquery/jScrollPane/
 * $Id: jScrollPane.js 4702 2008-02-09 10:19:47Z kelvin.luck $
 */

jQuery.jScrollPane={active:[]};jQuery.fn.jScrollPane=function(a){a=jQuery.extend({scrollbarWidth:10,scrollbarMargin:5,wheelSpeed:18,showArrows:false,arrowSize:0,animateTo:false,dragMinHeight:18,dragMaxHeight:99999,animateInterval:100,animateStep:3,maintainPosition:true,scrollbarOnLeft:false},a);return this.each(function(){var k=jQuery(this);if(jQuery(this).parent().is(".jScrollPaneContainer")){var X=a.maintainPosition?k.offset({relativeTo:jQuery(this).parent()[0]}).top:0;var i=jQuery(this).parent();var z=i.innerWidth();var Y=i.outerHeight();var j=Y;if(i.unmousewheel){i.unmousewheel()}jQuery(">.jScrollPaneTrack, >.jScrollArrowUp, >.jScrollArrowDown",i).remove();k.css({top:0})}else{var X=0;this.originalPadding=k.css("paddingTop")+" "+k.css("paddingRight")+" "+k.css("paddingBottom")+" "+k.css("paddingLeft");this.originalSidePaddingTotal=(parseInt(k.css("paddingLeft"))||0)+(parseInt(k.css("paddingRight"))||0);var z=k.innerWidth();var Y=k.innerHeight();var j=Y;k.wrap(jQuery("<div></div>").attr({className:"jScrollPaneContainer"}).css({height:Y+"px",width:z+"px"}));jQuery(document).bind("emchange",function(Z,aa,p){k.jScrollPane(a)})}var K=this.originalSidePaddingTotal;var H={height:"auto",width:z-a.scrollbarWidth-a.scrollbarMargin-K+"px"};if(a.scrollbarOnLeft){H.paddingLeft=a.scrollbarMargin+a.scrollbarWidth+"px"}else{H.paddingRight=a.scrollbarMargin+"px"}k.css(H);var I=k.outerHeight();var E=Y/I;if(E<0.99){var e=k.parent();e.append(jQuery("<div></div>").attr({className:"jScrollPaneTrack"}).css({width:a.scrollbarWidth+"px"}).append(jQuery("<div></div>").attr({className:"jScrollPaneDrag"}).css({width:a.scrollbarWidth+"px"}).append(jQuery("<div></div>").attr({className:"jScrollPaneDragTop"}).css({width:a.scrollbarWidth+"px"}),jQuery("<div></div>").attr({className:"jScrollPaneDragBottom"}).css({width:a.scrollbarWidth+"px"}))));var U=jQuery(">.jScrollPaneTrack",e);var l=jQuery(">.jScrollPaneTrack .jScrollPaneDrag",e);if(a.showArrows){var C;var W;var o;var M;var F=function(){if(M>4||M%4==0){T(P+W*x)}M++};var h=function(p){jQuery("html").unbind("mouseup",h);C.removeClass("jScrollActiveArrowButton");clearInterval(o)};var v=function(){jQuery("html").bind("mouseup",h);C.addClass("jScrollActiveArrowButton");M=0;F();o=setInterval(F,100)};e.append(jQuery("<a></a>").attr({href:"javascript:;",className:"jScrollArrowUp"}).css({width:a.scrollbarWidth+"px"}).html("Scroll up").bind("mousedown",function(){C=jQuery(this);W=-1;v();this.blur();return false}),jQuery("<a></a>").attr({href:"javascript:;",className:"jScrollArrowDown"}).css({width:a.scrollbarWidth+"px"}).html("Scroll down").bind("mousedown",function(){C=jQuery(this);W=1;v();this.blur();return false}));var m=jQuery(">.jScrollArrowUp",e);var g=jQuery(">.jScrollArrowDown",e);if(a.arrowSize){j=Y-a.arrowSize-a.arrowSize;U.css({height:j+"px",top:a.arrowSize+"px"})}else{var N=m.height();a.arrowSize=N;j=Y-N-g.height();U.css({height:j+"px",top:N+"px"})}}var R=jQuery(this).css({position:"absolute",overflow:"visible"});var b;var u;var x;var P=0;var s=E*Y/2;var w=function(Z,ab){var aa=ab=="X"?"Left":"Top";return Z["page"+ab]||(Z["client"+ab]+(document.documentElement["scroll"+aa]||document.body["scroll"+aa]))||0};var B=function(){return false};var Q=function(){J();b=l.offset(false);b.top-=P;u=j-l[0].offsetHeight;x=2*a.wheelSpeed*u/I};var c=function(p){Q();s=w(p,"Y")-P-b.top;jQuery("html").bind("mouseup",q).bind("mousemove",D);if(jQuery.browser.msie){jQuery("html").bind("dragstart",B).bind("selectstart",B)}return false};var q=function(){jQuery("html").unbind("mouseup",q).unbind("mousemove",D);s=E*Y/2;if(jQuery.browser.msie){jQuery("html").unbind("dragstart",B).unbind("selectstart",B)}};var T=function(Z){Z=Z<0?0:(Z>u?u:Z);P=Z;l.css({top:Z+"px"});var aa=Z/u;R.css({top:((Y-I)*aa)+"px"});k.trigger("scroll");if(a.showArrows){m[Z==0?"addClass":"removeClass"]("disabled");g[Z==u?"addClass":"removeClass"]("disabled")}};var D=function(p){T(w(p,"Y")-b.top-s)};var L=Math.max(Math.min(E*(Y-a.arrowSize*2),a.dragMaxHeight),a.dragMinHeight);l.css({height:L+"px"}).bind("mousedown",c);var G;var n;var f;var O=function(){if(n>8||n%4==0){T((P-((P-f)/2)))}n++};var V=function(){clearInterval(G);jQuery("html").unbind("mouseup",V).unbind("mousemove",A)};var A=function(p){f=w(p,"Y")-b.top-s};var r=function(p){Q();A(p);n=0;jQuery("html").bind("mouseup",V).bind("mousemove",A);G=setInterval(O,100);O()};U.bind("mousedown",r);if(e.mousewheel){e.mousewheel(function(Z,ab){Q();J();var aa=P;T(P-ab*x);var p=aa!=P;return !p},false)}var d;var t;function y(){var p=(d-P)/a.animateStep;if(p>1||p<-1){T(P+p)}else{T(d);J()}}var J=function(){if(t){clearInterval(t);delete d}};var S=function(aa,p){if(typeof aa=="string"){$e=jQuery(aa,this);if(!$e.length){return}aa=$e.offset().top-k.offset().top}J();var Z=-aa/(Y-I)*u;if(!p||a.animateTo){d=Z;t=setInterval(y,a.animateInterval)}else{T(Z)}};k[0].scrollTo=S;k[0].scrollBy=function(Z){var p=-parseInt(R.css("top"))||0;S(p+Z)};Q();S(-X,true);jQuery.jScrollPane.active.push(k[0])}else{k.css({height:Y+"px",width:z-this.originalSidePaddingTotal+"px",padding:this.originalPadding})}})};jQuery(window).bind("unload",function(){var b=jQuery.jScrollPane.active;for(var a=0;a<b.length;a++){b[a].scrollTo=b[a].scrollBy=null}});



/*
jQuery Fieldtag Plugin
    * Version 1.1
    * 2009-05-07 10:10:35
    * URL: http://ajaxcssblog.com/jquery/fieldtag-watermark-inputfields/
    * Description: jQuery Plugin to dynamically tag an inputfield, with a class and/or text
    * Author: Matthias Jäggli
    * Copyright: Copyright (c) 2009 Matthias Jäggli under dual MIT/GPL license.
	*
	* Changelog
	* 1.1
	* Support for proper clearing while submitting the form of tagged fields
	* 1.0
	* Initial release
*/

(function(a){a.fn.fieldtag=function(b){var c=a.extend({markedClass:"tagged",standardText:false},b);a(this).focus(function(){if(!this.changed){this.clear()}}).blur(function(){if(!this.changed){this.addTag()}}).keyup(function(){this.changed=(a(this).val()?true:false)}).each(function(){this.title=a(this).attr("title");if(a(this).val()==a(this).attr("title")){this.changed=false}this.clear=function(){if(!this.changed){a(this).val("").removeClass(c.markedClass)}};this.addTag=function(){a(this).val(c.standardText===false?this.title:c.standardText).addClass(c.markedClass)};if(this.form){this.form.tagFieldsToClear=this.form.tagFieldsToClear||[];this.form.tagFieldsToClear.push(this);if(this.form.tagFieldsAreCleared){return true}this.form.tagFieldsAreCleared=true;a(this.form).submit(function(){a(this.tagFieldsToClear).each(function(){this.clear()})})}}).keyup().blur();return a(this)}})(jQuery);




/*
 * jQuery UI Effects 1.7.2
 *
 * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI/Effects/
 *
 * TERMS OF USE - EASING EQUATIONS
 *
 * Open source under the BSD License.
 *
 * Copyright 2001 Robert Penner
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without modification,
 * are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice, this list of
 * conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright notice, this list
 * of conditions and the following disclaimer in the documentation and/or other materials
 * provided with the distribution.
 *
 * Neither the name of the author nor the names of contributors may be used to endorse
 * or promote products derived from this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
 * OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 */

jQuery.effects||(function(b){b.effects={version:"1.7.2",save:function(d,e){for(var c=0;c<e.length;c++){if(e[c]!==null){d.data("ec.storage."+e[c],d[0].style[e[c]])}}},restore:function(d,e){for(var c=0;c<e.length;c++){if(e[c]!==null){d.css(e[c],d.data("ec.storage."+e[c]))}}},setMode:function(c,d){if(d=="toggle"){d=c.is(":hidden")?"show":"hide"}return d},getBaseline:function(d,e){var f,c;switch(d[0]){case"top":f=0;break;case"middle":f=0.5;break;case"bottom":f=1;break;default:f=d[0]/e.height}switch(d[1]){case"left":c=0;break;case"center":c=0.5;break;case"right":c=1;break;default:c=d[1]/e.width}return{x:c,y:f}},createWrapper:function(c){if(c.parent().is(".ui-effects-wrapper")){return c.parent()}var d={width:c.outerWidth(true),height:c.outerHeight(true),"float":c.css("float")};c.wrap('<div class="ui-effects-wrapper" style="font-size:100%;background:transparent;border:none;margin:0;padding:0"></div>');var g=c.parent();if(c.css("position")=="static"){g.css({position:"relative"});c.css({position:"relative"})}else{var f=c.css("top");if(isNaN(parseInt(f,10))){f="auto"}var e=c.css("left");if(isNaN(parseInt(e,10))){e="auto"}g.css({position:c.css("position"),top:f,left:e,zIndex:c.css("z-index")}).show();c.css({position:"relative",top:0,left:0})}g.css(d);return g},removeWrapper:function(c){if(c.parent().is(".ui-effects-wrapper")){return c.parent().replaceWith(c)}return c},setTransition:function(d,f,c,e){e=e||{};b.each(f,function(h,g){unit=d.cssUnit(g);if(unit[0]>0){e[g]=unit[0]*c+unit[1]}});return e},animateClass:function(e,f,h,g){var c=(typeof h=="function"?h:(g?g:null));var d=(typeof h=="string"?h:null);return this.each(function(){var m={};var k=b(this);var l=k.attr("style")||"";if(typeof l=="object"){l=l.cssText}if(e.toggle){k.hasClass(e.toggle)?e.remove=e.toggle:e.add=e.toggle}var i=b.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(e.add){k.addClass(e.add)}if(e.remove){k.removeClass(e.remove)}var j=b.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(e.add){k.removeClass(e.add)}if(e.remove){k.addClass(e.remove)}for(var o in j){if(typeof j[o]!="function"&&j[o]&&o.indexOf("Moz")==-1&&o.indexOf("length")==-1&&j[o]!=i[o]&&(o.match(/color/i)||(!o.match(/color/i)&&!isNaN(parseInt(j[o],10))))&&(i.position!="static"||(i.position=="static"&&!o.match(/left|top|bottom|right/)))){m[o]=j[o]}}k.animate(m,f,d,function(){if(typeof b(this).attr("style")=="object"){b(this).attr("style")["cssText"]="";b(this).attr("style")["cssText"]=l}else{b(this).attr("style",l)}if(e.add){b(this).addClass(e.add)}if(e.remove){b(this).removeClass(e.remove)}if(c){c.apply(this,arguments)}})})}};function a(d,c){var f=d[1]&&d[1].constructor==Object?d[1]:{};if(c){f.mode=c}var e=d[1]&&d[1].constructor!=Object?d[1]:(f.duration?f.duration:d[2]);e=b.fx.off?0:typeof e==="number"?e:b.fx.speeds[e]||b.fx.speeds._default;var g=f.callback||(b.isFunction(d[1])&&d[1])||(b.isFunction(d[2])&&d[2])||(b.isFunction(d[3])&&d[3]);return[d[0],f,e,g]}b.fn.extend({_show:b.fn.show,_hide:b.fn.hide,__toggle:b.fn.toggle,_addClass:b.fn.addClass,_removeClass:b.fn.removeClass,_toggleClass:b.fn.toggleClass,effect:function(d,c,e,f){return b.effects[d]?b.effects[d].call(this,{method:d,options:c||{},duration:e,callback:f}):null},show:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))){return this._show.apply(this,arguments)}else{return this.effect.apply(this,a(arguments,"show"))}},hide:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))){return this._hide.apply(this,arguments)}else{return this.effect.apply(this,a(arguments,"hide"))}},toggle:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))||(b.isFunction(arguments[0])||typeof arguments[0]=="boolean")){return this.__toggle.apply(this,arguments)}else{return this.effect.apply(this,a(arguments,"toggle"))}},addClass:function(d,c,f,e){return c?b.effects.animateClass.apply(this,[{add:d},c,f,e]):this._addClass(d)},removeClass:function(d,c,f,e){return c?b.effects.animateClass.apply(this,[{remove:d},c,f,e]):this._removeClass(d)},toggleClass:function(d,c,f,e){return((typeof c!=="boolean")&&c)?b.effects.animateClass.apply(this,[{toggle:d},c,f,e]):this._toggleClass(d,c)},morph:function(c,e,d,g,f){return b.effects.animateClass.apply(this,[{add:e,remove:c},d,g,f])},switchClass:function(){return this.morph.apply(this,arguments)},cssUnit:function(c){var d=this.css(c),e=[];b.each(["em","px","%","pt"],function(f,g){if(d.indexOf(g)>0){e=[parseFloat(d),g]}});return e}})})(jQuery);

/*
 * jQuery UI Effects Slide 1.7.2
 *
 * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI/Effects/Slide
 *
 * Depends:
 *	effects.core.js
 */

(function(a){a.effects.slide=function(b){return this.queue(function(){var e=a(this),d=["position","top","left"];var i=a.effects.setMode(e,b.options.mode||"show");var h=b.options.direction||"left";a.effects.save(e,d);e.show();a.effects.createWrapper(e).css({overflow:"hidden"});var f=(h=="up"||h=="down")?"top":"left";var c=(h=="up"||h=="left")?"pos":"neg";var j=b.options.distance||(f=="top"?e.outerHeight({margin:true}):e.outerWidth({margin:true}));if(i=="show"){e.css(f,c=="pos"?-j:j)}var g={};g[f]=(i=="show"?(c=="pos"?"+=":"-="):(c=="pos"?"-=":"+="))+j;e.animate(g,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){if(i=="hide"){e.hide()}a.effects.restore(e,d);a.effects.removeWrapper(e);if(b.callback){b.callback.apply(this,arguments)}e.dequeue()}})})}})(jQuery);




