// This file contains email encoding scripts. 
// It also dictates menus and their behavior that are attached to <img> tags, for menus, etc.


/*
 * EMail Encoding
 *
 * This script encodes email addresses so that they can't be harvested by spammers
 *
 */

/*  example inline script:
	if the email address is the link:
	<script type="text/javascript" language="javascript">makeAddress('business');</script>
	
	if you have a specific subject line:
	<script type="text/javascript" language="javascript">makeAddress('business','','','THIS IS THE SUBJECT');</script>
	
	if alternative text is the link:
	<script type="text/javascript" language="javascript">makeAddress('business','THIS WILL BE THE LINKED TEXT');</script>	
	
	if the email is the link and the mail goes to a different domain:
	<script type="text/javascript" language="javascript">makeAddress('business','','somedomain.com');</script>
*/

var primaryDomain = "biocardia.com";
var domain = primaryDomain;
function makeAddress(address,linkTxt,location,subject){
	if(location){
		domain = location;
	}else{
		domain = primaryDomain;
	}
	var Mailme;	
	if(subject){
		Mailme= "mail" + "to:" + address+"@"+domain+"?subject="+subject;
	}else{
		Mailme= "mail" + "to:" + address+"@"+domain;
	}
	document.write('<a href="'+Mailme+'">');
	if (linkTxt){
		document.write(linkTxt);
	}else{
		document.write(address+"@"+domain);
	}
	
	document.write("</a>");
}

//END MAILTO ASSEMBLY SCRIPT


/*
 * Img Tag Controls
 *
 * This script controls attributes of the img tags. See below for details
 *
 */
 

limit_multiple_users = true
limit_users = true  
sequence = "9x88_4"

//  Compatible With....
//
//      IE4, IE5.x, IE6 (Win 95, 98, ME, 2000, NT, XP)
//      IE4, IE5.x, &up (Mac)
//      IE4 & up (other platforms)
//      NS4.x (All Platforms)
//      NS5/6.x (All Platforms)
//      NS7 (All Platforms)
//      Opera 5,6,7 (All Platforms)
//      Mozilla 0.6 & up (All Platforms)
//      Konqueror 2.2 & up (Linux)
//      Espial Escape 4.x & up (All Platforms)
//      Ice Browser 5.x & up (All Platforms)
//      Safari 1.0 (Mac only browser)
//      Degrades gracefully in older browsers 
//
//  
//  To customize open this file in a simple text 
//  editor (Notepad or similar). Modify and add parameters (all 
//  customizable parameters start with 'dqm__'), save this file,
//  and open 'sample.htm' in a browser to view your menu. View
//  the source for sample.htm for information on connecting 
//  sub menus to HTML images or build your page around the
//  included sample.htm file.
//
//  Menu conditionally loads the necessary JavaScript
//  files (.js) depending on the browser and platform the user
//  is viewing the menu on. The total file size for each
//  browser / platform scenario is no larger than 12K.
//
//  This sample data file contains comments and help information
//  to assist in the initial customization of your drop down 
//  menu. If you base your implementation on this documented template
//  we recommend the removal of the comments before using on the web, as 
//  to optimize the overall file size and load time of the menu for 
//  the end user.  With the comments removed this sample data files
//  size may be reduced by as much as 50%. Note: To simplify comment 
//  removal there is a uncommented version of this sample template
//  offered in the 'samples' folder.
//
//
//  NOTE: Parameters prefixed with '//' are commented out,
//        delete the '//' to activate the parameter. 
//
//        Commenting out required parameters will cause errors.
//
//        Text values, except TRUE and FALSE statements, must be
//        enclosed by double quotes (").
//  
//        Each parameter value should appear on its own line.
//
//        This data file may also be placed within your HTML page
//        by enclosing between JavaScript tags.
//
//        Due to browser limitations, DHTML menus will not appear
//        on top of Flash objects (unless the flash objects 'wmode'
//        parameter is set to transparent, however this may be buggy), 
//        across frames, or over certain form field elements. A hide 
//        and show workaround for form fields is included with this menu
//        (see the FAQ for additional information).         



