var isFramed=true;
 function checkEntry() {
  loc1=document.location.href;
  if(loc1.indexOf("?")!=-1) {
	  addSplash();
  }
  if (loc1.indexOf("cmd=reqForm")>=0) {
   if( loc1.indexOf("avi=")>0) {
    window.frames['conFrame'].document.location="work_req.html?"+loc1.substring(loc1.indexOf("avi="));
   } else {
    window.frames['conFrame'].document.location="work_req.html";
   }
  } else if(loc1.indexOf("cmd=")>0) {
   x=loc1.indexOf("cmd=")+4;
   window.frames['conFrame'].document.location=loc1.substring(x);
  } else {
   if(!document.cookie) {
    myDate=new Date();
    myDate.setHours(myDate.getHours()+(1));
    showSplash();
    document.cookie="name=javadavek; expires="+myDate.toGMTString();
   } else { 
	addSplash();
   }
  }
 }
 function addSplash() {
	if(document.getElementById('splasher')) { return;}
	rn=document.getElementById('rightNav');
	rna=document.createElement('a');
	rna.setAttribute('id','splasher');
	rna.setAttribute('href','javascript:showSplash();');
	rna.setAttribute('title','Show Splash');
	rna.innerHTML='View Splash Intro';
	rn.appendChild(rna);
 }
 function showSplash() {
	 d=document.createElement("div");
	 if(!d) return;
	 d.style.width='800px';
	 d.style.height='600px';
	 d.setAttribute("id","splash");
	 d.style.display='block';
	 d.style.zIndex='20000';
	 d.style.top='80px';
	 d.style.left='200px';
	 document.body.appendChild(d);
	 d.innerHTML='<div><embed src="introSplash.swf?isHome=true"  width=800 height=600 bgcolor="#ffffff" quality="high" loop="true" wmode="transparent" type="application/x-shockwave-flash" pluginspace="http://www.macromedia.com/go/getflashplayer" /></div>';
	 setTimeout("removeSplash()",20000);
 }
 function removeSplash() {
    dd=document.getElementById('splash');
	if(dd) {
 	 dd.innerHTML='';
	 dd.outerHTML='';
	}
	addSplash();
 }
 function unshrinkSC() {
  unshrink('linner');
 }
 function shrinkSC() {
  shrink('linner');
 }
 function shrink(eid) {
	ele=document.getElementById(eid);
	ele.style.display='none';
	return;
 } 
 function unshrink(eid) {
	ele=document.getElementById(eid);
	ele.style.display='block';
	return;
 }