var lastPosition=0;var parallaxSensibility=0;var myFxStrato;var myFxAnimation;var myFxAnimationDown;var myEffect;var bollaCorrente;var scrollMondoGirella;var scrollStoria;var scrollProdotto;var scrollTour;var tappe2011_scroller;var tappe_scroller;var currentVideo=2;var maxVideo=11;var directLink={multimedia:"bollaMultimedia",newsletter:"newsletter",prodotto:"bollaProdotto",mondogirella:"bollaCapanna",contatti:"bollaContatti",storia:"bollaStoria",tour:"bollaTour",produzione:"produzione",album:"album",mangiala:"bollaMangia",games:"bollaGames"};var hashValue={bollaMultimedia:"multimedia",newsletter:"newsletter",bollaProdotto:"prodotto",bollaCapanna:"mondogirella",bollaContatti:"contatti",bollaStoria:"storia",bollaTour:"tour",produzione:"produzione",album:"album",bollaMangia:"mangiala",bollaGames:"games"};var optDock={duration:300,link:"cancel"};var spotId=new Array("Yg2wQvM9eRU","HnFlvOBmoes","EyECIFiepuU","Dcmo1yRerWI","v7cBhmY5d4Q","TDUxFZ6aEDs","1rp7q4eGdAc","t6qnmzw0T8w","wP531fP-ia8","zXR0I8awleA","NWvAVkx52MU","MIMfUfM-_So","nyIUNi-RWfA","6KDizDw81I8","IXwYr8gMa2o");var initAlbum={fumetto1:0,fumetto2:0,fumetto3:0,fumetto4:0,fumetto5:0};var optSplash={duration:1000,link:"cancel",transition:Fx.Transitions.Bounce.easeOut};var noFlash='<div style="text-align:center"> <h4>Content on this page requires a newer version of Adobe Flash Player.</h4><p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p></div>';var img;function bollaEffect(b,a){this.effect=new Fx.Morph($(b),{transition:Fx.Transitions.Elastic.easeOut,duration:1000,link:"cancel"});this.height=$(b).get("height").toInt();this.width=$(b).get("width").toInt();this.left=$(b).getStyle("margin-left").toInt();this.new_left=this.left;if(a!=0){this.new_left=a}$(b).addEvents({mouseover:function(){this.effect.start({height:[this.height,this.height+((this.height/100)*25)],width:[this.width,this.width+((this.width/100)*25)],"margin-left":[this.left,this.new_left]})}.bind(this),mouseout:function(){this.effect.start({height:[this.height+((this.height/100)*25),this.height],width:[this.width+((this.width/100)*25),this.width],"margin-left":[this.new_left,this.left]})}.bind(this)})}function hideSWF(){$("girellaSwf").setStyle("display","none");$("bambini").setStyle("display","none");$("contestBanner").setStyle("display","none");$("golosastro").setStyle("display","none");$("jingle").setStyle("visibility","hidden");$("mongolfiera").setStyle("display","none");$("dock-cont").setStyle("display","none")}function showSWF(){$("girellaSwf").setStyle("display","block");$("jingle").setStyle("visibility","visible");$("bambini").setStyle("display","block");$("contestBanner").setStyle("display","block");$("golosastro").setStyle("display","block");$("mongolfiera").setStyle("display","block");$("dock-cont").setStyle("display","block")}function initDiv(){$("lightbox").setStyle("z-index","201");$("chiudi").setStyle("z-index","1");$$(".init").each(function(a){a.setStyle("display","none")})}var openSpalsh=function(){$("splash").setStyles({"z-index":"500",width:"30px",height:"25px","margin-right":"-15px","margin-top":"-12px",display:"block"});$("splash").set("morph",optSplash);$("splash").morph({width:"400",height:"334","margin-left":"-200","margin-top":"-164"})};function closeSpalsh(){$("strato").setStyles({display:"none",opacity:"0"});$("splash").destroy();initSwfHome()}function loadImage(b,d){var a={duration:500,link:"cancel"};var c=new Element("img",{id:b,alt:d,usemap:"#MapGame",events:{load:function(){if(getParameter()==null){$("strato").setStyles({display:"block",opacity:"0.7"});openSpalsh.delay(1000)}else{initSwfHome();selectSection()}}.bind(this)},styles:{width:"1270px",height:"309px"}});this.setSrc=function(){c.set("src","img/livello-1.png").inject($("livello1"))}}function openGames(){new Swiff("personaggi/STOP_PLAY_Jingle_girella.swf",{width:130,height:50,id:"jingleSWF",params:{wmode:"transparent",wMode:"transparent"},container:$("jingle")})}function openPopUP(b,f,a,i,e){var g=a;var d=i;var c=Math.floor((screen.width-g)/2);var j=Math.floor((screen.height-d)/2);var k=e;window.open(b,f,"width="+g+",height="+d+",top="+j+",left="+c+",scrollbars="+k+"")}function openAlbum(){openSection("album")}function openProduzione(){openSection("produzione")}window.onresize=function(){var a=(document.documentElement.clientHeight-500)/2;$("goUp").setStyle("top",a)};window.addEvent("domready",function(){tappe2011_scroller=new customScroller("tappeScroller2011",295,"topButtonTappe2011","bottomButtonTappe2011");tappe2010_scroller=new customScroller("tappeScroller",295,"topButtonTappe","bottomButtonTappe");img=new loadImage("lv1","valle buona merenda");img.setSrc();if(Browser.opera){parallaxSensibility=40}else{parallaxSensibility=10}$("container").addEvent("mousemove",function(k){if((k.client.x>$("container").getPosition().x+100)&&(k.client.x<$("container").getPosition().x+1100)){if((k.client.x-lastPosition).abs()>parallaxSensibility){center=$("container").getPosition().x+600;distanza=center-k.client.x;$("livello1").setStyle("margin-left",((distanza*0.07)-35)+"px");$("livello2").setStyle("margin-left",((distanza*0.04)+350)+"px");$("livello3").setStyle("margin-left",((distanza*0.02)-55)+"px");$("livello4").setStyle("margin-left",((distanza*0.009)+200)+"px");lastPosition=k.client.x}}});new Swiff("personaggi/jingle_girella.swf",{width:130,height:50,id:"jingleSWF",params:{wmode:"transparent",wMode:"transparent"},container:$("jingle")});var e=new bollaEffect("bollaGames",0);var c=new bollaEffect("bollaTour",450);var d=new bollaEffect("bollaStoria",350);var i=new bollaEffect("bollaProduzione",594);var g=new bollaEffect("bollaContatti",0);var j=new bollaEffect("bollaMangia",700);var f=new bollaEffect("bollaProdotto",145);var b=new bollaEffect("bollaMultimedia",0);var h=new bollaEffect("bollaCapanna",0);myFxStrato=new Fx.Morph($("strato"),{duration:600,link:"cancel"});myFxAnimationUP=new Fx.Morph($("goUp"),{transition:Fx.Transitions.Elastic.easeOut,duration:1800,link:"cancel"});myFxAnimationDown=new Fx.Morph($("goUp"),{duration:400,link:"cancel",onComplete:function(){var k=bollaCorrente;$(k).setStyle("display","none");if(currentSection=="bollaMultimedia"||currentSection=="produzione"){$("video").set("html","")}}});scrollMondoGirella=new Fx.Scroll("bollaCapannaCont",{duration:500,link:"cancel"});scrollContatti=new Fx.Scroll("bollaContattiCont",{duration:500,link:"cancel"});scrollProdotto=new Fx.Scroll("bollaProdottoCont",{duration:500,link:"cancel"});scrollGames=new Fx.Scroll("bollaGamesCont",{duration:500,link:"cancel"});scrollTour=new Fx.Scroll("bollaTourCont",{duration:500,link:"cancel"});scrollMangia=new Fx.Scroll("bollaMangiaCont",{duration:500,link:"cancel"});scrollProduzione=new Fx.Scroll("produzioneCont",{duration:500,link:"cancel"});scrollAlbum=new Fx.Scroll("albumCont",{duration:500,link:"cancel"});scrollStoria=new Fx.Scroll("bollaStoriaCont",{duration:500,link:"cancel"});var a=$$(".bolla");a.each(function(k){k.addEvent("click",function(){openSection(k.id)})});$("chiudi").addEvent("click",function(){var k=bollaCorrente;$("videoProduzioneLow").set("html","");myFxStrato.start({opacity:[0.7,0]});myFxAnimationDown.start({top:[(document.documentElement.clientHeight-400)/2,document.documentElement.clientHeight]}).chain(function(){$("strato").setStyle("display","none");$("lightbox").setStyle("display","none");if((currentSection=="bollaMultimedia"||currentSection=="produzione")){new Swiff("personaggi/STOP_PLAY_Jingle_girella.swf",{width:130,height:50,id:"jingleSWF",params:{wmode:"transparent",wMode:"transparent"},container:$("jingle")})}showSWF()})});$("noOgm").addEvent("mouseover",function(){$("cartelliOgm").setStyle("display","block")});$("noOgm").addEvent("mouseout",function(){$("cartelliOgm").setStyle("display","none")})});function scrollaMondoGirella(a){$(a).setStyle("background-image","url(img/box/"+a+".png)");if(a=="wallpaper"){$("wallCont").set("html",buildWallSection(0));new customScroller("wallCont",318,"wallU","wallD")}else{if(a=="emoticons"&&$("gifContainer").get("html")==""){$("gifContainer").set("html",buildGifCont());initEmoticonsButton()}}scrollMondoGirella.toElement(a)}function scrollaGames(a){$(a).setStyle("background-image","url(img/box/box_"+a+".png)");scrollGames.toElement(a)}function scrollaStoria(a){if(a=="fotoStoria"){new Swiff("img/box/gallery/"+a+".swf",{width:700,height:500,id:a+"SWF",params:{allowScriptAccess:"always",quality:"high",wMode:"transparent"},container:$(a+"Gallery")})}scrollStoria.toElement(a)}function scrollaProdotto(a){if(a=="ingredienti"||a=="valori"){$(a).setStyle("background-image","url(img/box/"+a+".png)");$(a).setStyle("background-repeat","no-repeat")}scrollProdotto.toElement(a)}function scrollaTour(a){if(a=="circoTour"||a=="tappeTour2011"||a=="tappeTour2010"||a=="tappeTour2012"||a=="villaggioTour"||a=="tappeVillaggioTour2010"||a=="tappeVillaggioTour2011"){$(a).setStyle("background-image","url(img/box/"+a+".png)");if(a=="tappeTour2011"){$("elencoTappe2011").set("src","img/box/box_solo_tappe2011.png")}else{if(a=="tappeTour2010"){$("elencoTappe2010").set("src","img/box/box_tappe.png")}}}else{if(a=="luccaComicsTour"||a=="fotoCirco"||a=="fotoVillaggio"){new Swiff("img/box/gallery/"+a+".swf",{width:700,height:500,id:a+"SWF",params:{allowScriptAccess:"always",quality:"high",wMode:"transparent"},container:$(a+"Gallery")});$(a).setStyle("background-image","url()")}}scrollTour.toElement(a)}function scrollaMangia(a){$(a).setStyle("background-image","url(img/box/"+a+".png)");$(a).setStyle("background-repeat","no-repeat");scrollMangia.toElement(a);if(a=="mangia3"){$("mangia3Frame").set("html",'<iframe style="background-color: transparent;" id="frameForm" src ="frame/mangialagirella.php" width="700" height="500" frameborder="0" scrolling="no" allowtransparency="true"><p>Il tuo browser non supporta gli iFrame.</p></iframe>')}}function scrollaContatti(a){scrollContatti.toElement(a);if(a=="contattiMail"){$("mail_image").set("src","img/box/box_mail.png")}}function scrollaAlbum(a){scrollAlbum.toElement(a);if(initAlbum[a]==0){$(a+"Cont").set("html",'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="700" height="500" id="FlashID20" title="album"><param name="movie" value="personaggi/album/'+a+'.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="swfversion" value="8.0.35.0" /><!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. --><param name="expressinstall" value="Scripts/expressInstall.swf" /><!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. --><!--[if !IE]>--><object type="application/x-shockwave-flash" data="personaggi/album/'+a+'.swf" width="700" height="500"><!--<![endif]--><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="swfversion" value="8.0.35.0" /><param name="expressinstall" value="Scripts/expressInstall.swf" /><!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. --><div><h4>Content on this page requires a newer version of Adobe Flash Player.</h4><p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /</a></p></div><!--[if !IE]>--></object><!--<![endif]--></object>');initAlbum[a]=1}}function backTour(a){if(a==""){scrollTour.toElement("homeTour")}else{scrollTour.toElement(a)}}function nextVideo(){if(currentVideo<spotId.length-1){currentVideo=currentVideo+1;$("video").set("html",'<iframe width="580" height="325" src="http://www.youtube.com/embed/'+spotId[currentVideo]+'?autoplay=1&amp;rel=0&amp;showinfo=0&autohide=1" frameborder="0" allowfullscreen></iframe>');$("condividiVideo").set("html",'<a href="http://www.facebook.com/sharer.php?u=http://www.youtube.com/watch?v='+spotId[currentVideo]+'&amp;t=multimedia_Girella" target="_blank"><img src="img/button.png" width="275" height="33" alt="condividi"/></a>');$("tit_video").set("src","img/box/multimedia/tit"+currentVideo+".png")}}function prevVideo(){if(currentVideo>0){currentVideo=currentVideo-1;$("video").set("html",'<iframe width="580" height="325" src="http://www.youtube.com/embed/'+spotId[currentVideo]+'?autoplay=1&amp;rel=0&amp;showinfo=0&autohide=1" frameborder="0" allowfullscreen></iframe>');$("condividiVideo").set("html",'<a href="http://www.facebook.com/sharer.php?u=http://www.youtube.com/watch?v='+spotId[currentVideo]+'&amp;t=multimedia_Girella" target="_blank"><img src="img/button.png" width="275" height="33" alt="condividi"/></a>');$("tit_video").set("src","img/box/multimedia/tit"+currentVideo+".png")}}function initSwfHome(){if(Browser.Plugins.Flash.version>8){new Swiff("personaggi/mongolfiera3.swf",{width:1200,height:110,id:"mongolfieraSWF",params:{wmode:"transparent",wMode:"transparent"},container:$("mongolfiera")});new Swiff("personaggi/personaggini.swf",{width:220,height:128,id:"personaggiSWF",params:{wmode:"transparent",wMode:"transparent"},container:$("bambini")});new Swiff("personaggi/golosastro.swf",{width:210,height:210,id:"golosastroSWF",params:{wmode:"transparent",wMode:"transparent"},container:$("golosastro")});new Swiff("personaggi/albumino_girella.swf",{width:90,height:120,id:"girellinaSWF",params:{wmode:"transparent",wMode:"transparent"},container:$("girellaSwf")});new Swiff("personaggi/dock/dock_icon.swf",{width:395,height:100,id:"dockSWF",params:{wmode:"transparent",wMode:"transparent"},container:$("dock-cont")})}else{$("mongolfiera").set("html",noFlash);$("golosastro").set("html",noFlash);$("bambini").set("html",noFlash)}}function customScroller(h,d,e,c){var g;if(Browser.opera){g=$(h+"Int").style.height.toInt()}else{g=$(h+"Int").getStyle("height").toInt()}var f=(g/d).ceil();$(h+"Int").setStyle("height",(f*d)+"px");var b=0;var a=new Fx.Scroll(h,{offset:{x:0,y:0},duration:1000,link:"cancel"});this.resetScroller=function(){a.set(0,0);b=0};$(c).addEvents({click:function(){if(b<(f-1)){b=b+1;a.start(0,(d*b))}}});$(e).addEvents({click:function(){if(b>0){b=b-1;a.start(0,(d*b))}}})}function getParameter(){var c=new Array();var b=unescape(String(this.location));if(b.indexOf("select/")<0){return null}var a=b.split("select/")[1];var d=a.split("/");var c=new Array();c.section=d[0];return c}function selectSection(){var a=getParameter();if(!a){return}else{var c=0,b;for(b in a){if(a.hasOwnProperty(b)){c++}}if(c==1){if(a.section=="produzione"){openProduzione()}else{if(a.section=="album"){openAlbum()}else{$(directLink[a.section]).fireEvent("click")}}}}}function openSection(c){initDiv();hideSWF();var a=_gat._getTracker("UA-18274065-1");if(c=="bollaCapanna"){a._trackPageview("/mondoGirella")}else{a._trackPageview("/"+c)}var b=(document.documentElement.clientHeight-500)/2;currentSection=c;if(currentSection=="bollaMultimedia"){$("jingle").set("html","")}$("goUp").setStyle("top",document.documentElement.clientHeight);$("strato").setStyle("opacity","0");$("strato").setStyle("display","block");$(c+"Cont").setStyle("display","block");bollaCorrente=c+"Cont";$("lightbox").setStyle("display","block");if(c=="newsletter"){$("newsletterCont").setStyle("background-image","url(img/box/newsletter.png)");$("newsletterFrameCont").set("html",'<iframe  id="newsl" src ="newsletter/index.html" width="616" height="500" frameborder="0" scrolling="no" allowtransparency="true"><p>Il tuo browser non supporta gli iFrame.</p></iframe>')}else{if(c=="bollaCapanna"){$("homeMondoGirellaCont").setStyle("background-image","url(img/box/box_mondo_girella.png)");scrollMondoGirella.set(0,0);$("gif_code").set("html","")}else{if(c=="bollaStoria"){$("homeStoriaCont").setStyle("background-image","url(img/box/box_storia.png)");scrollStoria.set(0,0)}else{if(c=="bollaProdotto"){$("homeProdottoCont").setStyle("background-image","url(img/box/box_prodotto.png)");scrollProdotto.set(0,0)}else{if(c=="bollaContatti"){$("homeContattiCont").setStyle("background-image","url(img/box/box_contatti.png)");scrollContatti.set(0,0)}else{if(c=="bollaGames"){$("homeGames").setStyle("background-image","url(img/box/box_game1.png)");scrollGames.set(0,0)}else{if(c=="bollaMangia"){$("homemangiaCont").setStyle("background-image","url(img/box/box_come_si_mangia.png)");scrollMangia.set(0,0)}else{if(c=="bollaTour"){$("homeTourCont").setStyle("background-image","url(img/box/box_tour.png)");scrollTour.set(0,0)}else{if(c=="newsletter"){$("newsletterCont").setStyle("background-image","url(img/box/newsletter.png)")}else{if(c=="bollaMultimedia"){currentVideo=0;$("homeMultimediaCont").setStyle("background-image","url(img/box/box_multimedia.png)");$("video").set("html",'<iframe width="580" height="325" src="http://www.youtube.com/embed/'+spotId[currentVideo]+'?autoplay=1&amp;rel=0&amp;showinfo=0&autohide=1" frameborder="0" allowfullscreen></iframe>');$("condividiVideo").set("html",'<a href="http://www.facebook.com/sharer.php?u=http://www.youtube.com/watch?v='+spotId[currentVideo]+'&amp;t=multimedia_Girella" target="_blank"><img src="img/button.png" width="275" height="33" alt="condividi"/></a>');$("tit_video").set("src","img/box/multimedia/tit"+currentVideo+".png")}else{if(c=="album"){$("homeAlbumCont").setStyle("background-image","url(img/box/box_album_girella.png)");scrollAlbum.set(0,0)}else{if(c=="produzione"){$("homeProduzioneCont").setStyle("background-image","url(img/box/box_produzione.png)");$("jingle").set("html","");$("videoProduzioneLow").set("html",'<iframe width="580" height="325" src="http://www.youtube.com/embed/1K5xehoSFlQ?autoplay=1&amp;rel=0&amp;showinfo=0&autohide=1" frameborder="0" allowfullscreen></iframe>')}}}}}}}}}}}}window.location.hash="select/"+hashValue[c];myFxStrato.start({opacity:[0,0.7]});myFxAnimationUP.start({top:[document.documentElement.clientHeight,b]})}function buildWallSection(e){var b="";var f="";var a="";var c=1;var d=6*e;b='<div id="wallContInt"><table id="wallTable" cellpadding="0" cellspacing="0" border="0">';for(c=8;c>0;c--){if(c%2==0){f="<tr>";a=""}else{f="";a="</tr>"}wall=c+d;b=b+f+'<td align="center" style="height:106px"><img src="img/wallpaper/wallpaper'+wall+'/preview.jpg" /></td><td valign="middle" align="center" align="left"><img src="img/risoluzioni.png" width="133" height="47" alt="risoluzioni wallpaper" usemap="#MapW'+c+'" /> <map name="MapW'+c+'" id="MapW'+c+'"> <area shape="rect" coords="1,3,56,16" alt="wallpaper" href="img/wallpaper/wallpaper'+wall+'/Wallpaper-girella-960x600.jpg.zip" target="_blank" onclick="trackWallDownload();"/> <area shape="rect" coords="2,17,56,30" alt="wallpaper" href="img/wallpaper/wallpaper'+wall+'/Wallpaper-girella-1024x768.jpg.zip" target="_blank" onclick="trackWallDownload();"/> <area shape="rect" coords="2,31,56,44" alt="wallpaper" href="img/wallpaper/wallpaper'+wall+'/Wallpaper-girella-1280x800.jpg.zip" target="_blank" onclick="trackWallDownload();"/> <area shape="rect" coords="68,4,131,15" alt="wallpaper" href="img/wallpaper/wallpaper'+wall+'/Wallpaper-girella-1280x1024.jpg.zip" target="_blank" onclick="trackWallDownload();"/> <area shape="rect" coords="68,18,132,31" alt="wallpaper" href="img/wallpaper/wallpaper'+wall+'/Wallpaper-girella-1600x1200.jpg.zip" target="_blank" onclick="trackWallDownload();"/> <area shape="rect" coords="68,32,131,44" alt="wallpaper" href="img/wallpaper/wallpaper'+wall+'/Wallpaper-girella-1920x1200.jpg.zip" target="_blank" onclick="trackWallDownload();"/> </map></td>'+a}b=b+"</table></div>";return b}function trackWallDownload(){_gaq.push(["_trackPageview","/downloads/wallpaper"])}function buildGifCont(){var a='<img style="cursor:pointer" src="img/emot/gif_1.png" width="58" height="58" alt="gif1" class="emotButton" id="gif_1"/> <img style="cursor:pointer" src="img/emot/gif_2.png" width="58" height="58" alt="gif2" class="emotButton" id="gif_2"/> <img style="cursor:pointer" src="img/emot/gif_3.png" width="58" height="58" alt="gif3" class="emotButton" id="gif_3"/> <img style="cursor:pointer" src="img/emot/gif_4.png" width="58" height="58" alt="gif4" class="emotButton" id="gif_4"/>  <img style="cursor:pointer" src="img/emot/gif_6.png" width="58" height="58" alt="gif6" class="emotButton" id="gif_6"/> <img style="cursor:pointer" src="img/emot/gif_7.png" width="58" height="58" alt="gif7" class="emotButton" id="gif_7"/> <img style="cursor:pointer" src="img/emot/gif_8.png" width="58" height="58" alt="gif8" class="emotButton" id="gif_8"/><br /><img style="cursor:pointer" src="img/emot/gif_5.png" width="58" height="58" alt="gif5" class="emotButton" id="gif_5"/><img style="cursor:pointer" src="img/emot/gif_10.png" width="58" height="58" alt="gif10" class="emotButton" id="gif_10"/><img style="cursor:pointer" src="img/emot/gif_9.png" width="58" height="58" alt="gif9" class="emotButton" id="gif_9"/><img style="cursor:pointer" src="img/emot/gif_11.png" width="58" height="58" alt="gif11" class="emotButton" id="gif_11"/> <img style="cursor:pointer" src="img/emot/gif_12.png" width="58" height="58" alt="gif12" class="emotButton" id="gif_12"/><img style="cursor:pointer" src="img/emot/gif_13.png" width="58" height="58" alt="gif13" class="emotButton" id="gif_13"/>';return a}function initEmoticonsButton(){$$(".emotButton").each(function(a){a.addEvent("mouseover",function(){a.set("src","img/emot/"+a.id+"_b.png")});a.addEvent("mouseout",function(){a.set("src","img/emot/"+a.id+".png")});a.addEvent("click",function(){var e=a.id;var c=a.id+"_code";var b=(e.replace("gif_","0"))+".gif";var d=(e.replace("_","0"));$("gif_code").set("html","");$("gif_code").set("html",'<table width="520" border="0" cellspacing="0" cellpadding="0" style="height:100px"><tr><td rowspan="3" width="120" style="height:100px;"><img src="img/emot/gif_animate_girella/'+b+'" width="100" height="100" alt="'+d+'" /></td><td width="60" height="33">LINK</td><td width="340"><input style="width:330px" type="text" readonly="readonly" value="http://www.girella.it/public/emoticon/'+d+'.gif" /></td></tr><tr><td height="33">HTML</td><td><input style="width:330px" type="text" readonly="readonly" value="&lt;img href=\'http://www.girella.it/public/emoticon/'+d+'.gif\'/&gt;" /></td></tr><tr><td height="34">FORUM</td><td><input style="width:330px" type="text" readonly="readonly" value="[img]http://www.girella.it/public/emoticon/'+d+'.gif[/img]" /></td></tr></table>')})})};
