﻿// Javascript Document

function open_uTube(){window.open('http://gravityjanes.com//media/video/youTube1.htm','_ulog','scrollbars=no,toolbar=no,status=no,resizable=yes,width=450,height=360');}

function open_workout(){window.open('http://gravityjanes.com/wo_random.php','_workout','scrollbars=yes,toolbar=yes,status=no,resizable=yes,width=900,height=800');}

function open_schedule(){window.open('http://gravityjanes.com/1rad/schedule.php','_schedule','scrollbars=no,toolbar=yes,status=no,resizable=yes,width=800,height=600');}

function open_events(){window.open('http://gravityjanes.com/events.htm','_elog','scrollbars=yes,toolbar=yes,status=no,resizable=yes,width=1024,height=800');}

function open_media(){window.open('http://gravityjanes.com/media.htm','_mlog','scrollbars=yes,toolbar=yes,status=no,resizable=yes,width=1024,height=800');}

function open_comments(){window.open('http://gravityjanes.com/contact.php','_clog','scrollbars=yes,toolbar=yes,status=no,resizable=yes,width=1024,height=800');}

function open_signup(){window.open('http://gravityjanes.com/signup.php','_clog','scrollbars=yes,toolbar=yes,status=no,resizable=yes,width=600,height=400');}

function open_coachesblog(){window.open('http://mainjane.blogspot.com','_clog','scrollbars=yes,toolbar=yes,status=no,resizable=yes,width=1100,height=800');}

