function video_link(){
	popup_video = ""
	width_flv = 400
	//Array	
	function CriaArray (n) {
		this.length = n
        for (var i = 1 ; i <= n ; i++){
			this[i] = ""
		}   
	}
	
//--------------------------------------Numero de Swf's------------------------------------
	number_of_swf = 2	
	
	swf_size_url = new CriaArray (number_of_swf + 1)
	swf_size_name = new CriaArray (number_of_swf + 1)
	swf_size_h = new CriaArray (number_of_swf + 1)

//-------------------------------------- Tipos de Swf's--------------------------------------
	swf_size_url[2] = "http://www.band3d.com/videos/swfs/swf_video(400x270).swf"
	swf_size_name[2] = "400x270"
	swf_size_h[2] = 270

	swf_size_url[1] = "http://www.band3d.com/videos/swfs/swf_video(400x225).swf"
	swf_size_name[1] = "400x225"
	swf_size_h[1] = 225

//----------------------------------------------------------------
	for (var i = 1; i <= number_of_swf; i++){
		if (swf_size == swf_size_name[i]) {
			height_page = swf_size_h[i] + 70
			height_swf = swf_size_h[i] + 38
			link_swf = swf_size_url[i]
			i = number_of_swf + 1
		}
	}
	popup_video = "<a href=\"javascript:void(0);\" onclick=\"new_window_func('" + link_flv + "','" +height_swf+ "','" + width_flv + "','" + link_swf + "','" + label_movie + "','"+ height_page + "');\" onmouseover=\"window.status='" + label_movie + "';  return true;\" onmouseout=\"window.status='';  return true;\"><img alt=\"" + label_movie + "\" src=\"" + link_img + "\" border=\"0\" /></a>"
	document.write (popup_video)
}

function new_window_func(a,b,c,d,e,f) {
	var new_window = window.open('','miniwin','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width='+ c +',height='+ f +',top=200,left=200');
	new_window.document.write ('<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Frameset//EN\" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd\">')
	new_window.document.write ('<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"pt-br\" lang=\"pt\"><head><title>' + e + '</title><meta name=\"author\" content=\"Michel Silva (Band!!)\" />')
	new_window.document.write ('<style type=\"text/css\">@import url(\"http://www.band3d.com/pages/script/defaut.css\");</style>')
	new_window.document.write ('<link rel=\"icon\" href=\"http://www.band3d.com/images/favicon.ico\" type=\"image/x-icon\"/ >')
	new_window.document.write ('<link rel=\"icon\" href="http://www.band3d.com/images/favicon.ico\" type=\"image/x-icon\"/ >')
	new_window.document.write ('</head><body><center>') 
	new_window.document.write ('<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" title=\"' + e + '\"') 
	new_window.document.write ('codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" ')
	new_window.document.write ('width=' + c + ' height=' + b + ' id=\"' + e + '\" align=\"top\">')
	new_window.document.write ('<param name=\"allowScriptAccess\" value=\"sameDomain\" />')
	new_window.document.write ('<param name=\"movie\" value=\"' + d + '?flash_path=' + a + '.flv\">')
	new_window.document.write ('<param name=\"quality\" value=\"high\" />')
	new_window.document.write ('<param name=\"wmode\" value=\"transparent" />')
	new_window.document.write ('<embed src=\"'+ d +'?flash_path=' + a + '.flv\"') 
	new_window.document.write ('quality=\"high\" wmode=\"transparent\" width=' + c  + ' height=' + b + ' name=\"'+ e +'\" ')
	new_window.document.write ('align=\"top\" allowScriptAccess=\"sameDomain\"')
	new_window.document.write ('type=\"application/x-shockwave-flash\"') 
	new_window.document.write ('pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />')
	new_window.document.write ('</object>')
	new_window.document.write ('<br><center><a href=\"' + a + '_h264.mov\" target=\"_blank\" >Download high</a><span class=\"obs_video_preview\"><br>(Right Click and Save As...) </span></center>')
	new_window.document.write ('</center></body></html>');
	new_window.document.close()
}

function new_window_func_draw(a,c,e,f) {
// a = Endereço da Imagens
// c = width
// e = Titulo
// f = height
	var new_window = window.open('','miniwin','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width='+ c +',height='+ f +',top=200,left=200');
	new_window.document.write ('<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Frameset//EN\" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd\">')
	new_window.document.write ('<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"pt-br\" lang=\"pt\"><head><title>' + e + '</title><meta name=\"author\" content=\"Michel Silva (Band!!)\" />')
	new_window.document.write ('<style type=\"text/css\">@import url(\"http://www.band3d.com/pages/script/defaut.css\");</style>')
	new_window.document.write ('<link rel=\"icon\" href=\"http://www.band3d.com/images/favicon.ico\" type=\"image/x-icon\"/ >')
	new_window.document.write ('<link rel=\"icon\" href="http://www.band3d.com/images/favicon.ico\" type=\"image/x-icon\"/ >')
	new_window.document.write ('</head><body><center>') 
	new_window.document.write ('<img src=\"' + a + '\" width='+ c + ' height='+ f + ' alt =\"' + e + '\">') 
	new_window.document.write ('</center></body></html>');
	new_window.document.close()
}
