//Change colour menu on hover// var my_win_height=""; var my_menu_height=""; var my_menu_width=""; var my_a_width=""; var width_result=""; var height_result=""; function CheckColorCode(color_code){ if (color_code>255){ return 255; } else if(color_code<0){ return 0; } else{ return color_code; } } function ShadeColor(color_bg,tone_color){ var r=0,g=0,b=0; var color_new=color_bg.split(","); r=color_new[0].split("("); r=CheckColorCode(eval("parseInt(r[1])+tone_color")); g=CheckColorCode(eval("parseInt(color_new[1])+tone_color")); b=color_new[2].split(")"); b=CheckColorCode(eval("parseInt(b[0])+tone_color")); return "rgb("+r+","+g+","+b+")"; } function ResizeHeightMenu(window_height,menu_height){ my_win_height=window_height my_menu_height=menu_height.replace("px",""); height_result=""; my_win_height=parseInt(my_win_height); my_menu_height=parseInt(my_menu_height); if (my_win_height>my_menu_height){ height_result=my_win_height+"px"; } else{ my_menu_height=my_menu_height+20; height_result=my_menu_height+"px"; height_result="auto"; } return height_result; } function ScrollingMenu(window_height,menu_height){ my_win_height=window_height; my_menu_height=menu_height; if (my_win_height>my_menu_height){ return "hidden"; } else{ return "auto"; } } function ResizeWidthMenu(menu_width,link_width){ my_menu_width=menu_width; my_a_width=link_width; if (my_menu_width>my_a_width){ width_result=my_menu_width+"px"; } else{ my_a_width=my_a_width+50; width_result=my_a_width+"px"; } return width_result; } function ConvertDate(param_date){ var myyear=""; var mymonth=""; var mydate=""; var fulldate=""; mydate=param_date.substring(0,2); mymonth=param_date.substring(3,5); myyear=param_date.substring(6,10); fulldate=myyear+"/"+mymonth+"/"+mydate; return fulldate; }