function open_airsquat(){window.open('http://www.slidetour.com/sample1/display/airsquat/airsquat.html','_airsquat','scrollbars=no,toolbar=no,status=no,resizable=no,width=400,height=340');}
function open_back_roll_support(){window.open('http://www.slidetour.com/sample1/display/back_roll_support/back_roll_support.html','_back_roll_support','scrollbars=no,toolbar=no,status=no,resizable=no,width=300,height=455');}
function open_box_jump(){window.open('http://www.slidetour.com/sample1/display/box_jump/box_jump.html','_box_jump','scrollbars=no,toolbar=no,status=no,resizable=no,width=400,height=340');}	 	
function open_deadlift(){window.open('http://www.slidetour.com/sample1/display/deadlift/deadlift.html','_deadlift','scrollbars=no,toolbar=no,status=no,resizable=no,width=400,height=340');}
function open_dumbell_snatch(){window.open('http://www.slidetour.com/sample1/display/dumbell_snatch/dumbell_snatch.html','_dumbell_snatch','scrollbars=no,toolbar=no,status=no,resizable=no,width=300,height=455');}
function open_front_squat(){window.open('http://www.slidetour.com/sample1/display/front_squat/front_squat.html','_front_squat','scrollbars=no,toolbar=no,status=no,resizable=no,width=400,height=340');}
function open_hang_power_clean(){window.open('http://www.slidetour.com/sample1/display/hang_power_clean/hang_power_clean.html','_hang_power_clean','scrollbars=no,toolbar=no,status=no,resizable=no,width=400,height=340');}
function open_hang_squat_clean(){window.open('http://www.slidetour.com/sample1/display/hang_squat_clean/hang_squat_clean.html','_hang_squat_clean','scrollbars=no,toolbar=no,status=no,resizable=no,width=400,height=340');}
function open_hollow_rock(){window.open('http://www.slidetour.com/sample1/display/hollow_rock/hollow_rock.html','_bhollow_rock','scrollbars=no,toolbar=no,status=no,resizable=no,width=400,height=340');}
function open_kettlebell_swing(){window.open('http://www.slidetour.com/sample1/display/kettlebell_swing/kettlebell_swing.html','_kettlebell_swing','scrollbars=no,toolbar=no,status=no,resizable=no,width=300,height=455');}
function open_knees_to_elbows(){window.open('http://www.slidetour.com/sample1/display/knees_to_elbows/knees_to_elbows.html','_knees_to_elbows','scrollbars=no,toolbar=no,status=no,resizable=no,width=400,height=340');}
function open_Lpullup(){window.open('http://www.slidetour.com/sample1/display/Lpullup/Lpullup.html','_Lpullup','scrollbars=no,toolbar=no,status=no,resizable=no,width=300,height=455');}
function open_muscleup(){window.open('http://www.slidetour.com/sample1/display/muscleup/muscleup.html','_muscleup','scrollbars=no,toolbar=no,status=no,resizable=no,width=300,height=455');}
function open_overhead_squat(){window.open('http://www.slidetour.com/sample1/display/overhead_squat/overhead_squat.html','_overhead_squat','scrollbars=no,toolbar=no,status=no,resizable=no,width=400,height=340');}
function open_power_clean(){window.open('http://www.slidetour.com/sample1/display/power_clean/power_clean.html','_power_clean','scrollbars=no,toolbar=no,status=no,resizable=no,width=300,height=455');}
function open_push_jerk(){window.open('http://www.slidetour.com/sample1/display/push_jerk/push_jerk.html','_push_jerk','scrollbars=no,toolbar=no,status=no,resizable=no,width=300,height=455');}
function open_push_press(){window.open('http://www.slidetour.com/sample1/display/push_press/push_press.html','_push_press','scrollbars=no,toolbar=no,status=no,resizable=no,width=300,height=455');}
function open_snatch(){window.open('http://www.slidetour.com/sample1/display/snatch/snatch.html','_snatch','scrollbars=no,toolbar=no,status=no,resizable=no,width=300,height=455');}
function open_split_jerk(){window.open('http://www.slidetour.com/sample1/display/split_jerk/split_jerk.html','_split_jerk','scrollbars=no,toolbar=no,status=no,resizable=no,width=400,height=340');}
function open_squat_clean(){window.open('http://www.slidetour.com/sample1/display/squat_clean/squat_clean.html','_squat_clean','scrollbars=no,toolbar=no,status=no,resizable=no,width=300,height=455');}
function open_sumo_deadlift_high_pull(){window.open('http://www.slidetour.com/sample1/display/sumo_deadlift_high_pull/sumo_deadlift_high_pull.html','_sumo_deadlift_high_pull','scrollbars=no,toolbar=no,status=no,resizable=no,width=300,height=455');}
function open_thruster(){window.open('http://www.slidetour.com/sample1/display/thruster/thruster.html','_thruster','scrollbars=no,toolbar=no,status=no,resizable=no,width=300,height=455');}
function open_turkish_getup(){window.open('http://www.slidetour.com/sample1/display/turkish_getup/turkish_getup.html','_turkish_getup','scrollbars=no,toolbar=no,status=no,resizable=no,width=400,height=340');}
function open_walking_lunge(){window.open('http://www.slidetour.com/sample1/display/walking_lunge/walking_lunge.html','_walking_lunge','scrollbars=no,toolbar=no,status=no,resizable=no,width=400,height=340');}
function open_wall_ball(){window.open('http://www.slidetour.com/sample1/display/wall_ball/wall_ball.html','_wall_ball','scrollbars=no,toolbar=no,status=no,resizable=no,width=300,height=455');}
function open_windsheild_whiper(){window.open('http://www.slidetour.com/sample1/display/windsheild_whiper/windsheild_whiper.html','_windsheild_whiper','scrollbars=no,toolbar=no,status=no,resizable=no,width=400,height=340');}
function open_video2(){window.open('http://www.gravityjanes.com/media/video/lecture_sample.htm','640x385video','scrollbars=no,toolbar=no,status=no,resizable=no,width=640,height=385');}
function open_video1(){window.open('http://www.gravityjanes.com/media/video/lecture_sample.htm','320x240video','scrollbars=no,toolbar=no,status=no,resizable=no,width=340,height=280');}
function open_whiteboard(){window.open('http://www.gravityjanes.com/whiteboard.php','whiteboard','scrollbars=yes,toolbar=no,status=no,resizable=no,width=900,height=950');}
function open_fishoil(){window.open('http://whole9life.com/fishoilcalculatorwp.html','whiteboard','scrollbars=yes,toolbar=no,status=no,resizable=no,width=750,height=950');}
				

function launchYouTube(winName) { 
//window height and width 
myHeight = screen.height*.80; 
myWidth = screen.width*.80;

//widow height bounds
if ( myHeight < 556 ) {
myHeight = 556;
} else if (myHeight >700) {
myHeight = 700;
}

//get screen size, and cacl center screen positioning
var height = screen.height;
var width = screen.width;
var leftpos = width / 2 - myWidth / 2;
var toppos = (height / 2 - myHeight / 2) - 40; 

//open window 
msgWindow=window.open(winName,"YouTube","toolbar=no,location=no,directories=no,resizable=yes,menubar=no,scrollbars=no,status=yes,width=" + myWidth + ",height=" + myHeight + ", left=" + leftpos + ",top=" + toppos); 

//focus window
setTimeout('msgWindow.focus()',1);
}