/*-------------------------------------------
Colors, Borders, Dividers, and more...
--------------------------------------------*/


	dqm__sub_menu_width = 130      		//default sub menu widths
	dqm__sub_xy = "0,0"            		//default sub x,y coordinates - defined relative
						//to the top-left corner of parent image or sub menu
   

	dqm__urltarget = "_self"		//default URL target: _self, _parent, _new, or "my frame name"

	dqm__border_width = 0
	dqm__divider_height = 2

	dqm__border_color = "#BCBCBC"		//Hex color or 'transparent'
	dqm__menu_bgcolor = "#D2D2D2"		//Hex color or 'transparent'
	dqm__hl_bgcolor = "#C01212"		

	dqm__mouse_off_delay = 150		//defined in milliseconds (activated after mouse stops)
	dqm__nn4_mouse_off_delay = 500		//defined in milliseconds (activated after leaving sub)


/*-------------------------------------------
Font settings and margins
--------------------------------------------*/
   

    //Font settings

	dqm__textcolor = "#333"
	dqm__fontfamily = "Verdana"		//Any available system font     
	dqm__fontsize = 11			//Defined with pixel sizing  	
	dqm__fontsize_ie4 = 9			//Defined with point sizing
	dqm__textdecoration = "normal"		//set to: 'normal', or 'underline'
	dqm__fontweight = "normal"		//set to: 'normal', or 'bold'
	dqm__fontstyle = "normal"		//set to: 'normal', or 'italic' 	


    //Rollover font settings

	dqm__hl_textcolor = "#fff"
	dqm__hl_textdecoration = "bold"	//set to: 'normal', or 'underline'



    //Margins and text alignment

	dqm__text_alignment = "left"		//set to: 'left', 'center' or 'right'
	dqm__margin_top = 6
	dqm__margin_bottom = 6
	dqm__margin_left = 6
	dqm__margin_right = 6

   


/*-------------------------------------------
Bullet and Icon image library - Unlimited bullet
or icon images may be defined below and then associated
with any sub menu items within the 'Sub Menu Structure 
and Text' section of this data file.
--------------------------------------------*/


    //Relative positioned icon images (flow with sub item text)

	dqm__icon_image0 = "sample_images/bullet.gif"
	dqm__icon_rollover0 = "sample_images/bullet_hl.gif"
	dqm__icon_image_wh0 = "13,8"

	

    //Absolute positioned icon images (coordinate poitioned)

	dqm__2nd_icon_image0 = "sample_images/arrow.gif"
	dqm__2nd_icon_rollover0 = "sample_images/arrow.gif"
	dqm__2nd_icon_image_wh0 = "13,10"
	dqm__2nd_icon_image_xy0 = "0,4"



/*---------------------------------------------
Optional Status Bar Text
-----------------------------------------------*/

	dqm__show_urls_statusbar = false
   
	//dqm__status_text0 = "Sample text - Main Menu Item 0"
	//dqm__status_text1 = "Sample text - Main Menu Item 1"

	//dqm__status_text1_0 = "Sample text - Main Menu Item 1, Sub Item 0"	
	//dqm__status_text1_0 = "Sample text - Main Menu Item 1, Sub Item 1"	




