function openwindow(filein,sizew,sizeh)
{
var popupWin = window.open(filein,'Preview',"toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=0,width=" +sizew +",height=" +sizeh +",top=150,left=100");
}
function sharesocial(filein,w,h)
{
window.open(filein, 'simplesocial', 'scrollbars=1,menubar=0,width='+w+',height='+h+',resizable=1,toolbar=0,location=0,status=0,left='+(screen.width-w)/2+',top='+(screen.height-h)/3);
return false;
}
function clearfieldw(){
if (document.findform.words.value == "Type any word(s)")
	document.findform.words.value = "";
}
function fillfieldw(){
if (document.findform.words.value == "")
	document.findform.words.value = "Type any word(s)";
}
function clearfieldc(){
if (document.findform.city.value == "City")
	document.findform.city.value = "";
}
function fillfieldc(){
if (document.findform.city.value == "")
	document.findform.city.value = "City";
}
function cleanfieldc(){
if (document.findform.city.value == "City")
	document.findform.city.value = "";
if (document.findform.words.value == "Type any word(s)")
	document.findform.words.value = "";
}
$(function() {
	$('#menu .sel').parent().find('UL').css('display','block');
	$('#menu .sel').attr('id','actual');
	$('#menu .mainmenu').parent().hover(function() {
		$('#menu .sel').removeClass('sel');
		if ($(this).find('.mainmenu').attr('id') != 'actual') {
			$('#actual').parent().find('UL').css('display','none');
		}
		$(this).find('.mainmenu').addClass('sel');
		}, 
		function(){
		if ($(this).find('.mainmenu').attr('id') != 'actual') {
			$('#actual').parent().find('UL').css('display','block');
			$('#actual').addClass('sel');
			$(this).find('.mainmenu').removeClass('sel');
		}
	 });
});


