<!--
function dynamicH1(id, www, textCase){
	var h1Title = textCase ? document.getElementById(id).innerHTML.toUpperCase() : document.getElementById(id).innerHTML;
	document.getElementById(id).innerHTML = AC_FL_RunContent( "codebase", "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0", "width", "450", "height", "50", "src", "'.$www.'im/pb/flash/", "quality", "high", "wmode", "transparent", "pluginspage", "http://www.macromedia.com/go/getflashplayer", "movie", www+"im/pb/flash/H1", "flashvars", "h1="+h1Title);
}
function dynamicA(id, www){
	if (!document.getElementById(id)) return false;

	var aTitle = document.getElementById(id).innerHTML;
	document.getElementById(id).innerHTML = AC_FL_RunContent( "codebase", "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0", "width", "52", "height", "45", "src", "'.$www.'im/pb/flash/", "quality", "high", "wmode", "transparent", "pluginspage", "http://www.macromedia.com/go/getflashplayer", "movie", www+"im/pb/flash/A", "flashvars", "a="+aTitle);
}
function jsLink(url, styleClass, target, label){
	document.write('<a href="'+url+'" class="'+styleClass+'" target="'+target+'">'+label+'</a>');
}
function validatorAds(www, url){
	document.write('<a href="http://validator.w3.org/check?uri='+url+'" target="_blank" class="bt_html" onMouseOver="fl_im(\''+www+'im/pb/html.gif\')" onMouseMove="fl_im(1)" onMouseOut="fl_im(0)"></a>');
	document.write('<a href="http://jigsaw.w3.org/css-validator/validator?uri='+url+'" target="_blank" class="bt_css" onMouseOver="fl_im(\''+www+'im/pb/css.gif\')" onMouseMove="fl_im(1)" onMouseOut="fl_im(0)"></a>');
	document.write('<a href="http://www.contentquality.com/mynewtester/cynthia.exe?rptmode=2&amp;url1='+url+'" target="_blank" class="bt_wai" onMouseOver="fl_im(\''+www+'im/pb/wai.gif\')" onMouseMove="fl_im(1)" onMouseOut="fl_im(0)"></a>');
}
function adBookmarkLink(label){
	document.write('<div class="js_fv" onMouseOver="this.className=\'js_fv_ov\';" onMouseOut="this.className=\'js_fv\';" onClick="BookmarkLink()">'+label+'</div>');
}
//-----------------------------------------------------------------------------------------------------------------------------------------------------------------
function fl_im (st){
	if (st == '0'){
		document.getElementById("bt_st_im").style.display="none";
	} else if (st == '1'){
//		document.getElementById("bt_st_im").style.left=x+5;
//		document.getElementById("bt_st_im").style.top=y-45;
	} else {
		document.getElementById("bt_st_im").innerHTML='<img src="'+st+'" width="88" height="31" alt="standard icon">';
		document.getElementById("bt_st_im").style.display="block";
	}
}
function getScrollXY() {
	var scrOfX = 0, scrOfY = 0;
	if( typeof( window.pageYOffset ) == 'number' ) {
		//Netscape compliant
		scrOfY = window.pageYOffset;
		scrOfX = window.pageXOffset;
	} else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
		//DOM compliant
		scrOfY = document.body.scrollTop;
		scrOfX = document.body.scrollLeft;
	} else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
		//IE6 standards compliant mode
		scrOfY = document.documentElement.scrollTop;
		scrOfX = document.documentElement.scrollLeft;
	}
	return [ scrOfX, scrOfY ];
}
function gu(url){
	document.location.href = unescape(url);
}
function BookmarkLink() {
	var title = document.title;
	var url = location.href;
	if (window.sidebar) { // Firefox
		window.sidebar.addPanel(title, url, '');
	} else if( window.external ) { // IE Favorite
		window.external.AddFavorite(url, title); 
	} else if(window.opera && window.print) { // Opera Hotlist
		return true; 
	}
 }
