$(document).ready(function(){var a;var b=shibue_class.query();if(b.story){a=parseInt(b.story)}else{a=1}shibue_class.init({default_transition:8000,preview_transition:16000,starting_slide:a});$("#cycle-nav a").click(function(c){c.preventDefault();var d=$(this).closest("li").attr("id");shibue_class.interact(d)});Shadowbox.init({modal:true,overlayOpacity:0.75,onOpen:function(){shibue_class.pause();$("#sb-wrapper").append('<a id="close" onclick="Shadowbox.close();" href="#">Close</a>')},onClose:function(){shibue_class.resume();$("#sb-wrapper #close").remove()}});Shadowbox.setup("#our-story a",{content:$("#our-story a").attr("href"),width:700});Shadowbox.setup("#technology a",{content:$("#technology a").attr("href"),width:700});$("#brand a").each(function(){Shadowbox.setup($(this),{content:$(this).attr("href"),width:700})});$("#nav a").each(function(){var d,f,e;f=$(this).attr("href");e=$(this).closest("li").attr("id");if(e=="shop"){d=1200}else{d=700}Shadowbox.setup($(this),{content:$(this).attr("href"),width:d})})});var shibue_class=function(){var j,c,b,k,i,a,e,v,o,l;l="http://www.facebook.com/sharer.php";o="Shibue Couture Inc.&reg;";b;k=0;i;a={items:[{title_img:"../images/title-1.gif",title_text:"Kanye Gets Shibued!",sub_title:"Check out the Shibue panty in the<br /> short film <q>Runaway</q>",desc:"Shibue Couture is pleased to announce the use of our Strapless Panty in Kanye West's hot new video for <q>Runaway.</q>  Covered completely in feathers, The Shibue Couture Strapless Panty&reg; was the perfect canvas to offer safety and protection for the featured model.",image:"../images/slide-kanye.jpg",share_url:"http://shibuecouture.com?story=1",breaking_news:"<span>Breaking News</span>"},{title_img:"../images/title-2.gif",title_text:"PETA Partners With Shibue!",sub_title:"",desc:"World renowned photographer Don Flood shot Academy Award Best Supporting Actress nominee Taraji P. Henson wearing the Shibue Couture Strapless Panty&reg; for their latest campaign. The campaign debuting in Spring 2011 is the first campaign using the Shibue product.",image:"../images/slide-peta.jpg",share_url:"http://shibuecouture.com?story=2",breaking_news:""},{title_img:"../images/title-3.gif",title_text:"Patent Pending No More!",sub_title:"",desc:"Shibue Couture is pleased to announce that our Utility Patent has been approved! Starting December 28, 2010 we will have patent # 7857798. Our International patents have been filed and are pending!",image:"../images/slide-patent.jpg",share_url:"http://shibuecouture.com?story=3",breaking_news:""},]};function p(w){e={default_transition:4000,preview_transition:8000,starting_slide:1};if(w){$.extend(e,w)}j=e.starting_slide;c=parseInt(j-1);if(!k){k=1;r()}}function n(w){clearTimeout(i);k=0;j=parseInt(w);c=(parseInt(w)-1);r()}function f(){if(k){clearTimeout(i);k=0}}function d(){if(!k){k=1;j=(j-1);c=(c-1);r()}}function r(){if(c==(-1)){c=0;j=1}$("#cycle-nav a").removeClass("active-slide");$("#cycle-nav li#"+j+" a").addClass("active-slide");h();t();g();u();if(j==3){j=1}else{j=(parseInt(j)+1)}if(c==2){c=0}else{c=(parseInt(c)+1)}if(!k){k=1;i=setTimeout(r,e.preview_transition)}else{i=setTimeout(r,e.default_transition)}}function h(){var x,w;x=a.items[c].title_img;w=a.items[c].title_text;$("#title").html('<img src="'+x+'" alt="'+w+'" />')}function t(){$("#sub-title").html(a.items[c].sub_title)}function g(){$("#desc").html(a.items[c].desc);$("#desc").prepend(a.items[c].breaking_news);var x=$("#share-link").attr("href");var z=m(x);var w=(z.u+"?story="+j);var y=l+"?u="+w+"&src=sp";$("#share-link").attr("share_url",w);$("#share-link").attr("href",y)}function u(){$("#slides img").hide();$("#slides ."+(j)).fadeIn("fast")}function m(x){var z,w=/\+/g,y=/([^&;=]+)=?([^&;]*)/g,A=function(B){return decodeURIComponent(B.replace(w," "))};url_query={};if(x){s=x.split("?");q=s[1]}else{q=window.location.search.substring(1)}while(z=y.exec(q)){url_query[A(z[1])]=A(z[2])}return url_query}return{init:p,interact:n,pause:f,resume:d,query:m}}();
