// JavaScript Document
function btnOver(btn,RGB){

	document.getElementById(btn).style.backgroundColor = RGB;
	
}

function btnOut(btn){
	
	document.getElementById(btn).style.background = 'none';
	
}

var year = new Date();

var theyear = year.getYear();

if(theyear < 1900){
	
	theyear += 1900;
	
}

var copyright = '&copy; TechEthika Limited '+theyear+', Company No: 5994955';

function newWindow(url){
	
		window.open(url, 'Window', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=400,left=20,top=20');
		
}

function findPos(obj) {
	var curleft = curtop = 0;
	if (obj.offsetParent) {
		curleft = obj.offsetLeft
		curtop = obj.offsetTop
		while (obj = obj.offsetParent) {
			curleft += obj.offsetLeft
			curtop += obj.offsetTop
		}
	}
	return [curleft,curtop];
}

var timer;

function showLargeImg(clickLoc,img,alt){
	
	clearTimeout(timer);
	
	document.getElementById('lbl').innerHTML = '<h2>'+alt+'</h2>';
	
	document.getElementById('img').innerHTML = '<img src="'+img+'" alt="'+alt+'"/>';
	
	var height = 360;
	
	document.getElementById('largeImg').style.display = "block";

	//document.getElementById('largeImg').style.left = (findPos(document.getElementById('img_1'))[0]-3)+'px';
	
	document.getElementById('largeImg').style.top = (findPos(document.getElementById(clickLoc))[1]-height)+'px';

}



function hideLargeImg(){
	
	timer = setTimeout('hideImg()',1000);
	
}

function hideImg(){
	
	clearTimeout(timer);

	document.getElementById('largeImg').style.display = "none";
	
	document.getElementById('lbl').innerHTML = '';
	
	document.getElementById('img').innerHTML = '';
	
}

function FlashCheck() {
	
	var f = new FlashSwapper(9);
	
	return f.DetectFlash();
	
}

function flashLogo(){
	
	var HTML = "";
	
	if (FlashCheck()){
		
		HTML += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="275" height="166" id="atom">';
		HTML += '<param name="allowScriptAccess" value="sameDomain"/>';
		HTML += '<param name="movie" value="flash/logo.swf"/>';
		HTML += '<param name="quality" value="high"/>';
		HTML += '<param name="wmode" value="transparent"/>';
		HTML += '<embed src="flash/logo.swf" quality="high" wmode="transparent" width="275" height="166" name="atom" align="left" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
		HTML += '</object>';
           
	}else{
	
		HTML += '<a href="http://www.getitnoticed.com" title="Get IT Noticed.com"><img src="images/gin-logo.png" width="275" height="153" border="0" alt="Get IT Noticed, Professional Web site design and development."/></a>';
	   
	}
	
	return HTML;
	
}

function sisoLogo(){
	
	var HTML = "";
	
	if (FlashCheck()){
		
		HTML += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="130" height="145" id="logo">';
		HTML += '<param name="allowScriptAccess" value="sameDomain"/>';
		HTML += '<param name="movie" value="flash/siso-logo.swf"/>';
		HTML += '<param name="quality" value="high"/>';
		HTML += '<param name="wmode" value="transparent"/>';
		HTML += '<embed src="flash/siso-logo.swf" quality="high" wmode="transparent" width="130" height="145" name="logo" align="left" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
		HTML += '</object>';
           
	}else{
	
		HTML += '<img src="images/logos/siso.png" width="130" height="145" alt="SiSo"/>';
	   
	}
	
	return HTML;
	
}

function clickIE4(){
if (event.button==2){
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("return false")
