/*Created by Mike Read [ISI]X-M3N
swiches the background header Css and also makes a flaoting image in the top left to switch
this also make a cookie to remember last option
MikeDavidRead@gmail.com
*/


 function getCookie()
 {
 var i,x,y,ARRcookies=document.cookie.split(";");
 for (i=0;i<ARRcookies.length;i++)
   {
   x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("="));
   y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1);
   x=x.replace(/^\s+|\s+$/g,"");
   if (x=="style")
     {
     return unescape(y);
     }
   }
 }

 function setCookie(value,exdays)
 {
 var exdate=new Date();
 exdate.setDate(exdate.getDate() + exdays);
 var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString());
 document.cookie="style="+ c_value;
 window.location.reload();
 }


 var cssURL=getCookie();
 if (cssURL!=null && cssURL!="")
   {
  		document.writeln('<link rel="stylesheet" media="screen" type="text/css" href="http://www.isichristianclan.org/assets/css/' + cssURL + '.css">');
   }
 else 
   {
   		document.writeln('<link rel="stylesheet" media="screen" type="text/css" href="http://www.isichristianclan.org/assets/css/1.css">');
   }




