// rd_lib 1.4.2 111010
// DO NOT EDIT PAST THIS POINT

// sync-include version 1.0.1 110419
// plugins.jquery.com/project/sync-include
$.extend({includePath:'',include:function(file){var files=typeof file=="string"?[file]:file;var arlen=files.length;for(var i=0;i<arlen;i++){var name=files[i].replace(/^\s|\s$/g,"");var att=name.split('.');var ext=att[att.length-1].toLowerCase();var isCSS=ext=="css";var tag=isCSS?"link":"script";var attr=isCSS?" type='text/css' rel='stylesheet' ":" language='javascript' type='text/javascript' ";var link=(isCSS?"href":"src")+"='"+$.includePath+name+"'";if($(tag+"["+link+"]").length==0)document.write("\n<"+tag+attr+link+"></"+tag+">");}}});
// end sync-include
// smart path detector v 1.0.1 110526
// Include in rd_setup.js // rd_inc : name of the script directory, generally "_include" // var rd_inc ="_include";
if(typeof rd_inc=='undefined'){var rd_inc='_include';};var rd_incpath=$('script[src*="'+rd_inc+'/jquery/jquery.js"]').attr('src'); rd_dir=rd_incpath.substr(0,rd_incpath.indexOf(rd_inc));
// end smart path detector

$.includePath  = rd_dir+'_include/jquery/';
$.include(['jquery-ui-1.8.16.custom.min.js', 'flick/jquery-ui-1.8.16.custom.css', 'jquery.bgiframe.min.js', 'jquery.cookie.js', 'jquery.tipsy.min.js', 'jquery.kwicks-1.5.1.min.js', 'jquery.vticker.1.4.min.js', 'jquery.flux.min.js', 'jquery.jsocial.js']);
// include 'jquery.ui.datepicker-fr.js' for french translation.
// Slimbox
$.include(['slimbox/jquery.slimbox.js']);
(rd_page_lang == 'fr') ? $.include(['slimbox/jquery.slimbox.css']) : $.include(['slimbox/jquery.slimbox_en.css']);

// Galleria
$.include(['galleria/galleria-1.2.5.min.js', 'galleria/galleria.classic.min.js', 'galleria/galleria.classic.css']);
// end load external files

// doc ready rd_jghost version 1.0.0 101100
var rd_css="not_checked";$(document).ready(function(){if($('#rd_ghost').css('display')=='block'){rd_css='deactivated';var rd_css_opt_0={'position':'absolute','top':'2px','right':'2px','width':'150px','z-index':'100','filter':'alpha(opacity=71)','background':'#000','-moz-opacity':'0.71','opacity':'0.71'};var rd_css_opt_1={'display':'block','padding':'5px','font':'10px Tahoma, Geneva, sans-serif','color':'#FFF','text-align':'center'};$('#rd_ghost').css(rd_css_opt_0);$('#rd_ghost small').css(rd_css_opt_1);}else{rd_css='activated';}; $('div#rd_jghost small').css({'display':'block'}).html('_ javascript error');});
// Dev : $('div#rd_jghost small').text('_ Javascript error');} Prod $('div#rd_jghost small').html('<img src="blockui_anim_000000.gif" width="19" height="19" alt="" />  Loading...');}
// Place the following at the end of the page
// doc ready rd_jghost version 1.0.0_l1 91200 
// $(document).ready(function(){$('div#rd_jghost').remove();});
// end doc ready rd_jghost

// Lazyload
// $(function(){$('img').lazyload({placeholder : rd_dir+'_include/jquery/dot.png', effect: 'fadeIn'});});

