function myGetCookie(myCookie){
	myCookie = "@" + myCookie + "=";
	myValue = null;
	myStr = document.cookie + ";" ;
	myOfst = myStr.indexOf(myCookie);
	if (myOfst != -1){
		myStart = myOfst + myCookie.length;
		myEnd	= myStr.indexOf(";" , myStart);
		myValue = unescape(myStr.substring(myStart,myEnd));
	}
	return myValue;
}

function mySetCookie(myCookie,myValue,myDay){
	if(window.location.hostname=="www.vol-h.org" || window.location.hostname=="vol-h.org" || window.location.hostname=="dev.vol-h.org")
		window.location.href="http://"+window.location.hostname+"/setcookie.php?path="+document.location+"&size="+myValue;
	else if(window.location.hostname=="localhost")
		window.location.href="http://localhost/volh/public_html/setcookie.php?path="+document.location+"&size="+myValue;
}

function getBigger(){
	switch(userSize){
	case "small":
		mySetCookie("USER_SIZE","normal",365);
		break;
	case "big":
	case "normal":
	default:
		mySetCookie("USER_SIZE","big",365);
	}
}

function getSmaller(){
	switch(userSize){
	case "big":
		mySetCookie("USER_SIZE","normal",365);
		break;
	case "small":
	case "normal":
	default:
		mySetCookie("USER_SIZE","small",365);
		break;
	}
}


userSize = myGetCookie("USER_SIZE");

switch(userSize){
case "big":
	document.write('<link href="http://www.vol-h.org/css/big.css" rel="stylesheet" type="text/css">');
	break;
case "small":
	document.write('<link href="http://www.vol-h.org/css/small.css" rel="stylesheet" type="text/css">');
	break;
case "normal":
default:
	document.write('<link href="http://www.vol-h.org/css/normal.css" rel="stylesheet" type="text/css">');
	break;
}
