function NewWindow(mypage,myname,w,h,scroll){ 

LeftPosition = (screen.width) ? (screen.width-w)/2 : 0; 
TopPosition = (screen.height) ? (screen.height-h)/2 : 0; 

settings ='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable' 
window.open(mypage,myname,settings) 
} 

// ------------------------------------------------------------------
//New Design Corner
// ------------------------------------------------------------------
var currentptab;
var timeclear;
jQuery(document).ready(function(){

					paint_borders();
					currentptab=jQuery("#top_tabbed_menu li[class=current]");
					jQuery("#top_tabbed_menu").mouseover(function(){
						if(timeclear!=undefined)
						{
							clearTimeout(timeclear);
							
							
						}
						timeclear=undefined;
					});
					
				 	jQuery("#top_tabbed_menu").mouseout(function(){
				 		if(timeclear==undefined)
						{
				 			timeclear=setTimeout("resetCurrentTab();",2000);	
						}
				 		
											
					});
		});

		function resetCurrentTab()
		{
			jQuery("#top_tabbed_menu li ul").each(function(){
				jQuery(this).hide();				
			});
			
			jQuery("#top_tabbed_menu .current").each(function(){
				jQuery(this).removeAttr("class");
			});
			
			currentptab.attr("class","current").children("ul").show();
			
		}

		/**
		 *
		 * @access public
		 * @return void
		 **/
		function paint_borders()
		{
				jQuery("#header_menu").css("z-index","9999999");
				jQuery(".grayheader,.blueheader,.blueheaderarrow").corner("top 8px");

				jQuery(".blueheaderarrow").each(function(){jQuery(this).html("<span class='titlearrow'>"+jQuery(this).html()+"</span>")});

				if(!jQuery.browser['opera'])
				{
				jQuery(".blueheaderarrow").prepend("<img class='redarrow' src='/images/redarrow_bluematte.gif' />&nbsp");
				}

				jQuery("table[class=tableborder]").each(function(){

				jQuery(this).find("tr:first td[class=tableheader]").css({padding: "0px 0px 5px 0px"}).each(function(){

				if(jQuery(this).prev().attr("class") !="tableheader" && jQuery(this).next().attr("class") !="tableheader")//colspan
				{
					addRedArrow(jQuery(this));
				  	jQuery(this).corner("top 5px").css("z-index","-90");

				}
				else if(jQuery(this).prev().attr("class") !="tableheader")
				{
					addRedArrow(jQuery(this));
					jQuery(this).corner("tl 5px");
				}

				else if(jQuery(this).next().attr("class") !="tableheader")
				{
					addRedArrow(jQuery(this));
					jQuery(this).corner("tr 5px");
				}

				});

					jQuery(this).find("tr:gt(0) td[class=tableheader]").prepend("<img class='redarrowsub' src='/images/redarrow_bluematte.gif' />&nbsp");

					});

					


					if(!(jQuery.browser["msie"] && jQuery.browser["version"]<7))//not working in IE 6 body round
					{
 						jQuery(".graybody").corner("bottom 8px");
						//jQuery("#left_sidebar_menu").corner("bottom 8px");

					}			
			
			
			adjust_menu();
					
		}

		/**
		 *
		 * @access public
		 * @return void
		 **/
		function addRedArrow(jQueryobject)
		{

			if(jQueryobject && jQueryobject.html().search(/redarrow/)==-1)
			{
				jQueryobject.prepend("<img class='redarrow' src='/images/redarrow_bluematte.gif' />&nbsp");
			}
		}


		/**
		 *
		 * @access public
		 * @return void
		 **/
		
		function adjust_menu()
		{
			/**
			jQuery("#top_tabbed_menu li[class=current]").children("ul").show();
			
			
			
			jQuery("#top_tabbed_menu li[title=topli]").mouseover(function(){
				
				jQuery("#top_tabbed_menu li ul").each(function(){
					jQuery(this).hide();				
				});
				
				jQuery("#top_tabbed_menu .current").each(function(){
					jQuery(this).removeAttr("class");
				});
				
				jQuery(this).attr("class","current").children("ul").show();
				
			});
			**/
			
			
			var docHeader = document.getElementById("maincontent");
			var docMenu = document.getElementById("left_sidebar_menu");

			if(!docHeader || !docMenu)
			{
				return;
			}

     		contentHeight = docHeader.offsetHeight;
     		
     		menuHeight = docMenu.offsetHeight;

     		(menuHeight<contentHeight) ? jQuery("#left_sidebar_menu").css({"height":contentHeight}) : "";
			
		}