// doc ready
$(document).ready(function(){

// not IE6
var the_browser = $.browser; var rd_noie6;
(the_browser.msie && the_browser.version < 7 )? rd_noie6=false : rd_noie6=true;

// Galleria
/*
Compatible with 1.2.5
<div id="rd_jgalleria_zero"><div id="rd_jgalleria"> image OR var rd_jgal_data = [{image: 'pix.png', layer: "<div><h5>XXX</h5><p>xxx</p></div>"}];</div></div>
css
#rd_jgal_zero { margin:2em 0 0; background:#3D3D3D; } #rd_jgal { background:#3D3D3D; }
.galleria-layer div {top:10px;left:10px; padding:5px; position:absolute; background:#000; color:#fff; filter:alpha(opacity=71); -moz-opacity: 0.71; opacity:0.71; }
.galleria-layer h5 {margin:0; padding:0; border:none; background: none; font-size:1.5em; color:#fff; } .galleria-layer p { font-size:1em; line-height:1em; margin:0.5em 0; }
Complete css
#rd_jgal_zero { position:relative; width:680px; height:390px; margin:2em 0 0; background:#3D3D3D; } #rd_jgal { position:absolute; width:920px; height:390px; left:-240px; background:#3D3D3D; }
#rd_jgal_zero { position:relative; width:680px; height:400px; margin:2em 0 0; background:#3D3D3D; } #rd_jgal { position:absolute; width:960px; height:410px; top:0; left:-260px; background:#3D3D3D; }
*/
var rd_jgal_zero_css={'position':'relative','width':'680px','height':'390px'};
var rd_jgal_css={'position':'absolute','width':'920px','height':'390px','left':'-240px'};
if ($('#rd_jgal').length > 0) { // if element galleria exists
if ( ((typeof rd_jgal_data!='undefined') || ($('#rd_jgal img').length > 0)) && rd_noie6) {$('#rd_jgal_zero').css(rd_jgal_zero_css); $('#rd_jgal').css(rd_jgal_css);
(typeof rd_jgal_data!='undefined') ? $('#rd_jgal').galleria({dataSource: rd_jgal_data, layerFollow:false, maxScaleRatio:1}) : $('#rd_jgal').galleria({layerFollow:false, maxScaleRatio:1});
};};

// color
$('div#rd_brand_01_l1 li a:contains("Eclipse")').addClass('rd_eclipse');
$('div#rd_brand_01_l1 li a').not('.rd_imhere, .rd_imhere_too, .rd_eclipse').hover(
function(){$(this).stop().animate({backgroundColor:"#f0f0f0"}, 300 )},
function(){$(this).stop().animate({backgroundColor:"#fbfbfb"}, 500 );});if ( rd_css == 'deactivated') { $('div#rd_brand_01_l1 li a').unbind();};
$('div#rd_content_01_l1 li a').not('.rd_imhere').hover(
function(){$(this).stop().animate({backgroundColor:"#f0f0f0"}, 300 )},
function(){$(this).stop().animate({backgroundColor:"#ffffff"}, 500 );});if ( rd_css == 'deactivated') { $('div#rd_content_01_l1 li a').unbind();};
$('.rd_kb a').hover(
function(){$(this).stop().animate({backgroundColor:"#dff4ff"}, 300 )},
function(){$(this).stop().animate({backgroundColor:"#f5f5f5"}, 500 );});if ( rd_css == 'deactivated') { $('ul.rd_tabs li a').unbind(); };

// tipsy version 1.0.0 101100
/* 
.tipsy { font:10px Tahoma, Geneva, sans-serif; padding:5px; filter:alpha(opacity=71); -moz-opacity: 0.71; opacity:0.71; background-repeat: no-repeat; position: absolute; z-index: 100000;  }
.tipsy-inner { padding: 5px 10px; background-color: black; color: white; max-width:250px; text-align: center; }
* html .tipsy-inner { width:250px; }
.tipsy-inner { border-radius: 2px; -moz-border-radius:2px; -webkit-border-radius:2px; }
.tipsy-arrow { position: absolute; background: url('tipsy.png') no-repeat top left; width: 9px; height: 5px; }
.tipsy-n .tipsy-arrow { top: 0; left: 50%; margin-left: -4px; }
.tipsy-nw .tipsy-arrow { top: 0; left: 10px; }
.tipsy-ne .tipsy-arrow { top: 0; right: 10px; }
.tipsy-s .tipsy-arrow { bottom: 0; left: 50%; margin-left: -4px; background-position: bottom left; }
.tipsy-sw .tipsy-arrow { bottom: 0; left: 10px; background-position: bottom left; }
.tipsy-se .tipsy-arrow { bottom: 0; right: 10px; background-position: bottom left; }
.tipsy-e .tipsy-arrow { top: 50%; margin-top: -4px; right: 0; width: 5px; height: 9px; background-position: top right; }
.tipsy-w .tipsy-arrow { top: 50%; margin-top: -4px; left: 0; width: 5px; height: 9px; }
.rd_jtipsy, .rd_jtipsy_n, .rd_jtipsy_s, .rd_jtipsy_e, .rd_jtipsy_w, .rd_jtipsy_ne, .rd_jtipsy_sw, .rd_jtipsy_se, .rd_jtipsy_nw, .rd_jtipsy_ns, .rd_jtipsy_we { visibility:visible; }
*/
$('.rd_jtipsy[title]').tipsy({ fade: true });
$('.rd_jtipsy_n[title]').tipsy({ gravity: "n", fade: true, delayIn: 500, delayOut: 250 }); $('.rd_jtipsy_s[title]').tipsy({ gravity: "s", fade: true, delayIn: 500, delayOut: 250 });
$('.rd_jtipsy_e[title]').tipsy({ gravity: "e", fade: true, delayIn: 500, delayOut: 250 }); $('.rd_jtipsy_w[title]').tipsy({ gravity: "w", fade: true, delayIn: 500, delayOut: 250 });
$('.rd_jtipsy_ne[title]').tipsy({ gravity: "ne", fade: true, delayIn: 500, delayOut: 250 }); $('.rd_jtipsy_sw[title]').tipsy({ gravity: "sw", fade: true, delayIn: 500, delayOut: 250 });
$('.rd_jtipsy_se[title]').tipsy({ gravity: "se", fade: true, delayIn: 500, delayOut: 250 }); $('.rd_jtipsy_nw[title]').tipsy({ gravity: "nw", fade: true, delayIn: 500, delayOut: 250 });
$('.rd_jtipsy_ns[title]').tipsy({gravity: $.fn.tipsy.autoNS, fade: true, delayIn: 500, delayOut: 250});
$('.rd_jtipsy_we[title]').tipsy({gravity: $.fn.tipsy.autoWE, fade: true, delayIn: 500, delayOut: 250});

// ui
if ( $('input, select, textarea').length > 0 ) { // if element input exists
// Focus on first field
$(':input:visible:enabled:first').not('[title]').focus();
// Activate datepicker
var datepicker_opt = { showOn:"button", buttonImage: rd_dir+"_style/picto/calendar.gif", buttonImageOnly: true, changeMonth: true, changeYear: true };
$('.rd_jdatepicker').datepicker(datepicker_opt);
};

// activate button
$('.rd_jbutton').button();
$('.rd_jbuttonset').buttonset();
$('.rd_jsubmit').click(function(){var the_form = $(this).closest('form');$(the_form).submit();return false;});
// activate tabs
$('.rd_jtabs').tabs();
$('.rd_jtabs_c').tabs({cookie:{}});
// defaut tab on open $(document).ready(function(){$('.rd_jtabs').tabs('option','selected',0);});
// activate accordion
$('.rd_jaccordion').accordion({ active:false, collapsible:true, alwaysOpen:false, autoHeight: false});
$('.rd_jaccordion_alt').accordion({ collapsible:true, alwaysOpen:true, autoHeight: false});

});
// end doc ready



