function showFlash(name,way,width,height,wmode,align,bgcolor,flashvars){
	str='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+width+'" height="'+height+'" id="'+name+'" align="'+align+'"><param name="allowScriptAccess" value="always" /><param name="movie" value="'+way+name+'.swf" /><param name="menu" value="false" /><param name="quality" value="high" /><param name="wmode" value="'+wmode+'" /><param name="bgcolor" value="#'+bgcolor+'" /><param name="flashvars" value="'+flashvars+'" /><embed src="'+way+name+'.swf" flashvars="'+flashvars+'" menu="false" quality="high" wmode="'+wmode+'" bgcolor="#'+bgcolor+'" width="'+width+'" height="'+height+'" name="'+name+'" align="'+align+'" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';
	document.writeln(str);
}
$(document).ready(function(){
	var galleryItems = $("div.gpic a[rel^='prettyPhoto']");
	if (galleryItems.length > 0) {
		galleryItems.prettyPhoto({theme:'dark_rounded'});
	}
    /***** SEARCH BLOCK *****/
      /* attach a submit handler to the form */
  $("#searchForm").submit(function(event) {

    /* stop form from submitting normally */
    event.preventDefault(); 
        
    /* get some values from elements on the page: */
    var $form = $( this ),
        term = $form.find( 'input[name="search"]' ).val(),
        url = $form.attr( 'action' );

    /* Send the data using post and put the results in a div */
    $.post( url, { search: term },
      function( data ) {
          $( "#result" ).empty().append( data );/**/
      }
    );
  });
  
  
});

