
var skins = new Array('ujsag', 'carbon','tenger', 'erdo', 'besz', 'plasztik', 'beta','kontraszt');

function loadskins() {
 /*for( var i = 0; i < 8; i++ ) {
	if( skins[i] != profile.skin )
		document.write('<link rel="stylesheet" media="screen" href="./designs/'+skins[i]+'.css" />');
 }
 alert('<link id="mastercss" rel="stylesheet" media="screen" href="designs/'+profile.skin+'.css" />');*/
 document.write('<link id="mastercss" rel="stylesheet" media="screen" href="designs/'+profile.skin+'.css" />');
}
/*
function GetSID() {
	var httpRequest = CreateHTTP();
	httpRequest.open('GET', dbHost+"GetSID.php", false);
  httpRequest.send(null);
  var sid = httpRequest.responseText;
	if( window.location.search == "" ) {
		window.location = window.location + '?sid='+sid;
		return('');
	} else {
		return( GetQattr('sid') );
	}
}
*/
function GetQattr(str) {
	var ret = false;
	var s = window.location.search;
	var a = s.split('&');
	if( a.length > 0 ) a[0] = a[0].substr( 1 );
	for( var i = 0; i < a.length; i++ ) {
		if( a[i].substr( 0, str.length+1 ) == str+'=' ) {
			ret = a[i].substr( str.length+1 );
			break;
		} else 
		if( a[i] == str ) {
			ret = true;
			break;
		}
	}
	return( ret );
}

function Redir( HREF, attr) {
/*	if( attr != undefined ) window.location.href = HREF+'?sid='+profile.sid + attr;
	else window.location.href = HREF+'?sid='+profile.sid;*/
	if( attr != undefined ) window.location.href = HREF+'?'+ attr;
	else window.location.href = HREF;
}

function tvinit() {
 var musorobj;
 var panelobj;
 var panelcnt;

 var panels = 0;

 var lastmusor;
 var lastmusorq="even";
 var parity = document.createAttribute("parity");

 istv=1;

 if (document.all)
 {
  document.onmousedown=drags;
  document.onmouseup=drop;
 } else {
  window.captureEvents(Event.MOUSEDOWN);
  window.captureEvents(Event.MOUSEUP);

  window.onmousedown=ffdrags;
  window.onmouseup=drop;
 }
}

function SetHome() {
}
