/* Copyright (c) 2010 www.mailrouge.com - no copy or any usage allowed without explicit and nominative and written authorisation of mailrouge.com */
/* 2010-04, 21 [21:30:26] */
function reset_flcsize(){if(reset_flc=="0"){$('#flc').css({width:2000});idone++;return;}var srch=_parseInt(screen.availHeight);var srcw=_parseInt(screen.availWidth);var diff=22;if(srcw<=1280){var neww=1280-diff;$('#flc').css({width:neww});}else if(srcw<1680){var neww=srcw-diff;$('#flc').css({width:neww});}idone++;}$(document).ready(function(){$().mousemove(function(e){mmxy(e);});});var mmx=0;var mmy=0;function mmxy(e){mmx=e.pageX;mmy=e.pageY;}if(1==1){var mousex=0;var mousey=0;function getMouseXY(e){if(!e)e=window.event;if(e){if(e.pageX||e.pageY){mousex=e.pageX;mousey=e.pageY;}else if(e.clientX||e.clientY){mousex=e.clientX+document.body.scrollLeft;mousey=e.clientY+document.body.scrollTop;}}}function update(e){getMouseXY(e);movecomment();}var mybr=String.fromCharCode(13,10);var what_class='';var nocomment_=[];function show_comment(mystring,posxy,isesc){if(nocomment)return;if(!posxy)posxy='';if(!isesc)isesc='';var myitem=document.getElementById('divcomments');myitem.style.display='none';myitem.innerHTML='';what_class=(isesc&&isesc.indexOf('menu')==0)?'2':'';myitem.className='comments'+what_class;if(isesc){var mycomment=id_exists('comment_'+isesc);if(mycomment){var tempo=mycomment.innerHTML;if(tempo)mystring=tempo;}}check_commentsize(myitem,mystring);if(!posxy)movecomment();else if(posxy&&posxy!='-1'){var myxy=posxy.split(',');var tempo='';for(var i=0;i<myxy.length;i++){if(myxy[i]=='null')myxy[i]=null;if(myxy[i]!=null)myxy[i]=_parseInt(myxy[i]);}movecomment(myxy[0],myxy[1],myxy[2],myxy[3],myxy[4],myxy[5],myxy[6]);}}function check_commentsize(myitem,mystring){if(nocomment)return;var basewidth=_parseInt(myitem.getAttribute('basewidth'+what_class));var mydivc2=id_exists('divc2');mydivc2.className='comments'+what_class;mydivc2.innerHTML=mystring;var fullwidth=_parseInt(mydivc2.scrollWidth);if(fullwidth<(basewidth-10)||fullwidth<(basewidth+50))myitem.style.width=fullwidth+5;else myitem.style.width=basewidth;myitem.innerHTML=mystring;}function movecomment(myx,myy,tip_x,tip_y,dec_x,dec_y,ins_xy){if(nocomment)return;if(myx==null)myx=mousex;else myx=myx;if(myy==null)myy=mousey;else myy=myy;var myitem=document.getElementById('divcomments');var mydeca_y=ideca_['y'+what_class];var decaly=(dec_y==null)?mydeca_y:dec_y;var mywidth=_parseInt(myitem.style.width);var myheight=_parseInt(myitem.style.height);if(ins_xy){if(ins_xy==1||ins_xy==2)myx-=mywidth;if(ins_xy==2||ins_xy==3)myy+=myheight;}decaly-=ideca_['yauto'+what_class]*myheight;var mydeca_height=ideca_['height'+what_class];if(mydeca_height)decaly+=_parseInt(mydeca_height*myheight);myitem.style.top=myy+decaly;var mydeca_width=ideca_['width'+what_class];var decalx=_parseInt(mywidth*ideca_['xauto'+what_class]);if(!decalx)decalx=ideca_['x'+what_class];if(tip_x!=null)decalx=0;if(dec_x!=null)decalx=dec_x;if(mydeca_width)decalx=_parseInt(mydeca_width*mywidth)+dec_x;var newx=myx-decalx;myitem.style.left=newx;myitem.style.display='';}var nocomment=false;function hide_comment(){var myitem=document.getElementById('divcomments');myitem.style.display='none';myitem.style.left=-1000;myitem.style.top=-1000;}}function diapo(myitem,opt){if(typeof go_diapo=='function')go_diapo(myitem,opt);else if(typeof diaso=='string'){$.getScript(diaso,function(){if(typeof go_diapo=='function')go_diapo(myitem,opt);});}}function init(){idone++;reset_flcsize();}$(document).ready(function(){init();$('div[news][class^=aslink]').hover(function(){$(this).css({textDecoration:'underline'});},function(){$(this).css({textDecoration:'none'});});diapo(null);if(id_exists('divdeezer')&&$('#divdeezer').attr('start')=='on'&&typeof parent.isaw!='function'&&!nomusic)window.setTimeout(function(){diapo('ndee','on');},5000);window.setTimeout(function(){$('[someadded]:hidden').show();},4000);});