
$(document).ready(function(){
	$('#schecknavi ul li').hover(function() {
		$(this).children('ul:eq(0)').fadeIn('fast')
		
		},function() { 
		$(this).children('ul:eq(0)').fadeOut('fast') 
	})
	$('#search input').live('click',function(){ 
		if($(this).attr('title')==$(this).val()) $(this).val('')
	})
	$('#naviblank ul li ').hover(function() {
		$(this).children('ul:eq(0)').fadeIn('fast')
		
		},function() { 
		$(this).children('ul:eq(0)').fadeOut('fast') 
	})
})
/*function stoperror(){
	return true
}
window.onerror=stoperror*/
var run = 0;
function down () {
	run = 1;
	setTimeout("contentdown()",80) 
}
function stars(star){
	var b = document.getElementById('star1').src;
	b = b.substr(0,b.length-5);
	if(star>0) document.getElementById('star1').src = b+'2.gif';
	if(star>1) document.getElementById('star2').src = b+'2.gif';
	if(star>2) document.getElementById('star3').src = b+'2.gif';
	if(star>3) document.getElementById('star4').src = b+'2.gif';
	if(star>4) document.getElementById('star5').src = b+'2.gif';
}
function fixstars(star){
	document.getElementById('rankit').value = star;
}
function starsreset(){
	var b = document.getElementById('star1').src;
	b = b.substr(0,b.length-5);
	var star = document.getElementById('rankit').value;
	if(star>0)document.getElementById('star1').src = b+'2.gif';
	else document.getElementById('star1').src = b+'1.gif';
	if(star>1)document.getElementById('star2').src = b+'2.gif';
	else document.getElementById('star2').src = b+'1.gif';
	if(star>2)document.getElementById('star3').src = b+'2.gif';
	else document.getElementById('star3').src = b+'1.gif';
	if(star>3)document.getElementById('star4').src = b+'2.gif';
	else document.getElementById('star4').src = b+'1.gif';
	if(star>4)document.getElementById('star5').src = b+'2.gif';
	else document.getElementById('star5').src = b+'1.gif';
}

/*
function checkover (id,state) {
	var curr = document.getElementById([id]).src
	curr1 = curr.substr(curr.length-9,5);
	if(curr1!='_over')  var n = curr.substr(0,curr.length-4)+'_over'+curr.substr(curr.length-4)
	else  var n = curr.substr(0,curr.length-9)+''+curr.substr(curr.length-4)
	document.getElementById([id]).src = n
	
}
function checko (el,state) {
	var curr = el.childNodes[0].src
	curr1 = curr.substr(curr.length-9,5);
	if(curr1!='_over')  var n = curr.substr(0,curr.length-4)+'_over'+curr.substr(curr.length-4)
	else  var n = curr.substr(0,curr.length-9)+''+curr.substr(curr.length-4)
	el.childNodes[0].src = n
	
}*/
function chov (el,state) {
	var curr = el.src
	curr1 = curr.substr(curr.length-9,5);
	if(curr1!='_over')  var n = curr.substr(0,curr.length-4)+'_over'+curr.substr(curr.length-4)
	else  var n = curr.substr(0,curr.length-9)+''+curr.substr(curr.length-4)
	el.src = n
	
}
function openW (url,h,w) {
	if(w==undefined) w =555;
	if(h==undefined) h =600;
	win = window.open(url, "_blank", "width="+w+",height="+h+",scrollbars=yes,resizable=yes ");
	win.focus();
	return false;
}
function Pointer () {
	document.body.style.cursor = 'pointer';
}
function Hand () {
	document.body.style.cursor = 'default';
}
function checkover (id,state) {
	var curr = document.getElementById([id]).src
	curr1 = curr.substr(curr.length-9,5);
	if(curr1!='_over')  var n = curr.substr(0,curr.length-4)+'_over'+curr.substr(curr.length-4)
	else  var n = curr.substr(0,curr.length-9)+''+curr.substr(curr.length-4)
	document.getElementById([id]).src = n
}
function showele (id) {
	if(document.getElementById(id).style.display=='block') {
		document.getElementById(id).style.display = 'none';
	} else {
		document.getElementById(id).style.display= 'block';
	}
}

function sbt () {
	//if(document.getElementById('sbx').value == 
	if(document.getElementById('sbox').value==document.getElementById('sbox').title) document.getElementById('sbox').value = '';
}
	
