(function(a){a.fn.hoverIntent=function(k,j){var l={sensitivity:7,interval:100,timeout:0};l=a.extend(l,j?{over:k,out:j}:k);var n,m,h,d;var e=function(f){n=f.pageX;m=f.pageY};var c=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);if((Math.abs(h-n)+Math.abs(d-m))<l.sensitivity){a(f).unbind("mousemove",e);f.hoverIntent_s=1;return l.over.apply(f,[g])}else{h=n;d=m;f.hoverIntent_t=setTimeout(function(){c(g,f)},l.interval)}};var i=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);f.hoverIntent_s=0;return l.out.apply(f,[g])};var b=function(q){var o=(q.type=="mouseover"?q.fromElement:q.toElement)||q.relatedTarget;while(o&&o!=this){try{o=o.parentNode}catch(q){o=this}}if(o==this){return false}var g=jQuery.extend({},q);var f=this;if(f.hoverIntent_t){f.hoverIntent_t=clearTimeout(f.hoverIntent_t)}if(q.type=="mouseover"){h=g.pageX;d=g.pageY;a(f).bind("mousemove",e);if(f.hoverIntent_s!=1){f.hoverIntent_t=setTimeout(function(){c(g,f)},l.interval)}}else{a(f).unbind("mousemove",e);if(f.hoverIntent_s==1){f.hoverIntent_t=setTimeout(function(){i(g,f)},l.timeout)}}};return this.mouseover(b).mouseout(b)}})(jQuery);
(function($) {

$.extend({
	metadata : {
		defaults : {
			type: 'class',
			name: 'metadata',
			cre: /({.*})/,
			single: 'metadata'
		},
		setType: function( type, name ){
			this.defaults.type = type;
			this.defaults.name = name;
		},
		get: function( elem, opts ){
			var settings = $.extend({},this.defaults,opts);
			
			if ( !settings.single.length ) settings.single = 'metadata';
			
			var data = $.data(elem, settings.single);
			
			if ( data ) return data;
			
			data = "{}";
			
			if ( settings.type == "class" ) {
				var m = settings.cre.exec( elem.className );
				if ( m )
					data = m[1];
			} else if ( settings.type == "elem" ) {
				if( !elem.getElementsByTagName )
					return undefined;
				var e = elem.getElementsByTagName(settings.name);
				if ( e.length )
					data = $.trim(e[0].innerHTML);
			} else if ( elem.getAttribute != undefined ) {
				var attr = elem.getAttribute( settings.name );
				if ( attr )
					data = attr;
			}
			
			if ( data.indexOf( '{' ) <0 )
			data = "{" + data + "}";
			
			data = eval("(" + data + ")");
			
			$.data( elem, settings.single, data );
			return data;
		}
	}
});

/**
 * Returns the metadata object for the first member of the jQuery object.
 *
 * @name metadata
 * @descr Returns element's metadata object
 * @param Object opts An object contianing settings to override the defaults
 * @type jQuery
 * @cat Plugins/Metadata
 */
$.fn.metadata = function( opts ){
	return $.metadata.get( this[0], opts );
};

})(jQuery);

/* Flip Text should go here */

