$(document).ready(function(){
	var total=7;
	var all_tags=new Array('/images/imgtabs/tab-gs-d.gif|/images/imgtabs/tab-gs-a.gif','/images/imgtabs/tab-wb-d.gif|/images/imgtabs/tab-wb-a.gif','/images/imgtabs/tab-ft-d.gif|/images/imgtabs/tab-ft-a.gif');
			
	//jQuery.fn.extend({
	//	tab1:function(curr){
	function tab1(curr){	
	        
	        
	        $('#imgLoad').css('display','inline');
	        
			$('#container5').hide();
			if(curr == 5)
			{
			$('#rqinfohidden1').show();
			$('#rqinfohidden2').show();
			$('#rqinfohidden3').show();
			$('#rqinfohidden4').show();
			$('#rqinfohidden5').show();
			$('#rqinfohidden6').show();
			    document.getElementById('spX').innerHTML = '<br />Start outsourcing your design requirements right away by providing the following details';
			       

			}
			else if(curr == 6)
			{
			$('#rqinfohidden1').hide();
			$('#rqinfohidden2').hide();
			$('#rqinfohidden3').hide();
			$('#rqinfohidden4').hide();
			$('#rqinfohidden5').hide();
			$('#rqinfohidden6').hide();
			    document.getElementById('spX').innerHTML = '<br />View our demo and see the unique design outsourcing solutions provided by Design Back Office. You can start right away by providing the required details';
			     
			}
			else if(curr == 7)
			{
			$('#rqinfohidden1').hide();
			$('#rqinfohidden2').hide();
			$('#rqinfohidden3').hide();
			$('#rqinfohidden4').hide();
			$('#rqinfohidden5').hide();
			$('#rqinfohidden6').hide();
			
			   document.getElementById('spX').innerHTML = '<br />Sign up right away and request more information to save $999. Simply provide the required details and you will be contacted accordingly by our design representative.';
			  
			}
			for (i=5;i<=total;i++)
			{
				var tag_id='tag'+i;
				var cls=all_tags[i-5];				
				var cls_arr=cls.split('|');
				
				var cont_id='container5';
				if (i==curr){
					$('#'+tag_id).attr('src', cls_arr[1]);
					if ($("#"+cont_id).css('display')!='block'){
						setTimeout('$("#'+cont_id+'").show();',20);  
					}
				}else{
					if (cont_id!=i){
						$('#'+tag_id).attr('src',cls_arr[0]);
						$("#"+cont_id).hide();
					}
				}
			}	
		}
	//});
	document.getElementById('spX').innerHTML = '<br />Start outsourcing your design requirements right away by providing the following details';
			    
			    var hdqryval=20;
			    var pcCode = 1;
			    
			    try
			    {
			        hdqryval=document.getElementById('hdfdboqry').value;
			        document.getElementById('frameRight').src='/WebPages/Client/SignUp/ClientSignUp.aspx?btCode='+hdqryval;
			    }
			    catch(ex)
			    {
			    }
			    
			    try
			    {
			        pcCode = document.getElementById('hdfProductCode').value;
			        document.getElementById('frameRight').src='/WebPages/Client/SignUp/ClientSignUp.aspx?pc='+pcCode;
			    }
			    catch(ex)
			    {
			    }
			    
	//$(this).tab1(5);
	$('#tag5').click(function(){
		//$(this).tab1(5);
		tab1(5);
	});	
	$('#tag6').click(function(){
	    tab1(6);
		//$(this).tab1(6);
	});	
	$('#tag7').click(function(){
	    tab1(7);
		//$(this).tab1(7);
	});	
});