/*-------------------------------------------
Internet Explorer Transition Effects
--------------------------------------------*/


    //Options include - none | fade | pixelate |iris | slide | gradientwipe | checkerboard | radialwipe | randombars | randomdissolve |stretch

	dqm__sub_menu_effect = "none"
	dqm__sub_item_effect = "none"


    //Define the effect duration in seconds below.
   
	dqm__sub_menu_effect_duration = .4
	dqm__sub_item_effect_duration = .4


    //Specific settings for various transitions.

	dqm__effect_pixelate_maxsqare = 25
	dqm__effect_iris_irisstyle = "CIRCLE"		//CROSS, CIRCLE, PLUS, SQUARE, or STAR
	dqm__effect_checkerboard_squaresx = 14
	dqm__effect_checkerboard_squaresY = 14
	dqm__effect_checkerboard_direction = "RIGHT"	//UP, DOWN, LEFT, RIGHT


    //Opacity and drop shadows.

	dqm__sub_menu_opacity = 100			//1 to 100
	dqm__dropshadow_color = "none"			//Hex color value or 'none'
	dqm__dropshadow_offx = 5			//drop shadow width
	dqm__dropshadow_offy = 5			//drop shadow height



/*-------------------------------------------
Browser Bug fixes and Workarounds
--------------------------------------------*/


    //Mac offset fixes, adjust until sub menus position correctly.
   
	dqm__ie4mac_offset_X = -8
	dqm__ie4mac_offset_Y = -50


    //Netscape 4 resize bug workaround.

	dqm__nn4_reaload_after_resize = true
	dqm__nn4_resize_prompt_user = false
	dqm__nn4_resize_prompt_message = "To reinitialize the navigation menu please click the 'Reload' button."
   

    //Opera 5 & 6, set to true if the menu is the only item on the HTML page.

	dqm__use_opera_div_detect_fix = true


    //Pre-defined sub menu item heights for the Espial Escape browser.

	dqm__escape_item_height = 20
	dqm__escape_item_height0_0 = 70
	dqm__escape_item_height0_1 = 70


/*---------------------------------------------
Exposed menu events
----------------------------------------------*/


    //Reference additional onload statements here.

	//dqm__onload_code = "alert('custom function - onload')"


    //The 'X' indicates the index number of the sub menu group or item.
    //The 'X_X' indicates the index number of the sub menu item.

	dqm__showmenu_codeX = "status = 'custom show menu function call - menu0'"
	dqm__hidemenu_codeX = "status = 'custom hide menu function call - menu0'"
	dqm__clickitem_codeX_X = "alert('custom Function - Menu Item 0_0')"



/*---------------------------------------------
Specific Sub Menu Settings
----------------------------------------------*/


    //The following settings may be defined for specific sub menu groups.
    //The 'X' represents the index number of the sub menu group.

	dqm__border_widthX = 10;
	dqm__divider_heightX = 5;		
	dqm__border_colorX = "#0000ff";     
	dqm__menu_bgcolorX = "#6E6F71"
	dqm__hl_bgcolorX = "#00ff00"
	dqm__hl_textcolorX = "#ff0000"
	dqm__text_alignmentX = "left"


    //The following settings may be defined for specific sub menu items.
    //The 'X_X' represents the index number of the sub menu item.

	dqm__hl_subdescX_X = "custom highlight text"
	dqm__urltargetX_X = "_new"




/**********************************************************************************************
**********************************************************************************************

                           Main Menu Rollover Images and Links  

**********************************************************************************************
**********************************************************************************************/



    //Main Menu Item 0

	//dqm__rollover_image0 = "images/upArrow_siteTree.gif"
	//dqm__rollover_wh0 = "51,22"
	//dqm__url0 = "my_url.html";   


    //Main Menu Item 1

	//dqm__rollover_image1 = "sample_images/products_hl.gif"
	//dqm__rollover_wh1 = "65,22"
	//dqm__url1 = "my_url.html";


    //Main Menu Item 2

	//dqm__rollover_image2 = "sample_images/downloads_hl.gif" 
	//dqm__rollover_wh2 = "76,22"
	//dqm__url2 = "my_url.html";   


    //Main Menu Item 3

	//dqm__rollover_image3 = "sample_images/contact_hl.gif" 
	//dqm__rollover_wh3 = "55,22"
	//dqm__url3 = "my_url.html";   
  




