$(function() {
    var btnstyle = [],dynstyle = '';
    btnstyle.push('#layer83012C169E3EF64F0B9FC7AE86E09A57 a.button_btndefault-link {height:50px;line-height:50px;position:absolute;background-color:rgb(255,153,0);cursor:pointer;display:inline-block;text-align:center;width:100%;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;-moz-transition:border-color 0.4s ease 0s,background-color 0.4s ease 0s;-webkit-transition:border-color 0.4s ease 0s,background-color 0.4s ease 0s;-o-transition:border-color 0.4s ease 0s,background-color 0.4s ease 0s;transition:border-color 0.4s ease 0s,background-color 0.4s ease 0s;border:0px solid rgb(255,87,0);}');
    btnstyle.push('#layer83012C169E3EF64F0B9FC7AE86E09A57 a.button_btndefault-link:hover {background-color:rgb(255,102,0);border-color:rgb(255,87,0);-moz-transition:border-color 0.4s ease 0s,background-color 0.4s ease 0s;-webkit-transition:border-color 0.4s ease 0s,background-color 0.4s ease 0s;-o-transition:border-color 0.4s ease 0s,background-color 0.4s ease 0s;transition:border-color 0.4s ease 0s,background-color 0.4s ease 0s;}');
    btnstyle.push('#layer83012C169E3EF64F0B9FC7AE86E09A57 a span.button_btndefault-label {color:rgb(255,255,255);font-weight:bold;-moz-transition:color 0.4s ease 0s;-webkit-transition:color 0.4s ease 0s;-o-transition:color 0.4s ease 0s;transition:color 0.4s ease 0s;white-space:nowrap;}');
    btnstyle.push('#layer83012C169E3EF64F0B9FC7AE86E09A57 a:hover span.button_btndefault-label {color:rgb(255,255,255);-moz-transition:color 0.4s ease 0s;-webkit-transition:color 0.4s ease 0s;-o-transition:color 0.4s ease 0s;transition:color 0.4s ease 0s;}');
    btnstyle.push('#layer83012C169E3EF64F0B9FC7AE86E09A57 a.btnarea {text-align:center;background-color:rgba(255,153,0,1);background-repeat:repeat;}');
    btnstyle.push('#layer83012C169E3EF64F0B9FC7AE86E09A57 a.btnarea span {font-style:italic;text-decoration:underline;}');
    btnstyle.push('#layer83012C169E3EF64F0B9FC7AE86E09A57 a.btnarea:hover {background-color:rgba(255,102,0,1);background-image:none;}');
    btnstyle.push('#layer83012C169E3EF64F0B9FC7AE86E09A57 a.btnarea:hover span {color:rgba(255,255,255,1);}');
    btnstyle.push('#layer83012C169E3EF64F0B9FC7AE86E09A57 a.btnarea:hover {border-color:rgba(255,87,0,1);}');

    btnstyle.push('#layer83012C169E3EF64F0B9FC7AE86E09A57 a span.button_btndefault-label {');
    if ('') {
    	btnstyle.push('padding:px;');
    }
    if ('none') {
    	btnstyle.push('text-decoration: none;');
    }
    if ('normal') {
    	btnstyle.push('font-style: normal;');
    }
    if ('normal') {
    	 btnstyle.push('font-weight: normal;');
    }
    if ('arial') {
    	btnstyle.push('font-family: "arial";');
    }
    if ('') {
    	btnstyle.push('font-size: px;');
    }
    btnstyle.push('}');

    btnstyle.push('#layer83012C169E3EF64F0B9FC7AE86E09A57 a.btnarea span {');
    if ('rgba(68,68,68,1)') {
    	btnstyle.push('color:rgba(68,68,68,1);');
    }
    btnstyle.push('}');

    btnstyle.push('#layer83012C169E3EF64F0B9FC7AE86E09A57 a.btnarea:hover span {');
    if ('rgba(0,153,68,1)') {
    	btnstyle.push('color:rgba(0,153,68,1);');
    }
    btnstyle.push('}');

    btnstyle.push('#layer83012C169E3EF64F0B9FC7AE86E09A57 a.btnarea:hover {');
    if ('') {
    	btnstyle.push('border-color:;');
    }
    if ('transparent') {
    	btnstyle.push('background-color:transparent;');
    }
    if ('') {
    	btnstyle.push('background-image:url(/designer/plugin/buttons/);');
    }
    btnstyle.push('}');

    btnstyle.push('#layer83012C169E3EF64F0B9FC7AE86E09A57 a.btnarea {');
    if ('' == 'show') {
        btnstyle.push('box-shadow: px px px px;');
    }
    if ('') {
        btnstyle.push('border-width:px;');
    }
    if ('') {
        btnstyle.push('border-color:;');
    }
    if ('right') {
        btnstyle.push('text-align:right;');
    }
    if ('3px 3px 3px 3px') {
        btnstyle.push('-moz-border-radius:3px 3px 3px 3px;-webkit-border-radius:3px 3px 3px 3px;border-radius:3px 3px 3px 3px;');
    }
    if ('transparent') {
    	btnstyle.push('background-color:transparent;');
    }
    if ('') {
        btnstyle.push('background-image:url(/designer/plugin/buttons/)');
    }
    if ('' != '' || '' != '' || '' != '' || '' != '' || '' != '') {
        var shadow_hori = '' == '' ? 0 :  + 'px';
        var shadow_vert = '' == '' ? 0 :  + 'px';
        var shadow_blur = '' == '' ? 0 :  + 'px';
        var shadow_spread = '' == '' ? 0 :  + 'px';
        var shadow_color = '' == '' ? 'rgba(0,0,0,0.60)' : '';
        btnstyle.push('box-shadow:'+shadow_hori+' '+shadow_vert+' '+shadow_blur+' '+shadow_spread+' '+shadow_color+'');
    }
    btnstyle.push('}');
    btnstyle = btnstyle.join("\n");
    if ($.trim(btnstyle).length > 0) {
        // Fix rgba for ie8 and down
        if ($.browser.msie && ($.browser.version <= 8)) {
            btnstyle = btnstyle.replace(/rgba\(([^()]+)\)/ig, function($0, $1) {
                var dpos = $1.lastIndexOf(","),
                    alpha = $1.substr(dpos + 1);
                return (alpha == '0') ? 'transparent' : 'rgb(' + $1.substr(0, dpos) + ')';
            });
            // Virtual loading
            var $pielayer = $('#layer83012C169E3EF64F0B9FC7AE86E09A57'),
                pieheight = $pielayer.height(),
                piewidth = $pielayer.width();
            $('<div/>').addClass("piemask").css({
                'background': 'url(/designer/template/default/images/loading2.gif) no-repeat 50% 50% #fff',
                'position': 'absolute',
                'top': 0,
                'left': 0,
                'z-index': 100,
                'height': pieheight + 'px',
                'width': piewidth + 'px'
            }).appendTo($pielayer);
        }
        // Fixed IE STYLE limit
        var $dynstyle = $('#page_set_css > style');
        if ($dynstyle.length > 0) {
            var regexp = new RegExp("#layer83012C169E3EF64F0B9FC7AE86E09A57[^\\}]+\\{[^\\}]+\\}\\n?", "img"),
                oldstyle = $dynstyle.html() || '';
            dynstyle = oldstyle.replace(regexp, '');
            regexp = oldstyle = null;
        }
        $('#page_set_css').html('<style>' + (dynstyle + btnstyle) + '</style>');
        // Fixed IE border-radius
        var $piebtns = $('#layer83012C169E3EF64F0B9FC7AE86E09A57').not('[deleted="deleted"]');
        if ($.browser.msie && ($.browser.version <= 8)) {
            if ($.inArray("btndefault", ['arrowleft', 'arrowright']) == -1) {
                $('.wpbtn-wrapper,a.btnarea,a.btnarea div', '#layer83012C169E3EF64F0B9FC7AE86E09A57').css("behavior", 'url(script/pie.htc)');
                var i = 0;
                setTimeout(function() {
                    // 这里无限循环，暂时先这样移除loading效果
                    if (i > 3) {
                        $piebtns.find('.piemask').remove();
                    }
                    i++;
                    if ($piebtns.find('css3-container').length > 0) $piebtns.find('.piemask').remove();
                    else setTimeout(arguments.callee, 500);
                }, 500);
            } else $piebtns.find('.piemask').remove();
        }
        // Destroy variables
        $dynstyle = btnstyle = dynstyle = null;
    }
});

if ('' != '') {
    $('#layer83012C169E3EF64F0B9FC7AE86E09A57').data('wopop_effects',{
        "effect":"",
        "delay":"",
        "duration":""
    });
}