var wpJ = jQuery.noConflict();
function initMyPageMenu() {
	var b = wpJ("#page-id").html();
	var c = 0;
	wpJ("#lavaLampBasicImage").append('<li class="back"><div class="left"></div></li>');
	wpJ("#lavaLampBasicImage li a").each(function (a) {
		if (wpJ(this).attr("href") == b) {
			c = a;
			return false
		}
	});
	wpJ("#lavaLampBasicImage").lavaLamp({
		startItem: c,
		speed: 300
	})
}
wpJ(document).ready(function () {
	var b;
	var c = wpJ('#menu_preview_inner');
	var d = wpJ('#menu_preview_inner #menu_add_inner');
	wpJ("#app-icons img").click(function () {
		wpJ(this).blur();
		b = " ." + wpJ(this).attr("class")
	});
	wpJ("#app-icons img").mouseover(function () {
		var a = " ." + wpJ(this).attr("class");
		if (a != ' .iconSeparator') {
			wpJ("#app-stripes" + a).stop().animate({
				top: '-30px'
			},
			{
				queue: false,
				duration: 600,
				easing: 'easeOutBounce'
			});
			d.css('display', 'none');
			if (a == ' .huhCursor') {
				c.stop().animate({
					top: '-300px'
				},
				300)
			} else if (a == ' .floola') {
				c.stop().animate({
					top: '-240px'
				},
				300)
			} else if (a == ' .vDial') {
				c.stop().animate({
					top: '-180px'
				},
				300)
			} else if (a == ' .bimgConv') {
				c.stop().animate({
					top: '-120px'
				},
				300)
			} else if (a == ' .nextApp') {
				c.stop().animate({
					top: '-60px'
				},
				300)
			}
			d.css('display', 'none')
		}
		if (b != null && a != b) {
			wpJ("#app-stripes" + b).stop().animate({
				top: '0px'
			},
			{
				queue: false,
				duration: 600,
				easing: 'easeOutBounce'
			})
		}
	});
	wpJ("#app-icons img").mouseout(function () {
		var a = " ." + wpJ(this).attr("class");
		if (a != ' .iconSeparator') {
			wpJ("#app-stripes" + a).stop().animate({
				top: '0px'
			},
			{
				queue: false,
				duration: 600,
				easing: 'easeOutBounce'
			})
		}
		c.stop().animate({
			top: '0px'
		},
		800, null, displayAd);
		if (b != null) {
			wpJ("#app-stripes" + b).stop().animate({
				top: '-30px'
			},
			{
				queue: false,
				duration: 600,
				easing: 'easeOutBounce'
			})
		}
	});
	function displayAd() {
		d.css('display', 'block')
	}
});