function refId(id){if(document.getElementById(id)){return document.getElementById(id);};};
function ajax(strURL,ar) {qstr='';for(var i in ar){if(qstr!=''){qstr+='&';};qstr+=String('a'+i+'='+ar[i]);};var xmlHttpReq=false;var self=this;if(window.XMLHttpRequest){self.xmlHttpReq=new XMLHttpRequest();}else if(window.ActiveXObject){self.xmlHttpReq=new ActiveXObject("Microsoft.XMLHTTP");};self.xmlHttpReq.open('POST',strURL,true);self.xmlHttpReq.setRequestHeader('Content-Type','application/x-www-form-urlencoded');self.xmlHttpReq.onreadystatechange=function(){if (self.xmlHttpReq.readyState==4){eval(self.xmlHttpReq.responseText);}};self.xmlHttpReq.send(qstr);}
function clickTab(obj,nr){
	var tabs = obj.parentNode.getElementsByTagName('div');
	for (var i=0; i<tabs.length; i++) {
		var imgs = tabs[i].getElementsByTagName('img');
		for (var j=0; j<imgs.length; j++) {
			if (i+1==nr) {
				if (j==0) {imgs[j].src='temp/img/tab_selected_left.jpg';}
				if (j==1) {imgs[j].src='temp/img/tab_selected_right.jpg';}
			} else {
				if (j==0) {imgs[j].src='temp/img/tab_left.jpg';}
				if (j==1) {imgs[j].src='temp/img/tab_right.jpg';}
			}
		}
		tabs[i].className='';
	};
	obj.className='tab_selected';
	refId('content_tab').innerHTML=textTab[nr];
}
var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
function fs_player_DoFSCommand(command, args) {
var fs_playerObj = isInternetExplorer ? document.all.fs_player : document.fs_player;
  if(command=='error')
 {alert("ERROR! "+args);}
}
function set_movie(tt1)
{
 document.all['fs_player'].FlashVars='movie_name='+tt1;
}
function fs_play()
{
 document.all['fs_player'].FlashVars='player_command=play';
}
function fs_stop()
{
 document.all['fs_player'].FlashVars='player_command=stop';
}
function fs_color(tt1)
{
 document.all['fs_player'].FlashVars='player_color='+tt1;
}