// personal
// doc ready personal
$(document).ready(function(){

// soft reference 1.0.0 91000
// var rd_soft_location ="div#rd_siteinfo_l2"; var rd_soft_name ="/ XXX"; var rd_soft_version ="0.0"; var rd_soft_startdate ="2009";
if(rd_soft_name.length>0){var rd_date=new Date();var rd_year=rd_date.getFullYear();$(rd_soft_location).append(' ');((rd_soft_startdate==parseInt(rd_soft_startdate))&&(rd_year>rd_soft_startdate))?$(rd_soft_location).append(rd_soft_startdate+'-'+rd_year+' '):$(rd_soft_location).append(rd_year+' ');(rd_soft_version.length>0)?$(rd_soft_location).append(rd_soft_name+' '+rd_soft_version):$(rd_soft_location).append(rd_soft_name);};

// jnodisplay, jdisplay and jvisible  1.0.1 111014
// make visible in dev and invisible in prod and the contrary
// .rd_jnodisplay_alt { border: 1px dashed #6495ed; padding:2px; overflow:hidden; }
// .rd_jdisplay { display:none; } .rd_jvisible { visibility:hidden; }
$('.rd_jnodisplay, .rd_jnodisplay_alt').removeClass('rd_jnodisplay_alt').hide();
$('.rd_jdisplay').removeClass('rd_jdisplay');
$('.rd_jvisible').removeClass('rd_jvisible');

// press enter 1.4.0 110622
// bind enter key to first a.rd_jkey_enter. Uses rd_jblockui version 1.0.0 110104
// The class rd_jnoblockui prevents the blockui effect. Reduces blockui delay if the link is just an anchor.
if ( $('a.rd_jkey_enter:eq(0)').length > 0 ) { // if element exists
var the_link_0=$('a.rd_jkey_enter:eq(0)');var no_blockui_0=$(the_link_0).hasClass('rd_jnoblockui');var the_url_0=$(the_link_0).attr('href');var the_onclick_0=$(the_link_0).attr('onclick');
$(document).keypress(function(e){if((e.keyCode==13)&&(!$('div.ui-dialog').is(':visible'))){if(!no_blockui_0){(the_url_0=='#'&&the_onclick_0==undefined)?rd_jblockui(rd_jblockui_wink):rd_jblockui();};
the_link_0.click();if(the_url_0!='#'){window.location.href=the_url_0;};return false;};});};
// end press enter

// teleport 1.0.0 101000
// make visible the next element with trigger, after 400ms.
// .rd_jteleport { border:1px dashed #ffd700; padding:2px; } .rd_jteleport_key { visibility:visible; }
// <a href="#" class="rd_jteleport_key">teleport</a> <!-- remove me --><div class="rd_jteleport"><!-- end remove me --> ... <!-- remove me --></div><!-- end remove me -->
$('.rd_jteleport').css({'border' : 'none','padding' : 0 }).hide();
$('.rd_jteleport_key').mousedown(function (){$(this).parents().next('.rd_jteleport').delay(400).show(0);});

// rd_jtip version 1.0.0 101021
// Tip appears after 2 sec, remains 3 sec and vanishes.
// .rd_jtip {visibility:visible; border:1px dashed #ffd700; }
// before jquery 1.4 : $('.rd_jtip').css({'display' : 'none', 'border' : 'none' }).fadeTo(2000, 0, function() { $(this).css('display','block')}).fadeTo("slow", 1).fadeTo(3000, 1).fadeTo("slow", 0);
$('.rd_jtip').css({'display' : 'none', 'border' : 'none' }).delay(2000).fadeTo("slow", 1).delay(3000).fadeTo("slow", 0);

// rd_jpeekaboo 2.1.0 110810
// add peekaboo functionnality, set message value or default if not found, is open if input filled inside or has class rd_jseeme
// uses rd_cookie. Memorise state with class rd_jpeekaboo_i00 (cookie number of the panel)
// <div class="rd_jpeekaboo"><div class="rd_jpeekaboo_msg">Show/Hide</div><div class="rd_jpeekaboo_here"></div></div>
// .rd_jpeekaboo { position:relative; margin-top:1em; padding:2em 0 0; border-top:1px solid #224d90; zoom:1; } * html .rd_jpeekaboo { height:0.5em; } .rd_jpeekabookey { position:absolute; top:0px; right:5px; padding:0 1.5em; filter:alpha(opacity=71); background:#224d90; -moz-opacity: 0.71; opacity:0.71; } .rd_jpeekabookey div { padding:2px; font:10px Tahoma, Geneva, sans-serif; color: #FFF; text-align:center; text-decoration:none; cursor:pointer; cursor:hand; }
var peekaboo_msg_d = ['[-]', '[+]'];
$('div.rd_jpeekaboo_msg').hide();$('div.rd_jpeekaboo').each(function(i){var peekaboo=$(this);var peekaboo_here=$('.rd_jpeekaboo_here',peekaboo);var peekaboo_msg=[];($('.rd_jpeekaboo_msg',peekaboo).length>0)?peekaboo_msg=$('.rd_jpeekaboo_msg',peekaboo).html().split('/'):peekaboo_msg=peekaboo_msg_d;var the_switch=0;var peekaboo_fform=$('input[value!=""]',peekaboo_here).not('input:checkbox[checked=false], input:hidden, input:radio',peekaboo_here).size();if((peekaboo_fform==0)&&($(peekaboo_here).hasClass('rd_jseeme')==false)){the_switch=1;};if(typeof rd_getcookie=='function'){var the_peekaboo_i=$(peekaboo).attr('class');var the_css_i=the_peekaboo_i.indexOf('rd_jpeekaboo_i');if(the_css_i!=-1){the_peekaboo_i=the_peekaboo_i.substring(the_css_i);the_css_i=the_peekaboo_i.indexOf(' ');if(the_css_i!=-1){the_peekaboo_i=the_peekaboo_i.substring(0,the_css_i);};if(rd_getcookie(the_peekaboo_i)!=null){(rd_getcookie(the_peekaboo_i)==1)?the_switch=1:the_switch=0;};};};if(the_switch==1){$(peekaboo_here).hide();};$(peekaboo).prepend('<div class="rd_jpeekabookey"><div>'+peekaboo_msg[the_switch]+'</div></div>');$('.rd_jpeekabookey div',peekaboo).mousedown(function(){$(this).text($(this).text()==peekaboo_msg[0]?peekaboo_msg[1]:peekaboo_msg[0]);$(peekaboo_here).toggle('fast');if(typeof rd_setcookie=='function'){(rd_getcookie(the_peekaboo_i)==1)?rd_setcookie(the_peekaboo_i,0):rd_setcookie(the_peekaboo_i,1);};});});
// end rd_jpeekaboo

// rd_jblockui version 1.4.2 110902
// Block user interface. Uses jquery ui and rd_uimsg version 1.4.0 110622. The class rd_jnoblockui prevents the blockui effect.
// Check href, onclick & ID attributes
// Parameters : delay before the dialog and duration of the dialog (for the lattest : 0 means infinite). rd_jblockui_wink is used in other functions
var rd_jblockui_msg_opt = { bgiframe:true, autoOpen:false, draggable:true, resizable:false, modal:true, open:function(event, ui){$(".ui-dialog-titlebar-close").hide(); },
closeOnEscape: false, close: function(ev, ui) {$(this).remove();}};
var rd_jblockui_d = [0, 7000]; // default lapse
var rd_jblockui_wink = [0, 200]; // wink of an eye lapse
var rd_jblockui_dd = [200, 7000]; // default lapse with delay
var rd_jblockui_winkd = [200, 200]; // wink of an eye lapse with delay
var rd_jblockui_msg = rd_jpopup_dmsg[4]+'<p style="padding:0.5em !important;"><img src="../../../../rd_bluage/_include/jquery/'+rd_dir+'_include/jquery/blockui_anim.gif" width="16" height="11" alt="" /></p>';
var rd_jblockui_not ='a.rd_jnoblockui, .rd_jnoblockui a, a.rd_nolink, .rd_nolink a, a.rd_jpopup_trigger, a.rd_jpopup_conf, a.rd_jspryf, a.rd_jspryf_conf, a.rd_jrule, a[target="_blank"]';
var rd_jblockui_trigger ='a.rd_jblockui, .rd_jblockui a, #xxx_rd_brand_01_l1 a, #xxx_rd_content_01 ul a, #xxx_rd_submenu ul a, ul.xxx_rd_tabs a';
var rd_jblockui_smart = "img[src*='play'], img[src*='arrow'], img[src*='find'], img[src*='magnifier'], img[src*='edit'], img[src*='save'], img[src*='add'], img[src*='delete'], img[src*='accept'] , img[src*='download'], img[src*='date'], img[src*='page'], img[src*='date']";

function rd_jblockui(rd_lapse){if(typeof rd_lapse=='undefined'){rd_lapse=rd_jblockui_d;};rd_uimsg(rd_jblockui_msg,rd_undefined,'ui-icon-clock',rd_jblockui_msg_opt,rd_undefined,rd_lapse);};
function rd_jblockui_ext(i,rd_lapse,rd_wink){if(typeof rd_lapse=='undefined'){rd_lapse=rd_jblockui_d;};if(typeof rd_wink=='undefined'){rd_wink=rd_jblockui_wink;};
(($(i).attr('href')=='#')&&($(i).attr('onclick')==undefined)&&(!$(i).attr('id')))?rd_jblockui(rd_wink):rd_jblockui(rd_lapse);};
// selectors
$(rd_jblockui_trigger).not(rd_jblockui_not).click(function(){rd_jblockui_ext(this, rd_jblockui_dd, rd_jblockui_winkd)});
$(rd_jblockui_smart).parent('a').not(rd_jblockui_not).not(rd_jblockui_trigger).click(function() {rd_jblockui_ext(this, rd_jblockui_dd, rd_jblockui_winkd);});
// end rd_jblockui

// rd_jspryf version 1.4.0 110622
// FIX 110419, 101015, uses click as trigger
// Spry form validation.Uses jquery ui, rd_jrule version 1.0.0, rd_jblockui version 1.0.0 110104 and rd_uimsg version 1.2.2 110224.
// The class rd_jnoblockui prevents the blockui effect.
// Add to a.rd_jspryf not BLOCKUI
$('a.rd_jspryf').each(function(i){$(this).data('onclick',this.onclick);this.onclick=function(event){return false;}
$(this).click(function(i){i.preventDefault();var the_link=$(this);var no_blockui=$(the_link).hasClass('rd_jnoblockui');var the_url=$(the_link).attr('href');var the_onclick=$(the_link).data('onclick');var the_form=$(the_link).closest('form')[0];var rd_form_response=Spry.Widget.Form.validate(the_form);if((typeof f_rd_jrule=='function')&&($(the_link).hasClass('rd_jrule'))){if(!f_rd_jrule(the_link))rd_form_response=false;};if(rd_form_response){if(!no_blockui){(the_url=='#'&&the_onclick!=undefined)?rd_jblockui(rd_jblockui_wink):rd_jblockui();};if(the_onclick!=undefined){the_onclick();}
if(the_url!='#'){window.location.href=the_url;};};return false;});});
// end rd_jspryf

// rd_jspryf_conf version 1.4.0 110622
// FIX 110419, 101015, uses click as trigger
// Spry form validation with confirmation message. Uses jquery ui, rd_jrule version 1.0.0, rd_jblockui version 1.0.0 110104 and rd_uimsg version 1.2.2 110224.
// The class rd_jnoblockui prevents the blockui effect.
// Make redirection if content is a link. Make confirmation if content is a link with question mark.
// Add to a.rd_jspryf_conf not BLOCKUI
$('a.rd_jspryf_conf').each(function(i){$(this).data('onclick',this.onclick);this.onclick=function(event){return false;}
$(this).click(function(i){i.preventDefault();var the_link=$(this);var the_form=$(the_link).closest('form')[0];var rd_form_response=Spry.Widget.Form.validate(the_form);if((typeof f_rd_jrule=='function')&&($(the_link).hasClass('rd_jrule'))){if(!f_rd_jrule(the_link))rd_form_response=false;};if(rd_form_response){f_rd_jpopup_conf(the_link);};return false;});});
// end rd_jspryf_conf


// rd_jrule version 1.1.0 110802
// Javascript rule checker. Uses jquery ui, rd_jblockui version 1.4.0 110802, rd_uimsg version 1.3.0 110902.
// The class rd_jnoblockui prevents the blockui effect. Reduces blockui delay if the link is just an anchor.
// Compatible with rd_jspryf version 1.3.0, rd_jspryf_conf version 1.3.0 and rd_jpopup_conf version 1.3.0 110415.
// The class rd_jrule used alone checks the rules. If combined with rd_jspryf, rd_jspryf_conf or rd_jpopup_conf, the function is integrated in the context.

// The rules
// Structure ['rule name', function which returns the number of errors, 'error message' ]
var rd_jrule_dr = [];
rd_jrule_dr.push(['Test date interval',
function() {var int_0 = new Date($('.rd_interval_0:eq(0)').val()).getTime(); var int_1 = new Date($('.rd_interval_1:eq(0)').val()).getTime();if (int_0 >= int_1) return 1;} ,
'La date de fin doit être supérieure à la date de début.']);
rd_jrule_dr.push(['Test required',
function() {var rd_error=0;$('input.rd_required').each(function() {if (!$(this).val()) rd_error++;});return rd_error;},'Donnée obligatoire.']);
var rd_jrule_r0 = [];
rd_jrule_r0.push(['Test required',
function() {var rd_error=0;$('input.rd_required').each(function() {if (!$(this).val()) rd_error++;});return rd_error;},'Data required.']);
rd_jrule_r0.push(['Test date interval',
function() {var int_0 = new Date($('.rd_interval_0:eq(0)').val()).getTime(); var int_1 = new Date($('.rd_interval_1:eq(0)').val()).getTime();if (int_0 >= int_1) return 1;} ,
'The end date must be before the beginning date.']);
// The rule list
// structure  ['trigger class', rule table, 'description of the rule list' ]
var rd_jrule_d = [
['rd_jrule_dr', rd_jrule_dr, 0, 'Alerte sur les intervalles de dates'],
['rd_jrule_r0', rd_jrule_r0, 0, 'Info sur les intervalles de dates en Anglais']
];

// The rule system
var rd_jrule_sttl = rd_jpopup_dttl[0]; // set jpopup_rule title
var rd_jrule_sico = 'ui-icon-info'; // set jpopup_rule icon
var rd_jrule_sico_alert = 'ui-icon-alert'; // set jpopup_rule icon
var rd_jrule_key={}; rd_jrule_key[rd_jpopup_dkey[4]]=function(){$(this).dialog('close');}; // set default key
var rd_jrule_opt = {bgiframe:true,autoOpen:false,resizable:true,modal:true,buttons:rd_jrule_key, width:500,close:function(ev,ui){$(this).remove();}};
function f_rd_jrule(the_href){if(typeof rd_jrule_d.length!=='undefined'){var rd_jrule_count=0;var rd_jrule_ttl=rd_jrule_sttl;var rd_jrule_ico=rd_jrule_sico;var rd_jrule_msg='';var rd_re_error=/\b(al[eè]rt|attention|bug|error|erreur|probl[eè]m|[ui]ncorrect|)/i;var rd_classlist=$(the_href)[0].classList;var the_rule_list=[];var lookup={};for(var i in rd_classlist){lookup[rd_classlist[i]]=rd_classlist[i];}
for(var i in rd_jrule_d){if(typeof lookup[rd_jrule_d[i][0]]!=='undefined'){the_rule_list.push(i);}};if((typeof rd_jrule_d[0][1]!=='undefined')&&(the_rule_list.length==0))the_rule_list.push(0);var arlen=the_rule_list.length;for(var i=0;i<arlen;i++){var the_rule=rd_jrule_d[the_rule_list[i]][1];var arlen_j=the_rule.length;for(var j=0;j<arlen_j;j++){rd_jrule_d[j][2]=the_rule[j][1]();if(rd_jrule_d[j][2]>0){rd_jrule_count++;rd_jrule_msg+='<br />\n'+the_rule[j][2];if(rd_jrule_d[j][2]>1)rd_jrule_msg=rd_jrule_msg+' ['+rd_jrule_d[j][2]+']';};if(rd_re_error.test(rd_jrule_d[the_rule_list[i]][2])){rd_jrule_ttl=rd_jpopup_dttl[5];rd_jrule_ico=rd_jrule_sico_alert;}};};if(rd_jrule_count>0){rd_jrule_msg=rd_jrule_msg.substring(7);if(rd_jrule_count>1)rd_jrule_ttl=rd_jrule_ttl+'s ['+rd_jrule_count+']';rd_uimsg(rd_jrule_msg,rd_jrule_ttl,rd_jrule_ico,rd_jrule_opt,'rd_uimsg_box_l');}else return true;}else{rd_uimsg(rd_jpopup_dmsg[5]);};return false;};
$('a.rd_jrule').not('.rd_jspryf, .rd_jspryf_conf, .rd_jpopup_conf').each(function(i){$(this).data('onclick',this.onclick);this.onclick=function(event){return false;};$(this).click(function(i){i.preventDefault();var the_link=$(this);var the_url=$(the_link).attr('href');var the_onclick=$(the_link).data('onclick');var no_blockui=$(the_link).hasClass('rd_jnoblockui');if(f_rd_jrule(the_link)){if(the_url=='#'&&the_onclick==undefined){rd_uimsg(rd_jpopup_dmsg[2]);return false;}else{if(!no_blockui){(the_url=='#'&&the_onclick==undefined)?rd_jblockui(rd_jblockui_wink):rd_jblockui();};if(the_onclick!==undefined){the_onclick();};if(the_url!='#'){window.location.href=the_url;}};};});});
// end rd_jrule

// rd_jpanel 1.0.1 110727
// Gestion of panels vith trigger class
// rd_jpanel_1st, rd_jpanel_prv, rd_jpanel_nxt, rd_jpanel_lst and rd_jpanel_i00 (index number of the panel)
// Function f_rd_jpanel(stack_class, default index panel show, default index panel show class, hide unnecessary controls);
// <div class="rd_jpanel"><div>Panel 1</div><div>Panel 2</div></div>
// <a href="#" class="rd_jpanel_1st">[[- Start</a> <a href="#" class="rd_jpanel_prv">[- Prev</a> <a href="#" class="rd_jpanel_nxt">Next -]</a> <a href="#" class="rd_jpanel_lst">End -]]</a>
var rd_jpanel_1st_d = 0; // set default index panel shown
var rd_jpanel_1stclass_d = 'rd_jpanel_1stclass'; // set default index panel shown
var rd_jpanel_hidec_d = false; // hide unnecessary controls

function f_rd_jpanel(rd_jpanel_stack,rd_jpanel_1st,rd_jpanel_1stclass,rd_jpanel_hidec){if(typeof rd_jpanel_1st=='undefined'){rd_jpanel_1st=rd_jpanel_1st_d;};if(typeof rd_jpanel_1stclass=='undefined'){rd_jpanel_1stclass=rd_jpanel_1stclass_d;};if(typeof rd_jpanel_hidec=='undefined'){rd_jpanel_hidec=rd_jpanel_hidec_d;};$('.'+rd_jpanel_stack).each(function(i){var the_panels=$(this).children('div');var the_panels_nb=the_panels.length-1;var the_1stindex=$(the_panels).index($(this).children('div.'+rd_jpanel_1stclass+':eq(0)'));if(the_1stindex!=-1)rd_jpanel_1st=the_1stindex;$(the_panels).hide().eq(rd_jpanel_1st).show();if((rd_jpanel_hidec_d)||(the_panels_nb==0)){$('.rd_jpanel_1st, .rd_jpanel_prv, .rd_jpanel_i0',the_panels.eq(0)).hide();$('.rd_jpanel_lst, .rd_jpanel_nxt, .rd_jpanel_i'+(the_panels_nb-1),the_panels.eq(-1)).hide();};});$('a[class^="rd_jpanel_"],a[class*=" rd_jpanel_"],area[class^="rd_jpanel_"],area[class*=" rd_jpanel_"]').click(function(i){i.preventDefault();var the_link=$(this);var the_stack=the_link.closest('div.rd_jpanel');var the_panels=the_stack.children('div');var the_panels_nb=the_panels.length-1;var the_index=$(the_panels).index($(the_link).closest('.'+rd_jpanel_stack+'> div'));if(the_panels_nb>0){var the_link_i=$(the_link).attr('class');var the_css_i=the_link_i.indexOf('rd_jpanel_i');if(the_css_i!=-1){the_link_i=the_link_i.substring(the_css_i+11);the_css_i=the_link_i.indexOf(' ');if(the_css_i!=-1){the_link_i=the_link_i.substring(0,the_css_i)};if(the_link_i<=the_panels_nb)$(the_panels).hide().eq(the_link_i).show();}else if(the_link.hasClass('rd_jpanel_1st'))$(the_panels).hide().eq(0).show();else if(the_link.hasClass('rd_jpanel_lst'))$(the_panels).hide().eq(the_panels_nb).show();else if((the_link.hasClass('rd_jpanel_prv'))&&(the_index>0))$(the_panels).hide().eq(the_index-1).show();else if((the_link.hasClass('rd_jpanel_nxt'))&&(the_index<the_panels_nb))$(the_panels).hide().eq(the_index+1).show();};});};f_rd_jpanel('rd_jpanel');
// end rd_jpanel

// rd_jpopup_nxt 1.4.2 110902
// option open:function(){$(this).parent().appendTo($('form:last'));} to stay in the form
// .attr('title').length>0 replaced by .attr('title')!==undefined
// display message located in next .rd_jpopup_nxt_data. Use title as header. Uses jquery ui and rd_uimsg version 1.4.0 110622.
// .rd_jpopup_nxt { cursor:pointer; cursor:hand vertical-align:text-bottom; } OPTIONAL .rd_jpopup_nxt_data { display:none; }
// <p><a href="#" class="rd_jbutton rd_jpopup_nxt">Trigger for another message</a><span class="rd_jpopup_nxt_data rd_jinvisible" title="The very message">This is another message.</span></p>
var rd_jpopup_nxt_sttl = rd_jpopup_dttl[3]; // set jpopup_rule title
var rd_jpopup_nxt_sico = 'no_icon'; // set jpopup_nxt icon
var rd_jpopup_nxt_key={}; rd_jpopup_nxt_key[rd_jpopup_dkey[4]]=function(){$(this).dialog('close');}; // set default key
var rd_jpopup_nxt_opt = {open:function(){$(this).parent().appendTo($('form:last'));},bgiframe:true,autoOpen:false,resizable:true,modal:true,buttons:rd_jpopup_nxt_key, width:500,close:function(ev,ui){$(this).remove();}};

$('.rd_jpopup_nxt_data').hide();$('.rd_jpopup_nxt').mousedown(function(i){i.preventDefault();var the_nextdata=$(this).next('.rd_jpopup_nxt_data');if(the_nextdata.length>0){var rd_jpopup_nxt_ttl;var rd_jpopup_nxt_ico=rd_jpopup_nxt_sico;var rd_jpopup_nxt_msg=$(the_nextdata).html();var rd_jpopup_nxt_css='rd_uimsg_box_l';((the_nextdata.attr('title')!==undefined)&&(the_nextdata.attr('title')!=''))?rd_jpopup_nxt_ttl=the_nextdata.attr('title'):rd_jpopup_nxt_ttl=rd_jpopup_nxt_sttl;rd_uimsg(rd_jpopup_nxt_msg,rd_jpopup_nxt_ttl,rd_jpopup_nxt_ico,rd_jpopup_nxt_opt,rd_jpopup_nxt_css);}else{rd_uimsg(rd_jpopup_dmsg[3]);};
return false;});
// end rd_jpopup_nxt

// rd_jpopup_conf version 1.4.1 110716, compatible with 1.4.0 110622
// FIX 110419, 101015, rewritten as a function : f_rd_jpopup_conf(), .attr('title').length>0 replaced by .attr('title')!==undefined
// Javascript confirmation. Title is invisible. Uses jquery ui, rd_jblockui version 1.0.0 110104 and rd_uimsg version 1.3.0 110902.
// The class rd_jnoblockui prevents the blockui effect. Reduces blockui delay if the link is just an anchor.
// Make redirection if content is a link. Make confirmation if content is a link with question mark.
var rd_jpopup_conf_sico = 'ui-icon-info'; // set jpopup_conf icon
var rd_jpopup_conf_sico_alert = 'ui-icon-alert'; // set jpopup_conf icon

function f_rd_jpopup_conf(the_link){var rd_jpopup_conf_ttl;var rd_jpopup_conf_ico=rd_jpopup_conf_sico;var rd_jpopup_conf_msg=rd_jpopup_dmsg[1];if(($(the_link).attr('the_title')!==undefined)&&($(the_link).attr('the_title')!='')){rd_jpopup_conf_msg=$(the_link).attr('the_title')};var rd_jpopup_conf_key={};var rd_jpopup_conf_opt;var the_url=$(the_link).attr('href');var the_onclick=$(the_link).data('onclick');var no_blockui=$(the_link).hasClass('rd_jnoblockui');var rd_re_question=/\\?/;if(rd_re_question.test(rd_jpopup_conf_msg)){rd_jpopup_conf_key[rd_jpopup_dkey[1]]=function(){$(this).dialog('close');if(!no_blockui){(the_url=='#'&&the_onclick==undefined)?rd_jblockui(rd_jblockui_wink):rd_jblockui();};if(the_onclick!=undefined){the_onclick();}
if(the_url!='#'){window.location.href=the_url;};};rd_jpopup_conf_key[rd_jpopup_dkey[2]]=function(){$(this).dialog('close');};rd_jpopup_conf_ttl=rd_jpopup_dttl[1];rd_jpopup_conf_ico=rd_jpopup_conf_sico_alert;}else{rd_jpopup_conf_key[rd_jpopup_dkey[0]]=function(){$(this).dialog('close');if(!no_blockui){(the_url=='#'&&the_onclick==undefined)?rd_jblockui(rd_jblockui_wink):rd_jblockui();};if(the_onclick!=undefined){the_onclick();}
if(the_url!='#'){window.location.href=the_url;};};rd_jpopup_conf_ttl=rd_jpopup_dttl[2];};rd_jpopup_conf_opt={bgiframe:true,autoOpen:false,resizable:false,modal:true,buttons:rd_jpopup_conf_key,close:function(ev,ui){$(this).remove();}};if((typeof f_rd_jrule=='function')&&($(the_link).hasClass('rd_jrule'))){if(!f_rd_jrule(the_link))return false;};rd_uimsg(rd_jpopup_conf_msg,rd_jpopup_conf_ttl,rd_jpopup_conf_ico,rd_jpopup_conf_opt);return false;};
$('a.rd_jpopup_conf').each(function(i){$(this).attr({'the_title':$(this).attr('title')}).removeAttr('title');$(this).data('onclick',this.onclick);this.onclick=function(event){return false;};$(this).click(function(i){i.preventDefault();var the_link=$(this);f_rd_jpopup_conf(the_link);return false;});});
// end rd_jpopup_conf

// rd_jpopup version 1.4.1 110727
// FIX 110419, 101015KC, .attr('title').length>0 replaced by .attr('title')!==undefined
// popup window on open page. Uses jquery ui, rd_jblockui version 1.0.0 110104 and rd_uimsg version 1.3.0 110902.
// The class rd_jnoblockui prevents the blockui effect. Reduces blockui delay if the link is just an anchor.
// rd_uimsg_jpopup_zero() : first trigger, rd_uimsg_jpopup() : trigger, message if no error, a.rd_jpopup_trigger : trigger link
// Displays alert icon if title contains specific keyword (error...). Make redirection if content is a link. Make confirmation if content is a link with question mark.
// Option : sequential or simultaneous.
// .rd_jpopup { display:inline; padding:0.5em 2em; background:#fff; border:1px outset #34BEED; filter:alpha(opacity=71); -moz-opacity: 0.71; opacity:0.71; clear:both; }
// -- rd_jpopup -- <div class="rd_jpopup">The message</div> -- end rd_jpopup --
var rd_jpopup_sttl = rd_jpopup_dttl[0]; // set jpopup title
var rd_jpopup_sico = 'ui-icon-info'; // set jpopup icon
var rd_jpopup_sico_alert = 'ui-icon-alert'; // set jpopup icon
var rd_jpopup_opt_sequential = true; // sequential treatment
var rd_jpopup_d = [];

$('div.rd_jpopup').hide().each(function(i){rd_jpopup_d[i]=[];rd_jpopup_d[i]['ttl']=rd_jpopup_sttl;rd_jpopup_d[i]['ico']=rd_jpopup_sico;var the_popup=$(this);rd_jpopup_d[i]['msg']=$(the_popup).html();$(the_popup).removeClass('rd_jpopup');var the_link=$(the_popup).children('a:eq(0)');rd_jpopup_d[i]['key']={};if($(the_link).length>0){var no_blockui=$(the_link).hasClass('rd_jnoblockui');var the_onclick=$(the_link).attr('onclick');var the_url=$(the_link).attr('href');var rd_re_question=/\?/;if(rd_re_question.test(rd_jpopup_d[i]['msg'])){rd_jpopup_d[i]['key'][rd_jpopup_dkey[1]]=function(){$(this).remove();if(!no_blockui){(the_url=='#'&&the_onclick==undefined)?rd_jblockui(rd_jblockui_wink):rd_jblockui();};the_link.click();if(the_url!='#'){window.location.href=the_url;};};rd_jpopup_d[i]['key'][rd_jpopup_dkey[2]]=function(){$(this).dialog('close');};rd_jpopup_d[i]['ttl']=rd_jpopup_dttl[1];}else{rd_jpopup_d[i]['key'][rd_jpopup_dkey[0]]=function(){$(this).dialog('close');if(!no_blockui){(the_url=='#'&&the_onclick==undefined)?rd_jblockui(rd_jblockui_wink):rd_jblockui();};if(the_onclick!=undefined){the_onclick();};if(the_url!='#'){window.location.href=the_url;};};rd_jpopup_d[i]['ttl']=rd_jpopup_dttl[2];};}else{rd_jpopup_d[i]['key'][rd_jpopup_dkey[0]]=function(){$(this).dialog('close');};};rd_jpopup_d[i]['opt']={bgiframe:true,autoOpen:false,resizable:false,modal:true,buttons:rd_jpopup_d[i]['key'],close:function(ev,ui){$(this).remove();}};if(i>0){rd_jpopup_d[i-1]['opt_seq']={bgiframe:true,autoOpen:false,resizable:false,modal:true,buttons:rd_jpopup_d[i-1]['key'],close:function(ev,ui){$(this).remove();rd_uimsg(rd_jpopup_d[i]['msg'],rd_jpopup_d[i]['ttl'],rd_jpopup_d[i]['ico'],rd_jpopup_d[i]['opt']);}};};var rd_re_nolink=/<[a][^>]*>|<\/[a]>/gi;rd_jpopup_d[i]['msg']=rd_jpopup_d[i]['msg'].replace(rd_re_nolink,'');if(($(this).attr('title')!==undefined)&&($(this).attr('title')!='')){rd_jpopup_d[i]['ttl']=$(this).attr('title');};var rd_re_error=/\b(al[eè]rt|attention|bug|error|erreur|probl[eè]m|[ui]ncorrect|)/i;if(rd_re_error.test(rd_jpopup_d[i]['ttl'])){rd_jpopup_d[i]['ico']=rd_jpopup_sico_alert;};});
var rd_kc = 'コナミコマンド- <em>Konami Code</em><br />Jquery <em>'+jQuery.fn.jquery+'</em> - Jquery UI <em>'+jQuery.ui.version+'</em>';if(typeof rd_lib!='undefined') rd_kc += '<br />RD lib <em>'+rd_lib+'</em>';(function($){var konamiListeners=[];var kode=[38,38,40,40,37,39,37,39,66,65];var progress=0;$.extend({konami:function(listener,sequence){konamiListeners.push(listener);if(sequence)kode=sequence;}});$(document).bind("keyup",function(event){var c=event.keyCode;if(c==kode[progress]) progress++;else progress=c==kode[0]?1:0;if(progress==kode.length){if(konamiListeners.length>0){$.each(konamiListeners,function(item){this();});}}});})(jQuery);$.konami(function(){if(typeof rd_kc!='undefined'){rd_uimsg(rd_kc);}});
if(rd_jpopup_opt_sequential){var arlen=rd_jpopup_d.length;for(var i=0;i<arlen-1;i++){j=i+1;rd_jpopup_d[i]['opt']=rd_jpopup_d[i]['opt_seq']};};
function rd_uimsg_jpopup_zero(){if(rd_jpopup_opt_sequential){rd_uimsg(rd_jpopup_d[0]['msg'],rd_jpopup_d[0]['ttl'],rd_jpopup_d[0]['ico'],rd_jpopup_d[0]['opt']);}else{var arlen=rd_jpopup_d.length;for(var i=arlen-1;i>=0;i--){rd_uimsg(rd_jpopup_d[i]['msg'],rd_jpopup_d[i]['ttl'],rd_jpopup_d[i]['ico'],rd_jpopup_d[i]['opt'],rd_undefined,rd_undefined,false);};};};if(rd_jpopup_d.length>0)rd_uimsg_jpopup_zero();
function rd_uimsg_jpopup(){(rd_jpopup_d.length>0)?rd_uimsg_jpopup_zero():rd_uimsg(rd_jpopup_dmsg[2],rd_jpopup_dttl[0],rd_jpopup_sico);};
$('a.rd_jpopup_trigger').click(function(i){i.preventDefault();rd_uimsg_jpopup();});
// end rd_jpopup

});
// end doc ready personal