function ch_em (frm_name, action, msg1, msg2){
	mail = document.forms[frm_name].elements['em'].value;
	if (mail==''  | mail==' ' | mail=='email@address.com') {
		alert(msg1);
		return 0;
	} else if ((mail.indexOf('@',0)<0) | (mail.indexOf('.',0)<0)) {
		alert(msg2);
		return 0;
	} 
	if (action) document.forms[frm_name].submit();

	return 1;
}
function ch_sb (){
	if (ch_em ("fr_sh", 0)){
		document.forms["fr_sb"].elements['em'].value = document.forms["fr_sh"].elements['em'].value;
		document.forms["fr_sb"].elements['cd'].value = document.forms["fr_sh"].elements['cd'].value;
		document.forms["fr_sb"].elements['in_cd'].value = document.forms["fr_sh"].elements['in_cd'].value;
		document.forms["fr_sb"].submit();
	}
}
function inChange(obj, action, default_txt){
	var inString = obj.value;
	var tString = '';
	var dString = '';
	var tChar = '';
	for (i=0; i<inString.length; i++){ tChar = inString.substr(i,1); if (tChar !=' ') tString += tChar; }
	for (i=0; i<default_txt.length; i++){ tChar = default_txt.substr(i,1); if (tChar !=' ') dString += tChar; }

 	if (action=='focus' && tString==dString) obj.value = '';
	if (action=='blur' && tString=='') obj.value = default_txt;
}
function expandArticleAd(id){
	var count = 0;
	while (document.getElementById('oa_tt'+count)) {
		if (id != count || (id==count && document.getElementById('oa_tt'+count).className == 'oa_tt_sl')){
			document.getElementById('oa_tt'+count).className = 'oa_tt';
			document.getElementById('oa_tt_ic'+count).className = 'oa_tt_ic';
			document.getElementById('oa_tt_cn'+count).className = 'oa_tt_cn';
			document.getElementById('oa_tx'+count).className = 'oa_tx_m';
		} else {
			document.getElementById('oa_tt'+count).className = 'oa_tt_sl';
			document.getElementById('oa_tt_ic'+count).className = 'oa_tt_ic_sl';
			document.getElementById('oa_tt_cn'+count).className = 'oa_tt_cn_sl';
			document.getElementById('oa_tx'+count).className = 'oa_tx_m_sl';
		}
		count++;
	}
}
//---------------------------------------------------------------------------------------------------------------------
var xmlhttp,alerted;
var xml_st = 1;
var xml_fc_id = 0;
var xml_rp_st = 0;

/*@cc_on @*/
/*@if (@_jscript_version >= 5)
	try {
		xmlhttp=new ActiveXObject("Msxml2.XMLHTTP")
	} catch (e) {
		try {
			xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
		} catch (E) {
			alert("You must have Microsofts XML parsers available")
		}
	 }
@else
	alert("You must have JScript version 5 or above.")
	xmlhttp=false
	alerted=true
@end @*/

if (!xmlhttp && !alerted) {
	try {
		xmlhttp = new XMLHttpRequest();
	} catch (e) {
		alert("You need a browser which supports an XMLHttpRequest Object.\nMozilla build 0.9.5 has this Object and IE5 and above, others may do, I don't know, any info jim@jibbering.com")
	}
}
function RSchange() {
	if (xmlhttp.readyState==4) {
		xml_st = 1;
		fc_ar[xml_fc_id](xmlhttp.responseText);
	}
}
function get_url(url, fc_id, loading_tx) {
	if (!xml_st) return;
	else {
		document.getElementById('greenbox_ad_tex').innerHTML = loading_tx;
		document.getElementById('greenbox_ad_flash').innerHTML = '';
	}

	xml_st = 0;
	xml_fc_id = fc_id;
	if (xmlhttp) { 
		d=document
		xmlhttp.open("GET", url, true);
		xmlhttp.onreadystatechange=RSchange;
		xmlhttp.send(null);
	}
}
var fc_ar = [
	function changeAd(response) {
		var result = response.split('JAVASCRIPT_CODE',2);
		document.getElementById('green_ad').innerHTML = result[0];
		document.getElementById('greenbox_ad_flash').innerHTML = eval(result[1]);
	}
];
//-----------------------------------------------------------------------------------------------------------------------------------------
function elementObject(id){
	return document.getElementById(id);
}
function styleObject (id){
	return document.getElementById(id).style;
}
function localeMenu (menu, label){
	var menuOverState = false;
	var autoHideTimer = false;
	var menuId = menu;
	var labelId = label;

	setActions(menuId);

	this.overIt = function (){
		styleObject(menuId).visibility = 'visible'; // visibility avoid OPERA display:none|block BUG on absolute positioning in multiple levels layers
		styleObject(labelId).visibility = 'hidden';
		setAutoHide();
	}
	function overIt (){
		styleObject(menuId).visibility = 'visible';
		menuOverState = true;
		avoidAutoHide();
	}
	function outIt (){
		menuOverState = false;
		setTimeout( function() { hideMenu('overState'); }, 500);
	}
	function setAutoHide(){
		autoHideTimer = setTimeout( function() { hideMenu('autoHide'); }, 500);
	}
	function avoidAutoHide(){
		clearTimeout(autoHideTimer);
		autoHideTimer = false;
	}
	function setActions (id){
		elementObject(id).onmouseover = overIt;
		elementObject(id).onmouseout = outIt;
	}
	function hideMenu (type){
		if ((menuOverState == false  && type == 'overState') || (autoHideTimer != false && type == 'autoHide')) {
			styleObject(menuId).visibility = 'hidden';
			styleObject(labelId).visibility = 'visible';
		}
	}
}