function launchWS(winName) { 
//window height and width 
myHeight = screen.height*.80; 
myWidth = screen.width*.80;

//widow height bounds
if ( myHeight < 556 ) {
myHeight = 556;
} else if (myHeight >700) {
myHeight = 700;
}

//get screen size, and cacl center screen positioning
var height = screen.height;
var width = screen.width;
var leftpos = width / 2 - myWidth / 2;
var toppos = (height / 2 - myHeight / 2) - 40; 

//open window 
msgWindow=window.open(winName,"ws_window","toolbar=no,location=no,directories=no,resizable=yes,menubar=no,scrollbars=no,status=yes,width=" + myWidth + ",height=" + myHeight + ", left=" + leftpos + ",top=" + toppos); 

//focus window
setTimeout('msgWindow.focus()',1);
}

function launchPrice(winName) { 
//window height and width 
myHeight = screen.height*.30; 
myWidth = screen.width*.50;

//widow height bounds
if ( myHeight < 556 ) {
myHeight = 556;
} else if (myHeight>700) {
myHeight = 700;
}

//get screen size, and cacl center screen positioning
var height = screen.height;
var width = screen.width;
var leftpos = width / 2 - myWidth / 2;
var toppos = (height / 2 - myHeight / 2) - 40; 

//open window 
msgWindow=window.open(winName,"price","toolbar=no,location=no,directories=no,resizable=yes,menubar=no,scrollbars=no,status=yes,width=" + myWidth + ",height=" + myHeight + ", left=" + leftpos + ",top=" + toppos); 

//focus window
setTimeout('msgWindow.focus()',1);
}

function launchDesc(winName) { 
//window height and width 
myHeight = screen.height*.80; 
myWidth = screen.width*.40;

//widow height bounds
if ( myHeight < 800 ) {
myHeight = 800;
} else if (myHeight>700) {
myHeight = 700;
}

//get screen size, and cacl center screen positioning
var height = screen.height;
var width = screen.width;
var leftpos = width / 2 - myWidth / 2;
var toppos = (height / 2 - myHeight / 2) - 40; 

//open window 
msgWindow=window.open(winName,"desc","toolbar=no,location=no,directories=no,resizable=yes,menubar=no,scrollbars=yes,status=yes,width=" + myWidth + ",height=" + myHeight + ", left=" + leftpos + ",top=" + toppos); 

//focus window
setTimeout('msgWindow.focus()',1);
}

function launchCal(winName) { 
//window height and width 
myHeight = screen.height*1.00; 
myWidth = screen.width*.65;

//widow height bounds
if ( myHeight < 800 ) {
myHeight = 800;
} else if (myHeight > 900) {
myHeight = 900;
}

//get screen size, and cacl center screen positioning
var height = screen.height;
var width = screen.width;
var leftpos = width / 2 - myWidth / 2;
var toppos = (height / 2 - myHeight / 2) - 40; 

//open window 
msgWindow=window.open(winName,"cal","toolbar=no,location=no,directories=no,resizable=yes,menubar=no,scrollbars=yes,status=yes,width=" + myWidth + ",height=" + myHeight + ", left=" + leftpos + ",top=" + toppos); 

//focus window
setTimeout('msgWindow.focus()',1);
}

function launchPost(winName) { 
//window height and width 
myHeight = screen.height*1.00; 
myWidth = screen.width*.60;

//widow height bounds
if ( myHeight < 800 ) {
myHeight = 800;
} else if (myHeight > 900) {
myHeight = 900;
}

//get screen size, and cacl center screen positioning
var height = screen.height;
var width = screen.width;
var leftpos = width / 2 - myWidth / 2;
var toppos = (height / 2 - myHeight / 2) - 40; 

//open window 
msgWindow=window.open(winName,"post","toolbar=no,location=no,directories=no,resizable=yes,menubar=no,scrollbars=yes,status=yes,width=" + myWidth + ",height=" + myHeight + ", left=" + leftpos + ",top=" + toppos); 

//focus window
setTimeout('msgWindow.focus()',1);
}

