
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="Scan The Sun - Solar panels optimization" />
<meta name="Description" content="Scan The Sun - Solar panels optimization" />
<meta name="viewport" content="width=device-width; initial-scale=1.0;">
<title>Scan The Sun - bizpartners website</title>
<link href="../style2.css" rel="stylesheet" type="text/css" />
</head>
<body link="#3300FF" vlink="#0066FF" alink="#3300FF" style="background-color: #EEEEEE" >
<div style="margin:20px;cursor:pointer;float:left"> <img src="../main/logo.png" width="120px" height="16px" onclick="location.assign('http://www.scanthesun.com')"/></div><br/>

	
	
	
	
  
		
	<div class="elementsContent" style="height:30px;float:right">
		<span style="color:red;cursor:pointer;" onclick="request_component('loginscreen', 'logowanie.php','mainarea')" 
			onmouseover="this.style.color='black';"
			onmouseout="this.style.color='red';"> log in </span><br/>
			<span style="color:red;cursor:pointer;" onclick="request_component('loginscreen', 'rejestrowanie.php','mainarea')" 
			onmouseover="this.style.color='black';"
			onmouseout="this.style.color='red';"> register </span><br/> &nbsp;
	</div><br/><br/>
  
  		<div style="margin:auto">
		
		<div style="font-family: 'Lucida Sans Unicode', 'Lucida Grande', sans-serif;font-size: 20px;color: #261915;font-weight: normal;padding-left:30px;padding-right:30px;text-align:center">ScanTheSun for Biz Partners</div>
		<div id="alerts" style="font-family: 'Lucida Sans Unicode', 'Lucida Grande', sans-serif;font-size: 12px;color: #261915;font-weight: normal;padding-left:30px;padding-right:30px;text-align:center">Secured documents are available here for ScanTheSun biz Partners</div>
		
		</div>
		<div id="table"></div>
	<script type="text/javascript" src="../jquery-1.10.2.min.js"></script>
	<script type="text/javascript" src="../geneic_requests.js"></script>
	<script type="text/javascript" src="request_component.js"></script>
<script id="myscript" type="text/javascript">
var iColWidth=302;
//var iDeviceWidth=window.screen.width;
var iDeviceWidth=$( window ).width();

var iTableWidth=Math.ceil(iDeviceWidth);//-(iDeviceWidth/5));
var iColNo=Math.floor(iTableWidth/iColWidth);
//var iBoxNo=0;
var bViewFullText=false;
var sWhichColumnFeed="";
var iHeaderWidth=300;
if(iDeviceWidth>300)
{
	iHeaderWidth=iDeviceWidth;
}
var iFullTextWidth=Math.floor(iDeviceWidth/2);
if(iFullTextWidth<300)
{
	iFullTextWidth=300;
}

function create_table()
{
	if(iColNo<1)
		iColNo=1;
	var i=0;
	var sString='<table style="background-color: white;margin:auto" cellspacing="0;"><tr>';
	for (i=0;i<iColNo;i++)
	{
		sString+='<td width="'+iColWidth.toString()+'" valign="top"><div abstracts="true" id="column_'+i.toString()+'" ></div></td>';
	}
	sString+='</tr></table>';
	$('#table').append(sString);
}

function insert_block(sWhich_column,sBlock)
{
	var oBlockHtml=$('#'+sBlock).detach();
	$('#'+sWhich_column).append(oBlockHtml);
	//document.getElementById('alerts').innerHTML+='column=#'+sWhich_column+'<br/>';
	//document.getElementById('alerts').innerHTML+=sBlockHtml+'<br/>';

}
function count()
{
	var i= $('#pagedata').children().size();
	return i;
}
function fill_table()
{	
	var iSecs=count();
	var iSecPerColMin=Math.floor(iSecs/iColNo);
	var secpercol=iSecPerColMin;
	var iAdditional=iSecs%iColNo;
	//document.getElementById('alerts').innerHTML+='iadditional='+iAdditional.toString()+'<br/>';
	var iNo=0;
	var iSection=0;
	for(var iCol=0;iCol<iColNo;iCol++)
	{
		if(iCol<iAdditional)
		{
			secpercol=iSecPerColMin+1;
		}
		else
		{
			secpercol=iSecPerColMin;
		}
		for(iNo=0;iNo<secpercol;iNo++)
		{
				if(iSection<iSecs)
				{
					//document.getElementById('alerts').innerHTML+='iSection='+iSection.toString()+'<br/>';

					insert_block('column_'+iCol.toString(),'section'+iSection.toString());
					iSection++;
				}
		}
	}	
}


