﻿
// java script :)

var xmlHttp
function GetXmlHttpObject(){
	var xmlHttp=null;
	try{
 		// Firefox, Opera 8.0+, Safari
  		xmlHttp=new XMLHttpRequest();
  	}catch (e){
 		// Internet Explorer
  		try{
    		xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    	}catch (e){
    		xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    	}
  	}
	return xmlHttp;
};

function SetVisible(arg){
	var Show = document.getElementById(arg)
	if(Show.style.display == 'none'){
		Show.style.display = "block";
	} else {
		Show.style.display = "none";
	}
};

function SetVisibleInline(arg){
try{
	var Show = document.getElementById(arg)
	if(Show.style.display == 'none'){
		Show.style.display = "inline";
	} else {
		Show.style.display = "none";
	}
} catch (e) {}	
};

// blodeline

function SearchMyFatherSelection(sidid){
	xmlHttp=GetXmlHttpObject();
	var myURL;
	if (document.getElementById("fnameFather").value.length == 0){
		alert('Proszę podać imię.');
		return;
	}
	if (document.getElementById("lnameFather").value.length == 0){
		alert('Proszę podać nazwisko.');
		return;
	}

	myURL = "/profilebl/searchfather/"+ sidid +"/" + encodeURIComponent(document.getElementById("fnameFather").value) + "/" + encodeURIComponent(document.getElementById("lnameFather").value) + "/" ;
	
	if (xmlHttp==null){
  		alert ("Błąd: Twoja przeglądarka nie akceptuje ajax`a!");
  		return;
 	} 
	_id = encodeURIComponent(document.getElementById("myFatherResult").value);
	xmlHttp.onreadystatechange=stateChangedToSearchMyFatherSelection;
		xmlHttp.open("GET", myURL, true);
	xmlHttp.send(null);
}

function stateChangedToSearchMyFatherSelection(){ 
	if (xmlHttp.readyState==4){ 
		document.getElementById("myFatherResult").innerHTML=xmlHttp.responseText;
		//document.getElementById("effectSearchBL").setAttribute('style', 'height: 220px;');
	}
} 


function SetUpAsFather(sidid,arg){
	xmlHttp=GetXmlHttpObject();
	var myURL;
	if (arg != null){
		myURL = "/profilebl/SetUpAsFather/"+ sidid +"/" + arg + "/";
	} else {
  		alert ("Błąd: z przyczyn technicznych. Jeśli możemy, prosimy o kontakt z administratorem portalu {w temacie maila proszę napisać 'Error-SetUpAsFather-{a tutaj swój login z portalu.}' ");
  		return;
	}
	if (xmlHttp==null){
  		alert ("Błąd: Twoja przeglądarka nie akceptuje ajax`a!");
  		return;
 	} 
	_id = encodeURIComponent(document.getElementById("myFather").value);
	xmlHttp.onreadystatechange=stateChangedToSetUpAsFather;
		xmlHttp.open("GET", myURL, true);
	xmlHttp.send(null);
}

function stateChangedToSetUpAsFather(){ 
	if (xmlHttp.readyState==4){ 
		document.getElementById("myFather").innerHTML=xmlHttp.responseText;
	}
}
function DeleteFather(arg){
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null){
  		alert ("Błąd: Twoja przeglądarka nie akceptuje ajax`a!");
  		return;
 	} 
	_id = encodeURIComponent(document.getElementById("myFather").value);
	xmlHttp.onreadystatechange=stateChangedToDeleteFather;
		xmlHttp.open("GET", "/DeleteFather/" + arg, true);
	xmlHttp.send(null);
}

function stateChangedToDeleteFather(){ 
	if (xmlHttp.readyState==4){ 
		document.getElementById("myFather").innerHTML=xmlHttp.responseText;
	}
}



function SearchMyMotherSelection(sidid,arg){
	xmlHttp=GetXmlHttpObject();

	if (document.getElementById("fnameMother").value.length == 0){
		alert('Proszę podać imię.');
		return;
	}
	if (document.getElementById("lnameMother").value.length == 0){
		alert('Proszę podać nazwisko.');
		return;
	}
	myURL = "/profilebl/searchmother/"+ sidid +"/" + encodeURIComponent(document.getElementById("fnameMother").value) + "/" + encodeURIComponent(document.getElementById("lnameMother").value) + "/";

	if (xmlHttp==null){
  		alert ("Błąd: Twoja przeglądarka nie akceptuje ajax`a!");
  		return;
 	} 
	_id = encodeURIComponent(document.getElementById("myMotherResult").value);
	xmlHttp.onreadystatechange=stateChangedToSearchMyMotherSelection;
		xmlHttp.open("GET", myURL, true);
	xmlHttp.send(null);
}

