function clickclear(thisfield, defaulttext) {
	if (thisfield.value == defaulttext) {thisfield.value = "";}
}

function clickrecall(thisfield, defaulttext) {
	if (thisfield.value == "") {thisfield.value = defaulttext;}
}

$(document).ready(function() {
	$("#top-cover-left").css({height:0+"px"})
	$("#top-cover-right").css({height:0+"px"})
	//$("#middle-strip-products").css({width:0+"px"})

	var container_height = $("#page").height();	
	//alert(container_height);
	var cover_height = container_height; 

	$("#top-cover-left").css({height:cover_height+"px"})
	$("#top-cover-right").css({height:cover_height+"px"})
	
	//var sub_nav_products_width = $("#sub-nav-products").width();	
	//var products_strip_width = sub_nav_products_width - 20; 
	//var products_footer_width = sub_nav_products_width;
	
	//$(".sub-nav-box-footer").css({width:products_footer_width+"px"})
	//$("#middle-strip-products").css({width:products_strip_width+"px"})

	//$('#sub-nav-products').hide();
	Cufon.replace('.big-link-heading', {fontFamily: 'Helvetica Neue LT Pro-b', hover: true});
	Cufon.replace('.small-link-heading', {fontFamily: 'Helvetica Neue LT Pro-r', hover: true});
	Cufon.replace('.categorylinks ul li h3 a', {fontFamily: 'Helvetica Neue LT Pro-r', hover: true});
	Cufon.replace('.categorygateway a h1', {fontFamily: 'Geneva', hover: true});
	Cufon.replace('.home-big-heading', {fontFamily: 'Helvetica Neue LT Pro-b'});
	Cufon.replace('.subcategorylink h2', {fontFamily: 'Geneva'});
	Cufon.replace('.big-heading', {fontFamily: 'Helvetica Neue LT Pro-b'});
	Cufon.replace('.small-heading', {fontFamily: 'Helvetica Neue LT Pro-r'});
	Cufon.replace('#categoryfeatures ul li', {fontFamily: 'Helvetica Neue LT Pro-r'});
	Cufon.replace('.datadisplay a', {fontFamily: 'Helvetica Neue LT Pro-r', hover: true});
	Cufon.replace('.link-holder a', {fontFamily: 'Helvetica Neue LT Pro-r' ,hover: true});
	Cufon.replace('.right-block-heading-1', {fontFamily: 'Helvetica Neue LT Pro-b'});
	Cufon.replace('.right-block-heading-2', {fontFamily: 'Helvetica Neue LT Pro-r'});
	Cufon.replace('.right-block-heading-3', {fontFamily: 'Helvetica Neue LT Pro-b'});
	Cufon.replace('.right-block-heading-4', {fontFamily: 'Helvetica Neue LT Pro-r'});

	
	$('.show-cufon').css('visibility','visible');
	
	$(function() {
    	$("#thumbone").mouseover(function() { 
            var src = $(this).attr("src");
            $("#bigimage").attr("src", src);
        })
		$("#thumbtwo").mouseover(function() { 
            var src = $(this).attr("src");
            $("#bigimage").attr("src", src);
        })
		$("#thumbthree").mouseover(function() { 
            var src = $(this).attr("src");
            $("#bigimage").attr("src", src);
        })
	});
	
	//$("#call-back").click(function () {
      //$("#callback-form").slideToggle(1500);
    //});
	
	//for (var i=1; i < 31; i++){
		//var image_name_height = $("#category-image-name-"+i).height();
		//var image_name_top_margin = 148 - 5 - image_name_height;
		//$("#category-image-name-"+i).css({marginTop:image_name_top_margin+"px"});
	//}
});

function setMainOverviewImage(src) {
	$("#bigimage").attr("src", src);	
}

//$(document).ready(
	//function(){
		//$('#top-image').innerfade({
		//speed: 7000,
		//timeout: 10000,
		//type: 'sequence',
		//containerheight: '160px'
	//});
//});

//function switchMenuOn(id) {
 	//$('#sub-nav-products').hide();
    //$('#sub-nav-'+id).css({display:"inline-block"})
//}

//function switchMenuOff() {
 	//$('#sub-nav-products').hide();
//}
