// JavaScript Document
function Popup(url,name,width,height,resize,scroll) {
 var dialogWin = new Object();
 dialogWin.width = width;
 dialogWin.height = height;
 if (navigator.appName == "Netscape") {
	 dialogWin.left = window.screenX + ((window.outerWidth - dialogWin.width) / 2);
	 dialogWin.top = window.screenY + ((window.outerHeight - dialogWin.height) / 2);
	 var attr = 'screenX=' + dialogWin.left + ',screenY=' + dialogWin.top + ',resizable=' + resize + ',width=' + dialogWin.width + ',height=' + dialogWin.height + ',scrollbars=' + scroll + ',menubar=no,location=no,toolbar=no,status=no,directories=no';
 } else if (document.all) {
	 dialogWin.left = (screen.width - dialogWin.width) / 2;
	 dialogWin.top = (screen.height - dialogWin.height) / 2;
	 var attr = 'left=' + dialogWin.left + ',top=' + dialogWin.top + ',resizable=' + resize + ',width=' + dialogWin.width + ',height=' + dialogWin.height + ',scrollbars=' + scroll + ',menubar=no,location=no,toolbar=no,status=no,directories=no';
 }
 window.open(url,name,attr);
}
var min=8;
var max=18;
function textSize(texto,id) {
		var p = $(texto).getElements("p");
		var nested = null;
		for (var i=0; i<p.length; i++){	
			
			if(p[i].style.fontSize) {
				 var s = parseInt(p[i].style.fontSize.replace("px",""));
			 } else {
				 var s = 12;
			  }
			if(id==1){
				  if(s!=max) {
					 s += 1;
				  }
			}else{
				if(s!=min) {
					s -= 1;
				 }
			}
			  p[i].style.fontSize = s+"px"
		}


}

function sh(id,myId, myStyle){
	if($(id) && $(myId)){
		if($(id).getStyle('display')=='none'){
			$(myId).addClass( myStyle+'Down');
			$(id).setStyle('display','block');	
		}else{
			$(myId).removeClass( myStyle+'Down');
			$(id).setStyle('display','none');	
		}
	}	
}
function out(id){
	if($(id)){
			$(id).setStyle('display','none');
	}
}
function addToFavorites() {
	
	var url = "http://www.hotlipscyprus.com";
	var title = "hotlipscyprus.com";
	
	if (window.sidebar){// firefox
	window.sidebar.addPanel(title, url, "");
	}else if(window.opera && window.print){ // opera
		var elem = document.createElement('a');
		elem.setAttribute('href',url);
		elem.setAttribute('title',title);
		elem.setAttribute('rel','sidebar');
		elem.click();
	}else if(document.all){// ie
		window.external.AddFavorite(url, title);
	}
} // -->