// personal functions

// rd_uimsg version 1.3.0 110902
// ui message. Uses jquery ui. Academy flat size if more than academyflat_char characters
// option open:function(){$(this).parent().appendTo($('form:last'));} to stay in the form
/* css
.rd_uimsg_box { padding:1em !important; height:auto !important; text-align:center; } .rd_uimsg_box_l { padding:1em !important; height:auto !important; text-align:left; } .rd_jpopup { display:inline; padding:0.5em 2em; background:#fff; border:1px outset #34BEED; filter:alpha(opacity=71); -moz-opacity: 0.71; opacity:0.71; clear:both; } a.rd_jpopup_conf {visibility:visible; }
*/
/* French
var rd_jpopup_dkey = ['Ok','Oui','Non','Ouvrir','Fermer']; // default key
var rd_jpopup_dmsg = ['Aucun message sélectionné.', 'En êtes-vous sûr(e)?', 'Aucun message pour cet écran.', 'Aucune description pour cet élément.', 'Traitement en cours, veuillez patienter.', 'Aucune règle sélectionnée.']; // default msg
var rd_jpopup_dttl = ['Information', 'Confirmation', 'Redirection', 'Détail', 'Alerte', 'Erreur']; // default title
*/

// language security
if(typeof rd_jpopup_dkey=='undefined')
{var rd_jpopup_dkey = ['Ok','Yes','No','Open','Close']; // default key
var rd_jpopup_dmsg = ['No message selected.','Are you sure?','There is no message fot this screen.','There is no description for this element.','Work in progress. Please wait.','No rule selected.']; // default msg
var rd_jpopup_dttl = ['Information','Confirmation','Redirection','Detail','Alert','Error']; // default title
};