function launchSlideshow(winName) { 
//window height and width 
myHeight = screen.height*.75; 
myWidth = screen.width*.50;

//widow height bounds
if ( myHeight < 800 ) {
myHeight = 800;
} else if (myHeight > 900) {
myHeight = 900;
}

//get screen size, and cacl center screen positioning
var height = screen.height;
var width = screen.width;
var leftpos = width / 2 - myWidth / 2;
var toppos = (height / 2 - myHeight / 2) - 40; 

//open window 
msgWindow=window.open(winName,"slideshow","toolbar=no,location=no,directories=no,resizable=no,menubar=no,scrollbars=no,status=yes,width=" + myWidth + ",height=" + myHeight + ", left=" + leftpos + ",top=" + toppos); 

//focus window
setTimeout('msgWindow.focus()',1);
}


function launchGkid(winName) { 
//window height and width 
myHeight = screen.height*.50; 
myWidth = screen.width*.45;

//widow height bounds
if ( myHeight < 800 ) {
myHeight = 800;
} else if (myHeight > 900) {
myHeight = 900;
}

//get screen size, and cacl center screen positioning
var height = screen.height;
var width = screen.width;
var leftpos = width / 2 - myWidth / 2;
var toppos = (height / 2 - myHeight / 2) - 40; 

//open window 
msgWindow=window.open(winName,"gkid","toolbar=no,location=no,directories=no,resizable=yes,menubar=no,scrollbars=yes,status=yes,width=" + myWidth + ",height=" + myHeight + ", left=" + leftpos + ",top=" + toppos); 

//focus window
setTimeout('msgWindow.focus()',1);
}

function launchRoster(winName) { 
//window height and width 
myHeight = screen.height*1.00; 
myWidth = screen.width*.55;

//widow height bounds
if ( myHeight < 800 ) {
myHeight = 800;
} else if (myHeight > 900) {
myHeight = 900;
}

//get screen size, and cacl center screen positioning
var height = screen.height;
var width = screen.width;
var leftpos = width / 2 - myWidth / 2;
var toppos = (height / 2 - myHeight / 2) - 40; 

//open window 
msgWindow=window.open(winName,"Roster","toolbar=no,location=no,directories=no,resizable=yes,menubar=no,scrollbars=yes,status=yes,width=" + myWidth + ",height=" + myHeight + ", left=" + leftpos + ",top=" + toppos); 

//focus window
setTimeout('msgWindow.focus()',1);
}

function launchCamWindow(winName) { 
//window height and width 
myHeight = screen.height*.50; 
myWidth = screen.width*.38;

//widow height bounds
if ( myHeight < 550 ) {
myHeight = 550;
} else if (myHeight > 550) {
myHeight = 550;
}

//widow width bounds
if ( myWidth < 660 ) {
myWidth = 660;
} else if (myWidth > 660) {
myWidth = 660;
}

//get screen size, and cacl center screen positioning
var height = screen.height;
var width = screen.width;
var leftpos = width / 2 - myWidth / 2;
var toppos = (height / 2 - myHeight / 2) - 40; 

//get time and day 
var now = new Date();
var hour = now.getHours();
var thisDay = now.getDay();

//determine window image to open
if (thisDay = 1,2,3,4,5){
	if (hour < 6){
		var CamImg = "webcam/dingo_off.html"
	} else if (hour >= 6 && hour < 10){
		var CamImg = "webcam/dingo_ex.html"
	} else if (hour >= 16 && hour < 19){
		var CamImg = "webcam/dingo_ex.html"
	} else {
		var CamImg = "webcam/dingo_off.html"
	}
}else if (thisDay = 6){
	if (hour < 8){
		var CamImg = "webcam/dingo_off.html"
	} else if (hour >= 8 && hour < 12){
		var CamImg = "webcam/dingo_ex.html"
	} else {
		var CamImg = "webcam/dingo_off.html"
	}
}else if (thisDay = 7){
	var CamImg = "webcam/dingo_off.html"
}

//open window 
msgWindow=window.open(CamImg,"CamWindow","toolbar=no,location=no,directories=no,resizable=yes,menubar=no,scrollbars=no,status=no,width=" + myWidth + ",height=" + myHeight + ", left=" + leftpos + ",top=" + toppos); 

//focus window
setTimeout('msgWindow.focus()',1);
}