function OpenCenterWindow(url)
{
var argv = OpenCenterWindow.arguments;
var argc = OpenCenterWindow.arguments.length;	
var w = window.screen.width;
var h = window.screen.height;
var W = (argc > 1) ? argv[1] : 600;
var H = (argc > 2) ? argv[2] : h;
var X = Math.ceil((w-W)/2);
var Y = 0;
//Math.ceil((h-H)/2) - 20;

window.open(url, "_blank", "top=" + Y +", left=" + X +", width=" + W +", height=" + H +", scrollbars=1, status=0, menubar=0");
}

function capitalizeMe( obj, cap ) {
       if ( typeof(obj) == 'object' ) val = obj.value;
	   else 
	   if ( typeof(obj) == 'string' ) val = obj;
	   else return false;
       newVal = '';
	   charIndex = -1;
       val = val.split(' ');
       for ( var c = 0; c < val.length; c++ )
	     {
	     newVal += val[c].substring( 0, 1 ).toUpperCase();  
		 switch( cap )
		       {
			   case 'UC':
			      newVal += val[c].substring( 1, val[c].length ).toUpperCase();
			   break;
			   case 'LC':
			      charIndex = val[c].search(/\-/);
				  if ( charIndex != -1 ) {
					 newVal += val[c].substring( 1, charIndex + 1).toLowerCase();
					 newVal += val[c].substring( charIndex + 1, charIndex + 2 ).toUpperCase();
					 newVal += val[c].substring( charIndex + 2, val[c].length ).toLowerCase();
					 } 
				  else newVal += val[c].substring( 1, val[c].length ).toLowerCase();
 			   break;
			   default:
			      newVal += val[c].substring( 1, val[c].length );
			   }
		 newVal += ( c == val.length-1 ? '' : ' ' );
		 }
        
       if ( typeof(obj) == 'object' ) obj.value = newVal;
	   else return newVal;
       }

String.prototype.trim = function() { return this.replace(/^\s+|\s+$/g,""); }

Array.prototype.unique = function () {
	var r = new Array();
	o:for(var i = 0, n = this.length; i < n; i++)
	{
		for(var x = 0, y = r.length; x < y; x++)
		{
			if(r[x]==this[i])
			{
				continue o;
			}
		}
		r[r.length] = this[i];
	}
	return r;
}

function formatPhone(keyCode, $this) {
	if (keyCode == 8 || keyCode == 37 || keyCode == 39 || keyCode == 46) return;
	var field = $this;
	field.value = formatPhoneValue(field.value);
	if (field.value.length > 13)
		field.onkeyup = '';

}

function formatPhoneValue(value) {
	var phoneDigits = getDigits(value), phone = "(";
	for (i = 0; i < phoneDigits.length; i++) {
		phone += phoneDigits.charAt(i);
		if (i == 2)
			phone += ") ";
		else if (i == 5)
			phone += "-";
	}
	return phone;
}

function getDigits(value) {
	var digits = "";
	for (i = 0; i < value.length; i++) {
		if ("0123456789".indexOf(value.charAt(i)) != -1)
			digits += value.charAt(i);
	}
	return digits;
}

function allowedChars(myfield, e, symbols, dec)
{
var key, keychar;

symbols = (symbols ? symbols : "0123456789-" );

if (window.event)
   key = window.event.keyCode;
else if (e)
   key = e.which;
else
   return true;
   
keychar = String.fromCharCode(key);

// control keys
if ((key==null) || (key==0) || (key==8) ||
    (key==9) || (key==13) || (key==27) )
   return true;

// numbers
else if ((symbols.indexOf(keychar) > -1))
   return true;

// decimal point jump
else if (dec && (keychar == "."))
   {
   myfield.form.elements[dec].focus();
   return false;
   }
else
   return false;
}

function Xtend(X, N) {
    var P;
    X = String(X);
    if (/e/i.test(X)) {
        return X;
    }
    while ((P = X.indexOf(".")) < 0) {
        X += ".";
    }
    while (X.length <= P + N) {
        X += "0";
    }
    return X;
}

function toggleBillingAddress(radioButtonObj) {
    var billingDiv = document.getElementById('billingDiv');
    if (radioButtonObj.checked)
	 {
      billingDiv.style.display = 'none';
	  $('#billing_country').val($('#shipping_country').val());
	  $('#billing_company').val($('#shipping_company').val());
	  $('#billing_address').val($('#shipping_address').val());
	  $('#billing_city').val($('#shipping_city').val());
	  $('#billing_state_us').val($('#shipping_state_us').val());
	  $('#billing_state').val($('#shipping_state').val());
	  $('#billing_zip').val($('#shipping_zip').val());
	  
	  $('#billing_country').change();
	 }
    else
        billingDiv.style.display = 'table';
}