function stateChangedToSearchMyMotherSelection(){ 
	if (xmlHttp.readyState==4){ 
		document.getElementById("myMotherResult").innerHTML=xmlHttp.responseText;
	}
} 


function SetUpAsMother(sidid,arg){
	xmlHttp=GetXmlHttpObject();
	var myURL;
	if (arg != null){
		myURL = "/profilebl/SetUpAsMother/"+ sidid +"/" + arg + "/";
	} else {
  		alert ("Błąd: z przyczyn technicznych. Jeśli możemy, prosimy o kontakt z administratorem portalu {w temacie maila proszę napisać 'Error-SetUpAsFather-{a tutaj swój login z portalu.}' ");
  		return;
	}
	if (xmlHttp==null){
  		alert ("Błąd: Twoja przeglądarka nie akceptuje ajax`a!");
  		return;
 	} 
	_id = encodeURIComponent(document.getElementById("myMother").value);
	xmlHttp.onreadystatechange=stateChangedToSetUpAsMother;
		xmlHttp.open("GET", myURL, true);
	xmlHttp.send(null);
}

function stateChangedToSetUpAsMother(){ 
	if (xmlHttp.readyState==4){ 
		document.getElementById("myMother").innerHTML=xmlHttp.responseText;
	}
}
function DeleteMother(arg){
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null){
  		alert ("Błąd: Twoja przeglądarka nie akceptuje ajax`a!");
  		return;
 	} 
	_id = encodeURIComponent(document.getElementById("myMother").value);
	xmlHttp.onreadystatechange=stateChangedToDeleteMother;
		xmlHttp.open("GET", "/DeleteMother/" + arg, true);
	xmlHttp.send(null);
}

function stateChangedToDeleteMother(){ 
	if (xmlHttp.readyState==4){ 
		document.getElementById("myMother").innerHTML=xmlHttp.responseText;
	}
}

// end blodeline



function SetVisibleEditTool(arg){
try{
	if(document.getElementById('edtool1').style.display == 'none'){
		document.getElementById('edtool1').style.display = "block";
		document.getElementById('edtool2').style.display = "block";
		document.getElementById('edtool3').style.display = "block";
		document.getElementById('edtool4').style.display = "block";
		document.getElementById('edtool5').style.display = "block";
		document.getElementById('edtool6').style.display = "block";
		document.getElementById('edtool7').style.display = "block";
		document.getElementById('edtool8').style.display = "block";
		document.getElementById('edtool9').style.display = "block";
		document.getElementById('edtool10').style.display = "block";
		document.getElementById('edtool11').style.display = "block";
		document.getElementById('edtool12').style.display = "block";
		document.getElementById('edtool13').style.display = "block";
		document.getElementById('edtool14').style.display = "block";
		document.getElementById('edtool15').style.display = "block";
		document.getElementById('edtool16').style.display = "block";
		document.getElementById('edtool17').style.display = "block";
		document.getElementById('edtool18').style.display = "block";
		document.getElementById('edtool19').style.display = "block";
		document.getElementById('edtool20').style.display = "block";
		document.getElementById('edtool21').style.display = "block";
		document.getElementById('edtool22').style.display = "block";
		document.getElementById('edtool23').style.display = "block";
		document.getElementById('edtool24').style.display = "block";
		document.getElementById('edtool25').style.display = "block";
		document.getElementById('edtool26').style.display = "block";
		document.getElementById('edtool27').style.display = "block";
		document.getElementById('edtool28').style.display = "block";
		document.getElementById('edtool29').style.display = "block";
		document.getElementById('edtool30').style.display = "block";

	} else {
		document.getElementById('edtool1').style.display = "none";
		document.getElementById('edtool2').style.display = "none";
		document.getElementById('edtool3').style.display = "none";
		document.getElementById('edtool4').style.display = "none";
		document.getElementById('edtool5').style.display = "none";
		document.getElementById('edtool6').style.display = "none";
		document.getElementById('edtool7').style.display = "none";
		document.getElementById('edtool8').style.display = "none";
		document.getElementById('edtool9').style.display = "none";
		document.getElementById('edtool10').style.display = "none";
		document.getElementById('edtool11').style.display = "none";
		document.getElementById('edtool12').style.display = "none";
		document.getElementById('edtool13').style.display = "none";
		document.getElementById('edtool14').style.display = "none";
		document.getElementById('edtool15').style.display = "none";
		document.getElementById('edtool16').style.display = "none";
		document.getElementById('edtool17').style.display = "none";
		document.getElementById('edtool18').style.display = "none";
		document.getElementById('edtool19').style.display = "none";
		document.getElementById('edtool20').style.display = "none";
		document.getElementById('edtool21').style.display = "none";
		document.getElementById('edtool22').style.display = "none";
		document.getElementById('edtool23').style.display = "none";
		document.getElementById('edtool24').style.display = "none";
		document.getElementById('edtool25').style.display = "none";
		document.getElementById('edtool26').style.display = "none";
		document.getElementById('edtool27').style.display = "none";
		document.getElementById('edtool28').style.display = "none";
		document.getElementById('edtool29').style.display = "none";
		document.getElementById('edtool30').style.display = "none";
	}
}catch (e){}	
};

