/*
-----------------------------------------------
TSUTSUMU Design Bookmark Javascript Functions - STABLE
Author:   yoo t h(merkmal)
Version:  16 Dec 2008
----------------------------------------------- */

try { 
document.execCommand('BackgroundImageCache', false, true); 
} catch(e) {}

var	flag= false;
var productId;
var currentId;
var currentNum;
var previousId;
var previousNum;
var z = 10;
var z2 = 10;

$(document).ready(function(){
	attachPageTopEvents();
	formText();
});

function attachPageTopEvents(){
	$('.pagetop a').click(function(){
		$('html,body').animate({ scrollTop: 0 }, 600, 'easeOutQuart');
		return false;
	});	
}

function formText(){
	$("input").addClass("nonInput").val(" Type Keywords and Press Enter");
	$("input").focus(function(){
		if(this.value == " Type Keywords and Press Enter"){
			$(this).val("").removeClass("nonInput");
		}
	});
	$("input").blur(function(){
		if(this.value == ""){
			$(this).addClass("nonInput").val(" Type Keywords and Press Enter");
		}
		if(this.value != " Type Keywords and Press Enter"){
			$(this).removeClass("nonInput");
		}
	});
}