function nav(id,img){ $(id).src = img; } function flash(c){ /*var s1 = new SWFObject("swf/"+c+".swf", "single","1000","600","7","#000000"); s1.addParam("wmode","transparent"); s1.addParam("salign", "R"); s1.write("flash");*/ } function flashsound(){ var s2 = new SWFObject("swf/sound.swf", "soundit","10","10","7","#000000"); s2.addParam("wmode","transparent"); s2.write("sound"); go2(0); } function flashnew(){ var s1 = new SWFObject("swf/USM_full_background.swf", "testcommand","1000","600","7","#000000"); s1.addParam("wmode","transparent"); s1.write("flashbg"); go(8); } var lid; var lname; var lid2; var lover; var lout; var lref; var llid; var llname; var llid2; var llover; var llout; var llref; var c; var lllid; var lllref; var lasttop; function showit(c){ var effect = new Effect.Grow('contentbox',{ duration: 1.2 }); $('content').show(); $('loader').hide(); //go(c); setTimeout('scrollit()',2000); } function scrollset(){ //setTimeout('scrollDenDiv(2)',2000); } function scrollit(){ //alert($('text').scrollHeight +'>'+ $('text').offsetHeight); if($('text').scrollHeight > $('text').offsetHeight){ $('arrow_bottom').show(); }else{ $('arrow_bottom').hide(); } $('klickstop').hide(); } function scrollit2(){ //alert($('text').scrollHeight +'>'+ $('text').offsetHeight); if($('text3').scrollHeight > $('text3').offsetHeight){ $('arrow_bottom3').show(); }else{ $('arrow_bottom3').hide(); } } function endit(){ $('contentbox3').hide(); $('klickstop2').hide(); } function loading(id){ $(id).innerHTML = ''; } function carousel(dir){ lasttop = $('text').scrollTop; $('text3').innerHTML = $('text').innerHTML; $('text').innerHTML = ''; //new Effect.Grow('contentbox2',{ queue: { position: 'end', scope: 'menuxscope', limit: 1} }); $('arrow_left').show(); $('arrow_top').hide(); $('arrow_bottom').hide(); new Ajax.Updater( 'text', 'front_content.php?idart=45&dir='+dir, { method: 'post' } ); $('text').scrollTop = 0; } function carouselimg(img){ $('text2').innerHTML = $('text').innerHTML; $('text').innerHTML = ''; $('arrow_left2').show(); } function box1back(){ $('arrow_left1').hide(); } function box2back(){ $('arrow_left2').hide(); $('text').innerHTML = $('text2').innerHTML; } function box2hide(){ $('arrow_left').hide(); $('arrow_top').hide(); $('arrow_bottom').hide(); $('text').innerHTML = $('text3').innerHTML; } var px = 6; var timer; function scrollDenDiv(val){ clearTimeout(timer); d=document.getElementById('text'); y=d.scrollTop; if(val==1)y-=px; if(val==2)y+=px; if(y<=d.scrollHeight-d.offsetHeight+px&&y>=0-px){ d.scrollTop=y; if(y <= 0){ $('arrow_top').hide(); }else{ $('arrow_top').show(); $('arrow_bottom').show(); } timer=setTimeout('scrollDenDiv('+val+')',50); } if(y<0||y>d.scrollHeight-d.offsetHeight){ $('arrow_bottom').hide(); clearTimeout(timer); } if(y<=0){ $('arrow_bottom').show(); } } function scrollDenDiv2(val){ clearTimeout(timer); d=document.getElementById('text3'); y=d.scrollTop; if(val==1)y-=px; if(val==2)y+=px; if(y<=d.scrollHeight-d.offsetHeight+px&&y>=0-px){ d.scrollTop=y; if(y <= 0){ $('arrow_top').hide(); }else{ $('arrow_top3').show(); $('arrow_bottom3').show(); } timer=setTimeout('scrollDenDiv2('+val+')',50); } if(y<0||y>d.scrollHeight-d.offsetHeight){ $('arrow_bottom3').hide(); clearTimeout(timer); } if(y<=0){ $('arrow_bottom3').show(); } }