/**********************************************************************************************
**********************************************************************************************

                              Sub Menu Structure and Text  

**********************************************************************************************
**********************************************************************************************/
   


    //Sub Menu 0

	dqm__sub_xy0 = "-50,22"
	dqm__sub_menu_width0 = 300

	dqm__subdesc0_0 = "<img src='images/drop_down_folder.gif' width='50' height='28' border='0'align=absmiddle> Subfolder"
	dqm__subdesc0_1 = "<img src='images/drop_down_folder.gif' width='50' height='28' border='0' align=absmiddle> Subfolder"

	dqm__url0_0 = "#"
	dqm__url0_1 = "#"


    //Sub Menu 1-5
	//Down Arrow Buttons

	dqm__sub_xy1 = "-186,24"
		dqm__sub_menu_width1 = 185
		dqm__text_alignment1 = "left"

		dqm__subdesc1_0 = "Overview"
		dqm__subdesc1_1 = "Products"
		dqm__subdesc1_2 = "Pipeline"
		dqm__subdesc1_3 = "Publications &amp; Talks"
		dqm__subdesc1_4 = "Patents"
		dqm__subdesc1_5 = "Press &amp; News"
		dqm__subdesc1_6 = "Scientific Advisors"
		
		dqm__url1_0 = "/helix/"
		dqm__url1_1 = "/helix/products.shtml"
		dqm__url1_2 = "/helix/pipeline.shtml"
		dqm__url1_3 = "/helix/publications.shtml"
		dqm__url1_4 = "/helix/patents.shtml"
		dqm__url1_5 = "/helix/pr_news.shtml"
		dqm__url1_6 = "/helix/scientific_advisors.shtml"
	

	dqm__sub_xy2 = "-174,24"
		dqm__sub_menu_width2 = 173
		dqm__text_alignment2 = "left"

		dqm__subdesc2_0 = "Overview"
		dqm__subdesc2_1 = "Products"
		dqm__subdesc2_2 = "Case Reports"
		dqm__subdesc2_3 = "Publications &amp; Talks"
		dqm__subdesc2_4 = "Patents"
		dqm__subdesc2_5 = "Press &amp; News"
		dqm__subdesc2_6 = "Scientific Advisors"
		
		dqm__url2_0 = "/morph/"
		dqm__url2_1 = "/morph/products.shtml"
		dqm__url2_2 = "/morph/case_reports.shtml"
		dqm__url2_3 = "/morph/publications.shtml"
		dqm__url2_4 = "/morph/patents.shtml"
		dqm__url2_5 = "/morph/pr_news.shtml"
		dqm__url2_6 = "/morph/scientific_advisors.shtml"


	dqm__sub_xy3 = "-81,24"
		dqm__sub_menu_width3 = 170
		dqm__text_alignment3 = "left"

		dqm__subdesc3_0 = "About BioCardia"
		dqm__subdesc3_1 = "Management"
		dqm__subdesc3_2 = "Directors"
		dqm__subdesc3_3 = "Investor Relations"
		dqm__subdesc3_4 = "Careers"
		dqm__subdesc3_5 = "Contact Us"

		dqm__url3_0 = "/about/"
		dqm__url3_1 = "/about/officers.shtml"
		dqm__url3_2 = "/about/directors.shtml"
		dqm__url3_3 = "/about/investors.shtml"
		dqm__url3_4 = "/about/careers.shtml"
		dqm__url3_5 = "/about/contact.shtml"
		
	
	//Sub Menu 8
	//site_details breadcrumb nav

	dqm__sub_xy8 = "-50,22"
	dqm__sub_menu_width8 = 300

	dqm__subdesc8_0 = "<img src='images/drop_down_site.gif' width='50' height='28' border='0' align=absmiddle> Site X"
	dqm__subdesc8_1 = "<img src='images/drop_down_site.gif' width='50' height='28' border='0' align=absmiddle> Site Y"

	dqm__url8_0 = "#"
	dqm__url8_1 = "#"


