

	// email to a friend
function func_send_email()
{
	if ( my_form.name_sender.value == "" ||
			 my_form.email_sender.value == "" ||
			 my_form.name_receiver.value == "" ||
			 my_form.email_receiver.value == "" )
	{
		alert("Please enter info into all required fields!");
		return false;
	}
	else
	{
		my_form.submit();
	}
	parent.func_pano_window_hide();
}


function func_change_button_img(my_object, my_status)
{
	eval("document.getElementById('" + my_object + "').src = 'img/" + my_object + my_status + ".jpg'");
}




var my_url_main = window.location.href;
var my_url_site = my_url_main.split("/");
my_url_site.pop();
my_url_site = my_url_site.join("/")+"/";

var my_url_pano = my_url_site + "?pano_name=" + fn;


if ( parent.init_pano !== true && parent.init_pano_load === true )
{
	parent.func_pano_window_hide();
}
else
{
	document.title = pano_data[fn][2][0];
	
	document.write('<div id="pano_title_1" name="pano_title_1" style="position:absolute;margin:4px 0px 0px 18px;width:380px;text-align:left; color:#333333;font-weight:bold;font-family:Arial, Helvetica, sans-serif;">'+pano_data[fn][2][0]+'</div>');
	document.write('<div id="pano_title_2" name="pano_title_2" style="position:absolute;margin:5px 0px 0px 20px;width:380px;text-align:left;color:#FFFFFF;font-weight:bold;font-family:Arial, Helvetica, sans-serif;">'+pano_data[fn][2][0]+'</div>');
	
	document.write('<table width="698" height="468" border="0" cellpadding="0" cellspacing="0">');
	document.write('	<tr>');
	document.write('		<td background="img/ballen_comp_051107_2a.jpg" width="661" height="33"></td>');
	document.write('		<td><a href="#" onclick="parent.func_pano_window_hide();" width="37" height="33"><img src="img/ballen_comp_051107_2b.jpg" width="37" height="33" style="border:0px;"></a></td>');
	document.write('	</tr>');
	document.write('	<tr>');
	document.write('		<td colspan="2" background="img/ballen_comp_051107_2c.jpg" width="698" height="444" valign="top">');
	
	
	document.write('		<iframe name="pano_applet" id="pano_applet" scrolling="no" border="0" frameborder="0" style="border:0px; width:680px; height:390px; margin:15px 0px 5px 7px" src="pano_viewer.html?pano_name=' + fn +  ' "></iframe>');
	
	
	if ( parent.my_browser == "MSIE" ) document.write('<a href="#" onclick="parent.func_ftf(\'pano\');" id="ftf" name="ftf" style="border:0px solid red; margin:0px 0px 0px 250px; padding:0px; width:260px; text-align:left; color:#FF0000; font-size:16px; font-weight:bold;font-family:Arial, Helvetica, sans-serif;">Forward this View to a Friend</a>');
	else document.write('<a href="#" onclick="parent.func_ftf(\'pano\');" id="ftf" name="ftf" style="border:0px solid red; margin:20px 0px 0px 250px; padding:0px; width:260px; text-align:left; color:#FF0000; font-size:16px; font-weight:bold;font-family:Arial, Helvetica, sans-serif;">Forward this View to a Friend</a>');
	
	
	document.write('</div>');
	
	
	
	/////////////////////////////////////////////////////////////////////////////////////////////////////////
	//////////// EMAIL PANO /////////////////////////////////////////////////////////////////////////////////
	
	document.write('<form name="my_form" id="my_form" action="php_email_to_friend.php" method="post">');
		document.write('<div id="email_to_friend" name="email_to_friend" style="display:none; border:0px solid black; margin:0px 0px 0px 50px; padding:5px; width:600px; height:400px; ">');
		document.write('	<div style="float:left; border:0px solid red; margin:0px 0px 0px 0px; font-size:18; color:#FF0000; font-weight:bold; font-family:Arial, Helvetica, sans-serif; ">*</div>');
		document.write('	<div style="float:left; border:0px solid red; margin:0px 0px 0px 0px;  font-size:10; color:#000000; font-family:Arial, Helvetica, sans-serif; ">=Required</div>');
		
		document.write('	<br>');
		
		document.write('	<div style="float:left; border:0px solid red; margin:0px 0px 0px -8px;  font-size:14; color:#000000; font-weight:bold; font-family:Arial, Helvetica, sans-serif; ">');
		document.write('		<span style="font-size:18; color:#FF0000; font-weight:bold; font-family:Arial, Helvetica, sans-serif; ">*</span>Sender name : ');
		document.write('	</div>');
		
		document.write('	<input name="name_sender" id="name_sender" style="width:200px; margin-left:7px; " value="">');
		
		document.write('	<br>');
		
		document.write('	<div style="float:left; border:0px solid red; margin:0px 0px 0px 0px;  font-size:14; color:#000000; font-weight:bold; font-family:Arial, Helvetica, sans-serif; ">');
		document.write('		<span style="font-size:18; color:#FF0000; font-weight:bold; font-family:Arial, Helvetica, sans-serif; ">*</span>Sender email : ');
		document.write('	</div>');
		
		document.write('	<input name="email_sender" id="email_sender" style="width:200px; margin-left:7px; " value="">');
		
		document.write('	<br><hr>');
		
		document.write('	<div style="float:left; border:0px solid red; margin:0px 0px 0px 0px;  font-size:14; color:#000000; font-weight:bold; font-family:Arial, Helvetica, sans-serif; ">');
		document.write('		<span style="font-size:18; color:#FF0000; font-weight:bold; font-family:Arial, Helvetica, sans-serif; ">*</span>Receiver name : ');
		document.write('	</div>');
		
		document.write('	<input name="name_receiver" id="name_receiver" style="width:200px; margin-left:7px; " value="">');
		
		document.write('	<br>');
		
		document.write('	<div style="float:left; border:0px solid red; margin:0px 0px 0px 0px;  font-size:14; color:#000000; font-weight:bold; font-family:Arial, Helvetica, sans-serif; ">');
		document.write('		<span style="font-size:18; color:#FF0000; font-weight:bold; font-family:Arial, Helvetica, sans-serif; ">*</span>Receiver email : ');
		document.write('	</div>');
		
		document.write('	<input name="email_receiver" id="email_receiver" style="width:200px; margin-left:7px; " value="">');
		
		document.write('	<br><hr>');
		
		document.write('	<div style="border:0px solid black; margin:0px 0px 0px 0px; font-size:14; color:#000000; font-weight:bold; font-family:Arial, Helvetica, sans-serif; ">Subject:');
		document.write('		<input name="subject" id="subject" style=" padding:2px 5px 2px 5px; width:520px; " value="' + parent.email_subject + '" >');
		document.write('	</div>');
		
		document.write('	<br> <div style="border:0px solid red; margin:0px 0px 0px 0px;  font-size:14; color:#000000; font-weight:bold; font-family:Arial, Helvetica, sans-serif; ">Comments:');
		document.write('		<br>');
	
		
		////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
		/////////////// COMMENT FOR EMAIL PANO /////////////////////////////////////////////////////////////////////////////////
		document.write('<textarea cols="70" rows="10" id="comment_pano" name="comment_pano">');
		document.write(parent.email_comment_pano_1);
		document.write(my_url_pano);
		document.write(parent.email_comment_pano_2);
		document.write('</textarea>');
	
	
		////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
		/////////////// COMMENT FOR EMAIL SITE /////////////////////////////////////////////////////////////////////////////////
		document.write('<textarea cols="70" rows="10" id="comment_site" name="comment_site">');
		document.write(parent.email_comment_site_1);
		document.write('</textarea>');
		////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	
	
		document.write('		<input type="hidden" name="email_type" id="email_type" value="">');	
		document.write('		<input type="hidden" name="url_site" id="url_site" " value="' + parent.email_hidden_url_site + '">');
	
		document.write('		<br> <span style="margin-left:512;"></span><a href="#" onclick="func_send_email(); return false;" onmouseover="func_change_button_img(\'send_button_\', \'over\');" onmouseout="func_change_button_img(\'send_button_\', \'up\');" style="border:0px; margin:0px 0px 0px 0px; ">');
		if ( parent.my_browser == "MSIE" ) document.write('						<img src="img/send_button_up.jpg" name="send_button_" id="send_button_" width="72" height="26" style="border:0px; margin:-15px 0px 0px 0px; "></a>');
		else 															 document.write('						<img src="img/send_button_up.jpg" name="send_button_" id="send_button_" width="72" height="26" style="border:0px; margin:0px 0px 0px 0px; "></a>');
	
	
		document.write('	</div>');
	document.write('	</form>');
		
	document.write('</div>');
	
	document.write('		</td>');
	document.write('	</tr>');
	document.write('</table>');

}

parent.init_pano = false;