function LC_fast_dialog(id, video, modal, resizable, buttons )
{	
	$('#'+id).dialog("destroy").remove();
	$('body').append('<div id="'+id+'" align="center"></div>');
	$('#'+id).dialog({  
	                'modal': modal,
					'resizable': resizable,
					'closeOnEscape': true, 
					'autoOpen': false,
					'height': 'auto',
					'minHeight': 100,
					'minWidth': 200,
					'width': ($.browser.msie && parseFloat($.browser.version) <=7 ? video_params[video]['width'] : 'auto'),
					close: function(event, ui) { $(this).html('').dialog("destroy").remove(); }
					});
	$('#'+id)
	.html(($.browser.msie?'<div class="flash_overlay"></div>':'')+video_params[video]['content'])
	.dialog('option','title',video_params[video]['title'])
	.dialog('option', 'buttons', buttons)
	.dialog('open');
	if ($.browser.msie) $('.flash_overlay').css({'background':'white','opacity':'0','width':video_params[video]['width']});
	$('div.ui-widget-overlay').css({'background':'black','opacity':'0.7'});
}

var video_params = {'video_olga'	:{title: 'Olga Suarez, Age 87',		width:'360', content: '<embed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" src="http://www.lifecellskin.com/flash/player.swf" quality="high" allowfullscreen="false" allowscriptaccess="always" wmode="transparent" width="320" height="240" flashvars="controlbar=over&amp;logo=&amp;image=http://www.lifecellskin.com/flash/olga.jpg&amp;file=http://www.lifecellskin.com/flash/flash_video/olga_1.flv&amp;autostart=true&amp;bufferlength=3&amp;repeat=false&amp;smoothing=true&amp;type=flv"></embed>'},
					'video_colleen'	:{title: 'Colleen Graham, Age 41',	width:'360', content: '<embed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" src="http://www.lifecellskin.com/flash/player.swf" quality="high" allowfullscreen="false" allowscriptaccess="always" wmode="transparent" width="320" height="240" flashvars="controlbar=over&amp;logo=&amp;image=http://www.lifecellskin.com/flash/colin.jpg&amp;file=http://www.lifecellskin.com/flash/flash_video/colin_1.flv&amp;autostart=true&amp;bufferlength=3&amp;repeat=false&amp;smoothing=true&amp;type=flv"></embed>'},
					'video_joan'	:{title: 'Joan E. Childs, Age 67', 	width:'360', content: '<embed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" src="http://www.lifecellskin.com/flash/player.swf" quality="high" allowfullscreen="false" allowscriptaccess="always" wmode="transparent" width="320" height="240" flashvars="controlbar=over&amp;logo=&amp;image=http://www.lifecellwrinklecream.com/video/JoanChilds.jpg&amp;file=http://www.lifecellskin.com/flash/flash_video/JoanChilds.flv&amp;autostart=true&amp;bufferlength=3&amp;repeat=false&amp;smoothing=true&amp;type=flv"></embed>'},
					'video_verena'	:{title: 'Verena Wagner, Age 35', 	width:'520', content: '<embed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" src="http://www.lifecellskin.com/flash/player.swf" quality="high" allowfullscreen="false" allowscriptaccess="always" wmode="transparent" width="480" height="360" flashvars="controlbar=over&amp;logo=&amp;image=http://www.lifecellwrinklecream.com/video/VerenaWagner.jpg&amp;file=http://www.lifecellskin.com/flash/flash_video/VerenaWagner.flv&amp;autostart=true&amp;bufferlength=3&amp;repeat=false&amp;smoothing=true&amp;type=flv"></embed>'},
					'video_robert'	:{title: 'Robert Shemin', 			width:'466', content: '<embed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" src="http://www.lifecellskin.com/flash/player.swf" quality="high" allowfullscreen="false" allowscriptaccess="always" wmode="transparent" width="426" height="240" flashvars="controlbar=over&amp;logo=&amp;image=http://www.lifecellskin.com/flash/robert.jpg&amp;file=http://www.lifecellskin.com/flash/flash_video/RobertShemanTestim.flv&amp;autostart=true&amp;bufferlength=3&amp;repeat=false&amp;smoothing=true&amp;type=flv"></embed>'}
					};

var tip = {	'shipping_first_name':'First name',
			'shipping_last_name':'Last name',
			'shipping_country':'Shipping country',
			'shipping_state_us':'Shipping state',
			'shipping_citystate':'Shipping city',
			'shipping_zip':'Shipping zip/postal code',
			'shipping_address':'Shipping street address',
			'shipping_state':'Shipping state/province',
			'shipping_city':'Shipping city',
			'phone':'Phone number',
			'email':'Your email'
			};

