    $(function () {
	    var tabContainers = $('div.tabs > div.tabcnt');
	
		$('div.tabs a.tab_click').click(function () {
			tabContainers.hide().filter(this.hash).show();
	
			$('div.tabs a.tab_click').removeClass('selected');
			$(this).addClass('selected');
	
			return false;
		}).filter(':first').click();
		
	
	});

	function gup( name ){
		 name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
		var regexS = "[\\?&]"+name+"=([^&#]*)";
		var regex = new RegExp( regexS );
		var results = regex.exec( window.location.href );
		if( results == null )
		return "";
		else
		return results[1];
	}
	
	function getprice(id,id2) {
        var myArray = new Array();
        var myArray2 = new Array();

		myArray[3] = "329";
		myArray2[3] = "2499";
        myArray[4] = "329";
		myArray2[4] = "2499";
		myArray[5] = "979";
		myArray2[5] = "7319";
		myArray[6] = "979";
		myArray2[6] = "7319";
		myArray[7] = "979";
		myArray2[7] = "7319";
		myArray[8] = "979";
		myArray2[8] = "7319";
		myArray[9] = "1949";
		myArray2[9] = "14699";
		myArray[10] = "342";
		myArray2[10] = "20329";
		var price1 = myArray[id];
		var price2 = myArray2[id2];
        var price = 0;

		if (id2==-1){
        price = price1;
        }
		else{
		price = price2;
		};
		return price;
    };

	function panel_click(id, bool){	
		panel_id = "#" + id;
		if (bool == 1){
		$(".panel").hide();
		$(panel_id).slideToggle(100);
		$("#123" + id).validate();
		return false;}
		else{
		$(panel_id).hide();
		}
	};
	
	$(function (){
	if (window.location.href != "http://www.simpleubl.com/company/"){
	var tabContainers = $('div.tabs > div.tabcnt');
	tabContainers.hide().filter("#tab3").show();
	}
	});
	
	$(document).ready(function(){
		
		//link to contact section
		
		$(".contacts").click(function(){
		var tabContainers = $('div.tabs > div.tabcnt');
		tabContainers.hide().filter("#tab3").show();
		});
		
		//flag section
		$(".btn-slide-flag").click(function(){
			$("#flag_panel").slideToggle(50);
			$(this).toggleClass("active"); return false;	
		});
		
		//main_slider
		$("#slider").easySlider();
		
		//IE hover
		$("#navlist li#sub-products").mouseover(function(){
			$("#navlist li#sub-products ul").addClass("over");
		});
		$("#navlist li#sub-products").mouseout(function(){
			$("#navlist li#sub-products ul").removeClass("over");
		});
	
	});
	
	$(function (){
	var click = gup('click');
	if ( click == 'true'){
		id = gup ('id'); 
		panel_click(id, 1);
	}}
	);
	
	
	
	

