/*netscape=(navigator.appName=="Netscape"&&parseInt(navigator.appVersion)<5);
if(netscape) document.write('<LINK href="nn4.css" title="compact" rel="stylesheet" type="text/css">');
else document.write('<LINK href="w3c.css" title="compact" rel="stylesheet" type="text/css">');*/

function art_page(id){
		artWin = self.open('art_page.php?id='+id, 'artWin', 'width=700, height=500');
		artWin.focus();
}

function setCookie(name, value, minutes)
{
	expires=new Date();
	expires.setTime(expires.getTime()+1000*60*minutes);
	document.cookie = aa = name + "=" + escape(value) + ((minutes == null) ? "" : "; expires=" + expires.toGMTString()) + "; path=/";
}

function getCookie(nume){
	 var lst = document.cookie.split("; ");
	 for (var i=0; i < lst.length; i++){
		var pair = lst[i].split("=");
		if (nume == pair[0]) return unescape(pair[1]);
	 }
	 return null;
}

function pop(sString) {
	
	switch (sString) {
		case "bio1" :
			sUrl = "bio1.html"
		break;
		case "bio2" :
			sUrl = "bio2.html"
		break;
		case "testimonials" :
			sUrl = "testimonials.html"
		break;		
	}
	window.open(sUrl, "bio", "WIDTH=300, HEIGHT=400, MARGIN=0, scrollbars=yes");	
}

function addBookmark(title,url) {
	if ( window.sidebar ) {
		window.sidebar.addPanel(title, url,"");
	} else if( document.all ) {
		window.external.addFavorite( url, title);
	} else if( window.opera && window.print ) {
		return true;
	}
}

function change(path, id) {
	document.getElementById(id).src = path + "images/" + id + ".jpg";
}
function go(id) {
	return true;
}
function back(path, id) {
	document.getElementById(id).src = path + "images/" + id + "_off.jpg";
}

function convertElements(my_form) {
	var ret='';
	for(i=0; i<my_form.elements.length-1; i++) {
		if(i!=0)
			ret+=',';
		if(-1==my_form.elements[i].value.indexOf('view all'))
			ret+=my_form.elements[i].value;
		else
			ret+='';
	}
	
	return ret;
}
