/*****************************
Do not remove this heading!
Change Skin Script
Copyright © 2007 Dragon Man
Modified by pauldemonteverde
pauldemonteverde[AT]yahoo.com
Corrections pour forumactif par remise
*************************************/
document.write('<style>body {margin-top:10px !important;}</style>'); document.write('<div style="position: absolute; width: 304px; height: 38px; z-index: 10; left: 10px; top: 5px" id="skinselector"><form><select name=Test onchange="changeskin(this.options[this.selectedIndex].value); window.location.reload();"><option>changer le thême</option><option value="Gris!"> Thême créé par Khalistos</option><option value="Parchemin!">Thême créé par Tham</option><option value="Clair!">Le thême d\'Alauniira</option></select></form></div>'); var scheme = getCookie('Select_Theme');
if (scheme == 'Gris!') {
document.write('<link media="screen" rel="stylesheet" type="text/css" href="http://elklys.chez-alice.fr/Themes/khalistos/khali.css">');
} else if (scheme == 'Parchemin!') {
document.write('<link media="screen" rel="stylesheet" type="text/css" href="http://www.trencavel.info/aoc/style/tham.css">');
} else if (scheme == 'Clair!') {
document.write('<link media="screen" rel="stylesheet" type="text/css" href="http://elklys.chez-alice.fr/testAlaun.css">');
} else {
document.write('<link media="screen" rel="stylesheet" type="text/css" href="http://www.gardiens.org/76-ltr.css">');
}

function changeskin(change) {
var scheme = change;
var name = 'Select_Theme';
var pathname = '/';
var myDomain = 'testpratique.forumactif.net';
var ExpDate = new Date ();
ExpDate.setTime(ExpDate.getTime() + (6 * 30 * 24 * 3600 * 1000));
setCookie(name,scheme,ExpDate,pathname,myDomain);
}
function getCookie(name){
var cname = name + "=";
var dc = document.cookie;
if (dc.length > 0) {
begin = dc.indexOf(cname);
if (begin != -1) {
begin += cname.length;
end = dc.indexOf(";", begin);
if (end == -1) end = dc.length;
return unescape(dc.substring(begin, end));
}
}
return null;
}

function setCookie(name, value, expires, path, domain, secure) {
document.cookie = name + "=" + escape(value) +
((expires == null) ? "" : "; expires=" + expires.toGMTString()) +
((path == null) ? "" : "; path=" + path) +
((domain == null) ? "" : "; domain=" + domain) +
((secure == null) ? "" : "; secure");
}
