// FOR BUTTON SCRIPT

$(document).ready(function(){
	
	$(".button").mousedown(function(){
		$(this).css({ marginTop: '1px', marginLeft: '1px', marginBottom: '-1px', marginRight: '-1px', outline: 'none' });
	
	}).mouseup(function(){
		$(this).css({ margin: '0px' });
	});


// FOR ROUND CORNERS 
 
	
	if (jQuery.browser.msie && parseInt(jQuery.browser.version) <= 7)
	{
		
	}
	else  
	{
		$(".round_corner").corner();
	}

	
// FOR HELPER BAR

	$(".helpbar").before('<div class="helpbar_triangle"></div>');	
	
	
// FOR NEWS BLOCK
	
	$('#news .news:even DIV').addClass('left');
	$('#news .news:odd DIV').addClass('right');
	
	
// FOR TABLE 
	
	$('.table tr:even').addClass('even');
	$('.table tr:odd').addClass('odd');
	$('.table th:first').addClass('first');
	$('.table th:last').addClass('last');
	
	$('.zebra tr:even').addClass('even');
	$('.zebra tr:odd').addClass('odd');


});



/*

// TOP MENU CONSTRUCTOR
$("#menu_scr").ready(function(){

	var result = new Array("", "", "");
	var currentURI = String(window.location);
	var selectedClass = null;

	var parseMenu = function () { 	
	  $("#menu_scr li").each(function (a) {
			if (this.className == 'level1'){
				if ($(this).children('a').attr('class') != selectedClass) {
					result[1] += "<span><a href='"+ $(this).children('a').attr('href') +"'>" + $(this).children('a').html() + "</a></span> ";
				} else {
					result[1] += "<span><a href='"+ $(this).children('a').attr('href') +"' class='black'>"+ $(this).children('a').html() +"</a></span>";
				}
			}
 
	  
			if (this.className == 'level2' && $(this).children('a').attr('class') == selectedClass ){
				if (currentURI.search($(this).children('a').attr('href')) < 0) {
					result[2] += "<span><a href='"+ $(this).children('a').attr('href') +"'>" + $(this).children('a').html() + "</a></span> ";
				} else {
					result[2] += "<span><a href='"+ $(this).children('a').attr('href') +"' class='black'>" + $(this).children('a').html() + "</a></span>";
				}
			}
	  });
	};	
	
	
	  $("#menu_scr li").each(function (a) {
				if (currentURI.search($(this).children('a').attr('href')) >= 0) {
					selectedClass = $(this).children('a').attr('class');
					//alert(selectedClass);
				} 
	  });
	  
	//  parseMenu();

	//$("#menu_scr").remove();	
	//$(".first_level").html(result[1]);
	//$(".second_level").html(result[2]);

});

*/
