document.write('<style>body {margin-top:0px !important;}</style>');
document.write('<div style="position: absolute; width: 0px; height: 0px; z-index: 1; left: 0px; top: 0px" id="skinselector"><form><select onchange="changeskin(this.options[this.selectedIndex].value); window.location.reload();"><option> Change Skin </option><option value="V.2">Familiar V.2 (Default)</option><option value="Normal"> Familiar </option><option value="Super Sonic">The Super Sonic Family</option><option value="Halloween"> Pumpkin Hill </option><option value="Sonamy"> Sonamy </option><option value="Christmas"> Sonical Christmas </option><option value="Old School">Old School Hill</option><option value="Tails">Flyboy Fox</option><option value="Shadow">The Shadow Family</select></form></div>');
var scheme = getCookie('template1');
if (scheme=='V.2'){
	document.write('<LINK REL="stylesheet"TYPE="text/css" HREF="http://h1.ripway.com/Sonic1993/Familiar V. 2 (Default).css">');
}else if (scheme == 'Normal') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://h1.ripway.com/Sonic1993/Normal.css">');
}else if (scheme == 'Super Sonic'){
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://h1.ripway.com/Sonic1993/Super%20Sonic.css">');
} else if (scheme == 'Halloween') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://h1.ripway.com/Sonic1993/Halloween.css">');
} else if (scheme == 'Sonamy') {
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://h1.ripway.com/Sonic1993/Sonamy.css">');
} else if (scheme =='Christmas'){
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://h1.ripway.com/Sonic1993/Christmas Sonic.css">');
} else if (scheme =='Old School'){
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://h1.ripway.com/Sonic1993/Old%20School.css">');
} else if (scheme =='Tails'){
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://h1.ripway.com/Sonic1993/Tails.css">');
} else if (scheme =='Shadow'){
document.write('<LINK REL="stylesheet" TYPE="text/css" HREF="http://h1.ripway.com/Sonic1993/Shadow.css">');
}
function changeskin(change) {
var scheme = change;
var name = 'template1';
var pathname = location.pathname;
var myDomain = pathname.substring(0,pathname.lastIndexOf('/')) +'/';
var ExpDate = new Date ();
ExpDate.setTime(ExpDate.getTime() + (180 * 24 * 3600 * 1000));
setCookie(name,scheme,ExpDate,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");
}