function window1(url){
window.open(url,"name","width=380,height=480,toolbar=no,scrollbars=no,resizable=yes,menubar=no");
}

function init(theme){
	if(!theme) {
		theme = getcookie("THEME");
		if(!theme) theme = "basis";
	}
	if(theme == "et") theme = "basis";

	if(theme == "basis") {
		setbasictheme();
	}
}

function setbasictheme(){
	var js = get();
	document.write("<SCRIPT src=\"/index" + js + ".js\"></SCRIPT>");
}

function change(num){
	if(!num) num = 0;
	document.cookie = "ad=" + num + "; " + "expires=Thu, 31-Dec-2020 23:59:59 GMT; " + "path=/;";
	location.reload();
}

function get(){
	var js = getcookie("ad");
	if (!js) js = 0;
	return js;
}
function getcookie(key){
	tmp1 = " " + document.cookie + ";";
	xx1 = xx2 = 0;
	len = tmp1.length;
	while (xx1 < len) {
		xx2 = tmp1.indexOf(";", xx1);
		tmp2 = tmp1.substring(xx1 + 1, xx2);
		xx3 = tmp2.indexOf("=");
		if (tmp2.substring(0, xx3) == key) {
			return(unescape(tmp2.substring(xx3 + 1, xx2 - xx1 - 1)));
		}
		xx1 = xx2 + 1;
	}
	return 1;
}

init("basis");
