//frame.js

var goingwhere;

function show_visibility_iframe(id,vheight,vwidth) {
var e = parent.document.getElementById(id);
e.height = vheight;
e.width = vwidth;
}

function hide_visibility_iframe(id) {
var e = parent.document.getElementById(id);
e.height = '0';
e.width = '0';
}

function show_visibility(id,vheight) {
var e = parent.document.getElementById(id);
e.style.display = 'block';
e.style.height = vheight;
}

function hide_visibility(id) {
var e = parent.document.getElementById(id);
e.style.display = 'none';
e.style.height = '0';
}

function hide_caller() {
frames['iframetoggle2'].location.href = 'http://hipyak.com/bin/htm/pleasewait.htm';
window.scrollTo(0,0);
hide_visibility_iframe('iframetoggle2');
hide_visibility('iframetoggle1');
}	
function jump (url) {
self.location.hash = url;
}

function go(inurl)
{
gourl = inurl;
lhostname = location.hostname;
if (gourl.indexOf(lhostname) == -1)
{
//show_visibility('iframetoggle1','100');
show_visibility_iframe('iframetoggle2','650', '890');
frames['iframetoggle2'].location.href = inurl;
jump("#showframe");
}
else
{
window.location.href = inurl;
}
}
//-------------
// on load, log visit, reset hrefs
//-------------
function init() {
}