// Extruder should go here 
(function($) {
document.extruder=new Object();
document.extruder.left = 0;
document.extruder.top = 0;
document.extruder.bottom = 0;
document.extruder.right = 0;
document.extruder.idx=0;
var isIE=$.browser.msie;

$.mbExtruder= {
author:"Matteo Bicocchi",
version:"2.1",
defaults:{
width:350,
positionFixed:true,
sensibility:800,
position:"top",
accordionPanels:true,
top:"auto",
	font:"Arial, Helvetica, sans-serif",
extruderOpacity:1,
flapMargin:35,
textOrientation:"bt", 
onExtOpen:function(){},
onExtContentLoad:function(){},
onExtClose:function(){},
hidePanelsOnClose:true,
autoCloseTime:100, 
slideTimer:300
},

buildMbExtruder: function(options){
return this.each (function (){
this.options = {};
$.extend (this.options, $.mbExtruder.defaults);
$.extend (this.options, options);
this.idx=document.extruder.idx;
document.extruder.idx++;
var extruder,extruderContent,wrapper,extruderStyle,wrapperStyle,txt,timer;
extruder= $(this);
extruderContent=extruder.html();

extruder.css("zIndex",100);

var isVertical = this.options.position=="left" || this.options.position=="right";

var extW= isVertical?1: this.options.width;

var c= $("<div/>").addClass("content").css({overflow:"hidden", width:extW});
c.append(extruderContent);
extruder.html(c);

var position=this.options.positionFixed?"fixed":"absolute";
extruder.addClass("extruder");
extruder.addClass(this.options.position);
var isHorizontal = this.options.position=="top" || this.options.position=="bottom";
extruderStyle=
this.options.position=="top"?
{position:position,top:0,left:"50%",marginLeft:-this.options.width/2,width:this.options.width}:
this.options.position=="bottom"?
{position:position,bottom:0,left:"50%",marginLeft:-this.options.width/2,width:this.options.width}:
this.options.position=="left"?
{position:position,top:0,left:0,width:1}:
{position:position,top:0,right:0,width:1};
extruder.css(extruderStyle);
if(!isIE) extruder.css({opacity:this.options.extruderOpacity});
extruder.wrapInner("<div class='ext_wrapper'></div>");
wrapper= extruder.find(".ext_wrapper");

wrapperStyle={position:"absolute", width:isVertical?1:this.options.width};
wrapper.css(wrapperStyle);


if (isHorizontal){
this.options.position=="top"?document.extruder.top++:document.extruder.bottom++;
if (document.extruder.top>1 || document.extruder.bottom>1){
alert("more than 1 mb.extruder on top or bottom is not supported yet... hope soon!");
return;
}
}

if ($.metadata){
$.metadata.setType("class");
if (extruder.metadata().title) extruder.attr("extTitle",extruder.metadata().title);
if (extruder.metadata().url) extruder.attr("extUrl",extruder.metadata().url);
if (extruder.metadata().data) extruder.attr("extData",extruder.metadata().data);
}
var flapFooter=$("<div class='footer'/>");
var flap=$("<div class='flap'><span class='flapLabel'/></div>");
if (document.extruder.bottom){
wrapper.prepend(flapFooter);
wrapper.prepend(flap);
}else{
wrapper.append(flapFooter);
wrapper.append(flap);
}

txt=extruder.attr("extTitle")?extruder.attr("extTitle"): "";
var flapLabel = extruder.find(".flapLabel");
flapLabel.text(txt);
if(isVertical){
flapLabel.html(txt).css({whiteSpace:"noWrap"});
var orientation= this.options.textOrientation == "tb";
var labelH=extruder.find('.flapLabel').getFlipTextDim()[1];
extruder.find('.flapLabel').mbFlipText(orientation);
}else{
flapLabel.html(txt).css({whiteSpace:"noWrap"});
}

if (extruder.attr("extUrl")){
extruder.setMbExtruderContent({
url:extruder.attr("extUrl"),
data:extruder.attr("extData"),
callback: function(){
if (extruder.get(0).options.onExtContentLoad) extruder.get(0).options.onExtContentLoad();
}
})
}else{
var container=$("<div>").addClass("text").css({width:extruder.get(0).options.width-20, height:extruder.height()-20, overflowY:"auto"});
c.wrapInner(container);
extruder.setExtruderVoicesAction();
}

flap.bind("click",function(){
if (!extruder.attr("open")){
extruder.openMbExtruder();
}else{
extruder.closeMbExtruder();
}
});

c.bind("mouseleave", function(){
$(document).one("click.extruder"+extruder.get(0).idx,function(){extruder.closeMbExtruder();});
timer=setTimeout(function(){

if(extruder.get(0).options.autoCloseTime > 0){
extruder.closeMbExtruder();
}
},extruder.get(0).options.autoCloseTime);
}).bind("mouseenter", function(){clearTimeout(timer); $(document).unbind("click.extruder"+extruder.get(0).idx);});

if (isVertical){
c.css({ height:"100%"});
if(this.options.top=="auto") {
flap.css({top:100+(this.options.position=="left"?document.extruder.left:document.extruder.right)});
this.options.position=="left"?document.extruder.left+=labelH+this.options.flapMargin:document.extruder.right+= labelH+this.options.flapMargin;
}else{
flap.css({top:this.options.top});
}
var clicDiv=$("<div/>").css({position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"transparent"});
flap.append(clicDiv);
}
});
},

setMbExtruderContent: function(options){
this.options = {
url:false,
data:"",
callback:function(){}
};
$.extend (this.options, options);
if (!this.options.url || this.options.url.length==0){
alert("internal error: no URL to call");
return;
}
var url=this.options.url;
var data=this.options.data;
var where=$(this), voice;
var cb= this.options.callback;
var container=$("<div>").addClass("container");
if (!($.browser.msie && $.browser.version<=7))
container.css({width:$(this).get(0).options.width});
where.find(".content").wrapInner(container);
$.ajax({
type: "POST",
url: url,
data: data,
success: function(html){
where.find(".container").append(html);
voice=where.find(".voice");
voice.hover(function(){$(this).addClass("hover");},function(){$(this).removeClass("hover");});
where.setExtruderVoicesAction();
if (cb) {
setTimeout(function(){cb();},100);
}
}
});
},

openMbExtruder:function(c){
var extruder= $(this);
extruder.attr("open",true);
$(document).unbind("click.extruder"+extruder.get(0).idx);
var opt= extruder.get(0).options;
extruder.addClass("open");
if(!isIE) extruder.css("opacity",1);
var position= opt.position;
extruder.mb_bringToFront();
if (position=="top" || position=="bottom"){
extruder.find('.content').slideDown( opt.slideTimer);
if(opt.onExtOpen) opt.onExtOpen();
}else{

if(!isIE) $(this).css("opacity",1);
extruder.find('.ext_wrapper').css({width:""});
extruder.find('.content').css({overflowX:"hidden", display:"block"});
extruder.find('.content').animate({ width: opt.width}, opt.slideTimer);
if(opt.onExtOpen) opt.onExtOpen();
}
if (c) {
setTimeout(function(){
$(document).one("click.extruder"+extruder.get(0).idx,function(){extruder.closeMbExtruder();});
},100);
}
},

closeMbExtruder:function(){
var extruder= $(this);
extruder.removeAttr("open");
var opt= extruder.get(0).options;
extruder.removeClass("open");
$(document).unbind("click.extruder"+extruder.get(0).idx);
if(!isIE) extruder.css("opacity",opt.extruderOpacity);
if(opt.hidePanelsOnClose) extruder.hidePanelsOnClose();
if (opt.position=="top" || opt.position=="bottom"){
extruder.find('.content').slideUp(opt.slideTimer);
if(opt.onExtClose) opt.onExtClose();
}else if (opt.position=="left" || opt.position=="right"){
extruder.find('.content').css({overflow:"hidden"});
extruder.find('.content').animate({ width: 1 }, opt.slideTimer,function(){
extruder.find('.ext_wrapper').css({width:1});
extruder.find('.content').css({overflow:"hidden",display:"none"});
if(opt.onExtClose) opt.onExtClose();
});
}
}
};

jQuery.fn.mb_bringToFront= function(){
var zi=10;
$('*').each(function() {
if($(this).css("position")=="absolute" ||$(this).css("position")=="fixed"){
var cur = parseInt($(this).css('zIndex'));
zi = cur > zi ? parseInt($(this).css('zIndex')) : zi;
}
});
$(this).css('zIndex',zi+=1);
return zi;
};

/*
 * EXTRUDER CONTENT
 */

$.fn.setExtruderVoicesAction=function(){
var extruder=$(this);
var opt=extruder.get(0).options;
var voices= $(this).find(".voice");
voices.each(function(){
var voice=$(this);
if ($.metadata){
$.metadata.setType("class");
if (voice.metadata().panel) voice.attr("panel",voice.metadata().panel);
if (voice.metadata().data) voice.attr("data",voice.metadata().data);
if (voice.metadata().disabled) voice.attr("setDisabled", voice.metadata().disabled);
}

if (voice.attr("setDisabled"))
voice.disableExtruderVoice();

if (voice.attr("panel") && voice.attr("panel")!="false"){
voice.append("<span class='settingsBtn'/>");
voice.find(".settingsBtn").css({opacity:.5});
voice.find(".settingsBtn").hover(
function(){
$(this).css({opacity:1});
},
function(){
$(this).not(".sel").css({opacity:.5});
}).click(function(){
if ($(this).parents().hasClass("sel")){
if(opt.accordionPanels)
extruder.hidePanelsOnClose();
else
$(this).closePanel();
return;
}

if(opt.accordionPanels){
extruder.find(".optionsPanel").slideUp(400,function(){$(this).remove();});
voices.removeClass("sel");
voices.find(".settingsBtn").removeClass("sel").css({opacity:.5});
}
var content=$("<div class='optionsPanel'></div>");
voice.after(content);
$.ajax({
type: "POST",
url: voice.attr("panel"),
data: voice.attr("data"),
success: function(html){
var c= $(html);
content.html(c);
content.children().not(".text")
.addClass("panelVoice")
.click(function(){
extruder.closeMbExtruder();
});
content.slideDown(400);
}
});
voice.addClass("sel");
voice.find(".settingsBtn").addClass("sel").css({opacity:1});
});
}

if (voice.find("a").length==0 && voice.attr("panel")){
voice.find(".label").not(".disabled").css("cursor","pointer").click(function(){
voice.find(".settingsBtn").click();
});
}

if ((!voice.attr("panel") ||voice.attr("panel")=="false" ) && (!voice.attr("setDisabled") || voice.attr("setDisabled")!="true")){
voice.find(".label").click(function(){
extruder.hidePanelsOnClose();
extruder.closeMbExtruder();
});
}
});
};

$.fn.disableExtruderVoice=function(){
var voice=$(this);
var label = voice.find(".label");
voice.removeClass("sel");
voice.next(".optionsPanel").slideUp(400,function(){$(this).remove();});
voice.attr("setDisabled",true);
label.css("opacity",.4);
voice.hover(function(){$(this).removeClass("hover");},function(){$(this).removeClass("hover");});
label.addClass("disabled").css("cursor","default");
voice.find(".settingsBtn").hide();
voice.bind("click",function(event){
event.stopPropagation();
return false;
});
};

$.fn.enableExtruderVoice=function(){
var voice=$(this);
voice.attr("setDisabled",false);
voice.find(".label").css("opacity",1);
voice.find(".label").removeClass("disabled").css("cursor","pointer");
voice.unbind("click");
voice.find(".settingsBtn").show();
};

$.fn.hidePanelsOnClose=function(){
var voices= $(this).find(".voice");
$(this).find(".optionsPanel").slideUp(400,function(){$(this).remove();});
voices.removeClass("sel");
voices.find(".settingsBtn").removeClass("sel").css("opacity",.5);
};

$.fn.openPanel=function(){
var voice=$(this).hasClass("voice") ? $(this) : $(this).find(".voice");
voice.each(function(){
if($(this).hasClass("sel")) return;
$(this).find(".settingsBtn").click();
})
};

$.fn.closePanel=function(){
var voice=$(this).hasClass("voice") ? $(this) : $(this).parent(".voice");
voice.next(".optionsPanel").slideUp(400,function(){$(this).remove();});
voice.removeClass("sel");
$(this).removeClass("sel").css("opacity",.5);
};

$.fn.buildMbExtruder=$.mbExtruder.buildMbExtruder;
$.fn.setMbExtruderContent=$.mbExtruder.setMbExtruderContent;
$.fn.closeMbExtruder=$.mbExtruder.closeMbExtruder;
$.fn.openMbExtruder=$.mbExtruder.openMbExtruder;

})(jQuery);