// foto check 

function checkPHO(img_path) {
   var fileType = img_path.substring(img_path.lastIndexOf("."),img_path.length);
   if((fileType == ".jpeg") || (fileType == ".jpg") || (fileType == ".png") || (fileType == ".JPEG") || (fileType == ".JPG") || (fileType == ".PNG")) {
        document.getElementById("submitPHO").disabled = false;
        return true;
   } else {
        document.getElementById("submitPHO").disabled = true;
        document.getElementById("id_file").value="";
        alert("Przesłać wolno tylko zdjęcia o rozszerzeniu *.jpg, *.jpeg, *.png.\n Twój plik ma rozszerzenie: " + fileType + ".");
   }
};



$(function(){
	$('#regulamin, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#oserwisie, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#prywatnosc, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#reklama, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#kontakt, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#UIWyloguj, ul#icons li').hover(
		function() { $(this).addClass('ui-state-active'); }, 
		function() { $(this).removeClass('ui-state-active'); }
	);

	
	$('#btnBACK, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#btnNext, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);		
	$('#btnPrev, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#btnNext2, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);		
	$('#btnPrev2, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
		
								
	$('#exlnk1, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#exlnk2, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#exlnk3, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#exlnk4, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#exlnk5, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#exlnk6, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#exlnk7, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#exlnk8, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#exlnk9, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#exlnk10, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);



	$('#edlnk1, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#edlnk2, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#edlnk3, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#edlnk4, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#edlnk5, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#edlnk6, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#edlnk7, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#edlnk8, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#edlnk9, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#edlnk10, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#edlnk11, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#edlnk12, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#edlnk13, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#edlnk14, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);

	$('#edlnk15, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#edlnk16, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#edlnk17, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#edlnk18, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#edlnk19, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#edlnk20, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#edlnk21, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#edlnk22, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#edlnk23, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#edlnk24, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#edlnk25, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#edlnk26, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#edlnk27, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#edlnk28, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#edlnk29, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#edlnk30, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
		
	$('#delnk1, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#delnk2, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#delnk3, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#delnk4, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#delnk5, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#delnk6, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#delnk7, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#delnk8, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#delnk9, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#delnk10, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#delnk11, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#delnk12, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#delnk13, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#delnk14, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);

	$('#delnk15, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#delnk16, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#delnk17, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#delnk18, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#delnk19, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#delnk20, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#delnk21, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#delnk22, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#delnk23, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#delnk24, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#delnk25, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#delnk26, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#delnk27, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#delnk28, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#delnk29, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#delnk30, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
		
	$('#setlnk1, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#setlnk2, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#setlnk3, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#setlnk4, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#setlnk5, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#setlnk6, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#setlnk7, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#setlnk8, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#setlnk9, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#setlnk10, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#setlnk11, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#setlnk12, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#setlnk13, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#setlnk14, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#setlnk15, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#setlnk16, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#setlnk17, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#setlnk18, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#setlnk19, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#setlnk20, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#setlnk21, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#setlnk22, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#setlnk23, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#setlnk24, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#setlnk125, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#setlnk126, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#setlnk127, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#setlnk128, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#setlnk129, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#setlnk130, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);		
	
	
	$('#btnAddGift, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#btnAddGiftCancle, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	
	
	$('#UIMAIN, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#UISearchLFR, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#UIMNGLFR, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	
	
	$('#UIMSGMenu1, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#UIMSGMenu2, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#UIMSGMenu3, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#UIMSGMenu4, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#UIMSGMenu5, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);
	$('#UIMSGMenu6, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); }, 
		function() { $(this).removeClass('ui-state-hover'); }
	);				
});


