<!--
//OPEN NEW WINDOW AND CLOSE OLD SCRIPT
var NewWin, TrueWin;
var sw=0;
var sh=0;
browserVer=parseInt(navigator.appVersion);
browserName=navigator.appName;
if (browserName == "Microsoft Internet Explorer"){
	sw = screen.width; sh = screen.height;
} else {
	tools=java.awt.Toolkit.getDefaultToolkit(); size = tools.getScreenSize(); sw = size.width; sh = size.height;
}

function siteWin(W_WIDTH,W_HIGHT,W_SOURCE,W_SCROOL){
//new window top point
var cx = (sw - W_WIDTH)/2; 
//new window left point
var cy = (sh - W_HIGHT)/2;
if(TrueWin =="true" && !NewWin.closed) NewWin.close(); TrueWin = "true"; 
NewWin = window.open(W_SOURCE,'SONW','width='+W_WIDTH+',height='+W_HIGHT+', ScreenX='+cx+', left='+cx+', ScreenY='+cy+', top='+cy+', resizable=no,status=no,scrollbars='+ W_SCROOL);
}

var lastObj;
function do_over(obj,color) {
	if (obj != lastObj) { obj.style.backgroundColor = '#' + color;	obj.style.color = 'black'; obj.style.cursor = 'hand'; }
}
function do_out(obj) { 
	if (obj != lastObj) { obj.style.backgroundColor = ''; obj.style.color = ''; }
}

function showP(id){
	siteWin(500,300,'/show_portfolio.php?id='+id,'yes');
}

function showSubP(id){
	siteWin(500,300,'/show_portfolio.php?id='+id+'&parent=true','yes');
}

function add_to_favorites(){
	if(document.all)
		window.external.AddFavorite(window.location, document.title);
	else
		alert('Add to bookmark press Ctr+D');
	void(0);
}
//-->