// Extruder should end here

jQuery.easing['jswing'] = jQuery.easing['swing'];

jQuery.extend( jQuery.easing,
{
	def: 'easeOutQuad',
	swing: function (x, t, b, c, d) {
		
		return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
	},
	easeInQuad: function (x, t, b, c, d) {
		return c*(t/=d)*t + b;
	},
	easeOutQuad: function (x, t, b, c, d) {
		return -c *(t/=d)*(t-2) + b;
	},
	easeInOutQuad: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t + b;
		return -c/2 * ((--t)*(t-2) - 1) + b;
	},
	easeInCubic: function (x, t, b, c, d) {
		return c*(t/=d)*t*t + b;
	},
	easeOutCubic: function (x, t, b, c, d) {
		return c*((t=t/d-1)*t*t + 1) + b;
	},
	easeInOutCubic: function (x, 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;
	},
	easeInQuart: function (x, t, b, c, d) {
		return c*(t/=d)*t*t*t + b;
	},
	easeOutQuart: function (x, t, b, c, d) {
		return -c * ((t=t/d-1)*t*t*t - 1) + b;
	},
	easeInOutQuart: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
		return -c/2 * ((t-=2)*t*t*t - 2) + b;
	},
	easeInQuint: function (x, t, b, c, d) {
		return c*(t/=d)*t*t*t*t + b;
	},
	easeOutQuint: function (x, t, b, c, d) {
		return c*((t=t/d-1)*t*t*t*t + 1) + b;
	},
	easeInOutQuint: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
		return c/2*((t-=2)*t*t*t*t + 2) + b;
	},
	easeInSine: function (x, t, b, c, d) {
		return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
	},
	easeOutSine: function (x, t, b, c, d) {
		return c * Math.sin(t/d * (Math.PI/2)) + b;
	},
	easeInOutSine: function (x, t, b, c, d) {
		return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
	},
	easeInExpo: function (x, t, b, c, d) {
		return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
	},
	easeOutExpo: function (x, t, b, c, d) {
		return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
	},
	easeInOutExpo: function (x, t, b, c, d) {
		if (t==0) return b;
		if (t==d) return b+c;
		if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
		return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
	},
	easeInCirc: function (x, t, b, c, d) {
		return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
	},
	easeOutCirc: function (x, t, b, c, d) {
		return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
	},
	easeInOutCirc: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
		return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
	},
	easeInElastic: function (x, t, b, c, d) {
		var s=1.70158;var p=0;var a=c;
		if (t==0) return b;if ((t/=d)==1) return b+c;if (!p) p=d*.3;
		if (a < Math.abs(c)) { a=c; var s=p/4; }
		else var s = p/(2*Math.PI) * Math.asin (c/a);
		return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
	},
	easeOutElastic: function (x, t, b, c, d) {
		var s=1.70158;var p=0;var a=c;
		if (t==0) return b;if ((t/=d)==1) return b+c;if (!p) p=d*.3;
		if (a < Math.abs(c)) { a=c; var s=p/4; }
		else var s = p/(2*Math.PI) * Math.asin (c/a);
		return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
	},
	easeInOutElastic: function (x, t, b, c, d) {
		var s=1.70158;var p=0;var a=c;
		if (t==0) return b;if ((t/=d/2)==2) return b+c;if (!p) p=d*(.3*1.5);
		if (a < Math.abs(c)) { a=c; var s=p/4; }
		else var s = p/(2*Math.PI) * Math.asin (c/a);
		if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
		return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
	},
	easeInBack: function (x, t, b, c, d, s) {
		if (s == undefined) s = 1.70158;
		return c*(t/=d)*t*((s+1)*t - s) + b;
	},
	easeOutBack: function (x, t, b, c, d, s) {
		if (s == undefined) s = 1.70158;
		return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
	},
	easeInOutBack: function (x, t, b, c, d, s) {
		if (s == undefined) s = 1.70158; 
		if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
		return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
	},
	easeInBounce: function (x, t, b, c, d) {
		return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;
	},
	easeOutBounce: function (x, 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;
		}
	},
	easeInOutBounce: function (x, t, b, c, d) {
		if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
		return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
	}
});

