function flash(file, w, h){
   document.write('<object style="display:block;" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="' +w+ '" height="' +h+ '">\n');
   document.write('<param name="movie" value="flash/' +file+ '.swf" />\n');
   document.write('<param name="quality" value="high" />\n');
   document.write('<param name="scale" value="noborder" />\n');
   document.write('<param name="wmode" value="transparent" />\n');
   document.write('<embed src="flash/' +file+ '.swf" wmode="transparent" quality="high" width="' +w+ '" height="' +h+ '"></embed>\n');
   document.write('</object>\n');
}



function flash_var(file, w, h, vars){
   var rn = Math.floor(Math.random()*11);
   document.write('<object style="display:block;" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="' +w+ '" height="' +h+ '">\n');
   document.write('<param name="flashvars" value="product_id=' + vars + '" />');
   document.write('<param name="movie" value="flash/' +file+ '.swf?r='+rn+'" />\n');
   document.write('<param name="quality" value="high" />\n');
   document.write('<param name="scale" value="noborder" />\n');
   document.write('<param name="wmode" value="transparent" />\n');
   document.write('<embed flashvars="product_id=' + vars + '" src="flash/' +file+ '.swf?r='+rn+'" wmode="transparent" quality="high" width="' +w+ '" height="' +h+ '"></embed>\n');
   document.write('</object>\n');
}



function h1_flash(id) {
	var text = document.getElementById(id).innerHTML;
	document.getElementById(id).innerHTML = h1_output(text);	
}

function h1_output(text){

	var output ='<object style="display: block;" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="980" height="81">'+
				'<param name="flashvars" value="h1text=' + text + '" />'+
				'<param name="movie" value="flash/h1_text.swf" />'+
				'<param name="quality" value="high" />'+
				'<param name="scale" value="noborder" />'+
				'<param name="wmode" value="transparent" />'+
				'<embed flashvars="h1text=' + text + '" src="flash/h1_text.swf" wmode="transparent" quality="high" width="980" height="81"></embed>'+
				'</object>';
	
	return output;

}


function h2_flash(id) {
	var text = document.getElementById(id).innerHTML;
	document.getElementById(id).innerHTML = h2_output(text);	
}

function h2_output(text){

	var output ='<object style="display: block;" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="720" height="50">'+
				'<param name="flashvars" value="h2text=' + text + '" />'+
				'<param name="movie" value="flash/h2_text.swf" />'+
				'<param name="quality" value="high" />'+
				'<param name="scale" value="noborder" />'+
				'<param name="wmode" value="transparent" />'+
				'<embed flashvars="h2text=' + text + '" src="flash/h2_text.swf" wmode="transparent" quality="high" width="720" height="50"></embed>'+
				'</object>';
	
	return output;

}


/* flash player */
function flash_player(file, w, h, xml){
   document.write('<object style="display:block;" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="' +w+ '" height="' +h+ '">\n');
   document.write('<param name="flashvars" value="infoPath=' +xml+ '" />\n');
   document.write('<param name="allowFullScreen" value="true" />\n');
   document.write('<param name="movie" value="flash/' +file+ '.swf" />\n');
   document.write('<param name="quality" value="high" />\n');
   document.write('<param name="scale" value="noborder" />\n');
   document.write('<param name="wmode" value="transparent" />\n');
   document.write('<embed flashvars="infoPath=' +xml+ '" allowFullScreen="true" src="flash/' +file+ '.swf" wmode="transparent" quality="high" width="' +w+ '" height="' +h+ '"></embed>\n');
   document.write('</object>\n');
}
/* end flash player */



/* drop menu */
function P7_ExpMenu(){ //v1.1.0.2 by PVII-www.projectseven.com
	if(navigator.appVersion.indexOf("MSIE")==-1){return;}
	var i,k,g,lg,r=/\s*tnaviefix/,nn='',c,cs='tnaviefix',bv='tnav';
	for(i=0;i<10;i++){g=document.getElementById(bv+nn);if(g){
	lg=g.getElementsByTagName("LI");if(lg){for(k=0;k<lg.length;k++){
	lg[k].onmouseover=function(){c=this.className;cl=(c)?c+' '+cs:cs;
	this.className=cl;};lg[k].onmouseout=function(){c=this.className;
	this.className=(c)?c.replace(r,''):'';};}}}nn=i+1;}
}
/* end drop menu */




/* hide/show divs */
var div = ''; // must be set outside the function so it is global //
function showdiv(id, name){

	id = id + '_' + name;
	
	if(div == ''){
		div = '1_' + name;
		document.getElementById(div).style.display = "none";
	}
	
	if(div.indexOf(name) != -1){
		document.getElementById(div).style.display = "none";
	}

	if(id && document.getElementById(id)){
		document.getElementById(id).style.display = "block";
		div = id;
	}

}
/* end hide/show divs */





/* slider */
function slider(){

	var classname	= "slide_info";
	var html		= new Array();

	var html		= document.getElementsByTagName("*");

	for(var x=0; x<html.length; x++){

		if(html[x].className == classname){
			html[x].style.display = "none";
		}

	}

}

function sd(m, e){

	var opentime = 20; // milliseconds //
	
	var m = document.getElementById(m);
	var e = document.getElementById(e);
	
	var eo = "+"; // extra when open //
	var ec = "-"; // extra when closed //

	if(m.style.display == "none"){

		m.style.visibility	= "hidden";
		m.style.display		= "block";
		
		var h				= m.offsetHeight;
		m.style.height		= "0px";
		m.style.visibility	= "visible";
		var ppl				= h/opentime; // 0px/opentime //
		
		process(m, 0, h, ppl, e, 1, ec);

	} else {

		m.style.display = "none";
		e.innerHTML = eo;

	}

}

function process(m, adj, h, ppl, e, x, ec){

	if(adj < h){

		m.style.height		= adj + "px";
		adj					= adj + ppl;
		setTimeout((function(){process(m, adj, h, ppl, e, x, ec);}),1);

	} else {
		m.style.height = "auto";
	}

	if(x==1){
		if (m.style.visibility == "visible"){
			e.innerHTML = "-";
		}
	}
	x++;

}
/* end slider */