var rd_undefined;
var rd_uimsg_sttl = rd_jpopup_dttl[0]; // set uimsg title
var rd_uimsg_sico = 'ui-icon-info'; // set uimsg icon
var rd_uimsg_dkey={}; rd_uimsg_dkey[rd_jpopup_dkey[0]]=function(){$(this).dialog('close');};
var rd_uimsg_dopt = {open:function(){$(this).parent().appendTo($('form:last'));}, bgiframe:true, autoOpen:false, resizable:false, buttons:rd_uimsg_dkey, modal:true, close:function(ev, ui){$(this).remove();}}; // default options
var rd_uimsg_dcss = 'rd_uimsg_box'; // default css
var rd_uimsg_ddly = [0,0]; // delay before and after in miliseconds
var rd_uimsg_drem = true; // remove all other messages by default
var rd_uimsg_academyflat = 500; // academy flat dialog if more than academyflat_char characters
var rd_uimsg_academyflat_char = 200;

function rd_uimsg(rd_uimsg_msg,rd_uimsg_ttl,rd_uimsg_ico,rd_uimsg_opt,rd_uimsg_css,rd_uimsg_dly,rd_uimsg_rem){if(typeof rd_uimsg_msg=='undefined'){rd_uimsg_msg=rd_jpopup_dmsg[0];};if(typeof rd_uimsg_ttl=='undefined'){rd_uimsg_ttl=rd_uimsg_sttl;};if(typeof rd_uimsg_ico=='undefined'){rd_uimsg_ico=rd_uimsg_sico;};if(typeof rd_uimsg_opt=='undefined'){rd_uimsg_opt=rd_uimsg_dopt;};if(typeof rd_uimsg_css=='undefined'){rd_uimsg_css=rd_uimsg_dcss;};if(typeof rd_uimsg_dly=='undefined'){rd_uimsg_dly=rd_uimsg_ddly;};if(typeof rd_uimsg_rem=='undefined'){rd_uimsg_rem=rd_uimsg_drem;};
if(rd_uimsg_rem){$('.ui-dialog').remove();};if(rd_uimsg_msg.length>rd_uimsg_academyflat_char&&(typeof rd_uimsg_opt.width=='undefined'||rd_uimsg_opt.width<rd_uimsg_academyflat)){rd_uimsg_opt.width=rd_uimsg_academyflat;};
var rd_uimsg_key={};rd_uimsg_key[rd_jpopup_dkey[0]]=function(){$(this).dialog('close');};var rd_uimsg_dress_0='<div title="'+rd_uimsg_ttl+'"';if(rd_uimsg_css)rd_uimsg_dress_0+=' class="'+rd_uimsg_css+'"';rd_uimsg_dress_0+='>';if(rd_uimsg_ico!="no_icon")rd_uimsg_dress_0+='<span class="ui-icon '+rd_uimsg_ico+'" style="float:left; margin:0 1em 3em 0;"></span>';var rd_uimsg_dress_1='</div>';rd_uimsg_msg=rd_uimsg_dress_0+rd_uimsg_msg+rd_uimsg_dress_1;if((rd_uimsg_dly[0]<=0)&&(rd_uimsg_dly[1]<=0)){$(rd_uimsg_msg).dialog(rd_uimsg_opt).dialog('open');}else if(rd_uimsg_dly[0]<=0){$(rd_uimsg_msg).dialog(rd_uimsg_opt).dialog('open').delay(rd_uimsg_dly[1]).queue(function(){$(this).dialog('close').dequeue();});}else if(rd_uimsg_dly[1]<=0){var rd_timer=setTimeout(function(){$(rd_uimsg_msg).dialog(rd_uimsg_opt).dialog('open');},rd_uimsg_dly[0]);}else{var rd_timer=setTimeout(function(){$(rd_uimsg_msg).dialog(rd_uimsg_opt).dialog('open').delay(rd_uimsg_dly[1]).queue(function(){$(this).dialog('close').dequeue();});},rd_uimsg_dly[0]);};return false;};
// end rd_uimsg