//-----------------------------------------------------------------------------------------------------------------------------------------
var windowScrollPosition;
var autoLoadImageState = true;
var documentTitle = document.title;

//if (location.hash != '') location.href = 'http://'+location.host + location.pathname;

window.onload = function () { 
//alert('http://'+location.host + location.pathname);
	document.title = documentTitle; 
}

function loadImage(www, image, width, height, bgColor, hash){
	autoLoadImageState = false;
//	document.title = 'Screenshot - '+documentTitle;
	location.hash = hash;
	windowScrollPosition = getScrollXY();
	document.body.style.height = '100%';
	elementObject('contentContainer').style.overflow = 'hidden';
	elementObject('contentContainer').style.height = '100%';
	elementObject('content').style.top = '-' + windowScrollPosition[1] + 'px';
	elementObject('maximizedBar').style.display = 'block';
	elementObject('maximizedFlash').style.display = 'block';
	elementObject('maximizedFlash').style.height = '100%';
	elementObject('maximizedFlash').innerHTML = AC_FL_RunContent(
		'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
		'width', '100%',
		'height', '100%',
		'src', www+'im/pb/flash/',
		'quality', 'high',
		'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
		'wmode', 'transparent',
		'id', 'maximizer',
		'bgcolor', '#000000',
		'name', 'maximizer',
		'movie', www+'im/pb/flash/maximizer',
		'flashvars', 'imagePath='+www+'im/pb/portfolio/'+image+'&width='+width+'&height='+height+'&bgColorRGB='+bgColor+'&maximizeFunc=maximize&closeFunc=closeImage'
	); 

	window.scrollTo(0, 0); // fix IE6 bag
}
function maximize(height){
	barHeight = 32;
	height = (elementObject('contentContainer').offsetHeight > (height+barHeight)) ? elementObject('contentContainer').offsetHeight : (height+barHeight);
	document.body.style.height = 'auto';
	elementObject('contentContainer').style.height = height+'px';
	elementObject('maximizedFlash').style.height = height+'px';
}
function closeImage(){
	if ((location.hash=='#main' || location.hash=='') && autoLoadImageState) return;
//	document.title = 'General - '+documentTitle;
	location.hash = 'main';
	elementObject('content').style.top = '0px';
	document.body.style.backgroundColor ='white';
	document.body.style.height = 'auto';
	document.body.style.overflow = 'visible';
	elementObject('contentContainer').style.height = 'auto';
	elementObject('contentContainer').style.overflow = 'visible';
	elementObject('maximizedFlash').style.display = 'none';
	elementObject('maximizedBar').style.display = 'none';
	window.scrollTo(windowScrollPosition[0], windowScrollPosition[1]);
	autoLoadImageState = true;
}
function autoLoadImage(www, data){
	if (location.hash=="#main" || location.hash=="") closeImage();
	else if (autoLoadImageState  && location.hash!="" && location.hash!="#"){
		var projectId = location.hash.split(".", 2);
		x = projectId[0].substring(1);
		y = projectId[1];
		if (data[x][y][4]!="") loadImage(www, data[x][y][0], data[x][y][1], data[x][y][2], data[x][y][3], data[x][y][4]);
	}
}
function autoLoadImageDetection(www, data){
	if (document.all) document.title = documentTitle; // attemp to fix IE title bag on JS hash changing
	autoLoadImage(www, data);
	autoLoadImageTimer = setTimeout( function() { autoLoadImageDetection(www, data) }, 100);
}

-->