jQuery.extend(jQuery.expr[':'],{focused:function(elem){return elem===document.activeElement;}});

function init()
{
	$('.video_testim').bind('click',function(){
		LC_fast_dialog(this.id+'box_id', this.id, true, false, {'close':function(){ $(this).dialog('close'); }} );
	});

	
	$('input[type=text].field').bind('blur',function(event){
		if (this.id=='phone') { if ($(this).data('format')) formatPhone(event.keyCode, this); }
		if (this.id=='email')  this.value = this.value.toLowerCase();
		
		this.value = this.value.trim();
		if (this.value!='') $(this).removeClass(this.id);
		else $(this).addClass(this.id);
		$('.'+this.id+'_tip').css('display','none').remove();
	}).bind('focus',function(){
		if ($.browser.msie && parseFloat($.browser.version)<8) $(this).removeClass(this.id);
		$(this).before('<div class="tip '+this.id+'_tip">'+tip[this.id]+'</div>');
		var field = $(this).offset(),
			current_tip = $('.'+this.id+'_tip').offset();
		top_diff = (parseInt(field.top)-parseInt(current_tip.top));
		left_diff = (parseInt(field.left)-parseInt(current_tip.left));
		if (top_diff > 13 || left_diff > 202)
		{
			current_tip.top = $.browser.msie ? (parseFloat($.browser.version) <=7 ? field.top+147 : field.top-12) : field.top-11;
			current_tip.left = $.browser.msie && parseFloat($.browser.version) <=7 ? field.left - 355 : field.left - 200;
			if ($.browser.msie && parseFloat($.browser.version) <=7) $('.'+this.id+'_tip').offset({ top: current_tip.top, left: current_tip.left });
			else $('.'+this.id+'_tip').offset({ top: current_tip.top });
		}
	//	$('.test_tip').html('Field Top: '+field.top+'; Field Left: '+field.left+'<br />'+'Tip Top: '+current_tip.top+'; Tip Left: '+current_tip.left+'<br />'+'Top Diff: '+(parseInt(field.top)-parseInt(current_tip.top))+'<br />'+'Left Diff: '+(parseInt(field.left)-parseInt(current_tip.left))+'<br />'+'Version: '+$.browser.version);
	}).each(function(){
		if ( $(this).is(':focused') ) $(this).focus();
		else $(this).blur();
	});	

	$('select.field').bind('blur',function(){
		$('.'+this.id+'_tip').remove();
	}).bind('focus',function(){
		$(this).before('<div class="tip '+this.id+'_tip">'+tip[this.id]+'</div>');
	}).each(function(){
		if ( $(this).is(':focused') ) $(this).focus();
		else $(this).blur();
	});

    $('#shipping_form').validate({
			rules: {shipping_first_name: "required", 
			        shipping_last_name: "required", 
					shipping_address: "required", 
					shipping_city: "required", 
					shipping_country: "required",
					shipping_zip: "required",
					email: {required: true, email: true},
					phone: "required"
					},
			messages: {shipping_first_name: "First name",
			           shipping_last_name: "Last name",
					   shipping_address: "Street address",
					   shipping_city: "City",
					   shipping_zip: {required:"Postal/Zip Code"},
					   shipping_country: "Country",
			           email: {required: "Email - to send your order confirmation and tracking number",
			                   email: "The email must be valid!"}, 
					   phone: {required:"Phone number"}
			          },
			submitHandler: function(form) {
			    var shipping_country = $('#shipping_country').val();
				if (shipping_country=='US'||shipping_country=='VI'||shipping_country=='CA') $('#shipping_state').val($('#shipping_state_us').val());
				form.submit();
			},
			onkeyup: false,
			onfocusout: false
	});
	
	$('#shipping_country').bind('change',function(){
	         var shipping_country = this.value;
	             
				 switch(shipping_country)
				       {
					   case "US": case "CA": case "VI":
				           $("#shipping_state_us").rules("add", {
                            required: true,
                            messages: {
                                      required: "State"
                                      }
                           });
				           
						   if (shipping_country!='CA')
						   $("#shipping_zip").rules("add", {
                            zipus: true,
                            messages: {
                                      zipus: "Valid US Zip Code"
                                      }
                           });

						   $("#phone").data('format',true).bind('keyup',function(event){
						        formatPhone(event.keyCode, this);
						   }).rules("add", {
                            phone: true,
                            messages: {
                                      phone: "Valid phone number:<br />Eg. (xxx) xxx-xxxx"
                                      }
                           });

					       $(".shipping_state_us_span").css('display','inline');
						   $(".or").css('display','none');
						   $(".shipping_state_span").css('display','none');
					   break;
					   default:
					       $("#shipping_state_us").rules("remove");
						   $("#shipping_zip").rules("remove", "zipus");
						   $("#phone")
   						   .data('format',false)
						   .unbind('keyup')
						   .rules("remove", "phone");

					       $(".shipping_state_us_span").css('display','none');
						   $(".or").css('display','none');
						   $(".shipping_state_span").css('display','inline');
					   break;
					   }
					   
					   if (shipping_country=='') 
					    {
				        $(".shipping_state_us_span").css('display','inline');
						$(".or").css('display','inline');
						$(".shipping_state_span").css('display','inline');
						}
	});
	
	$('#shipping_country').change();
}

