/*
Spot Image SYRIUS Online - JS frame file 
Copyright (c) 2005-2006 WS Interactive
Author: Sebastien Pauchet <sebastien.pauchet@ws-interactive.fr>
Created : 19/06/2005
$Id: startframe.js,v 1.2 2007/02/21 10:49:38 sebastien Exp $
*/

/** 
  * Add window.onload event
  * launch selected tab in frame
  */
  
  
addEvent(window,'load',function(){
var tabToOpen;
if(window.location.search.toLowerCase().indexOf('tab=')!=-1){
tabToOpen=parseInt(window.location.search.substr((window.location.search.toLowerCase().indexOf('tab=')+4),1));}
if(tabToOpen==2){
document.getElementById('innerframe').src=resultsTabpage;}else if(tabToOpen==3){
document.getElementById('innerframe').src=orderTabpage;}else{
document.getElementById('innerframe').src=searchTabpage;}

	//choose resolution
	chooseResolution();
return true;});

