$(document).ready(function(){
	Cufon.replace('h1');
	Cufon.replace('h2');
	Cufon.replace('h3');
	Cufon.replace('h5');
	Cufon.replace('.plans li strong');
	Cufon.now();
	<!--$('.pgHome .banner').html('<img src="/images/screen-shot-trans.png" alt="" />');-->
	$(".plans li:odd em").css("background-position", "left -40px");
	$(".plans li:odd i").css("background-color", "#E1EEF0");
	$(".plans li:odd strong").css("background-position", "right -40px");

	$('.pgTour .links a').click(function() {
		var listItem = jQuery(this).parent();
		//alert($('.pgTour .links li').index(listItem));
		$.each($('.pgTour .links li'), function(index) {
		  $(this).removeClass('current');
		});

		$.each($('.shots div'), function(index) {
		  if($('.pgTour .links li').index(listItem) == index){
			  //$(this).css('display','block');
			  $(this).slideDown();
		  }
		  else{
			   //$(this).css('display','none');
			   $(this).slideUp();
		  }
		});
		listItem.addClass('current');
		return false;
	});

});

function iniHome(){
	$(document.body.parentNode).css('background','url(/media/site/images/bg-html.png) repeat-x');
	$(document.body).css('background','url(/media/site/images/bg-body.jpg) no-repeat center top');
}

function iniSub(){
	$(document.body.parentNode).css('background','url(/media/site/images/bg-html-sub.png) repeat-x');
	$(document.body).css('background','url(/media/site/images/bg-body-sub.jpg) no-repeat center top');
	Cufon.replace('h1', {textShadow: '1px 2px #000'});
}

/* Input Blur
* @url http://remysharp.com/2007/01/25/jquery-tutorial-text-box-hints/
*/

(function ($) {

$.fn.hint = function (blurClass) {
  if (!blurClass) {
    blurClass = 'blur';
  }

  return this.each(function () {
    // get jQuery version of 'this'
    var $input = $(this),

    // capture the rest of the variable to allow for reuse
      title = $input.attr('title'),
      $form = $(this.form),
      $win = $(window);

    function remove() {
      if ($input.val() === title && $input.hasClass(blurClass)) {
        $input.val('').removeClass(blurClass);
      }
    }

    // only apply logic if the element has the attribute
    if (title) {
      // on blur, set value to title attr if text is blank
      $input.blur(function () {
        if (this.value === '') {
          $input.val(title).addClass(blurClass);
        }
      }).focus(remove).blur(); // now change all inputs to title

      // clear the pre-defined text when form is submitted
      $form.submit(remove);
      $win.unload(remove); // handles Firefox's autocomplete
    }
  });
};

})(jQuery);

function get_browser_timezone() {
	var d = new Date();
	var date_str = new String(d);
	var patt = /GMT[-+]\d+/i;
	var tmz = new String(date_str.match(patt));
	var tmz1 = tmz.slice(-2);
	tmz = tmz.replace(tmz1, ":"+tmz1);
	return (tmz);
}

//------------Input Blur End---------------

//a simple function to click next link
//a timer will call this function, and the rotation will begin :)
function rotate() {
    $('#next').click();
}
