function flash_failed()
{
	$('#main_content').css({
		'padding' : 20,
		'height' : 395
		
	});
	
}
function flash_loading()
{
	$('#main_content').css({
		'padding' : '17px 0',
		'height' : 401
	});
	
}

function open_page(page)
{
	//alert(page);
	$.ajax({
		url: base_url+page+"/prop",
		type: 'GET',
		dataType: 'html',
		timeout: 2000,
		error: function(){
			window.open(base_url+page+'/prop');
		},
		success: function(html){
			var desc = $('#description');
			desc.empty().append(html).each(function(index, element){
				no_scroll(element);
			});
		}
	});
}

$(document).ready(function()
{
	flash_loading();
	$("#flash_container").flashembed(
		{'src': src, 'width': 680, 'height': 400, 'allowfullscreen': false, onFail: flash_failed, 'wmode': 'transparent'});
	
	$('#description').each(function(index, element){
		no_scroll(element);
	});
});

