/* jquery/plugins/jquery.cookie.js */
jQuery.cookie=function(name,value,options){if(typeof value!='undefined'){options=options||{};if(value===null){value='';options.expires=-1;}
var expires='';if(options.expires&&(typeof options.expires=='number'||options.expires.toUTCString)){var date;if(typeof options.expires=='number'){date=new Date();date.setTime(date.getTime()+(options.expires*24*60*60*1000));}else{date=options.expires;}
expires='; expires='+date.toUTCString();}
var path=options.path?'; path='+(options.path):'';var domain=options.domain?'; domain='+(options.domain):'';var secure=options.secure?'; secure':'';document.cookie=[name,'=',encodeURIComponent(value),expires,path,domain,secure].join('');}else{var cookieValue=null;if(document.cookie&&document.cookie!=''){var cookies=document.cookie.split(';');for(var i=0;i<cookies.length;i++){var cookie=jQuery.trim(cookies[i]);if(cookie.substring(0,name.length+1)==(name+'=')){cookieValue=decodeURIComponent(cookie.substring(name.length+1));break;}}}
return cookieValue;}};
/* jquery/plugins/jquery.jcarousellite.js */
(function($){$.fn.jCarouselLite=function(o){o=$.extend({btnPrev:null,btnNext:null,btnGo:null,mouseWheel:false,auto:null,speed:200,easing:null,vertical:false,circular:true,visible:3,start:0,scroll:1,slot:1,customHeight:null,section:null,total:0,beforeStart:null,afterEnd:null,id:null,initLink:null,autoInt:null},o||{});return this.each(function(){var running=false,animCss=o.vertical?"top":"left",sizeCss=o.vertical?"height":"width";var div=$(this),ul=$("ul",div),tLi=$("li",ul),tl=tLi.size(),v=o.visible;if(o.circular){ul.prepend(tLi.slice(tl-v-1+1).clone()).append(tLi.slice(0,v).clone());o.start+=v;}
var li=$("li",ul),itemLength=li.size(),curr=o.start;div.css("visibility","visible");li.css({overflow:"hidden",float:o.vertical?"none":"left"});ul.css({margin:"0",padding:"0",position:"relative","list-style-type":"none","z-index":"1"});div.css({overflow:"hidden",position:"relative","z-index":"2",left:"0px"});var liHeight=height(li)
if(o.customHeight!=null)
liHeight=o.customHeight;var liSize=o.vertical?liHeight:width(li);var ulSize=liSize*itemLength;var divSize=liSize*v;li.css({width:li.width(),height:liHeight});ul.css(sizeCss,ulSize+"px").css(animCss,-(curr*liSize));div.css(sizeCss,divSize+"px");if(o.section)
$('.'+o.section+'1').addClass('selected');if(o.btnPrev)
$(o.btnPrev).click(function(){clearInterval(o.autoInt);return go(curr-o.scroll);});if(o.initLink){$(o.initLink).click(function(){selectTab($(this))
if(curr==null){curr=3;}
go(curr);return false;})}
$('.jcs1').click(function(){clearInterval(o.autoInt);return go(o.visible*1);});$('.jcs2').click(function(){clearInterval(o.autoInt);return go(o.visible*2);});$('.jcs3').click(function(){clearInterval(o.autoInt);return go(o.visible*3);});$('.jcs4').click(function(){clearInterval(o.autoInt);return go(o.visible*4);});$('.jcs5').click(function(){clearInterval(o.autoInt);return go(o.visible*5);});if(o.section!=null){for(t=1;t<=o.total/o.visible;t++){el='.'+o.section+t;$(el).click(function(){itemNum=$(this).attr('class').substring(o.section.length,o.section.length+1);return go(o.visible*itemNum);});}}
if(o.btnNext)
$(o.btnNext).click(function(){clearInterval(o.autoInt);return go(curr+o.scroll);});if(o.btnGo)
$.each(o.btnGo,function(i,val){$(val).click(function(){return go(o.circular?o.visible+i:i);});});if(o.mouseWheel&&div.mousewheel)
div.mousewheel(function(e,d){return d>0?go(curr-o.scroll):go(curr+o.scroll);});if(o.auto)
o.autoInt=setInterval(function(){go(curr+o.scroll);},o.auto+o.speed);function vis(){return li.slice(curr).slice(0,v);};function go(to){if(!running){if(o.id==null||(o.id!=null&&o.id==currentCarousel)){if(o.beforeStart)
o.beforeStart.call(this,vis());if(o.circular){if(to<=o.start-v-1){ul.css(animCss,-((itemLength-(v*2))*liSize)+"px");curr=to==o.start-v-1?itemLength-(v*2)-1:itemLength-(v*2)-o.scroll;}else if(to>=itemLength-v+1){ul.css(animCss,-((v)*liSize)+"px");curr=to==itemLength-v+1?v+1:v+o.scroll;}else{curr=to;}}else{if(to<0||to>itemLength-v){return;}else{curr=to;}}
running=true;ul.animate(animCss=="left"?{left:-(curr*liSize)}:{top:-(curr*liSize)},o.speed,o.easing,function(){if(o.afterEnd)
o.afterEnd.call(this,vis());running=false;});if(!o.circular){$(o.btnPrev+","+o.btnNext).removeClass("disabled");$((curr-o.scroll<0&&o.btnPrev)||(curr+o.scroll>itemLength-v&&o.btnNext)||[]).addClass("disabled");}
setSection(curr,o);}}
return false;};});};function setSection(curr,o){if(curr==o.total+o.visible){o.slot=1;}else if(curr==0){o.slot=o.visible+1;}else{o.slot=curr/o.visible;}
pos=(o.slot-1)*52;$('#section').css("background-position","-"+pos+"px 0px");if(o.section!=null){if(isNaN(o.slot)!=true){for(var i=1;i<=(o.total/o.visible);i++){if(o.slot!=i&&$('.'+o.section+i).hasClass('selected'))
$('.'+o.section+i).removeClass('selected');}
if($('.'+o.section+o.slot).hasClass('selected')==false)
$('.'+o.section+o.slot).addClass('selected');}else{}}}
function css(el,prop){return parseInt($.css(el[0],prop))||0;};function width(el){return el[0].offsetWidth+css(el,'marginLeft')+css(el,'marginRight');};function height(el){return el[0].offsetHeight+css(el,'marginTop')+css(el,'marginBottom');};})(jQuery);
/* jquery/plugins/jquery.easing.1.3.js */
jQuery.easing['jswing']=jQuery.easing['swing'];jQuery.extend(jQuery.easing,{def:'easeOutQuad',swing:function(x,t,b,c,d){return jQuery.easing[jQuery.easing.def](x,t,b,c,d);},easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t+b;},easeOutQuad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b;},easeInOutQuad:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t+b;return-c/2*((--t)*(t-2)-1)+b;},easeInCubic:function(x,t,b,c,d){return c*(t/=d)*t*t+b;},easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b;},easeInOutCubic:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t+b;return c/2*((t-=2)*t*t+2)+b;},easeInQuart:function(x,t,b,c,d){return c*(t/=d)*t*t*t+b;},easeOutQuart:function(x,t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b;},easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t+b;return-c/2*((t-=2)*t*t*t-2)+b;},easeInQuint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b;},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b;},easeInOutQuint:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t*t+b;return c/2*((t-=2)*t*t*t*t+2)+b;},easeInSine:function(x,t,b,c,d){return-c*Math.cos(t/d*(Math.PI/2))+c+b;},easeOutSine:function(x,t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+b;},easeInOutSine:function(x,t,b,c,d){return-c/2*(Math.cos(Math.PI*t/d)-1)+b;},easeInExpo:function(x,t,b,c,d){return(t==0)?b:c*Math.pow(2,10*(t/d-1))+b;},easeOutExpo:function(x,t,b,c,d){return(t==d)?b+c:c*(-Math.pow(2,-10*t/d)+1)+b;},easeInOutExpo:function(x,t,b,c,d){if(t==0)return b;if(t==d)return b+c;if((t/=d/2)<1)return c/2*Math.pow(2,10*(t-1))+b;return c/2*(-Math.pow(2,-10*--t)+2)+b;},easeInCirc:function(x,t,b,c,d){return-c*(Math.sqrt(1-(t/=d)*t)-1)+b;},easeOutCirc:function(x,t,b,c,d){return c*Math.sqrt(1-(t=t/d-1)*t)+b;},easeInOutCirc:function(x,t,b,c,d){if((t/=d/2)<1)return-c/2*(Math.sqrt(1-t*t)-1)+b;return c/2*(Math.sqrt(1-(t-=2)*t)+1)+b;},easeInElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4;}
else var s=p/(2*Math.PI)*Math.asin(c/a);return-(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;},easeOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4;}
else var s=p/(2*Math.PI)*Math.asin(c/a);return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b;},easeInOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d/2)==2)return b+c;if(!p)p=d*(.3*1.5);if(a<Math.abs(c)){a=c;var s=p/4;}
else var s=p/(2*Math.PI)*Math.asin(c/a);if(t<1)return-.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*.5+c+b;},easeInBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*(t/=d)*t*((s+1)*t-s)+b;},easeOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b;},easeInOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;if((t/=d/2)<1)return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b;return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b;},easeInBounce:function(x,t,b,c,d){return c-jQuery.easing.easeOutBounce(x,d-t,0,c,d)+b;},easeOutBounce:function(x,t,b,c,d){if((t/=d)<(1/2.75)){return c*(7.5625*t*t)+b;}else if(t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+.75)+b;}else if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+.9375)+b;}else{return c*(7.5625*(t-=(2.625/2.75))*t+.984375)+b;}},easeInOutBounce:function(x,t,b,c,d){if(t<d/2)return jQuery.easing.easeInBounce(x,t*2,0,c,d)*.5+b;return jQuery.easing.easeOutBounce(x,t*2-d,0,c,d)*.5+c*.5+b;}});
/* generic.js */
var cL=null;var cR=null;var sP=null;var sPW=1003;function loginStatus(){if(document.getElementById('signIn')){el=document.getElementById('signIn')
el.style.background="#69901F url('/img/small_loader.gif') no-repeat center";el.style.width="33px";el.firstChild.nodeValue="\u00A0";clearInterval(loginStatusInt);}}
loginStatusInt=setInterval('loginStatus()',10);function createSideBarClick(){sP=document.getElementsByTagName('body')[0];if(sP){cL=document.createElement('a');cR=document.createElement('a');cL.setAttribute('id','sideClickLeft');cL.setAttribute('href',lL);cL.setAttribute('target',lT);cR.setAttribute('id','sideClickRight');cR.setAttribute('href',lR);cR.setAttribute('target',lT);sP.appendChild(cL);sP.appendChild(cR);resizeSideBars();}}
function resizeSideBars(){var cW=Math.floor((sP.offsetWidth-sPW)/2)+'px'
cL.style.width=cW
cR.style.width=cW
cL.style.height=sP.clientHeight+'px'
cR.style.height=sP.clientHeight+'px'}
function sideBarClick(linkLeft,linkRight,linkTarget){lL=linkLeft;lR=linkRight;lT=linkTarget;window.onresize=resizeSideBars;createSideBarClick();}
$('#call_to_action').ready(function(){var full_name=null;var group_id=null;if($.cookie){var full_name=$.cookie('CakeCookie[user]');var group_id=$.cookie('CakeCookie[group_id]');}
if(full_name!=null){full_name=full_name.replace("+"," ");$('#call_to_action > h4').replaceWith('<h4>WELCOME</h4><h4 class="logged_in_user">'+full_name+'</h4>');}
if(group_id!=null){$("a.users-login").replaceWith("<a href='/users/logout/' class='users-login'>Sign Out</a>");if(group_id>1){$('#call_to_action > p').replaceWith('<h4><a href="/admin/">Admin</a></h4>');}else{$('#call_to_action > p').replaceWith('<h4><a href="/users/profile">Edit Profile</a></h4>');}}else{$("a.users-login").replaceWith("<a href='/users/login' class='users-login'>Sign In</a>");}});function initRating(){$('input.star').each(function(){$(this).rating();});}
$('div.editPassword').ready(function(){$('div.editPassword').hide();$('a.changePassword').click(function(){$("div.editPassword").slideToggle("slow");return false;})});$(document).ready(function(){$('#rated_box > h3 > a > img').css('visibility','visible');$('a.outlink').attr('target','_blank');if($('body').is('#users-login')){}else{$('#flashMessage').fadeOut('10000');}
clearInterval(fcInt);});function showTakeover(){try{enable_takeover();clearInterval(updatebg);}catch(e){}}
$(document).ready(function(){try{enable_takeover();}catch(e){updatebg=setInterval('showTakeover()',5000);}});function checkCarousel(){if($('#featuresCarousel > ul').length){$('#featuresCarousel').css('background',"white url(/img/fc_loader.gif) no-repeat center 37px")
$('#featuresCarousel > ul > li:eq(0) > h4').css('visibility',"hidden");$('#featuresCarousel > ul > li:eq(1) > h4').css('visibility',"hidden");$('#featuresCarousel > ul > li:eq(2) > h4').css('visibility',"hidden");$('.fcTab2').css('visibility',"hidden");$('.fcTab3').css('visibility',"hidden");clearInterval(fcInt);}}
fcInt=setInterval('checkCarousel()',50)
function selectTab(el){var tabNum=el.parent().parent().attr('class');tabNum=tabNum.substring(tabNum.length-1);for(k=1;k<4;k++){if(tabNum!=k){$('.fcTab'+k).hide();$('.fcList'+k+' > h4 > a').removeClass('selected');}else{el.addClass('selected');$('.fcTab'+tabNum).show();currentCarousel='.fcTab'+tabNum;}}}
var currentCarousel=".fcTab1";$('#featuresCarousel').ready(function(){if($('#featuresCarousel').length){$('#featuresCarousel > ul > li:eq(0) > h4').removeAttr('style')
$('#featuresCarousel > ul > li:eq(1) > h4').removeAttr('style')
$('#featuresCarousel > ul > li:eq(2) > h4').removeAttr('style')
$('#featuresCarousel').append('<div class="section"><a class="prev" href="#"> </a> <a class="next" href="#"> </a><ul><li><a class="fc1" href="#">1</a></li><li><a class="fc2" href="#">2</a></li><li><a class="fc3" href="#">3</a></li><li><a class="fc4" href="#">4</a></li></ul></div>');fcTab=new Array();var pos=0;for(i=1;i<4;i++){if($(".fcTab"+i).length){fcTab[i]=$(".fcTab"+i).jCarouselLite({btnNext:"#featuresCarousel .section .next",btnPrev:"#featuresCarousel .section .prev",scroll:3,easing:'easeOutQuad',speed:300,visible:3,total:12,customHeight:"22em",section:"fc",id:".fcTab"+i,initLink:".fcList"+i+" > h4 > a"});if(i>=2){pos+=$(".fcList"+(i-1)+" > h4").width();if($.browser.msie&&parseInt($.browser.version)==8){pos+=1;}
$(".fcList"+i+" > h4").css('left',pos)}}}
$('.fcTab2').removeAttr('style')
$('.fcTab3').removeAttr('style')
selectTab($(".fcList1 > h4 > a"));}})
$('#coreTrailers').ready(function(){if($("#coreTrailers").length){$('#loadingTrailers').hide();if($("#webtv_trailers-index #coreTrailers").length){$('#content_main > h1').hide();$('#coreTrailers').prepend("<h1>Trailer &amp; Video Highlights</h1>").fadeIn();$('#coreTrailers').append('<a class="prev" href="#"> </a> <a class="next" href="#"> </a><div id="section"> </div> <a class="jcs1" href="#"> </a><a class="jcs2" href="#"> </a><a class="jcs3" href="#"> </a> <a class="jcs4" href="#"> </a><a class="jcs5" href="#"> </a>');$("#coreTrailersList").jCarouselLite({btnNext:"#coreTrailers .next",btnPrev:"#coreTrailers .prev",scroll:4,easing:'easeOutQuad',speed:300,visible:4,total:20,auto:5000});}
if($("#webtv_trailers-view #coreTrailers").length){$('#descSharePrint > h2').hide();if($('#coreTrailersList > ul').children().size()>2)
$('#coreTrailers').append('<a class="prev" href="#"> </a> <a class="next" href="#"> </a>');num=$('#coreTrailersList > ul').children().size()
$('#coreTrailers').prepend("<h2>Related video ("+num+")</h2>").fadeIn();$("#coreTrailersList").jCarouselLite({btnNext:"#coreTrailers .next",btnPrev:"#coreTrailers .prev",scroll:1,easing:'easeOutQuad',speed:300,visible:2});}
if($("#carousels-index #coreTrailers").length){num=$('#coreTrailersList > ul').children().size()
if(num>3){$('#coreTrailers').append('<a class="prev" href="#"> </a> <a class="next" href="#"> </a>');$('#coreTrailers > h3').append(' ('+num+')');}
$("#coreTrailersList").jCarouselLite({btnNext:"#coreTrailers .next",btnPrev:"#coreTrailers .prev",scroll:1,easing:'easeOutQuad',speed:300,visible:3});}
if($("#products-view #coreTrailers").length){num=$('#coreTrailersList > ul').children().size()
if(num>3){$('#coreTrailers').append('<a class="prev" href="#"> </a> <a class="next" href="#"> </a>');$('#coreTrailers > h3').append(' ('+num+')');$("#coreTrailersList").jCarouselLite({btnNext:"#coreTrailers .next",btnPrev:"#coreTrailers .prev",scroll:1,easing:'easeOutQuad',speed:300,visible:3});}}}});
/* moveAds.js */
filler=false;hidempu=false;hidempu2=false;hidesupersky=false;hideskyscraper=false;containerMarginTop=30;containerPositionTop=30;function show_filler(){filler=true;}
function hideAd(ad){$('#'+ad+'_container').hide();$('#'+ad).hide();this['hide'+ad]=true;}
function setAds()
{super_leader_height=0;if($('#superLeaderboard').length>0)
super_leader_height=parseInt($('#superLeaderboard').height());if($('#superLeaderboard2').length>0)
super_leader_height=parseInt($('#superLeaderboard2').height());move_ads_offset=0;if(super_leader_height>50){move_ads_offset=super_leader_height+10;if($.browser.msie&&$.browser.version.substr(0,1)==7){container_new_top=containerPositionTop+super_leader_height+10;$('#container').css('top',container_new_top);}else if($.browser.msie&&$.browser.version.substr(0,1)==6){container_new_margin=containerMarginTop+super_leader_height-20;$('#container').css('margin-top',container_new_margin);move_ads_offset=super_leader_height+10;}else{container_new_margin=containerMarginTop+super_leader_height+10;$('#container').css('margin-top',container_new_margin);}}
if($('#mpu_container').children().length>0&&hidempu!=true){offset=$('#mpu_container').offset();$('#mpu').css("top",offset.top-20-move_ads_offset).show();}
if($('#mpu2_container').children().length>0&&hidempu2!=true){offset=$('#mpu2_container').offset();$('#mpu2').css("top",offset.top-20-move_ads_offset).show();}
if($('#supersky_container').children().length>0&&hidesupersky!=true){if(filler==true&&$('#events').children().length<=0){$('#supersky_container').css('width','170px')
$('#supersky_filler').css('display','block')
$('#supersky_filler').load('/nosupersky #nosupersky')
filler=false;}
offset=$('#supersky_container').offset();$('#supersky').css("top",offset.top-20-move_ads_offset).show();}
if($('#skyscraper_container').children().length>0&&hideskyscraper!=true){offset=$('#skyscraper_container').offset();$('#skyscraper').css("top",offset.top-30-move_ads_offset).show();}}
$(document).ready(function(){clearInterval(moveAdsInt);showAgain=setTimeout(setAds,3000);});$(window).resize(function(){setAds();});moveAdsInt=setInterval('setAds()',50);
/* gallery.js */
$('a.galleryLink').ready(function(){$('a.galleryLink').click(function(){winHeight=700;if(screen.height>950){winHeight=900;}
var openWindow=window.open(this.href,"GalleryPopup",'height='+winHeight+',width=1000,toolbar=0,menubar=0,scrollbars=1,resizable=1,location=0,directories=0,status=0');return(openWindow?false:true);})})
/* tabbedBox.js */
var activeTabs=function(tabbedBox){this.tabbedBox=(tabbedBox)?$(tabbedBox):$('#tabbedBox');this.boxTabs=new Array;this.boxTabAnchors=new Array;this.boxLists=new Array;this.selectedTab=0;this.vanishClass=" invisible";this.vanishment=new RegExp((" invisible"),"g");this.tabbedBox.selfRef=this;}
activeTabs.prototype={setup:function(){this.boxTabs=this.tabbedBox.children('ul.tabs').children('li');this.boxLists=this.tabbedBox.children('ul.tabs').children('li').children('div');this.boxTabAnchors=this.tabbedBox.children('ul.tabs').children('li').children('a.tabLink');for(var i=0;i<this.boxTabs.length;i++){if(this.vanishment.test(this.boxTabs[i].className)==0){this.selectedTab=i;break;}}},showTab:function(){if(this.thisLink==this.boxTabAnchors[this.selectedTab]){return false;}
for(var i=0;i<this.boxTabs.length;i++){if(this.boxTabAnchors[i]===this.thisLink){this.boxTabs[i].className=this.boxTabs[i].className.split(" ")[0];this.selectedTab=i;}else{this.boxTabs[i].className+=(this.vanishment.test(this.boxTabs[i].className)?"":this.vanishClass);}}
if($('#carousels-index').children().length>1){setAds();}
return false;}}
$(document).ready(function(){$('.activeTabs').each(function(){this.activeTabsHook=new activeTabs(this);});$('.activeTabs').each(function(){var tempThis=this;$(this).children('ul.tabs').children('li').children('a.tabLink').each(function(){this.theTabbedBox=tempThis});this.activeTabsHook.setup();$(this).children('ul.tabs').children('li').children('a.tabLink').click(function(){this.theTabbedBox.activeTabsHook.thisLink=this;this.theTabbedBox.activeTabsHook.showTab();return false;});});})
/* formTextToggle.js */
function clearFormField(fieldId,initValue)
{if((typeof fieldId!="object")&&(!($(fieldId))))return;var inputField=$(fieldId);if(inputField==null)return;inputField.initialValue=(initValue?initValue:inputField.value);inputField.focus(function()
{if(this.value==inputField.initialValue)
{this.value="";}});inputField.blur(function()
{if(this.value=="")
{this.value=inputField.initialValue;}});}
$(document).ready(function(){setUpClear();})
attempts=0;

clearForms=setInterval('setUpClear()',500);