/* 
  ================================================
  PVII Uberlink Script
  Copyright (c) 2006 Project Seven Development
  www.projectseven.com
  Version: 1.0.0
  ================================================
*/
function P7_UberlinkHV(cl,d){
	var i,ob,tA,h=document.location.href;
	if(document.getElementById){
	ob=(d)?document.getElementById(d):document;
	if(ob){
	tA=ob.getElementsByTagName('A');
	for(i=0;i<tA.length;i++){
	if(tA[i].href==h){
	tA[i].className=cl;
}}}}}

function P7_UberlinkH__(cl,d){
	var i,ob,tA,h=document.location.href;
	if(document.getElementById){
	ob=(d)?document.getElementById(d):document;
	if(ob){
	tA=ob.getElementsByTagName('A');
	for(i=0;i<tA.length;i++){
	//alert(tA[i].href.substring(0, tA[i].href.length - 6));
	if(tA[i].href.substring(0, tA[i].href.length - 6)  ==    h.substring(0, h.length - 6))
	{
		//alert( tA[i].href.substring(0, tA[i].href.length - 6));
		tA[i].className=cl;
	}
	
	
	/*
	substring(0, 4) vrátí podřetězec začínající prvním znakem (0) a končící pátým (4) včetně. retezec.substring(10, retezec.length - 1) 
	
	if(tA[i].href==h){
		tA[i].className=cl;
	}

	*/

}}}}