// rd_cookie 1.0.1 110810
// Cookie library. rd_setcookie (c_name and c_value are mandatory. path is global by default.
// Inspired from http://techpatterns.com/downloads/javascript_cookies.php
function rd_setcookie(c_name,c_value,expire_days,path,domain,secure){var today=new Date();today.setTime(today.getTime());if(expire_days){expire_days=expire_days*86400000;}
var expire_date=new Date(today.getTime()+(expire_days));document.cookie=c_name+'='+escape(c_value)+((typeof expire_days=='undefined')?'':'; expires='+expire_date.toUTCString())
+((typeof path=='undefined')?'; path=/':'; path='+path)+((typeof domain=='undefined')?'':'; domain='+domain)+((typeof secure=='undefined')?'':'; secure');};
function rd_getcookie(c_name){var cd_full=document.cookie.split(';');var cd_split;var cd_name;var cd_value;var c_found=false;for(i=0;i<cd_full.length;i++){cd_split=cd_full[i].split('=');cd_name=cd_split[0].replace(/^\s+|\s+$/g,'');if(cd_name==c_name){c_found=true;if(cd_split.length>1){cd_value=unescape(cd_split[1].replace(/^\s+|\s+$/g,''));}
return cd_value;break;}cd_split=null;cd_name='';}if(!c_found){return null;}}
function rd_delcookie(c_name){rd_setcookie(c_name,null,-1,'/');}
function rd_chkcookie(){rd_setcookie('rd_chkcookie','checked');if( rd_getcookie('rd_chkcookie') ){rd_delcookie('rd_chkcookie'); return true} else return false;}
// end rd_cookie
// rd_check_device 1.0.0 110120
// Checks for the device used. Sets cookie rd_device on mobile or computer.
// works with rd_cookie 1.0.0 110120
function rd_check_device(){var rd_re_mobile=/iphone|ipad|ipod|symbian|android|series60|windows ce|blackberry|palm/;
(rd_re_mobile.test(navigator.userAgent.toLowerCase()))?rd_device='mobile':rd_device='computer';rd_setcookie('rd_device_used',rd_device);return rd_device;};
var rd_device = rd_check_device();
// end rd_device





