$(function()
{
		/*IE6 PngFix*/
		if(jQuery.browser.msie && jQuery.browser.version == 6)
		{
			$("#adcblogo").attr("src", "images/blank.gif");
			$("#adcblogo").css("filter", "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/logo.png', sizingMethod='scale')");
			$("#investlink_banner").attr("src", "images/blank.gif");
			$("#investlink_banner").css("filter", "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/invest_link_banner.png', sizingMethod='scale')");
			$("#cellphone_banner").attr("src", "images/blank.gif");
			$("#cellphone_banner").css("filter", "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/stocksmart_depository_banne.png', sizingMethod='scale')");
			$("#stocksmart_banner").attr("src", "images/blank.gif");
			$("#stocksmart_banner").css("filter", "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/stocksmart_depository_banne.png', sizingMethod='scale')");
			$("#submitentry").attr("src", "images/blank.gif");
			$("#submitentry").css("filter", "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/submitentry.png', sizingMethod='scale')");
			$("#clearentry").attr("src", "images/blank.gif");
			$("#clearentry").css("filter", "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/clearentry.png', sizingMethod='scale')");
		}
		/*IE6 PngFix*/
		
		/*cufon*/
		Cufon.replace('h2');
		Cufon.replace('h3');
		Cufon.replace('h4');
		Cufon.replace('dl.questions dt');
		/*cufon*/
		
		/*Expand collapse*/
		var $g = jQuery.noConflict();
			$g("#expand_collapse ul li h3").click(function(){			
				$g(this).next(".content").slideToggle(500).siblings(".content").slideUp(500);
				$g(this).toggleClass("active"); return false;
			});
			
			$g(".expandall").click(function(){
				$g(".content").slideDown(500,function(){$g(this).prev().addClass("active");});
				return false;
			});
		
			$g(".collapseall").click(function(){
				$g(".content").slideUp(500,function(){$g(this).prev().removeClass("active");});
				return false;
			});
		/*Expand collapse*/
		
		/*Feedback Fields display/hide text*/
			var strvalue;
			
			$g('input[type=text]').focus(function() {
				$g(this).val('');
      		});
			
			$g("#name").blur(function() {
				strvalue= $g("#name").val();
				if(strvalue=='')
				{
					$g("#name").val('Your Name');
				}
      		});
			
			$g("#email").blur(function() {
				strvalue= $g("#email").val();
				if(strvalue=='')
				{
					$g("#email").val('E-Mail Address');
				}				
      		});
			
			$g("#occupation").blur(function() {
				strvalue= $g("#occupation").val();
				if(strvalue=='')
				{
					$g("#occupation").val('Occupation');
				}				
      		});
			
			/*textarea*/
			$g('textarea').focus(function() {
				strvalue= $g("#comment").val();
				if(strvalue=='Type your comments here')
				{
					$g(this).val('');
				}
			});
			$g("#comment").blur(function() {
				strvalue= $g("#comment").val();
				if(strvalue=='')
				{
					$g("#comment").val('Type your comments here');
				}				
      		});
			/*textarea*/
			$g("#clearentry").click(function(){
				$g('input[type=text]').val('');
				$g('textarea').val('');
				$g("#country").attr('value','Select Country');
				$g("#city").attr('value','Select City');
			});			
			
			

		/*Feedback Fields display/hide text*/
		
});		


  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-20193702-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

	
	

