ord=Math.random()*10000000000000000;document.write('<style>a{ text-decoration:none;} a:hover{ text-decoration:underline;}</style>');document.write('<script type="text/javascript" src="http://www.totalbeauty.com/js/jquery.js"></script>');document.write('<script type="text/javascript" src="http://www.totalbeauty.com/js/jquery-dom.js"></script>');document.write('<link rel="stylesheet" href="http://www.totalbeauty.com/css/bloggerWidget.css" type="text/css" />');document.write('<div id="totalBeauty" class="bloggerWidget" style="padding:0; margin:0; font-size: 10px; font-family: \'helvetica neue\', arial, sans-serif; line-height: 10px; color:#412d26; font-style: normal; font-variant: normal; font-weight: normal; text-transform:none; letter-spacing:0; text-indent:0;width:160px; margin:0 auto;">');document.write('<div id="totalBeautyLogo" style="padding:0; margin:0; width:160px; height:48px;"><a href="http://www.totalbeauty.com?'+tbBlogID+'" title="totalBeauty.com" target="_blank"><img src="http://images.totalbeauty.com/img/v3img/bloggerWidget/g_logo.gif" alt="totalBeauty.com" border="0" style="margin: 0; padding: 0; border: none;" /></a></div>');document.write('<div id="tbWidgetNav" style="padding:0; margin:0; width:160px; height:21px; border-top:1px solid #fff;">');document.write('<p id="tbWidgetNavStories" class="active" style="padding:0; margin:0; list-style:none; text-indent:0; text-align:left; display:block; float:left; height:21px; width:50px;"><a href="" alt="Stories" class="widgetNavStories" style="cursor:pointer; cursor:hand; outline:none; display:block; text-indent:-9999px; height:21px; text-align:left; padding:0; color:#0083b7;">Stories</a></p>');document.write('<p id="tbWidgetNavPosts" style="padding:0; margin:0; list-style:none; text-indent:0; text-align:left; display:block; float:left; height:21px; width:76px;"><a href="" alt="Blog Posts" class="widgetNavPosts" style="cursor:pointer; cursor:hand; outline:none; display:block; text-indent:-9999px; height:21px; text-align:left; padding:0; color:#0083b7;">Blog Posts</a></p>');document.write('<p id="tbWidgetNavTips" style="padding:0; margin:0; list-style:none; text-indent:0; text-align:left; display:block; float:left; height:21px; width:34px;"><a href="" alt="Tips" class="widgetNavTips" style="cursor:pointer; cursor:hand; outline:none; display:block; text-indent:-9999px; height:21px; text-align:left; padding:0; color:#0083b7;">Tips</a></p>');document.write('</div><!-- end navigation -->');document.write('<div id="tbWidgetContent" style="margin:0; width:160px; padding:1px 0 4px 0; text-align:left;">');document.write('</div><!-- end widget content -->');var themes=Array('chocolate','midnight','ice','leaf','cranberry','tbDefault');var themesULColor=Array('e4f7ff','cccccc','b0d2df','ccebcb','f9c6eb','ffe473');var themesPColor=Array('5c5249','454545','4b3c35','4c3b34','4f3534','4a3834');var curtheme='tbDefault'
var curtheme_id=5;function widget_parser(objData){jQuery.noConflict();if(!tbBlogID){tbBlogID='tbwidget';}
try{if(theme){for(var i=0;i<themes.length;i++){if(themes[i]==theme){curtheme=theme;curtheme_id=i;}}}}catch(e){}
document.write('</p><!--advert--></div><!--wrapper-->');var tplRow=function(){var reg=new RegExp(escape('?'));var q=(reg.test(escape(this.href)))?'&':'?';this.href=this.href+q+tbBlogID;return['div',{'class':'tbWidgetFeature','style':'padding:0px; margin:0; width:150px; background-color:#fff; margin:4px 0 0 4px; text-align:left;'},['p',{'style':'padding:0; margin:0; list-style:none; text-indent:0; text-align:left; background:none; border:none;'},['a',{'href':this.href,'target':'_blank','style':'background-image: none; padding: 0; cursor:pointer; cursor:hand; outline:none;'},['img',{'src':this.thumbnail,'class':'tbWidgetFeatureImage','style':'width:140px; height:55px; margin:4px 0 0 4px; padding:0;'}]],'p',{'class':'tbWidgetFeatureTitle','style':'padding:0; margin:0; list-style:none;text-indent:0; text-align:left; width:138px; margin-left:6px; text-align:left; line-height:1em; border:0; background:none;'},['a',{'href':this.href,'target':'_blank','style':'background-image: none; padding: 0; margin-left:0px; cursor:pointer; cursor:hand; outline:none; font-size: 12px; font-family: \'helvetica neue\', arial, sans-serif; line-height: 14px; color:#0083b7; font-style: normal; font-variant: normal; font-weight: bold; text-transform:none; letter-spacing:0; text-indent:0;'},this.headline],]]};var tplRowNew=function(){var reg=new RegExp(escape('?'));var q=(reg.test(escape(this.href)))?'&':'?';this.href=this.href+q+tbBlogID;return['div',{'class':'tbWidgetFeature','style':'padding:0px; margin:0; width:150px; background-color:#fff; margin:4px 0 0 4px; text-align:left;'},['p',{'style':'padding:0; margin:0; list-style:none; text-indent:0; text-align:left; background:none; border:none;'},[],'p',{'class':'tbWidgetFeatureTitle','style':'padding:0; margin:0; list-style:none;text-indent:0; text-align:left; width:138px; margin-left:6px; text-align:left; line-height:1em; border:0; background:none;'},['a',{'href':this.href,'target':'_blank','style':'background-image: none; padding: 0; margin-left:0px; cursor:pointer; cursor:hand; outline:none; font-size: 12px; font-family: \'helvetica neue\', arial, sans-serif; line-height: 14px; color:#0083b7; font-style: normal; font-variant: normal; font-weight: bold; text-transform:none; letter-spacing:0; text-indent:0;'},this.headline],]]};for(var i=0;i<objData.tabs.length;i++){var tab=objData.tabs[i];var tabUL=jQuery('<div style="display:none" id="'+tab.id+'"></div>');for(var j=0;j<tab.links.length;j++){if(tab.links[j]){switch(i){case 0:{if(j!=0){tabUL.tplAppend(tab.links[j],tplRowNew);}else{tabUL.tplAppend(tab.links[j],tplRow);}
break;}
case 1:{tabUL.tplAppend(tab.links[j],tplRowNew);break;}
case 2:{if(j!=0){tabUL.tplAppend(tab.links[j],tplRowNew);}else{tabUL.tplAppend(tab.links[j],tplRow);}
break;}}}}
if(tab.id=='tb_stories'){jQuery('#tbWidgetContent').html(tabUL.html());}
tabUL.appendTo(jQuery('#totalBeauty'));}
jQuery('#totalBeauty').addClass(curtheme);}
var tbTimeout=5000;var rotateTimer="";function tabRotate(tabNum,active){switch(tabNum){case 1:$("#tbWidgetNavStories").addClass('active');$("#tbWidgetNavPosts").removeClass('active');$("#tbWidgetNavTips").removeClass('active');$('#tbWidgetContent').html($('#tb_stories').html());tabNum=2;break;case 2:$("#tbWidgetNavStories").removeClass('active');$("#tbWidgetNavPosts").addClass('active');$("#tbWidgetNavTips").removeClass('active');$('#tbWidgetContent').html($('#tb_blogs').html());tabNum=3;break;case 3:$("#tbWidgetNavStories").removeClass('active');$("#tbWidgetNavPosts").removeClass('active');$("#tbWidgetNavTips").addClass('active');$('#tbWidgetContent').html($('#tb_tips').html());tabNum=1;break;default:break;}
if(active!="off"){rotateTimer=setTimeout("tabRotate("+tabNum+")",tbTimeout);}else{clearTimeout(rotateTimer);}}