// JavaScript Document

Cufon.replace('h1,h2,h3,h4,h5,h6');
Cufon.replace('.cufon');

function itemFocus(element,value)
{
	var el = document.getElementById(element);
	if (el.value == value) {
		el.value = '';
	}
}
function itemFocusOut(element,value)
{
	var el = document.getElementById(element);
	if (el.value == '') {
		el.value = value;
	}
}

$(document).ready(function(){
	$('#slider ul').bxSlider({ auto: true, pause: 6000, speed: 750, autoHover: true });
});


$(document).ready(function(){
  // assign the slider to a variable
  var slider = $('#slider_samples').bxSlider({
    controls: false
  });

  // assign a click event to the external thumbnails
  $('.thumbs a').click(function(){
   var thumbIndex = $('.thumbs a').index(this);
    // call the "goToSlide" public function
    slider.goToSlide(thumbIndex);
 
    // remove all active classes
    $('.thumbs a').removeClass('pager-active');
    // assisgn "pager-active" to clicked thumb
    $(this).addClass('pager-active');
    // very important! you must kill the links default behavior
    return false;
  });

  // assign "pager-active" class to the first thumb
  $('.thumbs a:first').addClass('pager-active');
});

function get_url(url)
{
	window.location = url;	
}