// specific
// doc ready specific
$(document).ready(function(){
// obfus last siteinfo paragraph
// $('div#rd_siteinfo_00_l1_00 p small em').filter(':last').remove();
// Flux
$(function(){$('#rd_jflux').flux({pagination: false, delay: 5000, transitions:['warp', 'dissolve', 'bars3d', 'cube']})});
// kwicks
$('.rd_jkwicks').kwicks({min :60,spacing: 5, sticky:true}).show();
// vticker
var rd_innews_opt = { speed: 1000, pause: 5000, showItems: 1, animation: 'fade', mousePause: true };
$('#rd_jvticker').vTicker(rd_innews_opt);
// social
/*
.social ul, .social_small ul {list-style:none;margin:0 auto;padding:0;} .social ul.inlined, .social_small ul.inlined {float:left;} .social ul li{width:32px;height:32px;margin: 5px; text-indent:-9999px;}
.social ul li a, .social_small ul li a{display:block;width:100%;height:100%;opacity: 0.8;-moz-opacity: 0.8;filter:alpha(opacity=80);}
.social ul li a:hover, .social_small ul li a:hover{opacity: 1;-moz-opacity: 1;filter:alpha(opacity=1);} .social_small ul li{width:16px;height:16px;margin: 5px; text-indent:-9999px;}
.social ul a.twitter, a.facebook, a.flickr, a.friendfeed, a.delicious, a.digg, a.lastfm, a.youtube, a.feed, a.linked-in{background:url(social_icons.png);}
.social ul a.twitter{background-position: 0px 0px;} .social ul a.facebook{background-position: 0px -42px;} .social ul a.flickr{background-position: 0px -84px;}
.social ul a.friendfeed{background-position: 0px -126px;} .social ul a.delicious{background-position: 0px -168px;} .social ul a.digg{background-position: 0px -210px;}
.social ul a.lastfm{background-position: 0px -252px;} .social ul a.linked-in{background-position: 0px -294px;} .social ul a.youtube{background-position: 0px -336px;}
.social ul a.feed{background-position: 0px -378px;}
.social_small ul a.twitter, .social_small ul a.facebook, .social_small ul a.flickr, .social_small ul a.friendfeed, .social_small ul a.delicious, .social_small ul a.digg, .social_small ul a.lastfm, .social_small ul a.youtube, .social_small ul a.feed, .social_small ul a.linked-in{background:url(social_icons_small.png);}
.social_small ul a.twitter{background-position: 0px 0px;} .social_small ul a.facebook{background-position: 0px -26px;} .social_small ul a.flickr{background-position: 0px -52px;}
.social_small ul a.friendfeed{background-position: 0px -78px;} .social_small ul a.delicious{background-position: 0px -104px;} .social_small ul a.digg{background-position: 0px -130px;}
.social_small ul a.lastfm{background-position: 0px -156px;} .social_small ul a.linked-in{background-position: 0px -182px;} .social_small ul a.youtube{background-position: 0px -208px;}
.social_small ul a.feed{background-position: 0px -234px;} 
*/
$('#rd_siteinfo_00_l1_00 p:eq(0)').append('<div id="rd_jsocial" class="social"></div>');
$('#rd_jsocial').jsocial({ twitter:'bluagesoftware', facebook:'facebook.com/bluage.software', newPage:true, center:false, inline:true, small:true});

});
// end doc ready specific

// doc ready rd_jghost version 1.0.0_l1 91200 
$(document).ready(function(){$('div#rd_jghost').remove();});
// end doc ready rd_jghost
var rd_lib = "1.4.2 111010";