$(init);

var img = new Image(),
	img2 = new Image();
	img.src = 'images/pointer.png';
	img2.src = 'images/popup_discover-'+($.browser.msie&&$.browser.version<7?"8":"24")+'.png';


// t: current time, b: begInnIng value, c: change In value, d: duration
jQuery.easing['jswing'] = jQuery.easing['swing'];

jQuery.extend( jQuery.easing,
{
	def: 'easeOutQuad',
	swing: function (x, t, b, c, d) {
		//alert(jQuery.easing.default);
		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(){$('<div class="popup_discover"><a href="#Top" onclick="$(window).scrollTop(0); return false;"><img src="images/popup_discover-'+($.browser.msie&&$.browser.version<7?"8":"24")+'.png" width="452" height="234" border="0" /></a></div>').appendTo("body");$(".popup_discover").css({position:($.browser.msie&&$.browser.version<7?"absolute":"fixed"),top:"160px",left:"-500px"}).delay(500).animate({left:"-200px"},{duration:"slow",easing:"linear"}).animate({left:"-15px"},{duration:"slow",easing:"easeOutBounce"}).delay(7000).animate({left:"-355px"},{duration:"slow",easing:"easeInOutBack",complete:function(){$(this).bind("mouseover",function(){$(this).animate({left:"-15px"},{duration:"slow",easing:"easeOutBounce"})}).bind("mouseout",function(){$(this).animate({left:"-355px"},{duration:"slow",easing:"easeOutBounce"})})}});$('<div class="popup_1500"><a href="#Top" onclick="$(window).scrollTop(0); return false;"><img src="images/popup$1500-'+($.browser.msie&&$.browser.version<7?"8":"24")+'.png" width="267" height="217" border="0" /></a></div>').appendTo("body");$(".popup_1500").data("showing",false).css({position:($.browser.msie&&$.browser.version<7?"absolute":"fixed"),bottom:"-300px",right:"10px"});$(window).bind("scroll",function(){var b=$(this),c=$(".popup_1500"),a=$(".popup_discover");if(a.css("position")=="absolute"){a.animate({top:b.scrollTop()+160+"px"},{duration:"slow",easing:"easeOutBounce",queue:false})}if(c.css("position")=="absolute"){if(!b.data("poped")){c.css({top:b.scrollTop()+b.height()+300+"px"})}else{if(c.data("showing")){c.animate({top:b.scrollTop()+b.height()-217+"px"},{duration:"slow",easing:"easeOutBounce",queue:false})}else{c.animate({top:b.scrollTop()+b.height()-60+"px"},{duration:"slow",easing:"easeOutBounce",queue:false})}}}if(b.scrollTop()>=2900){if(c.css("position")=="fixed"){if(!b.data("poped")){b.data("poped",true);c.animate({bottom:"-100px"},{duration:"fast",easing:"linear"}).animate({bottom:"0px"},{duration:"slow",easing:"easeOutBounce"}).delay(7000).animate({bottom:"-160px"},{duration:"slow",easing:"easeInOutBack",complete:function(){$(this).bind("mouseover",function(){$(this).animate({bottom:"0px"},{duration:"slow",easing:"easeOutBounce"})}).bind("mouseout",function(){$(this).animate({bottom:"-160px"},{duration:"slow",easing:"easeOutBounce"})})}})}}else{if(!b.data("poped")){b.data("poped",true);c.data("showing",true).animate({top:b.scrollTop()+b.height()-100+"px"},{duration:"fast",easing:"linear"}).animate({top:b.scrollTop()+b.height()-217+"px"},{duration:"slow",easing:"easeOutBounce"}).delay(7000).animate({top:b.scrollTop()+b.height()-60+"px"},{duration:"slow",easing:"easeInOutBack",complete:function(){$(this).data("showing",false).bind("mouseover",function(){$(this).animate({top:b.scrollTop()+b.height()-217+"px"},{duration:"slow",easing:"easeOutBounce"})}).bind("mouseout",function(){$(this).animate({top:b.scrollTop()+b.height()-60+"px"},{duration:"slow",easing:"easeOutBounce"})})}})}}}}).data("poped",false)});
