function show_big_map(){
	//$('#big_map').show();
	swf = 'map';
	tb_show('Choose your destiny','#TB_inline?height=391&width=931&inlineId=bigmap&modal=false', false);
}

function ask_for_score(){
	//alert('hey');
	formSend2('map_small', '1');
}
function getFlashMovie2(movieName) {
	var isIE = navigator.appName.indexOf("Microsoft") != -1;
		return (isIE) ? window[movieName] : document[movieName];
}
function formSend2(div, text) {
	getFlashMovie2(div).sendTextToFlash(text);
}
var swf = '';
function show_help(){
	swf = 'help';
	tb_show('Help','#TB_inline?height=283&width=291&inlineId=bigmap&modal=false', false);
}

$(document).ready(function(){





	function getFlashMovie(movieName) {
		var isIE = navigator.appName.indexOf("Microsoft") != -1;
		return (isIE) ? window[movieName] : document[movieName];
	}
	function formSend(div, text) {
		getFlashMovie(div).sendTextToFlash(text);
	}
	$('.player_list ul li a').click( function(){
		//alert($(this).attr('id'));
		formSend2('thevid',$(this).attr('id'));
		//alert($(this).next('span').html());
		$('.player_desc').html($(this).next('span').html());
		return false;
	})

	$('.li1 input').focus( function(){
		$(this).addClass('select');
	})
	$('.li1 input').blur( function(){
		$(this).removeClass('select');
	});

	$('.li1 input').hover( function(){
		$(this).addClass('hover');
	},function(){
		$(this).removeClass('hover');
	});

	$('#home-map').flash({
		src: 'mapa_home.swf',
		width: 931,
		height: 391,
		flashvars: { intro_vid:'true', domain:'/' }
	},
	{
		version: 8
	});

	/*
	$('#panel').flash({
		name: 'map_small',
		src: '../mapa_small.swf',
		width: 296,
		height: 167,
		wmode: 'transparent'
	},
	{
		version: 8
	});
	*/
	swfobject.embedSWF("../mapa_small.swf", "map_small", "296", "167", "9.0.0",'', {}, { wmode:'transparent' });



	function vIE(){return (navigator.appName=='Microsoft Internet Explorer')?parseFloat((new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})")).exec(navigator.userAgent)[1]):-1;}

	$(window).scroll(function() {
		var version = vIE();
		if(version == 6){
			$('#panel').css('top', $(this).scrollTop() + "px");
		}
	});

});