$(function() {
				
				
				var animations		= ['right','left','top','bottom','rightFade','leftFade','topFade','bottomFade'];
				var total_anim		= animations.length;
				var easeType		= 'swing';
				var animSpeed		= 450;
				var $hs_container	= $('#hs_container');
				var $hs_areas		= $hs_container.find('.hs_area');
				var $hs_area1 = $hs_container.find('.hs_area1');
				var $hs_area2 = $hs_container.find('.hs_area2');
				var $hs_area3 = $hs_container.find('.hs_area3');
				var $hs_area4 = $hs_container.find('.hs_area4');
				var $hs_area5 = $hs_container.find('.hs_area5');
				
$hs_images= $hs_container.find('img');
var total_images= $hs_images.length;
var cnt = 0;
$hs_images.each(function(){
var $this = $(this);
$('<img/>').load(function(){
++cnt;
if(cnt == total_images){
							$hs_areas.each(function(){
								var $area 		= $(this);
								
								$area.data('over',true).bind('mouseenter',function(){
									if($area.data('over')){
										$area.data('over',false);
										
										var total		= $area.children().length;
										
										var $current 	= $area.find('img:visible');
										
										var idx_current = $current.index();
										
										var $next		= (idx_current == total-1) ? $area.children(':first') : $current.next();
										
										$next.show();
										
										var anim		= animations[Math.floor(Math.random()*total_anim)];
										switch(anim){
											
											case 'right':
												$current.animate({
													'left':$current.width()+'px'
												},
												animSpeed,
												easeType,
												function(){
													$current.hide().css({
														'z-index'	: '1',
														'left'		: '0px'
													});
													$next.css('z-index','9');
													$area.data('over',true);
												});
												break;
											
											case 'left':
												$current.animate({
													'left':-$current.width()+'px'
												},
												animSpeed,
												easeType,
												function(){
													$current.hide().css({
														'z-index'	: '1',
														'left'		: '0px'
													});
													$next.css('z-index','9');
													$area.data('over',true);
												});
												break;
											
											case 'top':
												$current.animate({
													'top':-$current.height()+'px'
												},
												animSpeed,
												easeType,
												function(){
													$current.hide().css({
														'z-index'	: '1',
														'top'		: '0px'
													});
													$next.css('z-index','9');
													$area.data('over',true);
												});
												break;
												
											case 'bottom':
												$current.animate({
													'top':$current.height()+'px'
												},
												animSpeed,
												easeType,
												function(){
													$current.hide().css({
														'z-index'	: '1',
														'top'		: '0px'
													});
													$next.css('z-index','9');
													$area.data('over',true);
												});
												break;
											
											case 'rightFade':
												$current.animate({
													'left':$current.width()+'px',
													'opacity':'0'
												},
												animSpeed,
												easeType,
												function(){
													$current.hide().css({
														'z-index'	: '1',
														'left'		: '0px',
														'opacity'	: '1'
													});
													$next.css('z-index','9');
													$area.data('over',true);
												});
												break;
											
											case 'leftFade':
												$current.animate({
													'left':-$current.width()+'px','opacity':'0'
												},
												animSpeed,
												easeType,
												function(){
													$current.hide().css({
														'z-index'	: '1',
														'left'		: '0px',
														'opacity'	: '1'
													});
													$next.css('z-index','9');
													$area.data('over',true);
												});
												break;
											case 'topFade':
												$current.animate({
													'top':-$current.height()+'px',
													'opacity':'0'
												},
												animSpeed,
												easeType,
												function(){
													$current.hide().css({
														'z-index'	: '1',
														'top'		: '0px',
														'opacity'	: '1'
													});
													$next.css('z-index','9');
													$area.data('over',true);
												});
												break;
											case 'bottomFade':
												$current.animate({
													'top':$current.height()+'px',
													'opacity':'0'
												},
												animSpeed,
												easeType,
												function(){
													$current.hide().css({
														'z-index'	: '1',
														'top'		: '0px',
														'opacity'	: '1'
													});
													$next.css('z-index','9');
													$area.data('over',true);
												});
												break;		
											default:
												$current.animate({
													'left':-$current.width()+'px'
												},
												animSpeed,
												easeType,
												function(){
													$current.hide().css({
														'z-index'	: '1',
														'left'		: '0px'
													});
													$next.css('z-index','9');
													$area.data('over',true);
												});
												break;
										}	
									}
								});
							});
							
							$('.hs_area1').click(function() { window.location = "/xcart/home.php?cat=250"; });
							$('.hs_area2').click(function() { window.location = "/xcart/home.php?cat=249"; });
							$('.hs_area3').click(function() { window.location = "/xcart/home.php?cat=255"; });
							$('.hs_area4').click(function() { window.location = "/xcart/home.php?cat=260"; });
							$('.hs_area5').click(function() { window.location = "/xcart/home.php?cat=258"; });
						}
					}).attr('src',$this.attr('src'));
				});			
				

});
			