function getfulltext(fig_name,sWidth)
{
	bViewFullText=true;
//	document.getElementById('article_box').style.display="none";
//	document.getElementById('login_box').style.display="none";
	

	//bedzie potrzebne obliczenie wysrodkowania artykulu na koknie w poziomie
	var width=$( window ).width();
	var leftMarginOfFullText=Math.floor((width-iFullTextWidth)/2);
	if (leftMarginOfFullText<0)
	{
		leftMarginOfFullText=0;
	}
	var oLoad=$('#loadfull_box');//document.getElementById('fulltext_box');
	//var oBody=$('#table')
	var iscrol=$(document).scrollTop();
	oLoad.css('top',iscrol.toString()+'px');
	oLoad.css('margin-left',leftMarginOfFullText.toString()+'px');
	oLoad.css('width',iFullTextWidth.toString()+'px');
	oLoad.css('display','block');
	var height=$( document).height();
	
	//ustawiamy zaciemnienie
	var obackground=document.getElementById('background_box');
	obackground.style.width=width.toString()+'px';
	obackground.style.height=height.toString()+'px';
	obackground.style.display='block';
	//alert('getbigfigure.php?fig_name='+fig_name+'&width='+sWidth);
	get_request('getbigfigure.php?fig_name='+fig_name+'&width='+sWidth,'fulltext_box',show_fulltext);
}
function cancel_fulltext()
{
	document.getElementById('loadfull_box').style.display='none';
	document.getElementById('background_box').style.display='none';
	bViewFullText=false;
	get_request_cancel();
}
function show_fulltext()
{
	bViewFullText=true;
//	document.getElementById('article_box').style.display="none";
//	document.getElementById('login_box').style.display="none";
document.getElementById('loadfull_box').style.display="none";
	//bedzie potrzebne obliczenie wysrodkowania artykulu na koknie w poziomie
	var width=$( window ).width();
	var leftMarginOfFullText=Math.floor((width-iFullTextWidth)/2);
	if (leftMarginOfFullText<0)
	{
		leftMarginOfFullText=0;
	}
	
	//wyswietlamy pelny text artykulu
	var oFullTxt=$('#fulltext_box');//document.getElementById('fulltext_box');
	//var oBody=$('#table')
	var iscrol=$(document).scrollTop()+20;
	oFullTxt.css('top',iscrol.toString()+'px');
	oFullTxt.css('margin-left',leftMarginOfFullText.toString()+'px');
	
	oFullTxt.css('display','block');
		//pobieramy rozmiary okna przegladarki aby zrobic zaciemnienie calosci.
	//po wstawieniu dlugiego tekstu na strone, wydluzy sie ona. pobieramy cala dlugosc aby ustawic zaciemnienie na calej dlugosci.
	var height=$( document).height();
	
	//ustawiamy zaciemnienie
	var obackground=document.getElementById('background_box');
	obackground.style.width=width.toString()+'px';
	obackground.style.height=height.toString()+'px';
	obackground.style.display='block';
	

	
	//alert(iscrol);
	//oFullTxt.style.top=iscrol;//document.body.scrollTop;
	
}
function hide_fulltext()
{
	
	document.getElementById('fulltext_box').style.display='none';
	document.getElementById('background_box').style.display='none';
	bViewFullText=false;
}

window.onload = function()
{
	create_table();
		var i=count();
		fill_table();
		//alert("ilosc="+i.toString());
}
</script>
	<div id="mainarea" class="elementsContent" style="color:black">
  <h3> Register or log-in to see the documents </h3>
  <table class="elementsContent" with="100%" align="center" >

<tr><td class="elementsContent"></td><td class="elementsContent">



  <h1> Log in </h1>
  <h3> make sure <br />
  caps-lock is off </h3>
  <form method="post" action="partners.php" id="loginform" accept-charset="utf-8">
  <table class="elementsContent" width="300px">
   <tr>
     <td colspan="2">Log in:</td>
   <tr>
     <td width="40%">Your login:</td>
     <td width="60%" align="right"><input type="text" name="login"/></td></tr>
   <tr>
     <td width="40%">Your password:</td>
     <td width="60%" align="right"><input type="password" name="passwd"/></td></tr>
   <tr>
     <td colspan="2" align="center">
     <input type="submit" value="log in"/></td></tr>
 </table></form>
</td><td class="elementsContent"></td></tr>
</table>

	</div>
</div>
	<div id="background_box" class="zaciemnij" style="display:none;">
	</div>
	<div id="fulltext_box" style="position:absolute; z-index:2; display:none;">
	</div>
	<div id="loadfull_box" class="newsbox" style="text-align:center;position:absolute; z-index:2; display:none;background-color:white">
	<div style="float:center; padding:50px; font-size: 12px">Loading</div>
	<div style="cursor:pointer;text-align:center;float: right;margin-top:10px;width:100px;font-size:12px; padding: 20px; background-color: #EEEEEE" onclick="cancel_fulltext()"><strong>Cancel </strong></div>
	</div>
	</body></html>